firebase / firebase/firebase-android-sdk
Cloud Firestore crashes with android.database.CursorWindowAllocationException
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 710
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 31
Description
### Environment
* Firebase Component: Firestore
* Component version: `19.0.0` as can be seen [here](https://github.com/flutter/plugins/blob/4cf475d5c9ba7362818999cf2e2f11e647ac9a6e/packages/cloud_firestore/android/build.gradle#L50)
### Problem
This is a crash that a [Flutter app produces](https://github.com/flutter/flutter/issues/36435#issue-469619424). As all of the stack trace is code that is not part of the Flutter plugin, I figured that it might be useful to report the issue here.
Essentially, users are reporting crashes when scrolling very fast, i.e. loading documents very fast. The stack trace can be [found here](https://gist.github.com/creativecreatorormaybenot/b7543271f0e6f80fac44040cab32d09a) and I included the device names and Android versions in the title.
### Reproduction
I was not able to reproduce this with any physical devices or emulator images available to me. Hopefully, the stack trace is enough to pinpoint the problem.
Furthermore, there is no code available as this is not caused by a specific implementation. The [Flutter plugin calls `query.get`](https://github.com/flutter/plugins/blob/4cf475d5c9ba7362818999cf2e2f11e647ac9a6e/packages/cloud_firestore/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java#L644), but as I said, there are no traces of Dart code in the stack trace. It seems like this issue is exclusively caused by the Android plugin.
#382 might be related, however, it is a different exception.
Contributor guide
Assessment
This issue has not been assessed yet.