Assert error when debugging MidiLoggerPluginDemo

Hi, new member here. I’m getting my feet wet with JUCE by studying some of the code examples provided. I’m stuck with this assertion error while debugging the MidiLoggerPluginDemo with the AudioPluginHost:

JUCE Assertion failure in juce_AudioSampleBuffer.h:520

which refers to this piece of code:

void setDataToReferTo (Type** dataToReferTo,
                       int newNumChannels,
                       int newStartSample,
                       int newNumSamples)
    jassert (dataToReferTo != nullptr);   <---- failed here

I haven’t changed the example code in any way. The plugin works fine unless it’s being debugged.

I’m running JUCE v6.1.4 and Xcode 12.4 on macOS Catalina.


Thanks for reporting. Please can you let us know which plugin format you’re using to test the MIDILogger demo (e.g. VST2, VST3, AU)?

Edit: never mind, I can reproduce the issue in the AU plugin. I’ll get that fixed.

Thanks for reporting the issue!

1 Like

Thank you!

Thanks again for reporting this issue. It should be resolved by this patch: