I recently stopped inheriting from the parameter methods to use juce::AudioProcessorParameter instead in my audioProcessor (at last ).
It seems the AudioProcessor::getParameterText method (as well as other methods) assumes the host always calls the audioProcessor with a valid index. As the host is often a third party software, we have no control over its behavior.
So I would be nice to have some sanity check to prevent that kind of issue:
Here is the call stack:
Which ends up by a SIGSEGV.
To trigger this I restored a session with ableton live 10 after removing some of my audio processor’s parameters. Live seems to assume that the number of parameter of a plugin does not change from a session to another.