Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Bug-Upgrading Cloud Firestore SDK causes crash loop for some users #370
[READ] Step 1: Are you in the right place?
Yes, this is an issue with Cloud Firestore's internal on-device sqlite database and this repository appears to contain all of the code required to manage that database.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Immediately after releasing an app update which included the library upgrade we started to see users crash looping, seemingly starting when the app first restarted after updating.
Crashlytics Stack Trace
We believe that you are hitting an issue that is similar to #208. In SQLite, a CursorWindow cannot hold more than 2 MB of data, and it looks like during our schema migration even just reading a single column can hit this limit. The offending code is here: 58c2075#diff-7e86ec47aa1c080b4b33aee14ddd7489R272
We will get this fixed shortly. In the meantime, for the clients that failed the schema upgrade, you can continue to use the older version of Firestore. Optionally, you can also turn off persistence: https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/FirebaseFirestoreSettings.Builder.html#setPersistenceEnabled(boolean)
referenced this issue
Apr 24, 2019
The main reason we attempted to update this dependency was because a new feature we are trying to release relies heavily on
Would there be any issues if we update our app to use version
17.1.0 does not yet contain the offending schema migration and should avoid these issues for users that have not yet updated. Be aware though - running 17.1.0 on clients that have already upgraded their database schema should work, but we haven't tested this very thoroughly.