Post

Replies

Boosts

Views

Activity

MacOS AppKit crash on Big sur
We have an Mac app, which worked fine on 10.14 and 10.15. Howerver when user upgrade to Big sur, we get a lot about crash log. Such as below, it seems not crash on our Application. Thread 2 Crashed:: Dispatch queue: com.apple.root.user-interactive-qos 0 libsystem_platform.dylib 0x00007fff204a3673 os_unfair_lock_lock + 10 1 com.apple.AppKit 0x00007fff22f5c83e -[NSScreenDisplayLink _fire] + 46 2 com.apple.AppKit 0x00007fff236ea2cd ___NSRunLoopTimerCreateWithHandler_block_invoke + 34 3 com.apple.CoreFoundation 0x00007fff2057290d CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20 4 com.apple.CoreFoundation 0x00007fff205723e8 __CFRunLoopDoTimer + 922 5 com.apple.CoreFoundation 0x00007fff20571f42 __CFRunLoopDoTimers + 307 6 com.apple.CoreFoundation 0x00007fff2055857f __CFRunLoopRun + 2008 7 com.apple.CoreFoundation 0x00007fff205576ce CFRunLoopRunSpecific + 563 8 com.apple.Foundation 0x00007fff212e4fa1 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 9 com.apple.AppKit 0x00007fff22ffa49c -[NSAnimation(NSInternal) _runBlocking] + 453 10 com.apple.AppKit 0x00007fff22ffa25a __42-[NSAnimation(NSInternal) _runInNewThread]_block_invoke + 97 11 libdispatch.dylib 0x00007fff202b55dd _dispatch_call_block_and_release + 12 12 libdispatch.dylib 0x00007fff202b67c7 _dispatch_client_callout + 8 13 libdispatch.dylib 0x00007fff202c59b5 _dispatch_root_queue_drain + 676 14 libdispatch.dylib 0x00007fff202c5fb8 _dispatch_worker_thread2 + 92 15 libsystem_pthread.dylib 0x00007fff2045e453 _pthread_wqthread + 244 16 libsystem_pthread.dylib 0x00007fff2045d467 start_wqthread + 15 I only reproduce from Xcode once, as show Below, anyone who know how to solve this problem.
4
0
1.7k
Jul ’21
enumeratingSubviewsCount error
I get many crash logs from my mac app as below: Application Specific Information: assertion failure: "(self)-_enumeratingSubviewsCount ((1 6) - 1)" - %lld I know literal meaning when a super view have subviews more than 2 to the 6th power, which is 128. However, when I make a test app, which addSuviews to 200. But it doesn't crash. The test demo code show below    for (int i = 0; i 200; i++) {     NSView *view = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 20, 20)];     [self.window.contentView addSubview:view];   } Anybody know how to fix this problem. Thanks.
5
0
1.3k
Mar ’21
MacOS crash analysis
My app get crash as belows, how can I find the reason: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff21a965bd CFXNotificationRegistrarRemoveObservers + 41 1 com.apple.CoreFoundation 0x00007fff21a9639d CFXNotificationRegistrarRemoveNames + 306 2 com.apple.CoreFoundation 0x00007fff21a9622b CFXNotificationRegistrarRemove + 361 3 com.apple.CoreFoundation 0x00007fff2198d3a3 CFXNotificationRemoveObservers + 113 4 com.apple.Foundation 0x00007fff22611a0b -[NSNotificationCenter removeObserver:name:object:] + 257 5 com.apple.UIFoundation 0x00007fff252295b7 -[NSLayoutManager dealloc] + 163 6 com.apple.CoreFoundation 0x00007fff2192d191 RELEASEOBJECTSINTHEARRAY + 118 7 com.apple.CoreFoundation 0x00007fff2192d0d4 -[NSArrayM dealloc] + 279 8 com.apple.UIFoundation 0x00007fff252511cc -[NSTextStorage dealloc] + 102 9 com.apple.UIFoundation 0x00007fff252de9cf -[NSStringDrawingTextStorage dealloc] + 93 10 libobjc.A.dylib 0x00007fff2187a39d AutoreleasePoolPage::releaseUntil(objcobject**) + 167 11 libobjc.A.dylib 0x00007fff2185d31e objcautoreleasePoolPop + 161 12 com.apple.Foundation 0x00007fff2264de46 withUnlockedObservers + 576 13 com.apple.Foundation 0x00007fff2264dbd9 -[NSObserverList receiveBox:] + 89 14 com.apple.Foundation 0x00007fff2264db6a 68-[NSObject(DefaultObservationImplementations) receiveObservedValue:]blockinvoke + 53 15 com.apple.Foundation 0x00007fff2264da8e -[NSObject(DefaultObservationImplementations) receiveObservedValue:] + 156 16 com.apple.CoreAutoLayout 0x00007fff2aaf2c78 -[NSISVariableObservable emitValueIfNeeded] + 290 17 com.apple.CoreAutoLayout 0x00007fff2aaf6ff2 -[NSISEngine performPendingChangeNotifications] + 232 18 com.apple.AppKit 0x00007fff24449b9a -[NSView updateConstraintsForSubtreeIfNeeded] + 65 19 com.apple.CoreAutoLayout 0x00007fff2aafc67a -[NSISEngine withBehaviors:performModifications:] + 84 20 com.apple.AppKit 0x00007fff243b8846 -[NSView(NSConstraintBasedLayout) withAutomaticEngineOptimizationDisabled:] + 59 21 com.apple.AppKit 0x00007fff24dd8f5c -[NSTouchBarItem itemViewMinSize:maxSize:preferredSize:stretchesContent:] + 824 22 com.apple.AppKit 0x00007fff2487e54d _51-[NSTouchBarItemContainerView updateMeasuredSizes]blockinvoke + 316 23 com.apple.CoreAutoLayout 0x00007fff2aafc67a -[NSISEngine withBehaviors:performModifications:] + 84 24 com.apple.AppKit 0x00007fff2487e3b2 -[NSTouchBarItemContainerView updateMeasuredSizes] + 120 25 com.apple.AppKit 0x00007fff2487e28f -[NSTouchBarItemContainerView minSize] + 63 26 com.apple.AppKit 0x00007fff244b4fc1 -[NSTouchBarLayout aggregateWidthOfItems:sharesLeftEdge:sharesRightEdge:widthMeasurement:] + 233 27 com.apple.AppKit 0x00007fff244b54b6 -[NSTouchBarLayout attributesOfItems:centerItems:givenSize:sharesLeftEdge:sharesRightEdge:xOrigin:] + 470 28 com.apple.AppKit 0x00007fff244b4689 -[NSTouchBarLayout attributesOfItems:centerItems:givenSize:] + 833 29 com.apple.AppKit 0x00007fff24d90174 -[NSTouchBarView positionSubviews] + 214 30 com.apple.AppKit 0x00007fff24d90097 -[NSTouchBarView layout] + 87 31 com.apple.AppKit 0x00007fff243fa251 NSViewLayout + 605 32 com.apple.AppKit 0x00007fff243f9ced -[NSView layoutSubtreeWithOldSize:] + 392 33 com.apple.AppKit 0x00007fff24d8fff5 -[NSTouchBarView layoutSubtreeWithOldSize:] + 71 34 com.apple.AppKit 0x00007fff243f9e4c -[NSView layoutSubtreeWithOldSize:] + 743 35 com.apple.AppKit 0x00007fff243f9e4c -[NSView layoutSubtreeWithOldSize:] + 743 36 com.apple.AppKit 0x00007fff243f9e4c -[NSView layoutSubtreeWithOldSize:] + 743 37 com.apple.AppKit 0x00007fff243f919d -[NSView layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 1041 38 com.apple.AppKit 0x00007fff243f8c9f -[NSWindow(NSConstraintBasedLayout) layoutViewTree] + 148 39 com.apple.AppKit 0x00007fff243f5523 -[NSWindow oldPlaceWindow:fromServer:] + 648 40 com.apple.AppKit 0x00007fff243f3df1 -[NSWindow setFrameCommon:display:fromServer:] + 2875 41 com.apple.AppKit 0x00007fff245ec373 -[NSWindow(NSConstraintBasedLayout) fromConstraintsSetWindowFrame:] + 168 42 com.apple.AppKit 0x00007fff24476610 -[NSWindow(NSConstraintBasedLayout) changeWindowFrameFromConstraintsIfNecessary] + 584 43 com.apple.CoreAutoLayout 0x00007fff2aafc67a -[NSISEngine withBehaviors:performModifications:] + 84 44 com.apple.AppKit 0x00007fff24476366 -[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 206 45 com.apple.AppKit 0x00007fff244761d0 _NSWindowGetDisplayCycleObserverForLayoutblockinvoke + 430 46 com.apple.AppKit 0x00007fff24475446 NSDisplayCycleObserverInvoke + 155 47 com.apple.AppKit 0x00007fff24474fd0 NSDisplayCycleFlush + 937 48 com.apple.QuartzCore 0x00007fff274701ee CA::Transaction::runcommithandlers(CATransactionPhase) + 92 49 com.apple.QuartzCore 0x00007fff2746efa4 CA::Transaction::commit() + 382 50 com.apple.AppKit 0x00007fff24c641fe 62+[CATransaction(NSCATransaction) NSstartFrameWithDisplayLink]blockinvoke + 285 51 com.apple.AppKit 0x00007fff24c645af __NSRunLoopObserverCreateWithHandlerblockinvoke + 41 52 com.apple.CoreFoundation 0x00007fff2198b85d CFRUNLOOPISCALLINGOUTTOANOBSERVERCALLBACKFUNCTION + 23 53 com.apple.CoreFoundation 0x00007fff2198b6ed CFRunLoopDoObservers + 549 54 com.apple.CoreFoundation 0x00007fff2198ab9d CFRunLoopRun + 838 55 com.apple.CoreFoundation 0x00007fff2198a16e CFRunLoopRunSpecific + 563 56 com.apple.HIToolbox 0x00007fff2a6802e0 RunCurrentEventLoopInMode + 292 57 com.apple.HIToolbox 0x00007fff2a67ff32 ReceiveNextEventCommon + 283 58 com.apple.HIToolbox 0x00007fff2a67fdff BlockUntilNextEventMatchingListInModeWithFilter + 64 59 com.apple.AppKit 0x00007fff2439f809 DPSNextEvent + 879 60 com.apple.AppKit 0x00007fff2439e035 -[NSApplication(NSEvent) nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352 61 com.apple.AppKit 0x00007fff24390628 -[NSApplication run] + 586 62 com.myApp.XXXX 0x0000000100ea79b9 main + 4889 63 libdyld.dylib 0x00007fff21769951 start + 1
0
0
487
Oct ’20
cannot find code object on disk
I am a MacOS Developer. I had finished codesgin and notarize my app. When I enter the check cmd: spctl -a -v my.app Then I can get the result: my.app: accepted source=Notarized Developer ID We want to make a background update program, it will download a new Contents.zip file, and replace the old file Contents in my.app. Finish the above progress Then I enter the spctl -a -v my.app ; get the result: cannot find code object on diskDoes this is a problem? If it is, How can I solve this. Thanks a lot.However, when I enter: stapler validate my.app, the result is :The validate action worked!
1
0
1.4k
Apr ’20