Compiled VST3 FX Plugin crashes when using Routing Matrix
-
I figured it out, it's not the Routing Matrix its the channel amount. If you use more than 2 channels it instantly crashes when opening. I tested with standalone and vst3. Also forcing stereo output does not help.
@Casey-Kolb Try building your plugins against the master it seems like this bug does not exist there. I was not able to pinpoint the exact commit where this started happening.@Christoph-Hart you should be aware of this bug and maybe know what could cause this.
-
@oskarsh I'm almost certain it's related to this commit if you look at my crash thread: https://github.com/lunacyaudio/HISE/commit/367cae32bc2dcba48fb0d6359295da2bedac29d2
The crash happens right when
setSize
is called on the AudioBuffer. -
@Casey-Kolb this looks pretty plausible. How can you log the crash report? Do I need to compile my plugin with the Debug configuration or is it enough to enable
setEnableDebugMode
in my plugin? I want to debug these kinds of errors myself in the future. -
@oskarsh You'll just need to compile the Debug version of your VST or standalone app. You can open the Autogenerated Projucer file in your project's Binaries folder and then export the plugin from Xcode. From there you can choose to "Build For Testing"
-
On Win11/Cubase12/VS2022 I'm seeing this at launch:
JUCE Assertion failure in juce_AudioSampleBuffer.h:421
Also, the exported plug-in doesn't show up in Reaper.
-
Same experience here.
Instruments are building and working as expected but VST3 and AU are crashing Logic and Ableton.
-
So just to recap: multichannel plugins crash with the latest commit?
-
@Christoph-Hart yes correct FX plugins crash with multichannel amount != 2.
I have not tested instrument plugins.
-
I've committed a fix for it, was indeed a trivial issue. Let me know if it works now.
-
@Christoph-Hart Just rebuilt the latest commit and confirm the issue is fixed here. Thanks for sorting this out so quickly!