# Issue with AUv3 Plugin Causing Host Crashes Due to Extreme Parameter Range

**URL:** <https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143>\
**Category:** General JUCE discussion\
**Created:** [May 20, 2025, 3:12pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143 "2025-05-20T15:12:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev4am](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dev4am/32/20671_2.png) [@dev4am](https://forum.juce.com/u/dev4am)\
**Post date:** [May 20, 2025, 3:12pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/1 "2025-05-20T15:12:22Z")

</div>

Hi JUCE Team,

One of our users reported that the AUv3 plugin **Neon by Aaron Meyers** causes our Host to crash. After debugging, I traced the issue to a problematic parameter in Neon that has an extremely large discrete range:

-Min value: 0  
-Max value: 9e+18  
-Num steps: 9e+18 (due to `discrete = true`)

This causes `AudioProcessorParameter::getAllValueStrings()` to crash because it attempts to iterate over an impractically large range (9e+18 steps), which is impossible to handle.

1. The issue reproduces in JUCE’s **Audio Plugin Host** as well, confirming it’s not specific to our Host.
2. The crash occurs when `getAllValueStrings()` iterates from `0` to `getNumSteps() - 1` (9e+18).
3. Other hosts (non-JUCE-based) seem to handle this parameter correctly.

```auto
StringArray AudioProcessorParameter::getAllValueStrings() const
{
    if (isDiscrete() && valueStrings.isEmpty())
    {
        auto maxIndex = getNumSteps() - 1;

        for (int i = 0; i < getNumSteps(); ++i)
            valueStrings.add (getText ((float) i / (float) maxIndex, 1024));
    }

    return valueStrings;
}

```

Has anyone else run into this kind of issue before?

Best,  
Samuele

---

<div class="post-metadata">

**Author:** ![HowardAntares](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/howardantares/32/4629_2.png) [@HowardAntares](https://forum.juce.com/u/HowardAntares)\
**Post date:** [May 20, 2025, 4:22pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/2 "2025-05-20T16:22:16Z")

</div>

It’s ridiculous to use a Discrete parameter for a range that large. Why would you need that? If they want only integers, then using a step value of 1.0 would be a better choice. You could protect your host by changing it to not be discrete when the number of steps is greater than some reasonable value. Or contact the vendor and report it as a bug in their plugin.

---

<div class="post-metadata">

**Author:** ![holy-city](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@holy-city](https://forum.juce.com/u/holy-city)\
**Post date:** [May 20, 2025, 4:26pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/3 "2025-05-20T16:26:53Z")

</div>

Hosts shouldn’t crash because of plugin mistakes. A cap on the number of discrete steps is reasonable.

---

<div class="post-metadata">

**Author:** ![dev4am](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dev4am/32/20671_2.png) [@dev4am](https://forum.juce.com/u/dev4am)\
**Post date:** [May 23, 2025, 8:16am UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/4 "2025-05-23T08:16:53Z")

</div>

Thanks for the suggestions.

I completely agree that hosts should handle plugin quirks more robustly. Before making any changes to JUCE’s modules, I would check with their team to see if this is a known issue and whether they have a recommended fix or workaround in place.

If JUCE doesn’t have a solution yet, I’ll implement a safeguard in my host to prevent crashes. Meanwhile, I’ll also report the issue to the plugin vendor.

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [June 3, 2025, 1:54pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/5 "2025-06-03T13:54:11Z")

</div>

> [@dev4am](#):
>
> This causes `AudioProcessorParameter::getAllValueStrings()` to crash because it attempts to iterate over an impractically large range (9e+18 steps), which is impossible to handle.

Please could you clarify the behaviour you’re seeing? Do you get an actual crash (segfault or similar, host immediately quits), or does the host just become unresponsive, or something else?

I tried modifying one of the demo plugins to add a discrete parameter with lots of steps. This caused the AudioPluginHost to become unresponsive, but it didn’t crash.

I’ve attached a patch that fixes the unresponsiveness for me. I haven’t tested Neon itself because it’s a paid download. Please could you try applying this patch on the develop branch and check whether it resolves the issues you were seeing with this plugin?

[au-param-steps.patch](https://forum.juce.com/uploads/short-url/evvdyn7V4xrOSCT0GjwSdjuRzwg.patch) (4.7 KB)

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [June 9, 2025, 12:33pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/6 "2025-06-09T12:33:55Z")

</div>

The above change seems worthwhile, even if it doesn’t completely resolve the issues you were seeing, so it’s been merged to develop here:

> <https://github.com/juce-framework/JUCE/commit/b34953196640b1020be24068caedbe9e12f50845>

We’ve also pushed a similar change that prevents the GenericAudioProcessorEditor from querying huge numbers of parameter strings:

> <https://github.com/juce-framework/JUCE/commit/6cd95668683be3a38a8e13cfc7e909e0f6925d6d>

Please let us know if you still encounter issues after updating.

---

<div class="post-metadata">

**Author:** ![dev4am](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dev4am/32/20671_2.png) [@dev4am](https://forum.juce.com/u/dev4am)\
**Post date:** [June 10, 2025, 2:25pm UTC](https://forum.juce.com/t/issue-with-auv3-plugin-causing-host-crashes-due-to-extreme-parameter-range/66143/7 "2025-06-10T14:25:56Z")

</div>

Hi Reuk,

Thanks for resolving this! I tested the fix and it seems to work now.

I’ll keep you updated if anything comes up in the next few days.

Appreciate your support!

Best,  
Samuele
