We’re seeing a crash immediately after exit on Mac High Sierra when running a 64 bit app. This crash occurs after a user closes the main window, not after calling Quit(). I tried setting AutoQuit=True after reading a similar post here on the forums but it did not help. There are no threads in the app. There is a Shell instance the app uses but the Shell.Close() function is called before the window is closed. Crash report below.
Process: *** [42029]
Path: ***
Identifier: com.whitesky.mactest01
Version: ??? (1.0.0.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Privacy Scanner [42029]
User ID: 501
Date/Time: 2018-01-11 18:15:13.138 -0800
OS Version: Mac OS X 10.13.1 (17B1003)
Report Version: 12
Anonymous UUID: 8DCD856C-9C21-51F6-B0B7-A730B14C3398
Sleep/Wake UUID: F51D9A8F-1912-4889-861D-7D7688417849
Time Awake Since Boot: 2400000 seconds
Time Since Wake: 29000 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000100004263
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x100004263:
–>
__TEXT 0000000109f28000-000000010a0f2000 [ 1832K] r-x/rwx SM=COW n [**]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.xojo.XojoFramework 0x000000010a43ebaf RuntimeObjectIsa + 76
1 com.xojo.XojoFramework 0x000000010a450c00 RuntimeViewDestructor + 91
2 com.whitesky.mactest01 0x0000000109f39b3b Window.__Exit%%o + 11
3 com.xojo.XojoFramework 0x000000010a43ea31 RuntimeUnlockObject + 815
4 com.xojo.XojoFramework 0x000000010a34a812 RuntimeView::UnifiedClose(bool) + 598
5 com.xojo.XojoFramework 0x000000010a2d7a79 0x10a1e9000 + 977529
6 com.apple.AppKit 0x00007fff3039e667 __19-[NSWindow __close]_block_invoke + 185
7 com.apple.AppKit 0x00007fff3039e5a1 -[NSWindow __close] + 297
8 com.apple.AppKit 0x00007fff30842a7a -[NSApplication(NSResponder) sendAction:to:from:] + 312
9 com.apple.AppKit 0x00007fff302e9777 -[NSControl sendAction:to:] + 86
10 com.apple.AppKit 0x00007fff302e969f __26-[NSCell _sendActionFrom:]_block_invoke + 136
11 com.apple.AppKit 0x00007fff302e95a5 -[NSCell _sendActionFrom:] + 183
12 com.apple.AppKit 0x00007fff3032a858 -[NSButtonCell _sendActionFrom:] + 97
13 com.apple.AppKit 0x00007fff302e7e06 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2438
14 com.apple.AppKit 0x00007fff3032a59f -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 777
15 com.apple.AppKit 0x00007fff302e68a4 -[NSControl mouseDown:] + 965
16 com.apple.AppKit 0x00007fff30380ced -[_NSThemeWidget mouseDown:] + 86
17 com.apple.AppKit 0x00007fff309e1a01 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891
18 com.apple.AppKit 0x00007fff309de658 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359
19 com.apple.AppKit 0x00007fff309dd904 -[NSWindow(NSEventRouting) sendEvent:] + 497
20 com.xojo.XojoFramework 0x000000010a2cc57c 0x10a1e9000 + 931196
21 com.apple.AppKit 0x00007fff3083e937 -[NSApplication(NSEvent) sendEvent:] + 307
22 com.xojo.XojoFramework 0x000000010a2bbf9d 0x10a1e9000 + 864157
23 com.whitesky.mactest01 0x0000000109f79ee5 Application._CallFunctionWithExceptionHandling%%op + 181
24 com.xojo.XojoFramework 0x000000010a43c4df CallFunctionWithExceptionHandling(void (*)()) + 262
25 com.xojo.XojoFramework 0x000000010a2bbf18 0x10a1e9000 + 864024
26 com.apple.AppKit 0x00007fff300a0861 -[NSApplication run] + 812
27 com.xojo.XojoFramework 0x000000010a43a80b RuntimeRun + 40
28 com.whitesky.mactest01 0x0000000109ffd603 REALbasic._RuntimeRun + 19
29 com.whitesky.mactest01 0x000000010a0d1e28 _Main + 536
30 com.whitesky.mactest01 0x000000010a0d0c73 main + 19
31 libdyld.dylib 0x00007fff5a071145 start + 1