Crash audioProcessorParameterChanged

HI, I cannot understand why I get this error at line 1608 of juice_AudioProcessor.cpp:

l->audioProcessorParameterChanged (processor, getParameterIndex(), newValue);

with this error:

JUCE Message Thread (1): EXC_BAD_ACCESS (code=2, address=0x7ff526f30bc0)

it happens when I do:

if (param->getName(1000) == “editor node”) { notifyingHost ? param->setValueNotifyingHost(value) : param->setValue(value); }

I really don’t understand where the problem comes…

One possible cause for this error is not calling the removeListener function on an AudioProcessor after an AudioProcessorListener is deleted. This can lead to the sendValueChangedMessageToListeners function attempting to access a non-existent listener.

2 Likes

You’re right, I debug a lot because I was not founding the listener that was delated without calling removeListener(this) and after I figured out that the roblem was a race condition.

Really thank you :pray: