Abnormal crash Of UIKit

My app occasionally crashes unexpectedly, I don’t know the specific reason
Full stack of crash below

Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1bb317b30 objcmsgSend + 16
1 Foundation 0x1bb932470 -[NSLayoutConstraint
referencesLayoutItem:] + 40
2 UIKitCore 0x1bfa9cba8 -[UILayoutGuide snipReferencingConstraints] + 308
3 UIKitCore 0x1bfa9bf2c -[UILayoutGuide
owningViewIsDeallocating] + 40
4 UIKitCore 0x1bfb33584 -[UIView layoutConstraintCleanup] + 212
5 UIKitCore 0x1bfb33774 -[UIView dealloc] + 148
6 putong 0x1089225dc -[PUGUserCardClassicBasicInfoViewV1 .cxx
destruct] + 45 (PUGUserCardClassicBasicInfoViewV1.m:45)
7 libobjc.A.dylib 0x1bb31ac90 objectcxxDestructFromClass(objcobject*, objcclass*) + 112
8 libobjc.A.dylib 0x1bb32ecc4 objc
destructInstance + 88
9 libobjc.A.dylib 0x1bb33573c objcrootDealloc + 52
10 UIKitCore 0x1bf6da280 -[UIResponder dealloc] + 152
11 UIKitCore 0x1bfb33a48 -[UIView dealloc] + 872
12 libobjc.A.dylib 0x1bb33804c AutoreleasePoolPage::releaseUntil(objcobject**) + 180
13 libobjc.A.dylib 0x1bb337f44 objc
autoreleasePoolPop + 224
14 UIKitCore 0x1bfb33a2c -[UIView dealloc] + 844
15 libobjc.A.dylib 0x1bb31ac90 objectcxxDestructFromClass(objcobject*, objcclass*) + 112
16 libobjc.A.dylib 0x1bb32ecc4 objc
destructInstance + 88
17 libobjc.A.dylib 0x1bb33573c objcrootDealloc + 52
18 UIKitCore 0x1bf6da280 -[UIResponder dealloc] + 152
19 UIKitCore 0x1bfb33a48 -[UIView dealloc] + 872
20 putong 0x108931034 -[PUGUserCardViewV1 dealloc] + 114 (PUGUserCardViewV1.m:114)
21 putong 0x1088f80b8 -[PUGSwipeViewControllerV1 dislikeAction:actionType:sourceType:] + 2242 (PUGSwipeViewControllerV1.m:2242)
22 putong 0x1088f67f8 -[PUGSwipeViewControllerV1 performAction:userCard:actionType:sourceType:] + 2010 (PUGSwipeViewControllerV1.m:2010)
23 putong 0x1088f5658 -[PUGSwipeViewControllerV1 userCard:didEndPanningWithOffset:velocity:] + 1828 (PUGSwipeViewControllerV1.m:1828)
24 putong 0x10892f3ac -[PUGUserCardViewV1(Swiping) endPanning:] + 100 (PUGUserCardViewV1+Swiping.m:100)
25 putong 0x10892ee48 -[PUGUserCardViewV1(Swiping) panCard:] + 71 (PUGUserCardViewV1+Swiping.m:71)
26 UIKitCore 0x1bf285ca4 -[UIGestureRecognizerTarget sendActionWithGestureRecognizer:] + 48
27 UIKitCore 0x1bf28f19c
UIGestureRecognizerSendTargetActions + 124
28 UIKitCore 0x1bf28bbf0 UIGestureRecognizerSendActions + 352
29 UIKitCore 0x1bf28b168 -[UIGestureRecognizer
updateGestureForActiveEvents] + 652
30 UIKitCore 0x1bf27ebd8 UIGestureEnvironmentUpdate + 2148
31 UIKitCore 0x1bf27e328 -[UIGestureEnvironment
deliverEvent:toGestureRecognizers:usingBlock:] + 372
32 UIKitCore 0x1bf27e0f4 -[UIGestureEnvironment updateForEvent:window:] + 232
33 UIKitCore 0x1bf6e9c48 -[UIWindow sendEvent:] + 3440
34 UIKitCore 0x1bf6c58ec -[UIApplication sendEvent:] + 344
35 UIKitCore 0x1bf746970
dispatchPreprocessedEventFromEventQueue + 6808
36 UIKitCore 0x1bf7494ec
handleEventQueueInternal + 5364
37 UIKitCore 0x1bf741168
handleHIDEventFetcherDrain + 140
38 CoreFoundation 0x1bb577ad8 CFRUNLOOP
ISCALLINGOUTTOASOURCE0PERFORMFUNCTION + 24
39 CoreFoundation 0x1bb577a30
CFRunLoopDoSource0 + 80
40 CoreFoundation 0x1bb5771b8
CFRunLoopDoSources0 + 184
41 CoreFoundation 0x1bb5721e8
_CFRunLoopRun + 788
42 CoreFoundation 0x1bb571ba8 CFRunLoopRunSpecific + 424
43 GraphicsServices 0x1c56e1344 GSEventRunModal + 160
44 UIKitCore 0x1bf6ad3e4 UIApplicationMain + 1932
45 putong 0x109e12b88 main + 43 (main.m:43)
46 libdyld.dylib 0x1bb3f98f0 start + 4

Replies

This looks like it's due to a zombie object. Please see our documentation about investigating zombies.