-
Notifications
You must be signed in to change notification settings - Fork 3
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
Duplication error (0.6.0-rc3: Merge pull request #4 from korfuri/windows) #5
Comments
It's a segmentation fault error raised in multi-threaded context at this point in code. |
I can reproduce on Linux. What's more, people have reported similar crashes with other software built on projectM including the VLC integration (https://forum.videolan.org/viewtopic.php?t=102176). This sounds like projectM just can't handle running multiple instances safely. I'm able to run multiple instances but it's inconsistent whether it works or not, and I've seen it crash in two other circumstances:
I don't know what's the best way to proceed here. I see a few options:
Let me know if you see other ways to fix this. |
I think you just covered all possibilities. Unless you count the chance of removing the Cycle through presets option, that's the major factor triggering the exceptions, if I see it clear (because I can't reproduce the use-case you described in bullet 1 above, if I have the option unchecked). |
This means that projectM stuff will run in the UI thread instead of its own thread. It appears to solve the odd issues related to module duplication reported in #5.
Good news, I had success with disabling projectM's threading. I have not actually really looked at how threading works inside projectM, I figured I'd just compile it without threading support and see, and what do you know, it seemed to work right away (I at least expected I'd have to manage threads myself or something). I haven't been able to cause any crash or hanging in this configuration, either with or without autoplay enabled. That is very encouraging :) I also realized that early in my testing I had found that deleting the projectM instance was causing issue, so I had punted that to later and had left a gaping memory leak by not deleting the instance when the module was deleted. This is now fixed on master. @dizzisound can you rebuild projectM on windows with I've also tried to reproduce on OSX but got blocked by #2. |
I built OSX and Linux RCs with |
Nice. I will surely try and rebuild, only thing I won't be at my dev machine until Tuesday, sorry for the delay! |
@korfuri Hi, Uriel. I just got it done and pushed in my forked repo: Tested on Windows 8.1 x64. It's working smoothly, with no bug 👍 |
Thanks, I merged this in 524d377. |
Ok I provide little test on my system Win10 pro (AMD FX-8320E 8GB Ram, AMD Radeon R7 250x graphics)
Testing on VCV Rack 0.6.2c (vanila) and modded version Rcomian (v0.6.2c-experiments)
In both cases "vanila" and "moded" version of VCV Rack:
The text was updated successfully, but these errors were encountered: