We ran into this issue as well. I filed feedback for this: FB22102831
Several users report they see our crash reporter window after they woke their Mac(Book) from sleep, the crash logs suggest the crash occurred while adding or removing a display, which might be the cause of nil being returned by the subsystem.
Here are two main thread stack traces for crash reports:
0 libsystem_kernel.dylib 0x3024c8c34 mach_msg2_trap
1 libsystem_kernel.dylib 0x3024db024 mach_msg2_internal
2 libsystem_kernel.dylib 0x3024d1988 mach_msg_overwrite
3 libsystem_kernel.dylib 0x3024c8fb0 mach_msg
4 SkyLight 0x30f9896a8 _CGSGetRealtimeDisplayDataShmemPort
5 SkyLight 0x30f6b0820 WS::RealtimeDisplayDataMapping::shmem
6 SkyLight 0x30f6b06f0 WS::RealtimeDisplayDataMapping::data
7 SkyLight 0x30f6b0cc8 realtime_data_for_display
8 SkyLight 0x30f6b1fc4 SLSDisplayGetCurrentHeadroom
9 AppKit 0x30bde35f8 -[NSCGSDisplay initWithDisplayID:flipOffset:]
10 AppKit 0x30ae7dee4 ___NSCGSCreateDisplaysFromDisplayIDsUsingPredicate_block_invoke
11 AppKit 0x30b8e8694 _NSCGSCreateUniqueDisplaysWithFlipOffset
12 AppKit 0x30b8ea3cc _NSCGSDisplayConfigurationUpdate
13 AppKit 0x30b8e9734 _NSCGSDisplayConfigurationUpdateAndInvokeObservers
14 AppKit 0x30b8e9d70 _NSCGSDisplayConfigurationDidReconfigureNotificationHandler
15 SkyLight 0x30f5144e4 (anonymous namespace)::notify_datagram_handler
16 SkyLight 0x30f95d70c CGSDatagramReadStream::dispatchMainQueueDatagrams
17 SkyLight 0x30f95d5d0 CGSDatagramReadStream::mainQueueWakeup
18 CoreFoundation 0x30262d600 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__
19 CoreFoundation 0x30262d540 __CFRunLoopDoBlocks
20 CoreFoundation 0x30262c984 __CFRunLoopRun
21 CoreFoundation 0x3026e6e30 _CFRunLoopRunSpecificWithOptions
22 HIToolbox 0x31bba978c RunCurrentEventLoopInMode
23 HIToolbox 0x31bbacab4 ReceiveNextEventCommon
24 HIToolbox 0x31bd36b60 _BlockUntilNextEventMatchingListInMode
25 AppKit 0x30b397b58 _DPSBlockUntilNextEventMatchingListInMode
26 AppKit 0x30ae91e44 _DPSNextEvent
27 AppKit 0x30b95cd08 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
28 AppKit 0x30b95ca14 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:]
29 AppKit 0x30ae8a77c -[NSApplication run]
30 AppKit 0x30ae766d8 NSApplicationMain
31 dyld 0x301db6d50 start
Thread 0
0 Foundation 0x31d995f20 _NSRequestConcreteObject
1 Foundation 0x31cc2cc2c -[NSNumber hash]
2 CoreFoundation 0x31a060574 -[__NSFrozenSetM containsObject:]
3 WindowManagement 0x4dc04b55c -[_WMWindow applyTags:mask:]
4 AppKit 0x321f1b530 -[NSWindow _setFrameCommon:display:fromServer:]
5 AppKit 0x322a0933c -[NSWindow(NSScreenLayout) _setFrame:fromAdjustmentToScreen:anchorIfNeeded:animate:]
6 AppKit 0x3221b4488 -[NSWindow _adjustWindowToScreen]
7 AppKit 0x3221d3ee4 -[NSWindow _displayChangedSoAdjustWindows:]
8 AppKit 0x322d5b874 ___NSApplicationPerformScreenInvalidationReactions_block_invoke
9 AppKit 0x321ed3804 -[NSApplication enumerateWindowsWithOptions:usingBlock:]
10 AppKit 0x322d5b174 ___NSApplicationReactToScreenInvalidation_block_invoke
11 AppKit 0x322d5a9b4 _NSApplicationReactToScreenInvalidation
12 AppKit 0x322d5ac00 -[NSApplication(ScreenHandling) _reactToDisplayChanges:]
13 AppKit 0x322808818 _NSCGSDisplayConfigurationUpdateAndInvokeObservers
14 AppKit 0x322808cfc _NSCGSDisplayConfigurationDidReconfigureNotificationHandler
15 SkyLight 0x325f7d02c (anonymous namespace)::notify_datagram_handler
16 SkyLight 0x32638ad98 CGSDatagramReadStream::dispatchMainQueueDatagrams
17 SkyLight 0x32638ac5c CGSDatagramReadStream::mainQueueWakeup
18 libdispatch.dylib 0x319b7fb28 _dispatch_call_block_and_release
19 libdispatch.dylib 0x319b99858 _dispatch_client_callout
20 libdispatch.dylib 0x319bb6b54 _dispatch_main_queue_drain.cold.5
21 libdispatch.dylib 0x319b8edac _dispatch_main_queue_drain
22 libdispatch.dylib 0x319b8ece8 _dispatch_main_queue_callback_4CF
23 CoreFoundation 0x31a088da0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
24 CoreFoundation 0x31a049a98 __CFRunLoopRun
25 CoreFoundation 0x31a048c54 CFRunLoopRunSpecific
26 HIToolbox 0x331529278 RunCurrentEventLoopInMode
27 HIToolbox 0x33152c4e4 ReceiveNextEventCommon
28 HIToolbox 0x3316b7480 _BlockUntilNextEventMatchingListInModeWithFilter
29 AppKit 0x321ed8ab0 _DPSNextEvent
30 AppKit 0x3228775ac -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
31 AppKit 0x321ecbc60 -[NSApplication run]
32 AppKit 0x321ea2358 NSApplicationMain
33 dyld 0x3197aab94 start
Unfortunately we have not been able to reproduce this on our side. But a fix would be appreciated!
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: