-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cloud_firestore]: iOS app crash #13515
Comments
Hi @Ovidiu-S , thanks for the report. I'm unable to reproduce this. Could you provide a complete minimal sample code reproducing this issue? |
Hi @SelaseKay, unfortunately I cannot because it happens randomly, only for 1% of users. |
I'll keep this open for further investigation by the team. |
@Ovidiu-S - could you provide the stack trace by pasting it here rather than a screenshot? It seems like it might be a memory issue. This might occur if you create new streams every time you call |
@russellwheatley yes, here is the stacktrace output, from a different crash event. Unfortunately, I still cannot reproduce it. Had the app running for weeks on different devices, did not see any crash... just received reports from users.
|
And another update: after we refactored the code a bit, tried to eliminate any possible reasons for the crash, and a lot of testing, we are no longer seeing these errors. The app, however, still crashes, but the stack trace is different. I do not know if it's the same issue or not:
Even weirder, and not sure if related, two consecutive crash reports have this error:
|
@Ovidiu-S - grpc is an iOS Firestore dependency in the stack trace. if you had a reproduction, it might help debug the issue. |
I am seeing similar crashes (but not the same) trending in my crashlytics for grpc. This only started in recent app builds for me and am guessing it's related to bumping flutter firestore dependencies up to the very latest ( I cannot reproduce myself either but just see a consistent number coming in via crash reporting.
|
@russellwheatley trying to, but still cannot reproduce it.
|
I wasn't able to verify myself. All I know is I wasn't receiving the crashes in one version of my app but was receiving it in next versions of my app with only minor code changes between them but with a firestore dependency upgrade. As I can't reproduce it myself either, it's hard for me to test if downgrading actually fixes it. What version of firestore are you using? |
Using the latest, same as you. |
Builds using Firestore 5.3.0 -> 5.4.3 are not reporting crashes for us. However, it's a bit inconclusive exactly which exact version because we pushed a few builds in close succession and they didn't gain a lot of adoption due to being superseded so the crash may exist in that build but was just never encountered. |
We started seeing crashes around the middle of October. We can replicate the issue on certain devices (iPhone 13 Pro for example). It's not happening 100% of the time, but we've had it occur most often when starting an upload over Google Drive, swapping apps (putting our app into the background), and then the crash occurs when the app is brought back to the foreground. The crash report has very little information, but it seems somehow tied to backgrounding/foregrounding the app. |
We started seeing this issue about the same time we upgraded from 5.4.2 to 5.4.4, but going back to 5.4.2 does not seem to fix things at all. The issue seems to be in the bowels of grpc-core, grpc-c++, brought in via FirebaseCore, brought in by cloud_firestore. |
@jbwise I can confirm it seems to happen when the app goes from background to foreground, but I was still not able o reproduce it; all I can use are user crash reports. Atm, we've downgraded firebase_ core down to 3.2.0 and cloud_firestore down to 5.1.0 and are testing, hoping we won't see anymore crashes. It's not ideal, but seeing how we're not able to reproduce the issue, it's all we can do.. |
@Ovidiu-S I've tried downgrading to those two libs, but I can't seem to come up with a working group of firebase auth, core, messaging, and storage that don't try to pull in the newer dependencies. I'm hoping we can get to the bottom of what's causing this crash. Is there any information that I can provide that would be beneficial? I'm getting the Apple crash logs, but I don't see much value in them - it doesn't really line up with what my flutter code is doing. |
@jbwise I've been down that road, there's just no extra information to gather. That's why we went down the downgrading path (pun!). The versions I mentioned we use in a different app that doesn't crash and one can only hope this one won't either edit: if only we could reproduce it, we might figure it out with a debugger connected, but as of yet I wasn't able to reproduce it myself. If you could, it could lead to a fix |
@Ovidiu-S We have not been able to get it to crash AT ALL in the debugger. It's only happening on the release build sent out via testflight. I tried downgrading everything, and downgraded to FirebaseCore 10.29.0, but it won't build - a gcc error. I feel like we're trapped at this point. |
@jbwise - your issue might be this: #13563 (comment) |
@russellwheatley Yes, I've been following that thread very closely as well. It looks like they've reverted cocoapods and xcodeproj to back out the breaking changes, but that just gets to the point where current libs build. I have that working now with prior versions of cocoapods and xcodeproj, but I still have these crashes occurring. We can't publish a new build until we can get the crashing issue resolved. |
I also started getting similar reports in my Flutter app since upgrading to the latest Firestore.
|
We get this crash without
|
Hey @xaphod - thank you for the report. Here is the issue opened upstream in the firebase-ios-sdk for anyone interested: firebase/firebase-ios-sdk#14018 |
Thanks yeah, I filed that one bc I wasn't sure if anyone else had filed upstream yet. |
Is there an existing issue for this?
Which plugins are affected?
Other
Which platforms are affected?
iOS
Description
We have a Firestore collection that updates often.
After upgrading our build server to iOS 18 we started getting random crash reports from different users, all related to firestore and memory
Reproducing the issue
Firebase Core version
3.6.0
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: