The app that I sell (Lightwright 6) is running fine on Sierra and earlier versions of MacOS, but some of my users have it crashing unpredictably on High Sierra (10.13.4). Lightwright is built using Xojo 2016r3.
Looking at the crash logs, the crash is always the same:
Application Specific Information:
Assertion failed: (mach_vm_map(mach_task_self(), &address, size, 0, VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_COREGRAPHICS_BACKINGSTORES), port, 0, false, prot, prot, VM_INHERIT_SHARE) == KERN_SUCCESS), function backing_map, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/SkyLight/SkyLight-312.50/SkyLight/Services/Windows/CGSBackingStore.c, line 191.
Is this something that I can fix, or is it a problem with High Sierra? I haven’t a clue what the crash really means, hopefully better minds than mine can help puzzle this out…
Here is part of a crash log a user sent me (thread 0 only) . Other crashes take slightly different code paths, but arrive at the same place when they crash -
Process: Lightwright 6 [3663]
Path: /Applications/Lightwright 6.app/Contents/MacOS/Lightwright 6
Identifier: com.mckernon.lightwright6
Version: 6.0.16 build 185 (6.0.16.3.185)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Lightwright 6 [3663]
User ID: 501
Date/Time: 2018-05-10 23:09:33.892 -0700
OS Version: Mac OS X 10.13.4 (17E202)
Report Version: 12
Anonymous UUID: 77973F41-8E0E-7A36-BD04-C4AB47FA1D93
Sleep/Wake UUID: 61DFB82D-7B97-42A1-A9E5-F115ED9BA313
Time Awake Since Boot: 22000 seconds
Time Since Wake: 16000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
Assertion failed: (mach_vm_map(mach_task_self(), &address, size, 0, VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_COREGRAPHICS_BACKINGSTORES), port, 0, false, prot, prot, VM_INHERIT_SHARE) == KERN_SUCCESS), function backing_map, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/SkyLight/SkyLight-312.50/SkyLight/Services/Windows/CGSBackingStore.c, line 191.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0xa7550eda __pthread_kill + 10
1 libsystem_pthread.dylib 0xa7708427 pthread_kill + 363
2 libsystem_c.dylib 0xa749f956 abort + 133
3 libsystem_c.dylib 0xa7469ead __assert_rtn + 305
4 com.apple.SkyLight 0xa4623789 backing_map + 588
5 com.apple.SkyLight 0xa45c23de lock_window_backing + 462
6 com.apple.SkyLight 0xa45ee442 SLSDeviceLock + 51
7 com.apple.AppKit 0x914fcd2c lock_device + 41
8 com.apple.AppKit 0x914d3a46 NSCGSWindowBackingStoreMark__block_invoke + 893
9 com.apple.AppKit 0x9149fb00 NSCGSTransactionRunPreCommitActionsForOrder + 220
10 com.apple.AppKit 0x9149fa14 NSCGSTransactionRunPreCommitActions + 24
11 com.apple.AppKit 0x9149f9ed __39+[_NSCGSTransaction currentTransaction]_block_invoke + 41
12 com.apple.QuartzCore 0x9c2ff0a5 CA::Transaction::run_commit_handlers(CATransactionPhase) + 45
13 com.apple.QuartzCore 0x9c2fe5cd CA::Context::commit_transaction(CA::Transaction*) + 1581
14 com.apple.QuartzCore 0x9c2fdcff CA::Transaction::commit() + 459
15 com.apple.AppKit 0x91c50b66 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 465
16 com.apple.CoreFoundation 0x937977a6 _runLoopObserverWithBlockContext + 22
17 com.apple.CoreFoundation 0x937974b6 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 22
18 com.apple.CoreFoundation 0x937973d2 __CFRunLoopDoObservers + 498
19 com.apple.CoreFoundation 0x9377a81d __CFRunLoopRun + 1661
20 com.apple.CoreFoundation 0x93779e71 CFRunLoopRunSpecific + 641
21 com.apple.CoreFoundation 0x93779bda CFRunLoopRunInMode + 122
22 com.apple.HIToolbox 0x92d7737b RunCurrentEventLoopInMode + 321
23 com.apple.HIToolbox 0x92d76f5f ReceiveNextEventCommon + 454
24 com.apple.HIToolbox 0x92d76d7b _BlockUntilNextEventMatchingListInModeWithFilter + 71
25 com.apple.AppKit 0x91379b2d _DPSNextEvent + 2101
26 com.apple.AppKit 0x91aebe8c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2859
27 com.apple.AppKit 0x91aeb359 -[NSApplication(NSEvent) nextEventMatchingMask:untilDate:inMode:dequeue:] + 134
28 com.xojo.XojoFramework 0x065281e6 0x64e6000 + 270822
29 com.apple.AppKit 0x91681e22 -[NSView _getNextResizeEventFromMask:invalidatingLiveResizeCacheIfNecessary:] + 89
30 com.apple.AppKit 0x9168146c -[NSWindow(NSWindowResizing) _resizeWithEvent:] + 1543
31 com.apple.AppKit 0x91680e5a -[NSTitledFrame resizeWithEvent:] + 60
32 com.apple.AppKit 0x91bb8e70 -[NSTitledFrame attemptResizeWithEvent:] + 168
33 com.apple.AppKit 0x91595c80 -[NSThemeFrame handleMouseDown:] + 257
34 com.apple.AppKit 0x91595ee1 -[NSThemeFrame mouseDown:] + 37
35 com.apple.AppKit 0x91c912b4 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5327
36 com.apple.AppKit 0x91c8f24f -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 6621
37 com.apple.AppKit 0x91c8d4c0 -[NSWindow(NSEventRouting) sendEvent:] + 475
38 com.xojo.XojoFramework 0x0653835f 0x64e6000 + 336735
39 com.apple.AppKit 0x91aea2d1 -[NSApplication(NSEvent) sendEvent:] + 2657
40 com.xojo.XojoFramework 0x065280e6 0x64e6000 + 270566
41 com.xojo.XojoFramework 0x06528122 0x64e6000 + 270626
42 com.mckernon.lightwright6 0x00190e05 Delegate.Invoke%% + 34
43 com.mckernon.lightwright6 0x00073ad4 Application._CallFunctionWithExceptionHandling%%op + 248
44 com.xojo.XojoFramework 0x06694b1a 0x64e6000 + 1764122
45 com.xojo.XojoFramework 0x06528058 0x64e6000 + 270424
46 com.apple.AppKit 0x9136eac8 -[NSApplication run] + 838
47 com.xojo.XojoFramework 0x06694bba 0x64e6000 + 1764282
48 com.xojo.XojoFramework 0x06692d94 RuntimeRun + 49
49 com.mckernon.lightwright6 0x001637b8 REALbasic._RuntimeRun + 34
50 com.mckernon.lightwright6 0x05e3ffe5 _Main + 295
51 com.mckernon.lightwright6 0x05e37ce6 main + 36
52 com.mckernon.lightwright6 0x05e86b2b start + 53