High Sierra Crashes

I have a user running High Sierra (10.13.2) who’s had a lot of crashes when running my app. From what I can tell, it looks like it’s HS’s fault, not mine.

I have the Mac’s crash report, can anyone maybe tell me what’s happening? In this case, the user reports it crashing when the app tries to open a window, but it’s very inconsistent - the last time it happened after he choose a file in the file dialog window, in that case the crash happened while the file dialog was still visible. Any thoughts would be greatly appreciated, I only have access to a Mac running High Sierra about 1 day a week, so it’s been hard to reproduce these reports.

Thank you!

Process: Lightwright 6 [32238]
Path: /Applications/Lightwright 6 Test 178.app/Contents/MacOS/Lightwright 6
Identifier: com.mckernon.lightwright6
Version: 6.0.16 beta build 177 (6.0.16.2.177)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: Lightwright 6 [32238]
User ID: 501

Date/Time: 2018-02-03 17:18:50.755 -0500
OS Version: Mac OS X 10.13.2 (17C205)
Report Version: 12
Bridge OS Version: 3.0 (14Y661)
Anonymous UUID: 12B5A55F-0E19-0C19-B9A9-0D1639F3C144

Sleep/Wake UUID: CB125E8F-5DEB-4C0E-A50A-5DBE4B7112CC

Time Awake Since Boot: 850000 seconds
Time Since Wake: 1000 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.23.4/SkyLight/Services/Windows/CGSBackingStore.c, line 191.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0xa76f8eae __pthread_kill + 10
1 libsystem_pthread.dylib 0xa782a4c7 pthread_kill + 363
2 libsystem_c.dylib 0xa7648afe abort + 133
3 libsystem_c.dylib 0xa76130cd __assert_rtn + 305
4 com.apple.SkyLight 0xa48b8801 backing_map + 588
5 com.apple.SkyLight 0xa4857d13 lock_window_backing + 775
6 com.apple.SkyLight 0xa48835e2 SLSDeviceLock + 51
7 com.apple.AppKit 0x914f4db4 lock_device + 41
8 com.apple.AppKit 0x914cbad6 NSCGSWindowBackingStoreMark__block_invoke + 893
9 com.apple.AppKit 0x91497b98 NSCGSTransactionRunPreCommitActionsForOrder
+ 220
10 com.apple.AppKit 0x91497aac NSCGSTransactionRunPreCommitActions
+ 24
11 com.apple.AppKit 0x91497a85 __39+[_NSCGSTransaction currentTransaction]_block_invoke + 41
12 com.apple.QuartzCore 0x9c838df5 CA::Transaction::run_commit_handlers(CATransactionPhase) + 45
13 com.apple.QuartzCore 0x9c83839c CA::Context::commit_transaction(CA::Transaction*) + 1500
14 com.apple.QuartzCore 0x9c837b1f CA::Transaction::commit() + 459
15 com.apple.AppKit 0x91c48577 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 465
16 com.apple.CoreFoundation 0x93969066 _runLoopObserverWithBlockContext + 22
17 com.apple.CoreFoundation 0x93968d76 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 22
18 com.apple.CoreFoundation 0x93968c92 __CFRunLoopDoObservers + 498
19 com.apple.CoreFoundation 0x9394c14d __CFRunLoopRun + 1661
20 com.apple.CoreFoundation 0x9394b7a1 CFRunLoopRunSpecific + 641
21 com.apple.CoreFoundation 0x9394b50a CFRunLoopRunInMode + 122
22 com.apple.HIToolbox 0x92f4a42b RunCurrentEventLoopInMode + 321
23 com.apple.HIToolbox 0x92f4a00f ReceiveNextEventCommon + 454
24 com.apple.HIToolbox 0x92f49e2b _BlockUntilNextEventMatchingListInModeWithFilter + 71
25 com.apple.AppKit 0x91371cc5 _DPSNextEvent + 2101
26 com.apple.AppKit 0x91ae3c48 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2859
27 com.apple.AppKit 0x91ae3115 -[NSApplication(NSEvent) nextEventMatchingMask:untilDate:inMode:dequeue:] + 134
28 com.xojo.XojoFramework 0x0675013b 0x667e000 + 860475
29 com.xojo.XojoFramework 0x06750184 0x667e000 + 860548
30 com.mckernon.lightwright6 0x001e3104 Delegate.Invoke%% + 34
31 com.mckernon.lightwright6 0x00094f80 Application._CallFunctionWithExceptionHandling%%op + 248
32 com.xojo.XojoFramework 0x068d173f CallFunctionWithExceptionHandling(void (*)()) + 312
33 com.xojo.XojoFramework 0x067500da 0x667e000 + 860378
34 com.apple.AppKit 0x91366c19 -[NSApplication run] + 763
35 com.xojo.XojoFramework 0x068d17e8 mainloop() + 46
36 com.xojo.XojoFramework 0x068cf8f7 RuntimeRun + 49
37 com.mckernon.lightwright6 0x001ae253 REALbasic._RuntimeRun + 34
38 com.mckernon.lightwright6 0x0604d243 _Main + 295
39 com.mckernon.lightwright6 0x06044f44 main + 36
40 com.mckernon.lightwright6 0x060943da start + 53

It looks like to me, that it’s crashing in private API called by Core Animation, and it seems to be a memory allocation issue.

First of all I would advise the customer to update to the latest version of High Sierra, there’s already a 10.13.4 release, so I presume a 10.13.3 release also.

Ask the customer if they’re getting crashes for other applications too.

If the answer is yes, then google an article on doing a clean install and send it to the customer as my intereptation of the crash report is either borked drivers or fault graphics card (The first being a very common issue with the macOS since 10.10).

Thanks for the great advice, I’ll contact him tonight!

Battling through similar things here with 2 apps.

Be sure to review this thread -

https://forum.xojo.com/45685-more-on-10-12-10-13-crashes/