iphone - iPhone:应用程序崩溃并泄漏框架?还是我的错?

标签 iphone crash

应用崩溃后,我获得了以下崩溃日志:

0   libobjc.A.dylib                 0x000034f4 objc_msgSend + 20
1   UIKit                           0x000a9248 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 644
2   UIKit                           0x000a8eac -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 44
3   UIKit                           0x0006f480 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1300
4   UIKit                           0x0006ce40 -[UITableView layoutSubviews] + 200
5   UIKit                           0x00014ab0 -[UIView(CALayerDelegate) _layoutSublayersOfLayer:] + 32
6   CoreFoundation                  0x000285ba -[NSObject(NSObject) performSelector:withObject:] + 18
7   QuartzCore                      0x0000a61c -[CALayer layoutSublayers] + 176
8   QuartzCore                      0x0000a2a4 CALayerLayoutIfNeeded + 192
9   QuartzCore                      0x00009bb0 CA::Context::commit_transaction(CA::Transaction*) + 256
10  QuartzCore                      0x000097d8 CA::Transaction::commit() + 276
11  QuartzCore                      0x000119d8 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
12  CoreFoundation                  0x00074244 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
13  CoreFoundation                  0x00075d9e __CFRunLoopDoObservers + 494
14  CoreFoundation                  0x000772f6 __CFRunLoopRun + 934
15  CoreFoundation                  0x0001e0bc CFRunLoopRunSpecific + 220
16  CoreFoundation                  0x0001dfca CFRunLoopRunInMode + 54
17  GraphicsServices                0x00003f88 GSEventRunModal + 188
18  UIKit                           0x00007b40 -[UIApplication _run] + 564
19  UIKit                           0x00005fb8 UIApplicationMain + 964
20  my_app                      0x0000291e main (main.m:14)
21  my_app                      0x000028c8 start + 32

或者,另一次:
0   libobjc.A.dylib                 0x00003508 objc_msgSend + 40
1   CoreFoundation                  0x00027348 -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
2   UIKit                           0x00009ae4 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 276
3   UIKit                           0x00009b04 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 308
4   UIKit                           0x00009b04 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 308
5   UIKit                           0x00009b04 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 308
6   UIKit                           0x00009b04 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 308
7   UIKit                           0x000099bc -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:] + 28
8   UIKit                           0x000095d4 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 448
9   UIKit                           0x00009400 -[UIView(Hierarchy) addSubview:] + 28
10  UIKit                           0x0009b788 +[UIViewControllerWrapperView wrapperViewForView:frame:] + 328
11  UIKit                           0x0009e42c -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 140
12  UIKit                           0x0009e38c -[UITabBarController transitionFromViewController:toViewController:] + 32
13  UIKit                           0x0009d9d0 -[UITabBarController _setSelectedViewController:] + 248
14  UIKit                           0x0009d8c8 -[UITabBarController setSelectedViewController:] + 12
15  UIKit                           0x000b8e54 -[UITabBarController _tabBarItemClicked:] + 308
16  CoreFoundation                  0x00027348 -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
17  UIKit                           0x0008408c -[UIApplication sendAction:to:from:forEvent:] + 128
18  UIKit                           0x00083ff4 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
19  UIKit                           0x000b8c7c -[UITabBar _sendAction:withEvent:] + 416
20  CoreFoundation                  0x00027348 -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
21  UIKit                           0x0008408c -[UIApplication sendAction:to:from:forEvent:] + 128
22  UIKit                           0x00083ff4 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
23  UIKit                           0x00083fbc -[UIControl sendAction:to:forEvent:] + 44
24  UIKit                           0x00083c0c -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 528
25  UIKit                           0x000b8acc -[UIControl sendActionsForControlEvents:] + 16
26  UIKit                           0x000b890c -[UITabBar(Static) _buttonUp:] + 108
27  CoreFoundation                  0x00027348 -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
28  UIKit                           0x0008408c -[UIApplication sendAction:to:from:forEvent:] + 128
29  UIKit                           0x00083ff4 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
30  UIKit                           0x00083fbc -[UIControl sendAction:to:forEvent:] + 44
31  UIKit                           0x00083c0c -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 528
32  UIKit                           0x00084484 -[UIControl touchesEnded:withEvent:] + 452
33  UIKit                           0x000824e4 -[UIWindow _sendTouchesForEvent:] + 580
34  UIKit                           0x00081b18 -[UIWindow sendEvent:] + 388
35  UIKit                           0x0007c034 -[UIApplication sendEvent:] + 444
36  UIKit                           0x0007b7e8 _UIApplicationHandleEvent + 6704
37  GraphicsServices                0x00004edc PurpleEventCallback + 1024
38  CoreFoundation                  0x000742ac __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 22
39  CoreFoundation                  0x000761d6 __CFRunLoopDoSource1 + 158
40  CoreFoundation                  0x0007718e __CFRunLoopRun + 574
41  CoreFoundation                  0x0001e0bc CFRunLoopRunSpecific + 220
42  CoreFoundation                  0x0001dfca CFRunLoopRunInMode + 54
43  GraphicsServices                0x00003f88 GSEventRunModal + 188
44  UIKit                           0x00007b40 -[UIApplication _run] + 564
45  UIKit                           0x00005fb8 UIApplicationMain + 964
46  my_app                      0x00002ba2 main (main.m:14)
47  my_app                      0x00002b4c start + 32

怎么了我的意思是-我的应用程序位于主方法中堆栈跟踪的底部...我检查了内存泄漏-没什么...

谢谢你的帮助!

最佳答案

我最好的猜测是,在您的一个.xib View 中某些内容未正确链接。造成此问题的另一个常见原因是正在调用的对象已经从内存中释放出来。尝试使用NSZombieEnabled进行跟踪

关于iphone - iPhone:应用程序崩溃并泄漏框架?还是我的错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3197405/

相关文章:

iphone - 以编程方式向 UITextView 中的特定区域添加一些文本?

iphone - 从 MAC 地址识别设备类型

iphone - 返回结果时搜索显示 Controller 崩溃

删除临时文件时,C# 应用程序无一异常(exception)地退出

Android:应用程序在开始新 Activity 时崩溃

objective-c - [__NSArrayM objectAtIndex :]: index 2 beyond bounds [0 . 。 1]'

ios - 单元测试 Swift- 从 Storyboard 中转换 View Controller 不起作用

ios - 数据库中最后插入的行 id 已成功插入但获取该 id 为 0?

iphone - 由于 NSManagedObjectContext 保存而更新 NSFetchedResultsController 时延迟 UITableView 更新

Linux Fultter 桌面 - 无法从已编译的可执行文件运行应用程序,flutter run 有效