crash when I quit my app, what can it be ?

I only have a crash report, tracing does not give an error.
any idea of what it can come from ?
Xojo 2017r1.1 macos

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.xojo.XojoFramework 0x00a40944 0xa19000 + 162116 1 com.xojo.XojoFramework 0x00a41651 0xa19000 + 165457 2 com.xojo.XojoFramework 0x00a41b33 0xa19000 + 166707 3 libobjc.A.dylib 0x9ba732af -[NSObject performSelector:withObject:] + 70 4 com.apple.AppKit 0x915298a5 -[NSApplication sendAction:to:from:] + 438 5 com.apple.AppKit 0x91545c65 -[NSMenuItem _corePerformAction] + 486 6 com.apple.AppKit 0x9154596a -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 163 7 com.apple.AppKit 0x91545021 -[NSMenu _performActionWithHighlightingForItemAtIndex:sendAccessibilityNotification:] + 79 8 com.apple.AppKit 0x91598664 -[NSMenu performActionForItemAtIndex:] + 65 9 com.apple.AppKit 0x91598619 -[NSMenu _internalPerformActionForItemAtIndex:] + 45 10 com.apple.AppKit 0x915985e4 -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 106 11 com.apple.AppKit 0x91598434 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 120 12 com.apple.AppKit 0x9153ada6 NSSLMMenuEventHandler + 816 13 com.apple.HIToolbox 0x94848d89 _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36 14 com.apple.HIToolbox 0x9469c34f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1452 15 com.apple.HIToolbox 0x9469b668 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 386 16 com.apple.HIToolbox 0x946ae811 SendEventToEventTarget + 88 17 com.apple.HIToolbox 0x94848c2e SendHICommandEvent(unsigned long, HICommand const*, unsigned long, unsigned long, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 478 18 com.apple.HIToolbox 0x94711ef7 SendMenuCommandWithContextAndModifiers + 70 19 com.apple.HIToolbox 0x94711ea4 SendMenuItemSelectedEvent + 199 20 com.apple.HIToolbox 0x94711d72 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 134 21 com.apple.HIToolbox 0x9489d59d MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 722 22 com.apple.HIToolbox 0x9471970e _HandleMenuSelection2 + 488 23 com.apple.HIToolbox 0x94719517 _HandleMenuSelection + 53 24 com.apple.AppKit 0x914a8298 _NSHandleCarbonMenuEvent + 358 25 com.apple.AppKit 0x912fd6a2 _DPSNextEvent + 2459 26 com.apple.AppKit 0x912fc870 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119 27 com.xojo.XojoFramework 0x00a5af2b 0xa19000 + 270123 28 com.xojo.XojoFramework 0x00a5af74 0xa19000 + 270196 29 com.verynicesw.klims 0x001bd9df Delegate.Invoke%% + 34 30 com.verynicesw.klims 0x0008de3a Application._CallFunctionWithExceptionHandling%%o<Application>p + 264 31 com.xojo.XojoFramework 0x00bc7ffa 0xa19000 + 1765370 32 com.xojo.XojoFramework 0x00a5aecc 0xa19000 + 270028 33 com.apple.AppKit 0x912ef15c -[NSApplication run] + 727 34 com.xojo.XojoFramework 0x00bc809a 0xa19000 + 1765530 35 com.xojo.XojoFramework 0x00bc6274 RuntimeRun + 49 36 com.verynicesw.klims 0x0018b154 REALbasic._RuntimeRun + 34 37 com.verynicesw.klims 0x00897d64 _Main + 295 38 com.verynicesw.klims 0x008915b2 main + 36 39 com.verynicesw.klims 0x0089cd46 start + 53

Thanks.

Whats com.verynicesw.klims ?

Perfect example of why bundle identifiers need to be your actual domain name in reverse.

I don’t have a domain name, so it’s the name of the app “klims”

Should use your firm name or last name then. :wink:

This is really beside the point of “why does my app crash” though

Do you know what menu item was selected that causes this ?

I hit cmd-Q to quit

Do you do a bunch of work in things like Window Cancel close when app quitting is true ?
Is this regularly reproducible ?
Does it happen if you run source ?
Is it occurring when you have a modal dialog open & hit Cmd+Q ?

Lots of thing this could be but I need to know a lot more about the circumstances

yes there is a window cancel close event laying around, it happens when I’m in debug mode, but it’s not reproductible, it happens sometimes… and I don’t get into xojo debugger, only this crash report …

I have been chasing the same kind of bug for months now. Still happens once in a while.