Receiving random crash reports related to NSFetchedResultsController updates to a UITableView, but I'm having a difficult time deciphering the crash log since it's all internal iOS methods.
This occurs at random times after data is fetched from a server in a background queue and the app populates new NSManagedObjects in the background into a Core Data Persistent Store.
Does anyone have an understanding of what may be going on here?
SIGSEGV
0 libobjc.A.dylib 0x3930b752 lookUpImpOrForward + 46
1 libobjc.A.dylib 0x39303feb _class_lookupMethodAndLoadCache3 + 35
2 libobjc.A.dylib 0x39303db9 _objc_msgSend_uncached + 25
3 UIKit 0x317b2bbf __66-[UISectionRowData refreshWithSection:tableView:tableViewRowData:]_block_invoke + 451
4 UIKit 0x31778179 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 3717
5 UIKit 0x3189c95b -[UITableViewRowData ensureAllSectionsAreValid] + 167
6 UIKit 0x31873f29 -[UITableView _endCellAnimationsWithContext:] + 217
7 CoreData 0x2ecae7dd -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 4013
8 CoreFoundation 0x2eef4121 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 13
9 CoreFoundation 0x2ee68317 _CFXNotificationPost + 1719
10 Foundation 0x2f84cdcd -[NSNotificationCenter postNotificationName:object:userInfo:] + 77
11 CoreData 0x2ecad813 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 79
12 CoreData 0x2ecad7ab -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 299
13 CoreData 0x2ecabe13 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 2367
14 CoreData 0x2ed159e3 -[NSManagedObjectContext(_NestedContextSupport) _parentProcessSaveRequest:inContext:error:] + 1315
15 CoreData 0x2ed1632f __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 563
16 libdispatch.dylib 0x397f31a7 _dispatch_barrier_sync_f_slow_invoke + 67
17 libdispatch.dylib 0x397ebd67 _dispatch_client_callout + 23
18 libdispatch.dylib 0x397f27c1 _dispatch_main_queue_callback_4CF$VARIANT$mp + 269
19 CoreFoundation 0x2eefc821 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
20 CoreFoundation 0x2eefb0f5 __CFRunLoopRun + 1301
21 CoreFoundation 0x2ee65ce7 CFRunLoopRunSpecific + 523
22 CoreFoundation 0x2ee65acb CFRunLoopRunInMode + 107
23 GraphicsServices 0x33b86283 GSEventRunModal + 139
24 UIKit 0x31707a41 UIApplicationMain + 1137
25 0x000ba53f main (main.m:16)
Related
this is a stack trace from Flurry crash analytics. Any Idea what is going wrong in my Core Data table view implementation?
Full Stack Trace:
0 CoreFoundation 0x182d5c2d8 <redacted> + 132
1 libobjc.A.dylib 0x194a280e4 _objc_exception_throw + 60
2 CoreFoundation 0x182d5c218 -[NSException initWithCoder:] + 0
3 CoreData 0x182a1fbc8 -[_PFBatchFaultingArray objectAtIndex:] + 204
4 Appname 0x1000615e0 -[MasterViewController configureCell:atIndexPath:] + 124
5 Appname 0x1000613b8 -[MasterViewController controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:] + 580
6 CoreData 0x182b22d60 <redacted> + 4124
7 CoreData 0x182aa1218 <redacted> + 200
8 CoreData 0x182aa10e4 -[NSManagedObjectContext performBlockAndWait:] + 256
9 CoreData 0x182a2c650 -[NSFetchedResultsController _managedObjectContextDidChange:] + 124
10 CoreFoundation 0x182d022c4 <redacted> + 20
11 CoreFoundation 0x182c3f450 __CFXNotificationPost + 2060
12 Foundation 0x183b6ea80 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
13 CoreData 0x182a2c5ac -[NSManagedObjectContext _postObjectsDidChangeNotificationWithUserInfo:] + 88
14 CoreData 0x182a2c52c -[NSManagedObjectContext _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 364
15 CoreData 0x182a2a9d4 -[NSManagedObjectContext _processRecentChanges:] + 2552
16 CoreData 0x182a22dc4 <redacted> + 384
17 CoreFoundation 0x182d142a4 <redacted> + 32
18 CoreFoundation 0x182d11230 <redacted> + 360
19 CoreFoundation 0x182d11610 <redacted> + 836
20 CoreFoundation 0x182c3d2d4 _CFRunLoopRunSpecific + 396
21 GraphicsServices 0x18c6936fc _GSEventRunModal + 168
22 UIKit 0x18783af40 _UIApplicationMain + 1488
23 Appname 0x1000d8d0c -[MainRowType .cxx_destruct] + 180
24 libdyld.dylib 0x1950d2a08 <redacted> + 4
Thanks for help !
you are getting some exception and you are using that exception to init with coder.
The object which contains info is nil and calling init with coder. so it will be good to check nil before proceeding object.
We can't say more without code ;)
This crash has been asked on stackoverflow before here iphone app crash bad access exception DataDetectorsCore processToken, but no one gave an answer. Can someone please help me out here. Any tips or suggestions are appreciated. Here is my raw data given from crashlytic.
Thread : com.crashlytics.analytics.high-priority
0 libsystem_kernel.dylib 0x3927fad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x391ccde5 _dispatch_semaphore_wait_slow + 176
2 UIKit 0x30d0bba3 _addBackgroundTask + 558
3 UIKit 0x30d151a7 -[UIApplication beginBackgroundTaskWithExpirationHandler:] + 14
4 MyApp 0x0014652b -[CLSAnalyticsController maintainSessionFragments:]
5 MyApp 0x001463b3 -[CLSAnalyticsController maintainSessionFragmentsIgnoringError]
6 MyApp 0x00143ceb -[CLSAnalyticsController handlePriorityTriggeredMaintainSessionFragmentForEvent:]
7 MyApp 0x00143fc3 __35-[CLSAnalyticsController logEvent:]_block_invoke
8 libdispatch.dylib 0x391c70af _dispatch_client_callout + 22
9 libdispatch.dylib 0x391cb8f3 _dispatch_barrier_sync_f_invoke + 26
10 MyApp 0x00143b89 -[CLSAnalyticsController dispatchToQueue:asynchronous:block:]
11 MyApp 0x00143f07 -[CLSAnalyticsController logEvent:]
12 MyApp 0x00143c5b -[CLSAnalyticsController applicationLifecycleEvent:]
13 CoreFoundation 0x2e4fde71 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14 CoreFoundation 0x2e471ab1 _CFXNotificationPost + 1720
15 Foundation 0x2ee57ec5 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
16 UIKit 0x30d25fd5 -[UIApplication _deactivateForReason:notify:] + 460
17 UIKit 0x30cc5b4b -[UIApplication handleEvent:withNewEvent:] + 3466
18 UIKit 0x30cc4cfd -[UIApplication sendEvent:] + 72
19 UIKit 0x30d2a321 _UIApplicationHandleEvent + 664
20 GraphicsServices 0x3317e76d _PurpleEventCallback + 608
21 CoreFoundation 0x2e506f1f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
22 CoreFoundation 0x2e5063e7 __CFRunLoopDoSources0 + 206
23 CoreFoundation 0x2e504bd7 __CFRunLoopRun + 630
24 CoreFoundation 0x2e46f471 CFRunLoopRunSpecific + 524
25 CoreFoundation 0x2e46f253 CFRunLoopRunInMode + 106
26 GraphicsServices 0x3317d2eb GSEventRunModal + 138
27 UIKit 0x30d24845 UIApplicationMain + 1136
28 MyApp 0x000617e7 main (main.m:16)
I'm facing a strange CoreData related crash.
I'm using RestKit2 which has parent-child relationship between mainMOC and persistentMOC.
What seems to cause the crash (but hardly reproducable) is to store a new entity into CoreData (using mainMOC) and later try to retrieve object having relationship with previously stored entity (again using main MOC).
Stack trace doesn't contain any indication that it's coming from my code. Seems something fishy in merging the two contexts.
Crash happens on both iOS7 and iOS8 and on both Device and Simulator.
Does someone have experience with this?
2014-10-15 11:25:56.208 MyApplication[77240:14758953] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The left hand side for an ALL or ANY operator must be either an NSArray or an NSSet.'
*** First throw call stack:
(
0 CoreFoundation 0x04e97df6 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x04b21a97 objc_exception_throw + 44
2 Foundation 0x04179816 -[NSEqualityPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 0
3 Foundation 0x04178b05 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 345
4 Foundation 0x0426e387 -[NSSubqueryExpression expressionValueWithObject:context:] + 627
5 Foundation 0x04178c8c -[NSFunctionExpression expressionValueWithObject:context:] + 231
6 Foundation 0x04178aa2 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 246
7 Foundation 0x041a9776 -[NSCompoundPredicateOperator evaluatePredicates:withObject:substitutionVariables:] + 254
8 Foundation 0x041a95ec -[NSCompoundPredicate evaluateWithObject:substitutionVariables:] + 292
9 Foundation 0x041a9776 -[NSCompoundPredicateOperator evaluatePredicates:withObject:substitutionVariables:] + 254
10 Foundation 0x041a95ec -[NSCompoundPredicate evaluateWithObject:substitutionVariables:] + 292
11 Foundation 0x041789a4 -[NSPredicate evaluateWithObject:] + 48
12 CoreData 0x048d836d -[NSFetchedResultsController(PrivateMethods) _objectInResults:] + 109
13 CoreData 0x048d9d10 -[NSFetchedResultsController(PrivateMethods) _preprocessUpdatedObjects:insertsInfo:deletesInfo:updatesInfo:sectionsWithDeletes:newSectionNames:treatAsRefreshes:] + 672
14 CoreData 0x048db28a __77-[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:]_block_invoke + 1946
15 CoreData 0x047e8454 developerSubmittedBlockToNSManagedObjectContextPerform + 196
16 CoreData 0x047e8337 -[NSManagedObjectContext performBlockAndWait:] + 231
17 CoreData 0x048daacf -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 127
18 Foundation 0x0411b929 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 40
19 CoreFoundation 0x04e62974 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
20 CoreFoundation 0x04d5061b _CFXNotificationPost + 3051
21 Foundation 0x0410af26 -[NSNotificationCenter postNotificationName:object:userInfo:] + 98
22 CoreData 0x047c94d3 -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 83
23 CoreData 0x0486954f -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 367
24 CoreData 0x047c4d78 -[NSManagedObjectContext(_NSInternalChangeProcessing) _postRefreshedObjectsNotificationAndClearList] + 136
25 CoreData 0x047c483b -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 4875
26 CoreData 0x047c3516 -[NSManagedObjectContext processPendingChanges] + 54
27 CoreData 0x047969d7 _performRunLoopAction + 327
28 CoreFoundation 0x04dbafbe __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
29 CoreFoundation 0x04dbaf00 __CFRunLoopDoObservers + 400
30 CoreFoundation 0x04db093a __CFRunLoopRun + 1226
31 CoreFoundation 0x04db01ab CFRunLoopRunSpecific + 443
32 CoreFoundation 0x04daffdb CFRunLoopRunInMode + 123
33 GraphicsServices 0x05e4224f GSEventRunModal + 192
34 GraphicsServices 0x05e4208c GSEventRun + 104
35 UIKit 0x02f56e16 UIApplicationMain + 1526
36 MyApplication 0x000a9e04 main + 164
37 libdyld.dylib 0x06483ac9 start + 1
)
I'm using TestFlight to distribute a beta app and Crashlytics for crash reporting, but some of the reports I'm getting are pretty useless. Instead of revealing the problematic line of code, the stack trace shows something like this:
-[__TFAppUpdater_Helper .cxx_destruct] + 28868
I have commented out all of the TestFlight SDK calls in my code, but I'm still distributing with TestFlight. I can install the app on my own device via Xcode, bypassing TestFlight, and then Crashlytics produces a helpful report for the same crash. I've seen lots of evidence online that TestFlight and Crashlytics should play nice, but it hasn't been my experience so far.
Example Crashlytics confusing stack trace from an app installed via TestFlight (relevant lines indicated with -->):
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x30709fd3 __exceptionPreprocess + 130
1 libobjc.A.dylib 0x3b1ecccf objc_exception_throw + 38
2 CoreData 0x3045f367 -[NSSQLGenerator newSQLStatementForFetchRequest:ignoreInheritance:countOnly:nestingLevel:] + 914
3 CoreData 0x3045ee97 -[NSSQLAdapter _newSelectStatementWithFetchRequest:ignoreInheritance:] + 406
4 CoreData 0x3045eafd -[NSSQLCore newRowsForFetchPlan:] + 116
5 CoreData 0x3045e23d -[NSSQLCore objectsForFetchRequest:inContext:] + 696
6 CoreData 0x3045dceb -[NSSQLCore executeRequest:withContext:error:] + 446
7 CoreData 0x3045d59d -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 2892
8 CoreData 0x3045b99f -[NSManagedObjectContext executeFetchRequest:error:] + 614
9 CoreData 0x304e9d33 -[NSManagedObjectContext(_NestedContextSupport) _parentObjectsForFetchRequest:inContext:error:] + 398
10 CoreData 0x304ea4ab __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 562
11 libdispatch.dylib 0x3b6d481f _dispatch_client_callout + 22
12 libdispatch.dylib 0x3b6da7cb _dispatch_barrier_sync_f_invoke + 26
13 CoreData 0x304dfdf3 _perform + 102
14 CoreData 0x304ea1ad -[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:] + 240
15 CoreData 0x3045b99f -[NSManagedObjectContext executeFetchRequest:error:] + 614
16 CoreData 0x30474e49 -[NSFetchedResultsController performFetch:] + 524
-->17 Titís 0x00115925 -[__TFAppUpdater_Helper .cxx_destruct] + 28940
-->18 Titís 0x00114435 -[__TFAppUpdater_Helper .cxx_destruct] + 23580
19 UIKit 0x32f5b057 -[UIApplication sendAction:to:from:forEvent:] + 90
20 UIKit 0x32f5aff7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
21 UIKit 0x32f5afd1 -[UIControl sendAction:to:forEvent:] + 44
22 UIKit 0x32f46737 -[UIControl _sendActionsForEvents:withEvent:] + 374
-->23 Titís 0x0011e599 -[__TFAppUpdater_Helper .cxx_destruct] + 64896
24 UIKit 0x33198cc5 -[UIPickerView _sendSelectionChangedForComponent:notify:] + 92
25 UIKit 0x333ef4f7 -[UIPickerTableView _scrollingFinished] + 154
26 UIKit 0x330c1977 -[UIScrollView(UIScrollViewInternal) _stopScrollDecelerationNotify:] + 806
27 UIKit 0x32ff7d67 -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:pin:tramplingDragFlags:] + 466
28 UIKit 0x32ff7b8b -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:pin:] + 30
29 UIKit 0x330c123b -[UIScrollView _smoothScrollWithUpdateTime:] + 3322
30 QuartzCore 0x32bf1df3 CA::Display::DisplayLinkItem::dispatch() + 98
31 QuartzCore 0x32bf1b9d CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 344
32 IOMobileFramebuffer 0x3595f75d IOMobileFramebufferVsyncNotifyFunc + 104
33 IOKit 0x313f4451 IODispatchCalloutFromCFMessage + 248
34 CoreFoundation 0x306c9ef9 __CFMachPortPerform + 136
35 CoreFoundation 0x306d4ab7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
36 CoreFoundation 0x306d4a53 __CFRunLoopDoSource1 + 346
37 CoreFoundation 0x306d3227 __CFRunLoopRun + 1398
38 CoreFoundation 0x3063df4f CFRunLoopRunSpecific + 522
39 CoreFoundation 0x3063dd33 CFRunLoopRunInMode + 106
40 GraphicsServices 0x35537663 GSEventRunModal + 138
41 UIKit 0x32f8916d UIApplicationMain + 1136
-->42 Titís 0x000ee657 main (main.m:16)
43 libdyld.dylib 0x3b6f9ab7 start + 2
Example Crashlytics helpful stack trace from an app installed via Xcode (relevant lines indicated with -->):
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x30709fd3 __exceptionPreprocess + 130
1 libobjc.A.dylib 0x3b1ecccf objc_exception_throw + 38
2 CoreData 0x3045f367 -[NSSQLGenerator newSQLStatementForFetchRequest:ignoreInheritance:countOnly:nestingLevel:] + 914
3 CoreData 0x3045ee97 -[NSSQLAdapter _newSelectStatementWithFetchRequest:ignoreInheritance:] + 406
4 CoreData 0x3045eafd -[NSSQLCore newRowsForFetchPlan:] + 116
5 CoreData 0x3045e23d -[NSSQLCore objectsForFetchRequest:inContext:] + 696
6 CoreData 0x3045dceb -[NSSQLCore executeRequest:withContext:error:] + 446
7 CoreData 0x3045d59d -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 2892
8 CoreData 0x3045b99f -[NSManagedObjectContext executeFetchRequest:error:] + 614
9 CoreData 0x304e9d33 -[NSManagedObjectContext(_NestedContextSupport) _parentObjectsForFetchRequest:inContext:error:] + 398
10 CoreData 0x304ea4ab __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 562
11 libdispatch.dylib 0x3b6d481f _dispatch_client_callout + 22
12 libdispatch.dylib 0x3b6da7cb _dispatch_barrier_sync_f_invoke + 26
13 CoreData 0x304dfdf3 _perform + 102
14 CoreData 0x304ea1ad -[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:] + 240
15 CoreData 0x3045b99f -[NSManagedObjectContext executeFetchRequest:error:] + 614
16 CoreData 0x30474e49 -[NSFetchedResultsController performFetch:] + 524
-->17 Titís 0x000e983d -[EntityListCell initFetchedResults] (EntityListCell.m:242)
-->18 Titís 0x000e834d -[EntityListCell sortPickerChanged:] (EntityListCell.m:79)
19 UIKit 0x32f5b057 -[UIApplication sendAction:to:from:forEvent:] + 90
20 UIKit 0x32f5aff7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
21 UIKit 0x32f5afd1 -[UIControl sendAction:to:forEvent:] + 44
22 UIKit 0x32f46737 -[UIControl _sendActionsForEvents:withEvent:] + 374
-->23 Titís 0x000f24b1 -[ObjectPicker pickerView:didSelectRow:inComponent:] (ObjectPicker.m:173)
24 UIKit 0x33198cc5 -[UIPickerView _sendSelectionChangedForComponent:notify:] + 92
25 UIKit 0x333ef4f7 -[UIPickerTableView _scrollingFinished] + 154
26 UIKit 0x330c1977 -[UIScrollView(UIScrollViewInternal) _stopScrollDecelerationNotify:] + 806
27 UIKit 0x32ff7d67 -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:pin:tramplingDragFlags:] + 466
28 UIKit 0x32ff7b8b -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:pin:] + 30
29 UIKit 0x330c123b -[UIScrollView _smoothScrollWithUpdateTime:] + 3322
30 QuartzCore 0x32bf1df3 CA::Display::DisplayLinkItem::dispatch() + 98
31 QuartzCore 0x32bf1b9d CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 344
32 IOMobileFramebuffer 0x3595f75d IOMobileFramebufferVsyncNotifyFunc + 104
33 IOKit 0x313f4451 IODispatchCalloutFromCFMessage + 248
34 CoreFoundation 0x306c9ef9 __CFMachPortPerform + 136
35 CoreFoundation 0x306d4ab7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
36 CoreFoundation 0x306d4a53 __CFRunLoopDoSource1 + 346
37 CoreFoundation 0x306d3227 __CFRunLoopRun + 1398
38 CoreFoundation 0x3063df4f CFRunLoopRunSpecific + 522
39 CoreFoundation 0x3063dd33 CFRunLoopRunInMode + 106
40 GraphicsServices 0x35537663 GSEventRunModal + 138
41 UIKit 0x32f8916d UIApplicationMain + 1136
-->42 Titís 0x000b80ad main (main.m:16)
43 libdyld.dylib 0x3b6f9ab7 start + 2
I had the same issue with my project the other day and found this tutorial that fixed the issue (by disabling testflight's crash handlers)
http://www.grahamdennis.me/blog/2012/10/21/how-to-disable-testflights-crash-handlers/
As suggested, this turned out to be a symbolication issue and changing the build settings in Xcode fixed it. Though I'm not using their platform, I found the solution in the HockeyApp documentation:
For static libraries the build settings contain the following:
Strip Debug Symbols During Copy: No Strip Style: Debugging
Symbols Strip Linked Product: No
For application targets or OS X frameworks, the build settings should
contain the following for the release (App Store) build configuration:
Strip Debug Symbols During Copy: Yes
Strip Style: All Symbols
Strip Linked Product: Yes
I am getting this crash for my iOS app and it doesn't show any relevant file name (just shows main.m) that I can look at. Any pointers on what the issue could be?
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)
You need to enable the symbolication in order to see where the crash was caused in your code.
For further info check this Apple Documentation or this answer on Stack Overflow