如何理解这次崩溃?:SIGBUS BUS_ADRALN

bru*_*h51 5 crash crash-reports sigbus ios

多数民众赞成在堆栈跟踪,我不明白这个错误:

0   CoreFoundation  0x30f57648 ___CFBasicHashFindBucket_Linear_NoCollision + 92  
1   CoreFoundation  0x30f59688 __CFBasicHashAddValue + 692
2   CoreFoundation  0x30eaff9f CFDictionarySetValue + 74
3   UIKit   0x35721a0b -[UITouchesEvent _gestureRecognizersForWindow:] + 282
4   UIKit   0x357215d5 -[UIWindow _sendGesturesForEvent:] + 28
5   UIKit   0x357214ab -[UIWindow sendEvent:] + 66
6   UIKit   0x3570a313 -[UIApplication sendEvent:] + 298
7   UIKit   0x35709c53 _UIApplicationHandleEvent + 5090
8   GraphicsServices    0x31a11e77 PurpleEventCallback + 666
9   CoreFoundation  0x30f1ba97     __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
10  CoreFoundation  0x30f1d83f __CFRunLoopDoSource1 + 166
11  CoreFoundation  0x30f1e60d __CFRunLoopRun + 520
12  CoreFoundation  0x30eaeec3 CFRunLoopRunSpecific + 230
13  CoreFoundation  0x30eaedcb CFRunLoopRunInMode + 58
14  GraphicsServices    0x31a1141f GSEventRunModal + 114
15  GraphicsServices    0x31a114cb GSEventRun + 62
16  UIKit   0x35734d69 -[UIApplication _run] + 404
17  UIKit   0x35732807 UIApplicationMain + 670
18  AppName 0x00002e3b 0x1000 + 7739  
Run Code Online (Sandbox Code Playgroud)

有时发生崩溃,我不知道它发生了什么样的动作.

我如何理解这个问题并解决我的问题?

Fai*_*mon 2

我认为问题可能是您正在为多个基于 UIView 的对象重复使用手势对象。它们不能重复使用。我过去也遇到过类似的问题(不完全相同的崩溃)。它的文档强调了该限制。我认为存在内部状态(崩溃中看到的哈希表),对于基于不同 UI 视图的对象,它以冲突的方式进行更新。

如果您不重复使用它们,请尝试暂时删除所有它们,以确认系统在其他方面是否稳定。