firebase / firebase-android-sdk

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

Internal error in Cloud Firestore (25.1.0) #6365

Open alimurtaza28 opened 1 week ago

alimurtaza28 commented 1 week 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

App crashing in production mode with the following error: Internal error in Cloud Firestore (25.1.0) Caused by java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException

Steps to reproduce:

It occurs randomly. I have seen this once on these devices : Samsung A32, Oppo A37, Samsung S8

What happened? How can we make the problem occur?

Fatal Exception: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.0). at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(AsyncQueue.java:546) at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda3.run(D8$$SyntheticClass) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7941) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:569) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015)

Caused by java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$1(AsyncQueue.java:333) at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$$ExternalSyntheticLambda2.run(D8$$SyntheticClass) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:235) at java.lang.Thread.run(Thread.java:1012)

Relevant Code:

I don't yet know which code is causing this problem

// TODO(you): code here to reproduce the problem

alimurtaza28 commented 1 week ago

Please address this issue ASAP because it's affecting my google play rankings. Thanks

MarkDuckworth commented 1 week ago

@alimurtaza28, we don't have enough information to move forward. It would be useful to know how your app is calling the Firestore API when this occurs. Also, capturing and providing us with debug logs from the SDK could help us investigate the issue further.

Have you seen this issue with older versions of the SDK? Did it start occurring after you updated to a specific version of the SDK?

google-oss-bot commented 4 days ago

Hey @alimurtaza28. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!