Post not yet marked as solved
Post marked as unsolved with 4 replies, 3,024 views
Ever since BigSur was released, our app starts seeing thousands of crashes for macOS 10.16.0 and 11.0.1
the crash is due to this exception:*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: !isnan(newOrigin.y)'
and the exception backtrace looks like this:
libobjc.A.dylib		0x00007fff201c1000 + 78793
CoreFoundation		 0x00007fff203a1000 + 1197330
Foundation				 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
AppKit						 -[NSView setFrameOrigin:]
AppKit						 -[NSView setFrame:]
AppKit						 -[_NSFullScreenDetachedToolbarMenuBarCompanionController updateContentViewForMenuBarReveal]
AppKit						 -[_NSFullScreenDetachedToolbarMenuBarCompanionController setMenuBarReveal:]
AppKit						 +[_NSFullScreenSpace initialize]
AppKit						 +[NSCGSSpace addMenuBarRevealChangedNotificationHandler:]
Foundation				 -[__NSObserver _doit:]
CoreFoundation		 0x00007fff203a1000 + 487388
CoreFoundation		 0x00007fff203a1000 + 1124507
CoreFoundation		 0x00007fff203a1000 + 1124367
CoreFoundation		 0x00007fff203a1000 + 293838
Foundation				 -[NSNotificationCenter postNotificationName:object:userInfo:]
SkyLight					 0x00007fff24b93000 + 2014909
SkyLight					 0x00007fff24b93000 + 51236
SkyLight					 0x00007fff24b93000 + 49848
SkyLight					 0x00007fff24b93000 + 2786204
SkyLight					 0x00007fff24b93000 + 2785987
libdispatch.dylib	_dispatch_call_block_and_release
libdispatch.dylib	_dispatch_client_callout
libdispatch.dylib	_dispatch_main_queue_callback_4CF
CoreFoundation		 0x00007fff203a1000 + 780640
CoreFoundation		 0x00007fff203a1000 + 526402
CoreFoundation		 0x00007fff203a1000 + 521918
HIToolbox					RunCurrentEventLoopInMode
HIToolbox					ReceiveNextEventCommon
HIToolbox					_BlockUntilNextEventMatchingListInModeWithFilter
AppKit						 _DPSNextEvent
AppKit						 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
AppKit						 -[NSApplication run]
AppKit						 NSApplicationMain
MyApp							main AppDelegate.swift:11
libdyld.dylib			start
this crash stack is specific to macOS BigSur, it doesn't happen on any of the previous macOS versions (we support all the way back to High Sierra)
I'm trying to hunt this crash down but I'm unable to get any repro of this specific crash.
deducing from the stack trace it looks like AppKit is trying to turn my app's window into a full screen window but I could be wrong.
I was wondering if anyone else had seen similar crash like this?