Skip to content

[Bug]: Regression of #812, assertion failure in MidiMessageCollector for MIDI effects #1534

Open
@DaAwesomeP

Description

@DaAwesomeP

Detailed steps on how to reproduce the bug

If you set the following for a plugin:

NEEDS_MIDI_INPUT TRUE
NEEDS_MIDI_OUTPUT TRUE
IS_MIDI_EFFECT TRUE

Then play a MIDI note to an enabled input and you will see:

JUCE Assertion failure in juce_MidiMessageCollector.cpp:66

I have only tested running the plugin in standalone mode on JUCE develop c786e61. This appears to be a regression of #812.

This line is here:

void MidiMessageCollector::addMessageToQueue (const MidiMessage& message)
{
const ScopedLock sl (midiCallbackLock);
#if JUCE_DEBUG
jassert (hasCalledReset); // you need to call reset() to set the correct sample rate before using this object
#endif

What is the expected behaviour?

Should not error when inputting MIDI notes to a MIDI effect plugin running in standalone mode.

Operating systems

Linux

What versions of the operating systems?

openSUSE Leap 15.6, Linux 6.13.6-lp156.4.g495d82a-default

Architectures

x86_64

Stacktrace

Plug-in formats (if applicable)

Standalone

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions