-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Midi recording doesn't work #523
Comments
When debugging here's the stack trace of the error:
|
Update: When investigating more I found that it might be a race condition, since the call to
in main thread was made before the initialization of messages_to_save in the midi controller thread (I assume ?)
my theory is that the call to MenuLCD.render_message is delaying the midi controlling thread right after we set is_recording to true, thus when the main thread tries to save midi by calling add_control_change the exception is thrown. |
Does changing the order in |
@jka-kan changing the order fixed the problem for me, I might open a pull request for that |
When I try to record midi, the application seemingly crashes and restarts. From what I understood, there's an issue with the midi input logic in the code, I played around with midi settings but it works 1 out of 5 times on a good day.
Installation Method
Project image, latest version (v1.5.1 - Hotfix)
Error Messages
I have this in the logs, I'm actively investigating so will update with more findings
[2024-11-11 17:20:06] Starting webinterface
[2024-11-11 17:20:06] Running disable_ap.sh
[2024-11-11 17:21:31] 'NoneType' object has no attribute 'send'
[2024-11-11 17:21:39] Unhandled Exception: TypeError - list indices must be integers or slices, not str
[2024-11-11 17:21:48] Inport loaded and set to Digital Piano:Digital Piano MIDI 1 20:0
[2024-11-11 17:21:48] Can't load input port: RtMidiOut Client:RtMidi output 130:0
[2024-11-11 17:21:48] hostapd package is installed
[2024-11-11 17:21:50] Starting webinterface
[2024-11-11 17:21:50] Running disable_ap.sh
[2024-11-11 17:23:03] Unhandled Exception: TypeError - 'NoneType' object is not subscriptable
[2024-11-11 17:23:11] Inport loaded and set to Digital Piano:Digital Piano MIDI 1 20:0
[2024-11-11 17:23:11] Can't load input port: RtMidiOut Client:RtMidi output 130:0
[2024-11-11 17:23:12] hostapd package is installed
[2024-11-11 17:23:14] Starting webinterface
[2024-11-11 17:23:14] Running disable_ap.sh
[2024-11-11 17:26:44] Can't load input port: Digital Piano:Digital Piano MIDI 1 20:0
[2024-11-11 17:26:44] Can't load input port: RtMidiOut Client:RtMidi output 130:0
[2024-11-11 17:26:45] hostapd package is installed
[2024-11-11 17:26:48] Starting webinterface
[2024-11-11 17:26:48] Running disable_ap.sh
[2024-11-12 08:40:12] Error while getting ports 'NoneType' object has no attribute 'poll'
Environment
The text was updated successfully, but these errors were encountered: