smartlook / smartlook-mobile-issue-tracker

Official Smartlook issue tracker for mobile SDKs
4 stars 0 forks source link

Crash reported on Firebase Crashlytics - CoreDataOperation.swift line 38 #133

Closed minaMagedNaeem closed 2 years ago

minaMagedNaeem commented 2 years ago

Platform iOS

Technology native iOS

Affected devices Devices running iOS 14.2.0 or iOS 14.2.1

Smartlook SDK version v1.8.4

Summary This crash is reported multiple times by Firebase Crashlytics, it occurs on app startup.

Relevant logs and/or screenshots

Fatal Exception: NSInternalInconsistencyException
This NSPersistentStoreCoordinator has no persistent stores (device locked). It cannot perform a save operation.
0
CoreFoundation
__exceptionPreprocess
1
libobjc.A.dylib
objc_exception_throw
2
CoreData
-[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_missing_directory:]
3
CoreData
-[NSPersistentStoreCoordinator _introspectLastErrorAndThrow]
4
CoreData
__65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke.967
5
CoreData
-[NSPersistentStoreCoordinator _routeHeavyweightBlock:]
6
CoreData
-[NSPersistentStoreCoordinator executeRequest:withContext:error:]
7
CoreData
-[NSPersistentStoreCoordinator executeRequest:withContext:error:]
8
CoreData
-[NSManagedObjectContext save:]
9
Smartlook
CoreDataOperation.swift - Line 38
closure #2 in CoreDataOperation.perform() + 38
10
Smartlook
<compiler-generated>
thunk for @callee_guaranteed () -> ()
11
Smartlook
<compiler-generated>
thunk for @escaping @callee_guaranteed () -> ()
12
CoreData
developerSubmittedBlockToNSManagedObjectContextPerform
13
libdispatch.dylib
_dispatch_client_callout
14
libdispatch.dylib
_dispatch_lane_barrier_sync_invoke_and_complete
15
CoreData
-[NSManagedObjectContext performBlockAndWait:]
16
Smartlook
<compiler-generated>
CoreDataOperation.perform()
17
Smartlook
BaseOperation.swift - Line 158
BaseOperation.start() + 158
18
Smartlook
<compiler-generated>
@objc BaseOperation.start()
pavel-kroh-smartlook commented 2 years ago

Hi, thanks for reporting. The issue is indeed weird… the reason is probably described here

https://developer.apple.com/forums/thread/23614

we will look into how to workaround the crashes.

pavel-kroh-smartlook commented 2 years ago

Hi @minaMagedNaeem

New Smartlook release 1.8.5 has been released.

The release is dedicated mainly to bugfixing (it attempts to address all known bugs) and other maintenance.

Please give it a try when suitable.

Thanks for the patience.