Another ableton crash on plugin delete


#1

This one looks similar to, but different from the one I posted about earlier. To reproduce:

  1. build both an AU and a VST version of a plugin
  2. start a new, empty set in live 8
  3. load the VST into an empty track
  4. with the editor window still open, double click the AU version to replace it

The AU is loaded and the Ableton UI indicates that the editor window is open (the wrench icon is enabled), but the editor window is not displayed. Deleting the instance of the AU will then cause a crash, with the stacktrace below. This happens with Juce 1.5.2 and with a fresh git pull from this morning (which I pulled in hopes of fixing this: http://www.rawmaterialsoftware.com/viewtopic.php?f=8&t=6399).

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	0x963a4ed7 objc_msgSend + 23
1   com.kuniklo.JSynth            	0x29e84531 juce::MessageManager::~MessageManager() + 51
2   com.kuniklo.JSynth            	0x29e53c75 juce::shutdownJuce_GUI() + 77
3   com.kuniklo.JSynth            	0x29faa40c JuceAU::~JuceAU() + 248
4   com.kuniklo.JSynth            	0x29fb61ff ComponentBase::ComponentEntryDispatch(ComponentParameters*, ComponentBase*) + 67
5   com.kuniklo.JSynth            	0x29fb44d6 AUBase::ComponentEntryDispatch(ComponentParameters*, AUBase*) + 1270
6   com.kuniklo.JSynth            	0x29faa257 ComponentEntryPoint<JuceAU>::Dispatch(ComponentParameters*, JuceAU*) + 170
7   ...ple.CoreServices.CarbonCore	0x991e47c9 CallComponentDispatch + 29
8   ...ple.CoreServices.CarbonCore	0x991e4b52 CallComponentClose + 43
9   ...ple.CoreServices.CarbonCore	0x991e4a7b CloseComponentInternal(ComponentInstanceRecord*) + 101
10  ...ple.CoreServices.CarbonCore	0x991e49fc CloseComponent + 46
11  com.ableton.live              	0x000bae1f 0x1000 + 761375
12  com.ableton.live              	0x000d3adc 0x1000 + 862940
13  com.ableton.live              	0x000cd1ba 0x1000 + 836026
14  com.ableton.live              	0x0005a1b4 0x1000 + 364980
15  com.ableton.live              	0x00073908 0x1000 + 469256
16  com.ableton.live              	0x0006e4a2 0x1000 + 447650
17  com.ableton.live              	0x00055f16 0x1000 + 347926
18  com.ableton.live              	0x00034f17 0x1000 + 212759

#2

Probably it’s the same problem as I had: If you’re building VST & AU version with same ObjC suffix, you’ll get this crash.


#3

Maybe that’s it. How did you configure the build to use different suffixes for each version?


#4

I use two projects (one AU, one VST) with different suffixes for Releases.

Chris