So I’m facing a strange issue. I’m working on a Synth plugin. In Garageband and Logic, whenever I add a ComboBox, my plugin crashes. Specifically, the UI loads and looks great, the controls all work fine, except for the ComboBox. As soon as a user clicks on the ComboBox, the plugin UI goes white and stops producing sound. This only happens in Garageband and Logic.
To simplify debugging, I tried boiling things down to the simplest possible version of my plugin: I made a completely vanilla JUCE plugin project, I added a ComboBox to its editor, and I made an AUv3 out of it. Lo and behold, the test plugin crashed as well. I debugged Garageband so that I could get a trace on the crash. This is what it produced:
i’ve seen the same behavior in the same hosts for other components too - you have to explicitly make the new window owned by your current editor window (rather than let it be a new window on the desktop - note the crash triggers from a call to removeFromDesktop).
it doesn’t look like i have a workaround for PopupMenu - it seems to be just working. can you make sure none of your other code is calling addToDesktop?
Needless to say, if you’re already using your own LookAndFeel, you can just modify that. I’m not sure why all of this was necessary, but there you have it.