View Issue Details

IDProjectCategoryView StatusLast Update
0001261OpenMPTAudio I/Opublic2019-09-16 06:37
ReporterXephyrOfficial Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionnot fixable 
Platformx64OSWindowsOS Version10
Product VersionOpenMPT 1.28.06.00 / libopenmpt 0.4.6 (upgrade first) 
Summary0001261: Midi Input Change Crash
Description

OpenMPT freezes indefinitely if I change the MIDI Input Device. It defaults to my audio interface, but I am using a USB midi controller. Task Manager can kill the process, but then OpenMPT will become a unkillable background process.

Steps To Reproduce

Change MIDI Input Device from DIgidesign Mbox 2 to AKAI MPK61

TagsNo tags attached.
Has the bug occurred in previous versions?1.28.04 as well.
Tested code revision (in case you know it)

Activities

Saga Musix

Saga Musix

2019-09-15 19:55

administrator   ~0004062

OpenMPT does not crash here when changing MIDI devices. The fact that OpenMPT becomes unkillable hints at a driver issue. Are you using the latest drivers for your MIDI devices?

Saga Musix

Saga Musix

2019-09-15 19:58

administrator   ~0004063

Also, instead of killing, please rightclick OpenMPT in the task manager and select Create Dump File. This will create a rather huge memory image of the process. Compress it with 7z or RAR and upload it somewhere where we can have a look at it (the issue tracker itself won't accept attachments of that size).

XephyrOfficial

XephyrOfficial

2019-09-15 20:58

reporter   ~0004064

here's the dump file.
https://drive.google.com/drive/folders/1ttEXA1uZn26B4WxMXcxooxrLaoGPCDHT?usp=sharing

Saga Musix

Saga Musix

2019-09-15 21:07

administrator   ~0004065

As suspected, the code hangs in wdmaud.drv!CMIDIInDevice::Close which is the driver trying to close the old device.

Microsoft themselves suggest that this kind of issue can also occur when unpluggin device while they're active but I think that's not related: https://support.microsoft.com/en-us/help/4460006/midi-device-app-hangs-when-former-midi-api-is-used

But the way that article is phrased makes it sound more like an advertisement for the new WinRT MIDI API (which isn't any better from what I've heard).

Either way, unfortunately there isn't really something we can do here, as the issue is in the MIDI driver. If you do something similar in a program like SendSX, you will probably have the same issue.

XephyrOfficial

XephyrOfficial

2019-09-15 21:16

reporter   ~0004066

Issue isn't reproducible in sendSX or Ableton, will update if I find the driver/software issue.

Saga Musix

Saga Musix

2019-09-15 21:28

administrator   ~0004067

Also, please test the following just to be sure:

  • Does it also happen if you only toggle the MIDI input device rather than selecting a different one? Judging from the memory dump, it should.
  • If so, does it only happen with that one specific device?
  • Does it always happen or only if there is or previously was MIDI data on the wire?
XephyrOfficial

XephyrOfficial

2019-09-15 21:28

reporter   ~0004068

Problem Solved.
OpenMPT's Roaming\OpenMPT\mptrack.ini had set the midi device to one that is no longer connected, so it was hiccuping on that. editing the config manually has fixed the problem.

XephyrOfficial

XephyrOfficial

2019-09-15 22:00

reporter   ~0004069

It only occurs when going from digidesign mbox 2 (which hasnt had new drivers in years) and AKAI MPK61. anything else works fine. This seems to be because of the specific hardware I use.

Saga Musix

Saga Musix

2019-09-16 06:36

administrator   ~0004071

I'm glad you could solve it. It really doesn't sound like we can do anything here, just be careful with your device selection.

Issue History

Date Modified Username Field Change
2019-09-15 19:54 XephyrOfficial New Issue
2019-09-15 19:55 Saga Musix Note Added: 0004062
2019-09-15 19:55 Saga Musix Priority urgent => normal
2019-09-15 19:58 Saga Musix Note Added: 0004063
2019-09-15 20:58 XephyrOfficial Note Added: 0004064
2019-09-15 21:07 Saga Musix Note Added: 0004065
2019-09-15 21:16 XephyrOfficial Note Added: 0004066
2019-09-15 21:28 Saga Musix Note Added: 0004067
2019-09-15 21:28 XephyrOfficial Note Added: 0004068
2019-09-15 22:00 XephyrOfficial Note Added: 0004069
2019-09-16 06:36 Saga Musix Note Added: 0004071
2019-09-16 06:37 Saga Musix Status new => closed
2019-09-16 06:37 Saga Musix Resolution open => not fixable