如何识别崩溃日志中的错误

时间:2011-02-25 18:09:48

标签: iphone nsxmlparser nsoperation nsoperationqueue

我的应用程序在构建和调试时效果很好但是当我自己运行时,由于其他一些问题它会崩溃。
我有一个NSObject类,一个UITableView类,一个UIView类,一个UITableViewCell类和一个NSOperation类。 是否有任何机构有类似的问题,或者是否有人可以帮助我。

Application Specific Information:
objc_msgSend() selector name: release
iPhone Simulator 235, iPhone OS 4.2 (iPhone/8C134)

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                 0x01134a67 objc_msgSend + 27
1   UIKit                           0x004ab1e2 -[UITableViewCell removeFromSuperview] + 167
2   UIKit                           0x003249d9 -[UIView dealloc] + 340
3   UIKit                           0x0032e281 -[UIScrollView dealloc] + 341
4   UIKit                           0x003661ce -[UITableView dealloc] + 1085
5   Foundation                      0x000698da __delayedPerformCleanup + 59
6   CoreFoundation                  0x00f4bbde CFRunLoopTimerInvalidate + 446
7   CoreFoundation                  0x00fb57d7 __CFRunLoopDoTimer + 1799
8   CoreFoundation                  0x00f11cc9 __CFRunLoopRun + 1817
9   CoreFoundation                  0x00f11240 CFRunLoopRunSpecific + 208
10  CoreFoundation                  0x00f11161 CFRunLoopRunInMode + 97
11  GraphicsServices                0x01874268 GSEventRunModal + 217
12  GraphicsServices                0x0187432d GSEventRun + 115
13  UIKit                           0x002fa42e UIApplicationMain + 1160
14  Time                            0x00001e08 main + 102 (main.m:14)
15  Time                        0x00001d99 start + 53

1 个答案:

答案 0 :(得分:1)

此技术说明包含有关崩溃日志的技术信息:

http://developer.apple.com/library/mac/#technotes/tn2004/tn2123.html

但是,您遇到调试问题,而不是崩溃日志问题。

请参阅此处的调试提示:

http://www.cocoadev.com/index.pl?DebuggingTechniques

解释崩溃日志需要练习。这里的人看到这个:removeFromSuperview并立刻想到“啊哈,一个线索!这可能是一个内存问题”,因为removeFromSuperview将删除一个视图,然后减少它的保留计数。如果保留计数已经为零,则再减少一次可能会导致崩溃。因此,他们认为你过度发布了UITableViewCell

检查您的UITableViewCell是否有alloc / init,release或autorelease ...

相关问题