-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
[BUG] 2.11.0 LV2 plugin crashes on load #283
Comments
Hi KottV, thanks for reporting the crash! I had forgotten about LV2's different strategy for handling different bus layouts. I'm not sure if it would make sense to revert the LV2 build to use the stereo-only behaviour, or if there's a different approach that might work? I'll do some research. |
Hi! I think there is sort of options.
|
Confirmed on Reaper in Arch. |
Hmm... I feel like option 1 is the "right" option, but I agree that it might not make sense to make a tagged release for a fix that only affects the LV2 build. Would it be okay if we just do that change, merge that change to Btw, if you'd like to make a PR for your JUCE 7 update, please do! |
ok, it's easy but I'll do some tests prior PR |
Also crashes Reaper x64 on Windows 10 for me with the VST3 x64 version. 2.10.0 works fine. |
@kiwijam, this thread is specifically trying to solve the issue with the crashing LV2 build. Could you please file a separate bug report for the VST3 crashing behaviour on Reaper? I use the plugin in Reaper x64 on Windows 10 pretty reguarly, so I'd definitely like to get to the bottom of that. Thanks! |
Hm, my JUCE 7 LV2 build now crashes the Ardour (only). Need more time to find the bug. |
Not if that's the exact same as the OP With 2.11.1 LV2 in Ardour and JALV: I build it with these I get this crash:
It actually catches an out of bound access to a vector. void ToneStage::processBlock (AudioBuffer<float>& buffer)
{
const auto numChannels = buffer.getNumChannels();
const auto numSamples = buffer.getNumSamples();
for (size_t ch = 0; ch < (size_t) numChannels; ++ch)
{
auto* data = buffer.getWritePointer ((int) ch);
if (lowGain[ch].isSmoothing() || highGain[ch].isSmoothing() || tFreq[ch].isSmoothing())
{ Here, |
it's a standard stereo channel, so numChannel should be 2 |
LV2 does not support dynamic changes of channel configuration; all input and output channels must be declared in the plugin's manifest (the The only way around this I know is to build separate mono, stereo, ... plugins. For many LV2 plugins there are separate mono/stereo versions. I've build an LV2 plugin from |
LV2 does not support setting number of channels dynamically, so, to avoid confusing hosts with 36-channels plugin and to preserve compatibility with older LV2 plugins, the LV2 plugin now reports supporting stereo mode only. Refs. jatinchowdhury18#283
LV2 does not support setting number of channels dynamically, so, to avoid confusing hosts with 36-channels plugin and to preserve compatibility with older LV2 plugins, the LV2 plugin now reports supporting stereo mode only. Refs. jatinchowdhury18#283
LV2 does not support setting number of channels dynamically, so, to avoid confusing hosts with 36-channels plugin and to preserve compatibility with older LV2 plugins, the LV2 plugin now reports supporting stereo mode only. Refs. #283
Describe the bug
2.11.0 LV2 plugin crashes on load
To Reproduce
Expected behavior
It shouldn't
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
It seems it crashes on creating audio busses:
The text was updated successfully, but these errors were encountered: