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

Clean up mutexes/locks in MIDI subsystem #5685

Closed
mixxxbot opened this issue Aug 22, 2022 · 4 comments
Closed

Clean up mutexes/locks in MIDI subsystem #5685

mixxxbot opened this issue Aug 22, 2022 · 4 comments
Milestone

Comments

@mixxxbot
Copy link
Collaborator

Reported by: Pegasus-RPG
Date: 2010-11-30T13:49:35Z
Status: Fix Released
Importance: High
Launchpad Issue: lp683119
Tags: deadlock, midi


When we originally implemented MIDI scripting, we were getting segfaults when lots of MIDI data/script functions were running. We now know that this was due to the wrong threads calling the script functions (specifically the MidiDevice thread was directly calling MidiScriptEngine functions.) At the time, we added a bunch of mutexes to the MidiScriptEngine. Once the real problem was discovered, I fixed it back in the features_HSS1394 branch by using signals/slots, but the mutexes remain and I believe are the source for any random MIDI-related deadlocks.

This bug is to remind me to remove all of those, since all MidiScriptEngine functions should only be called by the MidiScriptEngine thread. (I might add ASSERTs to ensure this.)

@mixxxbot
Copy link
Collaborator Author

Commented by: Pegasus-RPG
Date: 2010-12-01T15:47:45Z


This might be responsible for bug #⁠342952, so re-check that after this is fixed.

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2011-03-26T23:27:56Z


Is this going to happen for 1.10.0 or should we clear the milestone?

@mixxxbot
Copy link
Collaborator Author

Commented by: Pegasus-RPG
Date: 2012-04-10T14:00:43Z


Fixed in controllerAbstraction, as the MIDI subsystem has been completely revamped.

@mixxxbot
Copy link
Collaborator Author

Issue closed with status Fix Released.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
@mixxxbot mixxxbot added this to the 1.11.0 milestone Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant