# Crash audioProcessorParameterChanged

**URL:** <https://forum.juce.com/t/crash-audioprocessorparameterchanged/62375>\
**Category:** General JUCE discussion\
**Created:** [August 4, 2024, 2:02am UTC](https://forum.juce.com/t/crash-audioprocessorparameterchanged/62375 "2024-08-04T02:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ayra/32/5775_2.png) [@Ayra](https://forum.juce.com/u/Ayra)\
**Post date:** [August 4, 2024, 2:02am UTC](https://forum.juce.com/t/crash-audioprocessorparameterchanged/62375/1 "2024-08-04T02:02:20Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![psyDSP](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@psyDSP](https://forum.juce.com/u/psyDSP)\
**Post date:** [August 4, 2024, 3:42am UTC](https://forum.juce.com/t/crash-audioprocessorparameterchanged/62375/2 "2024-08-04T03:42:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ayra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ayra/32/5775_2.png) [@Ayra](https://forum.juce.com/u/Ayra)\
**Post date:** [August 4, 2024, 9:54pm UTC](https://forum.juce.com/t/crash-audioprocessorparameterchanged/62375/3 "2024-08-04T21:54:15Z")

</div>

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 🙏
