I am trying to figure out how to correctly bind a ComboBox component to an AudioProcessorValueTreeState property.
From my understanding, ComboBox items’ indexes cannot start at 0, and it seems to be an issue when connecting it to an APVTS instance, using a ComboboxAttachement.
I put together a very small project demonstrating the issue, which can be seen here:
It is a very simple plugin with a Combobox containing only three options. it is bound to the APVTS with a Combobox attachment. The issues are two fold:
- Option 2 can never be selected (it will automatically switch to option 3)
- More concerning, it seems that something goes wrong internally with the plugin, because after closing and reopening any DAW (I am able to reproduce this with both Ableton Live 10 and Logic Pro X), trying to open a project containing the plugin, or adding a new instance of the plugin to a new project will cause the DAW to crash
Any help would be greatly appreciated I am developing on macOs 10.15, using Juce version 6.0.7.