【发布时间】:2012-03-21 10:28:44
【问题描述】:
我无法在我的 iphone 应用程序中找到崩溃的原因。它仅在它在设备中时才会崩溃。但是当断点打开时,它不会崩溃。崩溃后,在管理器控制台中会打印以下日志.
Mar 21 15:43:16 abc-Ss-iPhone com.apple.SpringBoard[15] <Notice>: CoreAnimation: timed out fence 1f4
Mar 21 15:43:18 abc-Ss-iPhone ReportCrash[1771] <Notice>: Formulating crash report for process aaa[1770]
Mar 21 15:43:18 abc-Ss-iPhone com.apple.launchd[1] (UIKitApplication:com.xxx.aaa[0x3989][1770]) <Warning>: (UIKitApplication:com.xxx.aaa[0x3989]) Job appears to have crashed: Segmentation fault: 11
Mar 21 15:43:18 abc-Ss-iPhone SpringBoard[15] <Warning>: Application 'aaa' exited abnormally with signal 11: Segmentation fault: 11
我已经输入NSLog 来查找崩溃的位置。它指向我正在重新加载 tableview 的区域。
我正在 bg 线程中进行一些计算,并使用以下代码在主线程中重新加载表:
//////////////////////////////in bg thread
if(needToReload){
NSLog(@"calc end---table refresh called");
[self performSelectorOnMainThread:@selector(updateTable) withObject:nil waitUntilDone:YES];
}
【问题讨论】:
-
您是在分析应用的发布版本还是调试版本。如果 Release 那么我相信你仍然应该能够解码崩溃日志。你收到崩溃日志了吗? (当您在 XCode Organizer 中打开该设备的设备日志时)?
-
好的,感谢 viewcontroller 提前发布了
-
你能把它标记为答案吗
-
不,不能将评论标记为答案。但是,您可以添加自己的答案。除非你想让我添加我的评论作为答案。
-
@Amiramix 我的意思是你能把你的评论作为答案,以便我可以标记它。