firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.69k stars 1.48k forks source link

Fatal Exception: Error marking as do not backup Failed to mark folder file:///var/mobile/Containers/Data/Application/01EA9368-0A0F-4431-801B-85EF632C7330/Documents/firebase/default/my-mobile-app.firebaseio.com_my-mobile-app/ as do not backup #9563

Closed sspogra closed 2 years ago

sspogra commented 2 years ago

Step 0: Are you in the right place?

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Fatal Exception: Error marking as do not backup
Failed to mark folder file:///var/mobile/Containers/Data/Application/01EA9368-0A0F-4431-801B-85EF632C7330/Documents/firebase/default/my-mobile-app.firebaseio.com_my-mobile-app/ as do not backup

Fatal Exception: Error marking as do not backup
0  CoreFoundation                 0x12586c __exceptionPreprocess
1  libobjc.A.dylib                0x6c50 objc_exception_throw
2  CoreFoundation                 0x1e4a4 -[NSCache init]
3  FirebaseDatabase               0x2b094 +[FLevelDBStorageEngine ensureDir:markAsDoNotBackup:] + 999 (FLevelDBStorageEngine.m:999)
4  FirebaseDatabase               0x25c4c -[FLevelDBStorageEngine initWithPath:] + 106 (FLevelDBStorageEngine.m:106)
5  FirebaseDatabase               0x405cc -[FRepo deferredInit] + 148 (FRepo.m:148)
6  libdispatch.dylib              0x224c _dispatch_call_block_and_release
7  libdispatch.dylib              0x3db0 _dispatch_client_callout
8  libdispatch.dylib              0xb10c _dispatch_lane_serial_drain
9  libdispatch.dylib              0xbc5c _dispatch_lane_invoke
10 libdispatch.dylib              0x15d78 _dispatch_workloop_worker_thread
11 libsystem_pthread.dylib        0x3814 _pthread_wqthread
12 libsystem_pthread.dylib        0xa76c start_wqthread

Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x1f3ac FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  FirebaseCrashlytics            0x1f78c FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  FirebaseCrashlytics            0x166f8 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  FirebaseCrashlytics            0x10b94 __FIRCLSExceptionRecord_block_invoke + 215 (FIRCLSException.mm:215)
4  libdispatch.dylib              0x3db0 _dispatch_client_callout + 20
5  libdispatch.dylib              0x12428 _dispatch_lane_barrier_sync_invoke_and_complete + 60
6  FirebaseCrashlytics            0x10334 FIRCLSExceptionRecord + 219 (FIRCLSException.mm:219)
7  FirebaseCrashlytics            0x1063c FIRCLSExceptionRecordNSException + 109 (FIRCLSException.mm:109)
8  FirebaseCrashlytics            0xff34 FIRCLSTerminateHandler() + 273 (FIRCLSException.mm:273)
9  libc++abi.dylib                0x130e0 std::__terminate(void (*)()) + 20
10 libc++abi.dylib                0x1306c std::terminate() + 44
11 libobjc.A.dylib                0x6ed4 _objc_terminate() + 14
12 libdispatch.dylib              0x3dc4 _dispatch_client_callout + 40
13 libdispatch.dylib              0xb10c _dispatch_lane_serial_drain + 580
14 libdispatch.dylib              0xbc5c _dispatch_lane_invoke + 408
15 libdispatch.dylib              0x15d78 _dispatch_workloop_worker_thread + 708
16 libsystem_pthread.dylib        0x3814 _pthread_wqthread + 276
17 libsystem_pthread.dylib        0xa76c start_wqthread + 8
rizafran commented 2 years ago

Thanks for filing, @sspogra. Could you share the detailed steps on how the issue occurred?

sspogra commented 2 years ago

@rizafran We don't have too much info but logs displayed that app was crashing when added listener to fetch data from firestore db.

morganchen12 commented 2 years ago

@sspogra are you able to reproduce the crash at all?

sspogra commented 2 years ago

@morganchen12 Unable to reproduce on xcode.

morganchen12 commented 2 years ago

The code in the stack trace has not changed for a while and this crash is new with no other reports, so unless we have a repro we likely won't be able to make progress resolving this crash.

google-oss-bot commented 2 years ago

Hey @sspogra. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 2 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@sspogra if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.