Fabrics showing crash related to core data only for 2 users

In my app version 2.0.5, i have made changes in core data db (added new entities) without doing db migration so when user update the app it was crashing because of schema mismatch. So immediately i provided fix by enabling automatic migration (through code) and adding core data mapping model which will map old db entities with updated db entities. So issue got fixed in app version 2.0.6.

But from app version 2.0.7, fabrics is showing the same core data db crashes only for 2 users (in iOS 8, iPhone 6). The same crash is appearing in fabrics for each release of my app and in latest version (2.1.2), its showing the same crash for 2 user but in iOS 12 , iPhone 7.

Can anyone help me on this issue?Why fabric is showing crashes for only 2 users. If this crash is happening for those users, then they won’t able to open the app. How can I fix this issue?

Below is the crash log taken from fabrics.


# OS Version: 12.1.4

# Device: iPhone 7

# RAM Free: 12.7%

# Disk Free: 63.5%

#0. Crashed: com.twitter.crashlytics.ios.exception

0 Starbucks IN 0x1049e5f60 CLSProcessRecordAllThreads + 4344209248

1 Starbucks IN 0x1049e5f60 CLSProcessRecordAllThreads + 4344209248

2 Starbucks IN 0x1049e5e1c CLSProcessRecordAllThreads + 4344208924

3 Starbucks IN 0x1049d5b6c CLSHandler + 4344142700

4 Starbucks IN 0x1049e3f78 __CLSExceptionRecord_block_invoke + 4344201080

5 libdispatch.dylib 0x192492484 _dispatch_client_callout + 16

6 libdispatch.dylib 0x19243f5c8 _dispatch_lane_barrier_sync_invoke_and_complete + 56

7 Starbucks IN 0x1049e3a0c CLSExceptionRecord + 4344199692

8 Starbucks IN 0x1049e3834 CLSExceptionRecordNSException + 4344199220

9 Starbucks IN 0x1049e3448 CLSTerminateHandler() + 4344198216

10 libc++abi.dylib 0x191c1d0fc std::__terminate(void (*)()) + 16

11 libc++abi.dylib 0x191c1d188 std::terminate() + 84

12 libobjc.A.dylib 0x191c29db4 _destroyAltHandlerList + 10

13 libdispatch.dylib 0x192492498 _dispatch_client_callout + 36

14 libdispatch.dylib 0x19243e9a4 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068

15 CoreFoundation 0x1929e9ce4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12

16 CoreFoundation 0x1929e4bac __CFRunLoopRun + 1964

17 CoreFoundation 0x1929e40e0 CFRunLoopRunSpecific + 436

18 GraphicsServices 0x194c5d584 GSEventRunModal + 100

19 UIKitCore 0x1bfd44c00 UIApplicationMain + 212

20 Starbucks IN 0x104729a9c main (AppDelegate.swift:58)

21 libdyld.dylib 0x1924a2bb4 start + 4


Fatal Exception: NSInternalInconsistencyException

0 CoreFoundation 0x192a59ea4 __exceptionPreprocess

1 libobjc.A.dylib 0x191c29a50 objc_exception_throw

2 CoreData 0x1956e109c -[NSPersistentStoreCoordinator _exceptionNoStoreSaveFailureForError:recommendedFrame:]

3 CoreData 0x1956e1704 -[NSPersistentStoreCoordinator _introspectLastErrorAndThrow]

4 CoreData 0x1956e1990 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke

5 CoreData 0x195573254 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:]

6 CoreData 0x195573ee4 -[NSPersistentStoreCoordinator executeRequest:withContext:error:]

7 CoreData 0x195573f10 -[NSPersistentStoreCoordinator executeRequest:withContext:error:]

8 CoreData 0x195574d68 -[NSManagedObjectContext save:]

9 Starbucks IN 0x104865630 specialized TSBCoreDataHelper.saveContext(_:) (TSBCoreDataHelper.swift:64)

10 Starbucks IN 0x1048bddb8 specialized static TSBCoreDataInterface.insertUnAuthTokenToDB(_:) (<compiler-generated>)

11 Starbucks IN 0x10497ee74 specialized static TSBAuthenticationWebservice.saveAccessTokenInLocal(_:) (<compiler-generated>)

12 Starbucks IN 0x10497c394 closure #1 in static TSBAuthenticationWebservice.getAuthenticationAccessCodeForNonUser(_:) (<compiler-generated>)

13 Starbucks IN 0x104938bf4 closure #1 in closure #1 in RequestHandlerToken.startRequest(_:) (<compiler-generated>)

14 Starbucks IN 0x104982a14 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)

15 libdispatch.dylib 0x1924916c8 _dispatch_call_block_and_release

16 libdispatch.dylib 0x192492484 _dispatch_client_callout

17 libdispatch.dylib 0x19243e9a4 _dispatch_main_queue_callback_4CF$VARIANT$mp

18 CoreFoundation 0x1929e9ce4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__

19 CoreFoundation 0x1929e4bac __CFRunLoopRun

20 CoreFoundation 0x1929e40e0 CFRunLoopRunSpecific

21 GraphicsServices 0x194c5d584 GSEventRunModal

22 UIKitCore 0x1bfd44c00 UIApplicationMain

23 Starbucks IN 0x104729a9c main (AppDelegate.swift:58)

24 libdyld.dylib 0x1924a2bb4 start

Fabrics showing crash related to core data only for 2 users
 
 
Q