-
Notifications
You must be signed in to change notification settings - Fork 27
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
Removing a Midi Device produces a crash #24
Comments
what code causes this crash? |
Just physically removing a controller, no code of my own. |
Oh yeah that makes sense actually. Yeah start a PR. Yeah the repo hasn’t been updated in some time. |
Just found another crashing line, in Enum.swift line 32:
This happens when closing a Virtual midi port. I've added a fix for the crash to the current PR. |
I think that there isn’t support for virtual ports right now. |
Understood, but crashing the whole app when disconnecting a midi port is still not desired. The Virtual ports actually do work (they show as Input and Output when connected), it's just hard to recognize when they disconnect, which is actually not that bad. I will try to see if I can figure this out. |
It’s an implementation of the webmidi standard. You might be right, I should be caching the values. Do you want to do a pr? |
Pull request. |
The problem is here:
Assertion failed: file WebMIDIKit/MIDIPortMap.swift, line 72
The code:
assert(port.state == .connected)
Is this assertion necessary?
The text was updated successfully, but these errors were encountered: