Hi,
I’m working on a plugin that hosts other plugins (only one at a time). It works for most plugins, but crashes when I try to load Steinberg plugins (like HALion Sonic or The Grand).
The crash happens in juce_VST3PluginFormat.cpp at this line:
processor->process (data);
I’m using the latest version of JUCE 8. Here’s the relevant code in my processBlock function:
ScopedNoDenormals noDenormals;
const ScopedTryLock tryLock(innerMutex);
for (auto i = getTotalNumInputChannels(); i < getTotalNumOutputChannels(); ++i)
buffer.clear(i, 0, buffer.getNumSamples());
if (tryLock.isLocked())
{
if (inner != nullptr)
{
inner->setPlayHead(getPlayHead());
inner->processBlock(buffer, midiMessages);
}
}
The issue only occurs when loading Steinberg plugins. The same plugins work fine in other hosts like REAPER. Has anyone encountered a similar issue or have suggestions on how to resolve it?
Thanks!
