-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
VST2 chunk save/load possible bug #907
Comments
|
This is happening because the state you are saving matches exactly what the juce plugin wrapper does. I understand that is just the way VST banks are saved, I guess you like to make things simpler and save in that format. |
|
Hmm, @falkTX, I'm just saving a chunk according the true VST2.x specification: I know, JUCE is a piece of shit, but not only JUCE plugins do follow specifications when saving data to a chunk... |
|
I know, and understand that well, but in my testing I did not find a plugin that crashed due to this. One thing I see is that juce never sets the |
|
Please try 8e37bc8 and let me know if that fixes it for you |
|
well, juce actually puts the vst bank thing on top of the plugin state. from what I see, this was all done in juce for convenience. so that a save of the state ends up being as a vst preset format, whatever the plugin uses that internally or not. anyway, as I see in https://github.com/falkTX/Carla/blob/develop/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp#L1270 the and so... does that work for you? does your plugin state load now? |
|
Yes, this hack worked for me. But I'm also currently thinking about adding a workaround because maybe not only Carla will have such issues with VST. |
oh right, there might be issues in juce based hosts if they try to load a vst preset from you :) in any case, thanks for confirming, I am closing this ticket. |
|
From my side, I've done a couple of hacks, too: |


Using Carla built from develop branch, commit 8385b5e
When saving to CARXP file, plugin forms the following BLOB for chunk data:
When trying to load the same CARXP file, we get the following dump:
And then, the plugin crashes because we improperly determine the size of the chunk and, as a result, try to dump a huge block of memory and finally become SIGSEGV.
Filipe, need your comments here about such behaviour.
The text was updated successfully, but these errors were encountered: