Skip to content

[BUG] MIDI Service gets locked. #360

Open
@m-komo

Description

Describe the bug
If I detach/attach a device while monitoring with midi.exe, monitor stops working and MIDI service seems to be locked.

  • reproducible

    • USB MIDI 2.0 device running with the USB MIDI 2.0 driver (USBMidi2.sys).
  • not reproducible

    • USB MIDI 2.0 device running with the USB MIDI 1.0 driver (USBAUDIO.sys).
    • USB MIDI 1.0 device running with the USB MIDI 2.0 driver (USBMidi2.sys).
    • USB MIDI 1.0 device running with the USB MIDI 1.0 driver (USBAUDIO.sys).

To Reproduce

  1. Load the attached UUT_USB_MIDI_ECHO.uf2.zip firmware to the ProtoZOA.
  2. Attach the ProtoZOA to the PC and update the driver to the USB MIDI 2.0 driver (UsbMidi2.sys).
  3. Open midi.exe in two windows.
  4. From one, monitor ProtoZOA.
  5. From the other, run 'midi ep send 0x20901234' and choose ProtoZOA.
  6. Make sure the monitor shows loop-backed message '0x20901234'.
  7. Detach the ProtoZOA from the USB port.
    Monitor detects disconnection.
  8. Attach the ProtoZOA again.
    Monitor detects re-connection.
  9. Run 'midi ep send 0x20901234' again.

Monitor does not show any messages.

  1. Run 'midi ep send 0x20901234 -c 5000'.

'send' command stops in the middle of sending process.
On the monitor window, press escape to stop monitoring, but monitoring cannot be terminated.
And also, it is unable to restart MIDI service. It is necessary to restart OS to recover.

Expected behavior
MIDI Service and Monitor command continues to work after reconnecting the device.

Installer Name or Version

  • Windows.MIDI.Services.In-Box.Service.-.Developer.Preview.6.1.0.24194.2233-x64.exe

Desktop (please complete the following information):

  • OS: Windows 11 24H2
  • OS Build: 26100.1150

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

  • Any USB MIDI 2.0 device compatible with the USB MIDI 2.0 driver(USBMidi2.sys)
  • Driver: [interim preview build] 240713-USBMidi2-x86-TESTSIGNED.zip (DriverVer = 07/13/2024,23.1.50.504)

Application Information

  • 'midi.exe' console app.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-service-or-api 🖥️Related to the Windows Service, core API, abstractions, etc.bug 🐞Something isn't workingcritical ‼️Critical to be fixed/implemented before next major release

Type

No type

Projects

  • Status

    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions