-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Crash when playing automation constraint #24
Comments
Paging @theod ; this part crashed :
Thread 7 Crashed: |
ouch ! malloc error : pointer being freed was not allocated ! |
Mhh... On linux I use valgrind but it doesn't works in OS X (but I think that Xcode has some kind of facilities to detect such problems.) Maybe (just maybe) a pointer is deleted manually somewhere while being part of a shared_ptr (like some std::shared_ptrOSSIA::Value) ? |
thanks for the tip ! |
I'm suspecting a memory conflict due to the listening. |
I just checked but there are no shared_ptr in iscore either. Could it happen for a same Value to be shared between two states (e.g. when taking the states of the child processes) and then having the first State being deleted which would make the Value in the other state invalid ? |
adding a mutex to protect from multithreading access resolved the problem. @lossius could you test this on the next release before to close ? |
Hi, this seems to work without crashing now, although I notice other issues, but I'll report them separately. |
Here are the steps that led to this crash:
https://gist.github.com/lossius/1b840fd9f69e96ec4a7a
The text was updated successfully, but these errors were encountered: