【问题标题】:iphone application crashes only in device and when profiling with instrumentsiphone 应用程序仅在设备中和使用仪器进行分析时崩溃
【发布时间】: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 我的意思是你能把你的评论作为答案,以便我可以标记它。

标签: iphone crash


【解决方案1】:

您是在分析应用的发布版本还是调试版本?如果 Release 那么我相信你应该仍然能够解码崩溃日志。请通过打开 XCode Organizer -> 该设备的设备日志进行检查。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 2023-04-04
    • 1970-01-01
    • 2023-04-04
    • 2022-01-19
    相关资源
    最近更新 更多