在processPendingChanges期间,iPhone核心数据崩溃

时间:2011-07-22 00:13:28

标签: iphone ios ios4 crash

难以追踪我们的iPhone应用中发生的错误。这就是我们所知道的......

  • 与CoreData相关
  • 在dealloc期间发生
  • 间歇性地发生,难以复制
  • 跨越多个iOS / iPhone版本

堆栈追踪:

0:in `0x000d0147 ht_handle_signal + 94'
libsystem_c.dylib:1:in `0x3363a72f _sigtramp + 42'
CoreData:2:in `0x3295399d -[NSTemporaryObjectID dealloc] + 24'
CoreData:3:in `0x32953871 -[NSTemporaryObjectID release] + 40'
CoreData:4:in `0x328f25f9 -[NSManagedObject dealloc] + 164'
CoreData:5:in `0x32898a75 -[_PFManagedObjectReferenceQueue _processReferenceQueue:] + 1876'
CoreData:6:in `0x328bd295 -[NSManagedObjectContext(_NSInternalNotificationHandling) _processReferenceQueue:] + 24'
CoreData:7:in `0x328bcf45 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1756'
CoreData:8:in `0x328fe3a5 -[NSManagedObjectContext processPendingChanges] + 16'
CoreData:9:in `0x3289827f _performRunLoopAction + 126'
CoreFoundation:10:in `0x332d1a35 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16'
CoreFoundation:11:in `0x332d3465 __CFRunLoopDoObservers + 412'
CoreFoundation:12:in `0x332d475b __CFRunLoopRun + 854'
CoreFoundation:13:in `0x33264ec3 CFRunLoopRunSpecific + 230'
CoreFoundation:14:in `0x33264dcb CFRunLoopRunInMode + 58'
GraphicsServices:15:in `0x33dcd41f GSEventRunModal + 114'
GraphicsServices:16:in `0x33dcd4cb GSEventRun + 62'
UIKit:17:in `0x32db1d69 -[UIApplication _run] + 404'
UIKit:18:in `0x32daf807 UIApplicationMain + 670'
:19:in `0x00002975 main + 48'
:20:in `0x00002940 start + 40'

我们如何进一步调试,似乎很难在使用CoreData的大型应用程序中固定代码的特定区域。

备用堆栈跟踪,我们怀疑的错误相同:

Bus error: 0x00002e55 main + 48
:0:in `0x000cdaf1 ht_handle_signal + 92'
libSystem.B.dylib:1:in `0x35de2487 _sigtramp + 34'
CoreData:2:in `0x34985dbb -[NSManagedObject dealloc] + 174'
CoreData:3:in `0x3496cc4b -[_PFManagedObjectReferenceQueue _processReferenceQueue:] + 1914'
CoreData:4:in `0x3496c4c5 -[NSManagedObjectContext(_NSInternalNotificationHandling) _processReferenceQueue:] + 24'
CoreData:5:in `0x3496c20b -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 1762'
CoreData:6:in `0x349a21c9 -[NSManagedObjectContext processPendingChanges] + 16'
CoreData:7:in `0x3499473d _performRunLoopAction + 124'
CoreFoundation:8:in `0x3752a80f __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18'
CoreFoundation:9:in `0x3752a63d __CFRunLoopDoObservers + 500'
CoreFoundation:10:in `0x3752199d __CFRunLoopRun + 940'
CoreFoundation:11:in `0x3752150b CFRunLoopRunSpecific + 226'
CoreFoundation:12:in `0x37521419 CFRunLoopRunInMode + 60'
GraphicsServices:13:in `0x33e76d24 GSEventRunModal + 196'
UIKit:14:in `0x3591d57c -[UIApplication _run] + 588'
UIKit:15:in `0x3591a558 UIApplicationMain + 972'
:16:in `0x00002e55 main + 48'
:17:in `0x00002e20 start + 40'

0 个答案:

没有答案