Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Sending MT3 messages to UM-ONE running with the USBMidi2.sys causes Green Screen. #472

Open
m-komo opened this issue Dec 19, 2024 · 7 comments
Assignees
Labels
area-usb-driver 💻 Related to the USB MIDI 2.0 driver bug 🐞 Something isn't working critical ‼️ Critical to be fixed/implemented before next major release fixed-awaiting-public-release 🕙 Fixed in our internal builds. Waiting to make its way to a public release.

Comments

@m-komo
Copy link
Collaborator

m-komo commented Dec 19, 2024

Describe the bug
Sending MT3 messages to UM-ONE running with the USBMidi2.sys causes Green Screen.

This issue only occurs if I call the 'send-file' command via the Windows batch file.

To Reproduce

  1. Set the Roland UM-ONE to class-compliant mode (set the switch to "TAB") and attach it to PC.
  2. Update the driver to the USB MIDI 2.0 driver (UsbMidi2.sys).
  3. Run 'midi.exe enum ep' and put the endpoint name of the UM-ONE into the attached batch file(Send_MT3-file.bat).
  4. Double click the batch file to run.

Green screen occurs.

Expected behavior
No green screen issue occurs.

Installer Name or Version
Windows.MIDI.Services.In-Box.Service.-.1.0.1-preview.7.24305.1438-x64.exe

Desktop (please complete the following information):

  • OS: Windows 11 24H2 build 26120.2702 (Insider Dev channel)

Device information, if this is with an external MIDI device:

  • Roland UM-ONE mk2
  • USB MIDI 2.0 class driver (USBMIDI2_10.0.1.7.x64.zip)

Application Information

  • midi.exe

Additional context

  • If I run the send-file command manually, this issue never occurs.
  • This issue never occurs with the USB MIDI 1.0 driver (USBAUDIO.sys).
@m-komo m-komo added the bug 🐞 Something isn't working label Dec 19, 2024
@Psychlist1972 Psychlist1972 added the needs-investigation 🔍 Needs to be investigated before considering or solving. label Dec 19, 2024
@Psychlist1972
Copy link
Contributor

I have validated that this green screens on the February Canary

Sending the file to the UM-One through the Windows MIDI 1.0 Class driver: no problem.
Sending the file to the UM-One using the MIDI 2 class driver: green screen.

I did not need to run a batch file, just pasting the command on the command line was sufficient.

What was strange to me is the green screen it caused was not in the MIDI driver, but it was in DirectX. (dxgmms2.sys)

SYMBOL_NAME:  dxgmms2!VidSchiUnwaitNodeHwQueueProgress+d4

MODULE_NAME: dxgmms2

IMAGE_NAME:  dxgmms2.sys

IMAGE_VERSION:  10.0.27788.1000

STACK_COMMAND:  .process /r /p 0xffff968f1f694080; .thread 0xffff968f1ef04080 ; kb

BUCKET_ID_FUNC_OFFSET:  d4

FAILURE_BUCKET_ID:  AV_R_dxgmms2!VidSchiUnwaitNodeHwQueueProgress

OS_VERSION:  10.0.27788.1000

Image

@Psychlist1972
Copy link
Contributor

Tried with my iConnectivity mio and also reproduced the green screen. Works fine with midi 1.0 class driver, but green screens when assigned the MIDI 2.0 class driver.

Both my mio and my um-one have out connected to in with a physical DIN joiner.

This time, the green screen was shown to be in wdf01000.sys and reported in usbmidi2.sys. So this smells like memory corruption to me.

SYMBOL_NAME:  USBMidi2!USBMIDI2DriverEvtRequestWriteCompletionRoutineDelete+d0

MODULE_NAME: USBMidi2

IMAGE_NAME:  USBMidi2.sys

STACK_COMMAND:  .process /r /p 0xffffd2080e9e40c0; .thread 0xffffd20806ed8080 ; kb

BUCKET_ID_FUNC_OFFSET:  d0

FAILURE_BUCKET_ID:  AV_R_USBMidi2!USBMIDI2DriverEvtRequestWriteCompletionRoutineDelete

OS_VERSION:  10.0.27788.1000

BUILDLAB_STR:  rs_prerelease

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

FAILURE_ID_HASH:  {c4e07962-03a1-f1aa-1aa8-b8b9cd7e77f5}

Image

Tagging @AmeNote-Michael

@Psychlist1972 Psychlist1972 added area-usb-driver 💻 Related to the USB MIDI 2.0 driver critical ‼️ Critical to be fixed/implemented before next major release and removed needs-investigation 🔍 Needs to be investigated before considering or solving. labels Feb 6, 2025
@Psychlist1972
Copy link
Contributor

Tagging @AmeNote-Michael

@AmeNote-Michael
Copy link
Collaborator

AmeNote-Michael commented Feb 10, 2025

@Psychlist1972 @garydan42 it is interesting when using kernel debugger, it seems that the midi.exe command in batch file is given opportunity to complete the task at hand, but something in cleanup causes crash. See following picture:

Image

I have also attached a txt file of analyzer and wdflogdump from the kernel debugger for any insights. There does appear to be an error in driver, but this is after it has gone idle from activity. Not sure what error is telling me, need to research further - but if anyone has ideas it would be appreciated.

Issue472-DebuggerAnalysis.txt

Note that after gathering kernel debugger data I then continue execution and get green screen.

@AmeNote-Michael
Copy link
Collaborator

Note that I am getting random locations of crash - wonder if same issue as #435 which we still are investigating cause.

@AmeNote-Michael
Copy link
Collaborator

Resolved in PR #580

@Psychlist1972

@m-komo
Copy link
Collaborator Author

m-komo commented Mar 4, 2025

@Psychlist1972 @AmeNote-Michael
The issue seems to be resolved with this driver(250302-USBMidi2-x64-TestSigned.zip).

@Psychlist1972 Psychlist1972 added the fixed-awaiting-public-release 🕙 Fixed in our internal builds. Waiting to make its way to a public release. label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-usb-driver 💻 Related to the USB MIDI 2.0 driver bug 🐞 Something isn't working critical ‼️ Critical to be fixed/implemented before next major release fixed-awaiting-public-release 🕙 Fixed in our internal builds. Waiting to make its way to a public release.
Projects
Status: No status
Development

No branches or pull requests

3 participants