Closed arnab closed 1 year ago
Following commit (essentially pinning cloud_firestore: 4.9.3
, flutter clean
, flutter pub get
and building the app) fixes the issue. Adding the generated files as a diff here, in case that is helpful in seeing associated/transient dependency changes:
```
commit 8d109c4429f50ee0939eef97056d17c4ad56647b
Author: β
Arnab Deka π
Thanks for the report @arnab I think you are hitting https://github.com/firebase/flutterfire/issues/11755 so please follow-up in it for further updates. Closing this as a duplicate. If you disagree, write in comments and I'll reopen it.
Bug report
Describe the bug
We have a Flutter app that's been in use for a few months. Upon upgrading to
cloud_firestore: ^4.11.0
we are seeing a serious issue: inside a transaction (that has been unchanged for a few months now), the app freezes after atransaction#get
call. There is no log output, no crash report (we have integrated with Crashlytics and know it works). Once the app freezes, the only recourse is to kill it manually (it doesn't crash, it just freezes and becomes unresponsive to any taps/gestures) and restart it.This behavior is seen in both iOS Simulator and all iOS devices we have deployed the version to.
The Firestore transaction code in question (simplified):
Debugging shows that the freeze happens when we call
await tx.get(docRef);
.Steps to reproduce
cloud_firestore: 4.9.3
, and re-building (afterflutter clean
) the app fixes the issue.4.11.0
(or even^4.9.3
as4.11.0
declared to compatible to it) makes the issue resurface.Sample project
The app is quite complex, not open-source and has been in-use for a few months now. Unfortunately I can't share the full code.
Please see the exact code (a Firestore transaction) that's causing the issue above.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` β flutter doctor Doctor summary (to see all details, run flutter doctor -v): [β] Flutter (Channel stable, 3.13.7, on macOS 14.0 23A344 darwin-arm64, locale en-CA) [β] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [β] Xcode - develop for iOS and macOS (Xcode 15.0.1) [β] Chrome - develop for the web [β] Android Studio (version 2022.3) [β] VS Code (version 1.83.1) [β] Connected device (3 available) [β] Network resources β’ No issues found! ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 3.1.3 Flutter SDK 3.13.7