Crash when closing DAW or Standalone
-
My plugin will occasionally show a crash report when closing the standalone or a DAW. I haven't been able to get to the root of what's causing it, but I'm attaching the symbolicated crash report below. The last function call in the trace stack is
cleanJavascriptObjects
so I think it's trying to access something which no longer exists at shutdown. Anyone else run into this?Process: CUBE [57257] Path: /Volumes/VOLUME/*/CUBE.app/Contents/MacOS/CUBE Identifier: com.lunacyaudio.cube Version: 0.8.3 (0.8.3) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: CUBE [57257] User ID: 502 Date/Time: 2021-02-09 18:11:46.405 -0800 OS Version: Mac OS X 10.13.6 (17G66) Report Version: 12 Anonymous UUID: 17C59BB8-3A7A-3916-1D3C-0AA0A4200CB9 Time Awake Since Boot: 710000 seconds System Integrity Protection: enabled Crashed Thread: 0 JUCE Message Thread Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [0] VM Regions Near 0x8: --> __TEXT 00000001013ed000-0000000103871000 [ 36.5M] r-x/rwx SM=COW /Volumes/VOLUME/*/CUBE.app/Contents/MacOS/CUBE Application Specific Information: Performing @selector(terminate:) from sender NSMenuItem 0x6080002aeb80 Thread 0 Crashed:: JUCE Message Thread Dispatch queue: com.apple.main-thread 0 com.lunacyaudio.cube 0x0000000101965b31 hise::ScriptingApi::Content::cleanJavascriptObjects() + 161 (juce_ContainerDeletePolicy.h:54) 1 com.lunacyaudio.cube 0x0000000101b4d922 hise::ScriptingApi::Content::~Content() + 130 (juce_HeapBlock.h:229) 2 com.lunacyaudio.cube 0x0000000101b4ce1e hise::ScriptingApi::Content::~Content() + 14 (ScriptingApiContent.cpp:3977) 3 com.lunacyaudio.cube 0x00000001019a17ee hise::JavascriptMidiProcessor::~JavascriptMidiProcessor() + 478 (ScriptProcessorModules.cpp:70) 4 com.lunacyaudio.cube 0x000000010199086e hise::JavascriptMidiProcessor::~JavascriptMidiProcessor() + 14 (ScriptProcessorModules.cpp:68) 5 com.lunacyaudio.cube 0x00000001015c5562 hise::Chain::Handler::clearAsync(hise::Processor*) + 274 (functional:1860) 6 com.lunacyaudio.cube 0x00000001015a6840 hise::MainController::clearPreset()::$_9::operator()(hise::Processor*) const + 176 (ModulatorSynthChain.cpp:358) 7 com.lunacyaudio.cube 0x0000000101632ec9 hise::FrontendProcessor::~FrontendProcessor() + 537 (juce_ArrayBase.h:219) 8 com.lunacyaudio.cube 0x000000010163086e hise::FrontendProcessor::~FrontendProcessor() + 14 (FrontEndProcessor.cpp:339) 9 com.lunacyaudio.cube 0x0000000101638029 hise::StandaloneProcessor::~StandaloneProcessor() + 553 (juce_ScopedPointer.h:160) 10 com.lunacyaudio.cube 0x000000010163824e hise::FrontendStandaloneApplication::AudioWrapper::~AudioWrapper() + 94 (juce_ContainerDeletePolicy.h:54) 11 com.lunacyaudio.cube 0x0000000101637b1e hise::FrontendStandaloneApplication::AudioWrapper::~AudioWrapper() + 14 (FrontEndProcessor.cpp:649) 12 com.lunacyaudio.cube 0x000000010209f998 juce::ResizableWindow::~ResizableWindow() + 296 (juce_ReferenceCountedObject.h:369) 13 com.lunacyaudio.cube 0x000000010163878e hise::FrontendStandaloneApplication::MainWindow::~MainWindow() + 14 (FrontEndProcessor.h:342) 14 com.lunacyaudio.cube 0x0000000101fa5cee juce::JUCEApplicationBase::shutdownApp() + 366 (memory:2600) 15 com.lunacyaudio.cube 0x0000000101fa4f16 juce::AppDelegate::AppDelegateClass::applicationWillTerminate(objc_object*, objc_selector*, NSNotification*) + 38 (memory:2397) 16 com.apple.CoreFoundation 0x00007fff45ac05cc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 17 com.apple.CoreFoundation 0x00007fff45ac049a _CFXRegistrationPost + 458 18 com.apple.CoreFoundation 0x00007fff45ac01d1 ___CFXNotificationPost_block_invoke + 225 19 com.apple.CoreFoundation 0x00007fff45a7ed22 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826 20 com.apple.CoreFoundation 0x00007fff45a7ddb3 _CFXNotificationPost + 659 21 com.apple.Foundation 0x00007fff47ba78c7 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 22 com.apple.AppKit 0x00007fff4321cddc -[NSApplication terminate:] + 1596 23 com.apple.AppKit 0x00007fff437d3a43 -[NSApplication(NSResponder) sendAction:to:from:] + 312 24 com.apple.AppKit 0x00007fff43268213 -[NSMenuItem _corePerformAction] + 323 25 com.apple.AppKit 0x00007fff43267f9b -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 26 com.apple.AppKit 0x00007fff43266dff -[NSMenu performKeyEquivalent:] + 363 27 com.apple.AppKit 0x00007fff437d26a9 routeKeyEquivalent + 884 28 com.apple.AppKit 0x00007fff437cfce0 -[NSApplication(NSEvent) sendEvent:] + 1096 29 com.apple.AppKit 0x00007fff430308b5 -[NSApplication run] + 812 30 com.lunacyaudio.cube 0x000000010140cd34 main + 388 (juce_mac_MessageManager.mm:346) 31 com.lunacyaudio.cube 0x00000001013ee514 start + 52