# JUCE Assertion failure in juce\_AudioProcessor.cpp:442

**URL:** <https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112>\
**Category:** General JUCE discussion\
**Created:** [December 9, 2023, 4:21pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112 "2023-12-09T16:21:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laeriss](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@Laeriss](https://forum.juce.com/u/Laeriss)\
**Post date:** [December 9, 2023, 4:21pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/1 "2023-12-09T16:21:43Z")

</div>

Hello, I have a problem with launching my equalizer plug-in. I have a “build succeed” and my plug-in launches… Then the console prevents me from launching the program by putting an error message on the console.

 ![Capture d’écran 2023-12-09 à 17.13.58](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/5/1/51eda85fecedbfae09c7dfea2ac627967b2cbb50.png)

 ![Capture d’écran 2023-12-09 à 17.14.08](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/9/9/998b14dd26ea9c4437601cc7b783cb4c10f34e49.png)

 ![Capture d’écran 2023-12-09 à 17.14.16](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/f/4/f4c332c6bd9c89458ab8b497fa687c12adef0295.png)

 ![Capture d’écran 2023-12-09 à 17.14.27](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/3/2/32bd973f19333783da6b94a3626fe793ba5b8769.png)

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [December 9, 2023, 4:35pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/2 "2023-12-09T16:35:55Z")

</div>

If you look above that line, there is a block of text that explains it:

> <https://github.com/juce-framework/JUCE/blob/22df0d2266007bccb25d6ed52b9907f60d04e971/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp#L440>

> If you’re building this plugin as an AudioUnit, and you intend to use the plugin in  
> Logic Pro or GarageBand, it’s a good idea to set version hints on all of your parameters  
> so that you can add parameters safely in future versions of the plugin.  
> See the documentation for AudioProcessorParameter(int) for more information.

Documentation for [AudioProcessorParameter(int)](https://docs.juce.com/master/classAudioProcessorParameter.html#a843462756ec916e5ba137677f30010e5) as link

---

<div class="post-metadata">

**Author:** ![ohlstrom](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@ohlstrom](https://forum.juce.com/u/ohlstrom)\
**Post date:** [January 11, 2024, 10:10am UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/3 "2024-01-11T10:10:56Z")

</div>

As a newbie myself, I found the solution here:  
[https://www.reddit.com/r/JUCE/comments/11dk9bd/getting\_assertion\_error\_when\_trying\_to\_debug\_with/](https://www.reddit.com/r/JUCE/comments/11dk9bd/getting_assertion_error_when_trying_to_debug_with/)

> I had that error once, and it was because I used a string as a function argument for an AudioParameter instead of `juce::ParameterID`. Ergo, the fix was to use said `juce::ParameterID`, as in:
> 
> `layout.add(std::make_unique<juce::AudioParameterFloat>(juce::ParameterID("LowCut Freq", 1), "LowCut Freq", <other arguments...>)`
> 
> and not
> 
> `layout.add(std::make_unique<juce::AudioParameterFloat>("LowCut Freq", "LowCut Freq", <other arguments...>)`

---

<div class="post-metadata">

**Author:** ![Laeriss](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@Laeriss](https://forum.juce.com/u/Laeriss)\
**Post date:** [February 6, 2024, 8:55am UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/4 "2024-02-06T08:55:43Z")

</div>

Thank you, I did with parameterID but I think I didn’t write it the right way since it shows me an error?

My modified code :

 ![Capture d’écran 2024-02-06 à 09.50.02](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/5/d/5d4ee2f0cca45201abeb465efb7ef382662ac059.png)

Error after “my modified code” :  
 ![Capture d’écran 2024-02-06 à 09.55.30](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/f/f/ff9038364ae2c4d2efa5a98e43b80e23b756b90a.png)

---

<div class="post-metadata">

**Author:** ![Laeriss](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@Laeriss](https://forum.juce.com/u/Laeriss)\
**Post date:** [February 9, 2024, 2:14pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/5 "2024-02-09T14:14:09Z")

</div>

I have remake my code like you are say ? But my error is always present…

 ![Capture d’écran 2024-02-09 à 15.11.33](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/a/1/a1e6f582475880e917225be995339a38fd7d1ae5.png)

 ![Capture d’écran 2024-02-09 à 15.13.55](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/7/e/7e608de1bc9f34f3ce465ef07f55ffba8f1b34da.png)

---

<div class="post-metadata">

**Author:** ![LarryMarkel](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@LarryMarkel](https://forum.juce.com/u/LarryMarkel)\
**Post date:** [February 18, 2024, 6:20pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/6 "2024-02-18T18:20:49Z")

</div>

![Screenshot 2024-02-18 at 10.19.42 AM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/e/6/e6eb59743b66b1ab9a0a07b7bf459bf6bdfa2768.png)

I am having the same issue after trying what the majority of the posts online seem to have as the solution. I should note I have also tried the following with () for ParamterID and have the same errors.

```auto
        layout.add(std::make_unique<juce::AudioParameterChoice>(juce::ParameterID("HighCutSlope", 1), "HighCutSlope", stringArray, 0));

```

Console errors:

JUCE v7.0.10

JUCE Assertion failure in juce\_AudioProcessor.cpp:442

---

<div class="post-metadata">

**Author:** ![Laeriss](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@Laeriss](https://forum.juce.com/u/Laeriss)\
**Post date:** [March 13, 2024, 4:36pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/7 "2024-03-13T16:36:23Z")

</div>

I think you need to edit and put all your layouts and numbers in the parameter id. I did it but there is still an execution problem but the plugin launches with a Hello World without the controllers.

 ![Capture d’écran 2024-03-13 à 17.35.12](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/d/9/d92c3890165af7ccbc82ec1f24cf8b249dec863d.png)

 ![Capture d’écran 2024-03-13 à 17.35.22](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/8/2/8235950260a6d9fb966bbb616b812e5d9d9c12b9.jpeg)  
 ![Capture d’écran 2024-03-13 à 17.36.10](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/d/e/de4678d4045105914f409bc680f17dc201039aba.jpeg)

---

<div class="post-metadata">

**Author:** ![rasmushecter](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@rasmushecter](https://forum.juce.com/u/rasmushecter)\
**Post date:** [February 7, 2025, 12:36pm UTC](https://forum.juce.com/t/juce-assertion-failure-in-juce-audioprocessor-cpp-442/59112/8 "2025-02-07T12:36:00Z")

</div>

Did you resolve this issue?
