首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iPhone:应用程序崩溃与框架中的泄漏?还是我的错?

iPhone:应用程序崩溃与框架中的泄漏?还是我的错?
EN

Stack Overflow用户
提问于 2010-07-08 01:45:34
回答 2查看 2K关注 0票数 0

在我的应用程序崩溃后,我得到了以下崩溃日志:

代码语言:javascript
复制
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

或者,另一次:

代码语言:javascript
复制
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

这是怎么回事?我的意思是-我的应用程序在main-method中处于堆栈跟踪的底部...我检查了内存泄漏-什么都没有...

谢谢你的帮助!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-07-08 01:49:45

我最好的猜测是某个.xib视图中的某些内容链接不正确。另一个常见的原因是调用了一个已经从内存中释放的对象。试着用NSZombieEnabled追踪这个

票数 3
EN

Stack Overflow用户

发布于 2010-07-08 01:52:05

您缺少了xib和它的控制器之间的连接。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3197405

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档