# Plugin Host assert failure

**URL:** <https://forum.juce.com/t/plugin-host-assert-failure/18347>\
**Category:** General JUCE discussion\
**Created:** [July 7, 2016, 7:07am UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347 "2016-07-07T07:07:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [July 7, 2016, 7:07am UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/1 "2016-07-07T07:07:38Z")

</div>

I just upgraded from JUCE 4.2.2 to 4.2.3 and now I’m hitting an assertion failure in AudioProcessor::beginParameterChangeGesture.

When I try to move **some** of the sliders in my plugin, AudioProcessor::beginParameterChangeGesture says that the parameterIndex is out of range. I have 89 parameters but in that method, the parameterIndex is 1629 or something else, depending on what slider I try to move. I’m positive that I don’t have 1629 parameters.

I’ve tried running some other plugins by other manufacturers in Plugin Host and it seems to crash similarly depending on what slider is moved. But if I try running my plugin in MainStage, it’s fine.

This is rather odd. Any ideas out there?

---

<div class="post-metadata">

**Author:** ![carlosbarbosa](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/carlosbarbosa/32/772_2.png) [@carlosbarbosa](https://forum.juce.com/u/carlosbarbosa)\
**Post date:** [July 7, 2016, 7:33am UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/2 "2016-07-07T07:33:32Z")

</div>

> [@Breaking Change: Audio Parameter ID Support](https://forum.juce.com/t/breaking-change-audio-parameter-id-support/17594):
>
> On the current tip of develop you’ll find a new feature which now correctly reports the IDs of parameters to the DAW - previously the index of the parameter would be reported to the DAW and not the ID. This fixes a long standing issue with JUCE, where adding a new parameter to your plug-in would potentially break customer’s projects such as the association of automation data with certain parameters. This also fixes and issue with VST3 bypass when adding parameters to your project. The new featu…

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [July 7, 2016, 9:41am UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/3 "2016-07-07T09:41:43Z")

</div>

> [@pizzafilms](#):
>
> other plugins by other manufacturers in Plugin Host

Which other plugins did you try running. This would help reproduce the problem.

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [July 7, 2016, 3:38pm UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/4 "2016-07-07T15:38:50Z")

</div>

Sorry, now I can’t get any others to reproduce it. I might have been mistaken.

So, is the issue with the Plugin Host code? Or 4.2.3?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [July 7, 2016, 3:44pm UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/5 "2016-07-07T15:44:13Z")

</div>

I’m not really sure and I’m having trouble reproducing this. Can you modify the code of the JuceDemoPlugin (or any other plug-in sample in JUCE) to re-produce this problem?

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [July 7, 2016, 4:23pm UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/6 "2016-07-07T16:23:11Z")

</div>

I just had Projucer save and export the Demo Plugin. Built the plugin and then ran Plugin Host. When I added the Demo Plugin, I got this message:

_WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API’s in AudioComponent.h._

As soon as I tried to move a rotary slider, I hit the same assert, “out of range parameter index”.

parameterIndex = (int) 3165055

When I did a “po getNumParameters();” in the debugger it returned 2.

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [July 8, 2016, 8:05am UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/7 "2016-07-08T08:05:40Z")

</div>

Hi pizzafilms, thanks for spotting this bug. I’ve just released a hot-fix for this on master and develop.

---

<div class="post-metadata">

**Author:** ![pizzafilms](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pizzafilms/32/562_2.png) [@pizzafilms](https://forum.juce.com/u/pizzafilms)\
**Post date:** [July 8, 2016, 5:58pm UTC](https://forum.juce.com/t/plugin-host-assert-failure/18347/8 "2016-07-08T17:58:18Z")

</div>

Working well here. Thanks.
