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 RELEASE
OBJECTSINTHEARRAY + 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(objc
object**) + 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::run
commithandlers(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 CFRUNLOOP
ISCALLINGOUTTOANOBSERVERCALLBACKFUNCTION + 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

MacOS crash analysis
 
 
Q