SkyLight issue ?

Saw https://forum.xojo.com/45685-more-on-10-12-10-13-crashes/
or
https://forum.xojo.com/45376-crashing-on-exception-nsimage-insufficient-memory-to-allocate-p/p1#p368482

Looks like there is a problem with pictures on xojo / 10.13, and we found often “SkyLight” in the crash-log, like this below

Here Hi-DPI was not checked, to test something

What can we do ? We know some customers on hundreds who crash several times a day

Thanks


Process: 8Gestion [1399]
Path: /Applications/8sens sybase/8Gestion.app/Contents/MacOS/8Gestion
Identifier: com.8sens.8Gestion.AS51
Version: Gestion A S (5.1.3.3.0)
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: 8Gestion [1399]
User ID: 502

Date/Time: 2018-02-06 16:43:51.453 +0100
OS Version: Mac OS X 10.13.2 (17C88)
Report Version: 12
Anonymous UUID: 589038A7-8AFF-6383-77D9-98E6CCE1A0FC

Time Awake Since Boot: 28000 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 0xa76aeeae __pthread_kill + 10
1 libsystem_pthread.dylib 0xa77e04c7 pthread_kill + 363
2 libsystem_c.dylib 0xa75febac __abort + 153
3 libsystem_c.dylib 0xa75feb13 abort + 154
4 libdbtasks12_r.dylib 0x09382d21 ut_onsig_install_signal_handlers + 1553
5 libsystem_platform.dylib 0xa77d502b _sigtramp + 43
6 ??? 0xffffffff 0 + 4294967295
7 libdbtasks12_r.dylib 0x09382a30 ut_onsig_install_signal_handlers + 800
8 libsystem_c.dylib 0xa75feafe abort + 133
9 libsystem_c.dylib 0xa75c90cd __assert_rtn + 305
10 com.apple.SkyLight 0xa486e801 backing_map + 588
11 com.apple.SkyLight 0xa480dd13 lock_window_backing + 775
12 com.apple.SkyLight 0xa48395e2 SLSDeviceLock + 51
13 com.apple.AppKit 0x914f4db4 lock_device + 41
14 com.apple.AppKit 0x914cbad6 __NSCGSWindowBackingStoreMark__block_invoke + 893

Use a different version of the macOS, 10.13.3 is already out and 10.13.4 is on its way, or if your customers want stability, go with 10.12.6 or even 10.11.6.

We may never know what a SkyLight is as it’s an Apple internal process called from some private Apple API.

I think you should also try and track down the exact code in your app that leads up to this crash. Rule out any plugins or declares which might be triggering this private API.

The simplest solution to partially solve the problem of crashes is to check in the Informations of Finder the option “Open in low resolution” for my app: it is not beautiful, but the number of crashes decreases enormously …

Could be a memory issue.