核心数据无法处理事务日志

时间:2014-04-13 15:46:04

标签: ios core-data icloud

我在Crashlytics收到崩溃报告,但有以下例外情况。

  

致命异常:NSInvalidArgumentException核心数据:无处不在:

     

无法处理事务日志位置:: / var / mobile / Library / Mobile   文档/ 446F8WSMM7〜....〜/ CloudLogs / CA12AE9B-73E3-4D91-A213-7D1C9B4FBD2C /移动〜74894246-275A-40C0-B533-679A3FF50584 / CA12AE9B-73E3-4D91-A213-7D1C9B4FBD2C / pqMAN_WUmVCDyym_K497rYvOLRFh9LsAdjD6Ru1IiTA = /移动〜74894246 -275A-40C0-B533-679A3FF50584.0.cdt,   并不表示实际代表交易日志位置。

我无法重现此问题,我不确定可能导致此问题的原因。有没有人经历过这个并知道如何解决它?

这是我获得异常的线程的堆栈跟踪。

Thread : Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x00000001852f2950 __exceptionPreprocess + 132
1  libobjc.A.dylib                0x00000001917f81fc objc_exception_throw + 60
2  CoreData                       0x00000001851402a8 -[PFUbiquityTransactionLog initWithStoreName:andSaveSnapshot:andRootLocation:]
3  CoreData                       0x000000018514d364 -[PFUbiquityTransactionLogMigrator migrateTransactionLogFromLocation:toLocation:error:] + 588
4  CoreData                       0x000000018514cf88 -[PFUbiquityTransactionLogMigrator migrateTransactionLogsForStoreName:andLocalPeerID:atUbiquityRootLocation:error:] + 456
5  CoreData                       0x0000000185157548 -[PFUbiquityMigrationManager migrateTransactionLogs:andBaselineIfNecessaryForStoreName:peerID:error:] + 480
6  CoreData                       0x0000000185169f44 -[PFUbiquitySetupAssistant initializeBaselineForStore:error:] + 2848
7  CoreData                       0x0000000185166e70 -[PFUbiquitySetupAssistant finishSetupForStore:error:] + 2104
8  CoreData                       0x0000000185166384 -[PFUbiquitySetupAssistant finishSetupWithRetry:] + 52
9  CoreData                       0x000000018512f684 __57-[PFUbiquitySwitchboardEntry executeBlockOnPrivateQueue:]_block_invoke + 72
10 libdispatch.dylib              0x0000000191dd0014 _dispatch_call_block_and_release + 24
11 libdispatch.dylib              0x0000000191dcffd4 _dispatch_client_callout + 16
12 libdispatch.dylib              0x0000000191dd64a8 _dispatch_queue_drain + 640
13 libdispatch.dylib              0x0000000191dd24c0 _dispatch_queue_invoke + 68
14 libdispatch.dylib              0x0000000191dd70f4 _dispatch_root_queue_drain + 104
15 libdispatch.dylib              0x0000000191dd74fc _dispatch_worker_thread2 + 76
16 libsystem_pthread.dylib        0x0000000191f656bc _pthread_wqthread + 356
17 libsystem_pthread.dylib        0x0000000191f6554c start_wqthread + 4

报告崩溃的线程的堆栈跟踪。

Thread : Crashed: com.apple.coredata.ubiquity.entry.pq
0  libsystem_kernel.dylib         0x0000000191ee658c __pthread_kill + 8
1  libsystem_pthread.dylib        0x0000000191f6916c pthread_kill + 104
2  libsystem_c.dylib              0x0000000191e7a808 abort + 112
3  libc++abi.dylib                0x00000001910a0994 __cxa_bad_cast
4  libc++abi.dylib                0x00000001910bdc2c default_unexpected_handler()
5  libobjc.A.dylib                0x00000001917f84d4 _objc_terminate() + 128
6  libc++abi.dylib                0x00000001910bb168 std::__terminate(void (*)()) + 16
7  libc++abi.dylib                0x00000001910bad3c __cxa_rethrow + 144
8  libobjc.A.dylib                0x00000001917f83a8 objc_exception_rethrow + 44
9  CoreData                       0x0000000185166dd8 -[PFUbiquitySetupAssistant finishSetupForStore:error:] + 1952
10 CoreData                       0x0000000185166384 -[PFUbiquitySetupAssistant finishSetupWithRetry:] + 52
11 CoreData                       0x000000018512f684 __57-[PFUbiquitySwitchboardEntry executeBlockOnPrivateQueue:]_block_invoke + 72
12 libdispatch.dylib              0x0000000191dd0014 _dispatch_call_block_and_release + 24
13 libdispatch.dylib              0x0000000191dcffd4 _dispatch_client_callout + 16
14 libdispatch.dylib              0x0000000191dd64a8 _dispatch_queue_drain + 640
15 libdispatch.dylib              0x0000000191dd24c0 _dispatch_queue_invoke + 68
16 libdispatch.dylib              0x0000000191dd70f4 _dispatch_root_queue_drain + 104
17 libdispatch.dylib              0x0000000191dd74fc _dispatch_worker_thread2 + 76
18 libsystem_pthread.dylib        0x0000000191f656bc _pthread_wqthread + 356

0 个答案:

没有答案