Closed rowungiles closed 1 year ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Thanks for reporting @rizafran . Would you be able to provide a stack trace with debug symbols? The stack trace above is not readable. If you're using Crashlytics, these instructions could help.
If you are able to reproduce the issue locally, please provide us with a reproduction code as well. Thanks!
Hi @ehsannas in the Relevant Log Output
please note that there are 2 logs.
First set, is taken directly from the stack trace dictionary attached to the thrown exception at the Xcode exception breakpoint. Second is from Crashlytics, although if the second is not usable, I'll take another look at the upload script, Crashlytics certainly isn't complaning about missing dSYMs.
Firebase isn't being used from our app at the time of crash, it's only used briefly at our app launch and then not again. When this crash occurs, it's after several hours from when the iPad has gone to sleep while the app is in the foreground.
My inital thought is that Firebase has scheduled a maintainence task and it's clashed with NSFileProtectionComplete
?
I think my thought re: NSFileProtectionComplete
is likely correct, I've just found https://github.com/firebase/firebase-ios-sdk/issues/2846. I also see some approaches in that thread which are appropriate for our use case (namely terminate
).
I'll implement them and close this issue with comment if they fix the issue.
Thanks for the update @rowungiles .
@ehsannas, looks like the issue is solved with the pointers in that linked issue. I'll close this ticket now. Thanks.
Description
When in background, Firestore is throwing and crashing our app.
Reproducing the issue
The crash is occuring when the iPad is asleep/app is in background.
While connected to Xcode, I put the iPad to sleep at about 17:15. When I woke my computer this morning at around 09:00, the exception breakpoint was active indicating a crash occured at 07:00.
Firebase SDK Version
10.5.0
Xcode Version
Version 14.2 (14C18)
Installation Method
CocoaPods
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
No response
If using CocoaPods, the project's Podfile.lock
Partial entries due to redactions.