OSX: Crash with stacked context menus + loading template

I loaded a new template song while the GUI of a VST synth was opened (Wusikstation V8). Had such crashes lately multiple times. I think in all cases, a gui was left opened while loading something new.

Crash log:

Application: Successfully loaded 'Clean start.xrns'.
Application: Saving 'New project (Clean start).xrns'...
Application: 'New project (Clean start).xrns' was successfully saved.

CrashLog: 0 libsystem_platform.dylib 0x00007fff877a15aa _sigtramp + 26
CrashLog: 1 ??? 0x0000000000000000 0x0 + 0
CrashLog: 2 libobjc.A.dylib 0x00007fff91d93539 cache_getImp_corrupt_cache_error + 0
CrashLog: 3 libobjc.A.dylib 0x00007fff91d93442 _ZN7cache_t9bad_cacheEP11objc_objectP13objc_selectorP10objc_classP8bucket_t + 0
CrashLog: 4 libobjc.A.dylib 0x00007fff91d8e65a _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 502
CrashLog: 5 CoreFoundation 0x00007fff8aa9f932 _CFAutoreleasePoolPop + 50
CrashLog: 6 Foundation 0x00007fff910f411b __NSFireTimer + 135
CrashLog: 7 CoreFoundation 0x00007fff8ab1c3e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
CrashLog: 8 CoreFoundation 0x00007fff8ab1bf1f __CFRunLoopDoTimer + 1151
CrashLog: 9 CoreFoundation 0x00007fff8ab8d5aa __CFRunLoopDoTimers + 298
CrashLog: 10 CoreFoundation 0x00007fff8aad76a5 __CFRunLoopRun + 1525
CrashLog: 11 CoreFoundation 0x00007fff8aad6e75 CFRunLoopRunSpecific + 309
CrashLog: 12 AppKit 0x00007fff8e4ccf09 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 122
CrashLog: 13 AppKit 0x00007fff8e51c40d -[NSMenu _internalPerformActionForItemAtIndex:] + 35
CrashLog: 14 AppKit 0x00007fff8e51c289 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 104
CrashLog: 15 AppKit 0x00007fff8e4c2ff6 NSSLMMenuEventHandler + 716
CrashLog: 16 HIToolbox 0x00007fff8df041d4 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 892
CrashLog: 17 HIToolbox 0x00007fff8df03787 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 385
CrashLog: 18 HIToolbox 0x00007fff8df17880 SendEventToEventTarget + 40
CrashLog: 19 HIToolbox 0x00007fff8df4d640 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 420
CrashLog: 20 HIToolbox 0x00007fff8df80228 SendMenuCommandWithContextAndModifiers + 59
CrashLog: 21 HIToolbox 0x00007fff8df801d0 SendMenuItemSelectedEvent + 178
CrashLog: 22 HIToolbox 0x00007fff8df800af _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 94
CrashLog: 23 HIToolbox 0x00007fff8df88085 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 718
CrashLog: 24 HIToolbox 0x00007fff8df87cb1 _HandleMenuSelection2 + 446
CrashLog: 25 AppKit 0x00007fff8e43562c _NSHandleCarbonMenuEvent + 284
CrashLog: 26 AppKit 0x00007fff8e29452e _DPSNextEvent + 2170
CrashLog: 27 AppKit 0x00007fff8e29389b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
CrashLog: 28 AppKit 0x00007fff8e28799c -[NSApplication run] + 553
CrashLog: 29 Renoise 0x0000000100a904e6 Renoise + 11076838
CrashLog: 30 Renoise 0x0000000100027834 Renoise + 161844
CrashLog: 31 Renoise 0x00000001000271f4 Renoise + 160244
CrashLog: 32 Renoise 0x0000000100022b14 Renoise + 142100
CrashLog: 33 ??? 0x0000000000000001 0x0 + 1

Application: Caught an unhandled fatal exception (Thread: GUI)!
Application: Saving a backup...

Sounds like the problem I had when Renoise try release a plugin. I wrote about that in your previous bug report about similar problem.

So out of curiosity, can you mention all the VSTis you are using in the song you are releasing/discarding by loading another song/template?

It was wusikstation 8 vsti only. But I also had similar crashes in similar situations with completely different vstis.
Maybe all GUIs should be closed before the song is released?

No no no!

It’s not Wusik. It’s Renoise here. I am 99% sure of this. Please, don’t write the VSTi name to the topic, it will lead into “can’t fix”.

I actually now found a way to replicate such crash 100% (no clue if all similar crashes are captured with this, too):

Steps to reproduce: EDIT:

  1. Open Renoise. Save the new song.

  2. Right click first instrument slot and move mouse to “favorites”. I then open a sub menu “analog”. So open a submenu at least!

  3. Now, move the mouse away from the opened context favorite menu (without a click), and load a new template song

  4. You will notice that the context menu did not close.

  5. use the opened context menu to select an instrument, so do not reopen it. -> GUI crash

I can’t replicate this on OSX 10.10.5. The context menu disappear when I click a new song to load and CMD + O is blocked. Are there other ways to load a new template song? :unsure:

You’re using 10.9 Mavericks right? maybe it only happens on that OS?

Garf, did you:

  • open a sub menu, too, from the context menu?

  • first saved the first song, to prevent “wanna save” popup?

added to steps.

I think I’m doing exactly as you describe, the context menu closes properly with no problem on my system.

How exactly do you load a new “template” song, do you double click, double tap in diskop?

Hopefully someone with 10.9 can try.

Tried on OSX 10.6 and also can’t replicate it there, will try on some newer OSX setups too.

Ok new step-by-step:

  1. Load Renoise 64 bit build.

  2. Right click on first slot, opening “Favorite plugin instruments”. Make sure you also have sub categories in the tree. mouse over one sub menu.

  3. Move mouse outside to the left, so the menu including submenu stays opened.

  4. Click on “new song”

  5. Now select a synth from the submenu that still is opened

Here: Crash