Skip to content

driver hang workaround, remove midi2 feature staging#951

Merged
Psychlist1972 merged 1 commit intomainfrom
driverhang
Mar 28, 2026
Merged

driver hang workaround, remove midi2 feature staging#951
Psychlist1972 merged 1 commit intomainfrom
driverhang

Conversation

@garydan42
Copy link
Copy Markdown
Collaborator

Some 3rd party drivers are failing to cancel the pended irp when shutting down midi in. In the legacy code path, this exhibits as the application process & thread staying zombied in the system until reboot. For midisrv, the blocked driver shutdown causes a service deadlock and application hangs.

It was found that for these drivers transitioning the pin from run->pause before shutting down the worker thread will complete the pended irps without relying on irp cancellation, working around the driver failing to handle irp cancellation.

@Psychlist1972 Psychlist1972 merged commit 1aa41f2 into main Mar 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants