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?
Post
Replies
Boosts
Views
Activity
Hi,I've been trying to build my project with xcodebuild, but keep getting this error:** INTERNAL ERROR: Uncaught exception **Uncaught Exception: Couldn't posix_spawn: error 7Stack: 0 __exceptionPreprocess (in CoreFoundation) 1 objc_exception_throw (in libobjc.A.dylib) 2 +[NSException raise:format:] (in CoreFoundation) 3 -[NSConcreteTask launchWithDictionary:] (in Foundation) 4 __46-[IDEShellScriptExecutionActionOperation main]_block_invoke_2.229 (in IDEStandardExecutionActionsCore) 5 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation) 6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation) 7 __CFRunLoopDoBlocks (in CoreFoundation) 8 __CFRunLoopRun (in CoreFoundation) 9 CFRunLoopRunSpecific (in CoreFoundation)10 CFRunLoopRun (in CoreFoundation)11 -[Xcode3CommandLineBuildTool _buildWithTimingSection:] (in Xcode3Core)12 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)13 0x000000010fe00202 (in xcodebuild)14 start (in libdyld.dylib)what is causing this, and how do I fix it?
Hi,I'm unable to upload my osx app to appstore straight from the xcarchive like such:xcrun altool --upload-app -f <path to .xcarchive>so I exported the app from the xcarchive into a pkg file, and this worked:xcrun altool --upload-app -f <path to .pkg>but now my app's appstore entry doesn't have the app's symbols, as the symbols were inside the xcarchive, not the pkg file.is there a way to upload both the app and the dsym files using altool?a lot of the discussion I've seen are on uploading .ipa file which already includes dsym inside, there's not much discussion on uploading an osx app.thanks!