Skip to content
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

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

Open
armanhovsepyan98 opened this issue May 16, 2024 · 7 comments
Assignees

Comments

@armanhovsepyan98
Copy link

[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:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Android Studio Iguana | 2023.2.1 Patch 1
  • Firebase Component: (Database, Firestore, Storage, Functions, etc)
  • Component version: _____

[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
Copy link
Contributor

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

@dconeybe
Copy link
Contributor

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
Copy link
Contributor

wu-hui commented May 16, 2024

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.

@wu-hui wu-hui self-assigned this May 16, 2024
@armanhovsepyan98
Copy link
Author

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
Copy link
Contributor

wu-hui commented May 21, 2024

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

@armanhovsepyan98
Copy link
Author

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
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants