firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.23k stars 564 forks source link

FATAL EXCEPTION: main Process: java.lang.RuntimeException: Internal error in Cloud Firestore (25.0.0). #5973

Open armanhovsepyan98 opened 1 month ago

armanhovsepyan98 commented 1 month ago

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

Firestore is not working on several devices, and the app crashes with an error.

Relevant Code:

Screenshot 2024-05-15 161147
google-oss-bot commented 1 month ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

dconeybe commented 1 month ago

Drive-by comment: This SQLiteDatabaseLockedException has been reported many times but we have never been able to reproduce or find the root cause: https://github.com/search?q=repo%3Afirebase%2Ffirebase-android-sdk+sqlitedatabaselockedexception&type=issues

wu-hui commented 1 month ago

The log is from Android Studio I believe? Can you reproduce this somewhat consistently? If so, can you tell us your setup and environment, devices used and their versions? A minimum reproduction App would be greatly appreciated.

armanhovsepyan98 commented 1 month ago

The log is from Android Studio I believe? Can you reproduce this somewhat consistently? If so, can you tell us your setup and environment, devices used and their versions? A minimum reproduction App would be greatly appreciated.

Yes, it's from Android Studio logs. It constantly happens with Samsung phones (I tried on Android 10 and 12). I also tried on Pixel with different versions but did not have the problem. The app's minimum and target SDK versions are 27 and 34, respectively. BuildVariant - debug Firebase//
// Import the Firebase BoM (see: https://firebase.google.com/docs/android/learn-more#bom) implementation(platform("com.google.firebase:firebase-bom:33.0.0"))

// Firestore
implementation("com.google.firebase:firebase-firestore")

// Firebase Authentication
implementation("com.google.firebase:firebase-auth")

implementation("com.google.firebase:firebase-storage")
wu-hui commented 1 month ago

This is great information. Can you provide a specific Samsung device info. I'll try to get a device to test this.

armanhovsepyan98 commented 1 month ago

This is great information. Can you provide a specific Samsung device info. I'll try to get a device to test this.

I am using a Samsung A41 and an A52.

armanhovsepyan98 commented 1 month ago

@wu-hui But as I understand, it's not only dependent on the device because when I create an empty project and connect to Firestore, it works. However, in some projects, it's throwing an exception only on Samsung phones in my case.