【问题标题】:iOS app crashes but crash logs has no relevant informationiOS 应用程序崩溃但崩溃日志没有相关信息
【发布时间】:2014-07-05 04:43:38
【问题描述】:

我的 iOS 应用程序崩溃了,它没有显示任何我可以查看的相关文件名(仅显示 main.m)。关于问题可能是什么的任何指示?

Exception Type:             SIGSEGV
Exception Codes:            SEGV_ACCERR at 0x7ebf14b8
Crashed Thread:             0

Thread 0 Crashed:
0   libobjc.A.dylib                     0x3892860c objc_retain + 12
1   CoreData                            0x2defa915 -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 4013
2   CoreFoundation                      0x2e144f41 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 13
3   CoreFoundation                      0x2e0b8da9 _CFXNotificationPost + 1721
4   Foundation                          0x2eaa3cc5 -[NSNotificationCenter postNotificationName:object:userInfo:] + 73
5   CoreData                            0x2def994b -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 79
6   CoreData                            0x2def98e3 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 299
7   CoreData                            0x2def7f9f -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 2323
8   CoreData                            0x2df61c21 -[NSManagedObjectContext(_NestedContextSupport) _parentProcessSaveRequest:inContext:error:] + 1313
9   CoreData                            0x2df6256f __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 563
10  libdispatch.dylib                   0x38e08b3b _dispatch_barrier_sync_f_slow_invoke + 71
11  libdispatch.dylib                   0x38e02d3f _dispatch_client_callout + 23
12  libdispatch.dylib                   0x38e056c3 _dispatch_main_queue_callback_4CF + 279
13  CoreFoundation                      0x2e14d681 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
14  CoreFoundation                      0x2e14bf4d __CFRunLoopRun + 1309
15  CoreFoundation                      0x2e0b6769 CFRunLoopRunSpecific + 525
16  CoreFoundation                      0x2e0b654b CFRunLoopRunInMode + 107
17  GraphicsServices                    0x330236d3 GSEventRunModal + 139
18  UIKit                               0x30a15891 UIApplicationMain + 1137
19  MyApp                               0x00034f7f main (main.m:18)

【问题讨论】:

  • 你能给我们看一些代码吗?
  • 看起来是内存问题。你能在 Xcode 中调试应用程序时重现这个崩溃吗?是这样,打开僵尸并在日志中查找有关向已释放对象发送消息的消息。

标签: ios crash-reports


【解决方案1】:

您需要启用符号化以查看您的代码中导致崩溃的位置。

欲了解更多信息,请查看此Apple DocumentationStack Overflow 上的此答案

【讨论】:

  • 查看堆栈跟踪。该错误不在应用程序的代码中。它来自 CoreData。
  • 是的,它来自CoreData,但不知道导致崩溃的代码在哪里。他可以设置断点,也可以启用符号化以查看此崩溃来自的类名。只是我的意见
  • 他的应用程序在堆栈中列出一次 - 在底部 - 在 main。您不能在 CoreData 中放置断点,并且符号化不会提供有关该应用程序的更多信息,因为该应用程序不在堆栈跟踪中(main 除外)。
猜你喜欢
  • 2015-02-18
  • 2012-11-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-01-27
  • 2013-08-02
相关资源
最近更新 更多