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

Internal error in Cloud Firestore (25.1.0) #6365

Open
alimurtaza28 opened this issue Oct 10, 2024 · 28 comments
Open

Internal error in Cloud Firestore (25.1.0) #6365

alimurtaza28 opened this issue Oct 10, 2024 · 28 comments
Assignees

Comments

@alimurtaza28
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 Koala | 2024.1.1 Patch 1
  • Firebase Component: Firestore
  • Component version: 'com.google.firebase:firebase-bom:33.3.0'

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

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

@MarkDuckworth
Copy link
Contributor

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

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!

@fractalbob
Copy link

I'm having the same issue but it only happens one one of my devices, a Samsung Tab A. Here's the compete dump:

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:0)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.VerifyError: Verifier rejected class com.google.firestore.v1.WriteResponse: void com.google.firestore.v1.WriteResponse.mergeCommitTime(com.google.protobuf.Timestamp) failed to verify: void com.google.firestore.v1.WriteResponse.mergeCommitTime(com.google.protobuf.Timestamp): [0x15] register v3 has type Precise Reference: com.google.protobuf.Timestamp but expected Reference: com.google.protobuf.GeneratedMessageLite (declaration of 'com.google.firestore.v1.WriteResponse' appears in /data/app/~~eGind8mCv08S_ZlAutA1uA==/com.chiaramail.platosplayground-L0OlTs6bAbJZb_WnrD9S_A==/base.apk!classes5.dex)
at com.google.firestore.v1.WriteResponse.getDefaultInstance(WriteResponse.java:899)
at com.google.firestore.v1.FirestoreGrpc.getWriteMethod(FirestoreGrpc.java:386)
at com.google.firebase.firestore.remote.WriteStream.(WriteStream.java:74)
at com.google.firebase.firestore.remote.Datastore.createWriteStream(Datastore.java:115)
at com.google.firebase.firestore.remote.RemoteStore.(RemoteStore.java:198)
at com.google.firebase.firestore.core.MemoryComponentProvider.createRemoteStore(MemoryComponentProvider.java:98)
at com.google.firebase.firestore.core.ComponentProvider.initialize(ComponentProvider.java:162)
at com.google.firebase.firestore.core.FirestoreClient.initialize(FirestoreClient.java:284)
at com.google.firebase.firestore.core.FirestoreClient.lambda$new$0$com-google-firebase-firestore-core-FirestoreClient(FirestoreClient.java:109)
at com.google.firebase.firestore.core.FirestoreClient$$ExternalSyntheticLambda10.run(D8$$SyntheticClass:0)
at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$2(AsyncQueue.java:445)
at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda4.call(D8$$SyntheticClass:0)
at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$1(AsyncQueue.java:330)
at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:0)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:235)
at java.lang.Thread.run(Thread.java:923)

Runs without a problem on my Oppo phone. I'm developing on a Dell XPF 13 running Linux, not that should matter.

@mikeb2k
Copy link

mikeb2k commented Oct 23, 2024

I have the same issue with Flutter - it only happens on first boot when interacting with Firestore, after restarting the app the issue is no longer present

@fractalbob
Copy link

Also fails the same way when running on an emulated Samsung Tab A.

@fractalbob
Copy link

Also the problem only occurs in my case during Google signin. After the user has signed in, the app runs without a problem.

@dconeybe
Copy link
Contributor

As per the comment by @MarkDuckworth above, please provide full debug logs to assist with debugging. Since we cannot reproduce we will need extra help with debugging and likely some back and forth.

@ricardobegar
Copy link

ricardobegar commented Oct 24, 2024

The same error happens to me too. It started happening to us when we updated the Flutter version to 3.24.3 and updated the Firebase libraries

firebase_core 3.6.0
cloud_firestore 5.4.4

I really don't know what could cause the error since it happens to me randomly.

In my particular case it happens to me on a Redmi 11 with Android 13

10-24 09:55:42.553 30930 30930 E Zygote : process_name_ptr:30930 com.xiaomi.mtb
10-24 09:55:42.554 30930 30930 E zygote64: Failed to parse /product/etc/mfz.xml: Tinyxml2 error (3): Error=XML_ERROR_FILE_NOT_FOUND ErrorID=3 (0x3) Line number=0: filename=/product/etc/mfz.xml
10-24 09:55:42.554 30930 30930 E zygote64: MemoryFreeze XMLFile not found
10-24 09:55:42.561 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.527 1005 1005 D Zygote : Forked child process 30930
10-24 09:55:42.565 1857 2103 D Boost : hostingType=service, hostingName={com.xiaomi.mtb/com.xiaomi.mtb.modemdump.ModemDumpCollectService}, callerPackage=com.xiaomi.mtb, isSystem=true, isBoostNeeded=false.
10-24 09:55:42.565 1857 2103 W ActivityManager: Slow operation: 54ms so far, now at startProcess: returned from zygote!
10-24 09:55:42.565 1857 2103 W ActivityManager: Slow operation: 54ms so far, now at startProcess: done updating battery stats
10-24 09:55:42.565 1857 2103 W ActivityManager: Slow operation: 54ms so far, now at startProcess: building log message
10-24 09:55:42.565 1857 2103 I ActivityManager: Start proc 30930:com.xiaomi.mtb/1000 for service {com.xiaomi.mtb/com.xiaomi.mtb.modemdump.ModemDumpCollectService} caller=com.xiaomi.mtb
10-24 09:55:42.566 1857 2103 W ActivityManager: Slow operation: 54ms so far, now at startProcess: starting to update pids map
10-24 09:55:42.566 1857 2103 W ActivityManager: Slow operation: 55ms so far, now at startProcess: done updating pids map
10-24 09:55:42.567 30625 30625 D BluetoothHidHost: Proxy object connected
10-24 09:55:42.568 30930 30930 I com.xiaomi.mtb: Using CollectorTypeCC GC.
10-24 09:55:42.571 30625 30658 D BluetoothHeadset: Proxy object connected
10-24 09:55:42.572 29529 23811 D BluetoothHidHostService: getDevicesMatchingConnectionStates()
10-24 09:55:42.572 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.573 30625 30625 D BluetoothHidDevice: Proxy object connected
10-24 09:55:42.576 30930 30930 E com.xiaomi.mtb: Not starting debugger since process cannot load the jdwp agent.
10-24 09:55:42.580 30930 30930 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
10-24 09:55:42.583 30625 30625 D BluetoothHeadset: getConnectedDevices()
10-24 09:55:42.585 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.590 30930 30930 W System.err: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
10-24 09:55:42.590 1139 15643 I WVCdm : [file_utils.cpp(40):Exists] stat failed: ENOENT
10-24 09:55:42.590 30930 30930 W System.err: at libcore.io.Linux.open(Native Method)
10-24 09:55:42.590 30930 30930 W System.err: at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
10-24 09:55:42.590 29529 23811 W HeadsetService: LE Audio not enabled
10-24 09:55:42.590 30930 30930 W System.err: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
10-24 09:55:42.590 30930 30930 W System.err: at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
10-24 09:55:42.590 30930 30930 W System.err: at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8288)
10-24 09:55:42.590 30930 30930 W System.err: at android.system.Os.open(Os.java:494)
10-24 09:55:42.590 30930 30930 W System.err: at android.os.perfdebug.PerfDebugMonitorImpl.monitorVersionControl(PerfDebugMonitorImpl.java:204)
10-24 09:55:42.590 30930 30930 W System.err: at android.os.perfdebug.PerfDebugMonitorImpl.prepareMonitor(PerfDebugMonitorImpl.java:185)
10-24 09:55:42.590 30930 30930 W System.err: at android.app.ActivityThread.main(ActivityThread.java:8375)
10-24 09:55:42.590 30930 30930 W System.err: at java.lang.reflect.Method.invoke(Native Method)
10-24 09:55:42.590 30930 30930 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
10-24 09:55:42.590 30930 30930 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
10-24 09:55:42.590 1139 15643 I QCOM-OEMCrypto: Closed session: 1000
10-24 09:55:42.591 30930 30930 I MessageMonitor: Load libmiui_runtime
10-24 09:55:42.592 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.594 29325 30798 E DrmHalAidl: Failed to get vendor from drm plugin: -1010
10-24 09:55:42.594 29325 30798 E DrmHalAidl: Failed to get description from drm plugin: -1010
10-24 09:55:42.599 29529 23811 D HeadsetService: isUnderTiramisuSdk 33 package com.xiaomi.bluetooth
10-24 09:55:42.600 30625 30625 D BluetoothPan: Proxy object connected
10-24 09:55:42.600 1139 15643 E WVCdm : [wv_content_decryption_module.cpp(398):GetMetricsInternal] Cdm Identifier not found
10-24 09:55:42.600 30605 30859 W System.err: INFO: com.whatsapp.net.logging.a.a(WtLog.java:10) : Handshake complete : session_resumed false early_data_sent false early_data_accepted false client_cert_requested false time_ms 386
10-24 09:55:42.601 30625 30625 D BluetoothPbap: Proxy object connected
10-24 09:55:42.602 30625 30625 D MiuiFastConnectService: onReceive: action = android.net.wifi.STATE_CHANGE
10-24 09:55:42.603 30625 30625 D MiuiFastConnectService: Connect_state: CONNECTED
10-24 09:55:42.605 1139 15643 E WVCdm : [wv_content_decryption_module.cpp(457):CloseCdm] Cdm Identifier not found
10-24 09:55:42.605 1139 15643 E WVCdm : Failed to close cdm. status 12
10-24 09:55:42.605 1857 1914 I SmartPower.com.xiaomi.mtb/1000(30930): died->invisible(1097ms) R(process start ) adj=-10000.
10-24 09:55:42.607 1139 15643 I WVCdm : [(0):] L3 Terminate.
10-24 09:55:42.607 1139 30922 I QCOM-OEMCrypto: Exit OEMCrypto idle_thread
10-24 09:55:42.607 1857 1914 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 1000; state: DISABLED
10-24 09:55:42.607 1857 1914 D CompatibilityInfo: mCompatibilityFlags - 0
10-24 09:55:42.607 1857 1914 D CompatibilityInfo: applicationDensity - 440
10-24 09:55:42.607 1857 1914 D CompatibilityInfo: applicationScale - 1.0
10-24 09:55:42.608 1139 15643 I QCOM-OEMCrypto: OEMCrypto_Terminate
10-24 09:55:42.608 1139 15643 I QCOM-OEMCrypto: Cleanup OEMCrypto library
10-24 09:55:42.610 1139 15643 I QCOM-OEMCrypto: Freed all scratch buffers
10-24 09:55:42.619 1857 1914 D CompatibilityInfo: mCompatibilityFlags - 0
10-24 09:55:42.619 1857 1914 D CompatibilityInfo: applicationDensity - 440
10-24 09:55:42.619 1857 1914 D CompatibilityInfo: applicationScale - 1.0
10-24 09:55:42.622 1857 2102 D CompatibilityInfo: mCompatibilityFlags - 0
10-24 09:55:42.622 1857 2102 D CompatibilityInfo: applicationDensity - 440
10-24 09:55:42.622 1857 2102 D CompatibilityInfo: applicationScale - 1.0
10-24 09:55:42.623 1857 2102 W ActivityManager: Rescheduling restart of crashed service com.android.vending/com.google.android.finsky.developergroupidinfo.DeveloperGroupIdInfoService in 775258ms for other
10-24 09:55:42.624 30930 30930 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 1000; state: ENABLED
10-24 09:55:42.629 29325 29325 D FRCPlugin: Sending fetchTimeout: 60
10-24 09:55:42.643 30625 30865 D MiuiCloudControl: local major version: 2, remote major version: 2
10-24 09:55:42.644 30625 30865 D MiuiCloudControl: local minor version: 24, remote minor version: 12
10-24 09:55:42.646 1857 1914 D ConnectivityService: requestNetwork for uid/pid:10836/29325 activeRequest: null callbackRequest: 77976 [NetworkRequest [ REQUEST id=77977, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10836 RequestorUid: 10836 RequestorPkg: qa.tyba.app UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647 isUidTracked: false declaredMethods: 0xffffffff
10-24 09:55:42.650 29325 29763 W DynamiteModule: Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
10-24 09:55:42.650 29325 29325 D Analytics: Ran TrackPayload{event="Application Installed"} on integration Segment.io in 1202500 ns.
10-24 09:55:42.651 29325 29325 D Analytics: Ran TrackPayload{event="Application Opened"} on integration Segment.io in 81198 ns.
10-24 09:55:42.662 29325 29325 D AndroidRuntime: Shutting down VM
10-24 09:55:42.674 27393 27404 W ProviderHelper: Unknown dynamite feature providerinstaller.dynamite
10-24 09:55:42.676 29325 29325 E AndroidRuntime: FATAL EXCEPTION: main
10-24 09:55:42.676 29325 29325 E AndroidRuntime: Process: qa.tyba.app, PID: 29325
10-24 09:55:42.676 29325 29325 E AndroidRuntime: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.0).
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(AsyncQueue.java:546)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda6.run(Unknown Source:2)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:211)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.os.Looper.loop(Looper.java:300)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8410)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: Caused by: java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$1(AsyncQueue.java:333)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$$ExternalSyntheticLambda2.run(Unknown Source:4)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:264)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:235)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at java.lang.Thread.run(Thread.java:1012)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: Caused by: android.net.ConnectivityManager$TooManyRequestsException
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.net.ConnectivityManager.convertServiceException(ConnectivityManager.java:4460)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4735)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.net.ConnectivityManager.registerDefaultNetworkCallbackForUid(ConnectivityManager.java:5380)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:5347)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:5321)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.configureNetworkMonitoring(AndroidConnectivityMonitor.java:87)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.(AndroidConnectivityMonitor.java:64)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.remote.RemoteComponenetProvider.createConnectivityMonitor(RemoteComponenetProvider.java:94)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.remote.RemoteComponenetProvider.initialize(RemoteComponenetProvider.java:41)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.core.ComponentProvider.initialize(ComponentProvider.java:158)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.core.FirestoreClient.initialize(FirestoreClient.java:284)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.core.FirestoreClient.lambda$new$0$com-google-firebase-firestore-core-FirestoreClient(FirestoreClient.java:109)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.core.FirestoreClient$$ExternalSyntheticLambda17.run(Unknown Source:10)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$2(AsyncQueue.java:445)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda0.call(Unknown Source:2)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$1(AsyncQueue.java:330)
10-24 09:55:42.676 29325 29325 E AndroidRuntime: ... 8 more
10-24 09:55:42.675 29325 29325 W qa.tyba.app: type=1400 audit(0.0:793260): avc: denied { search } for name="miuilog" dev="dm-40" ino=1900815 scontext=u:r:untrusted_app:s0:c68,c259,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=qa.tyba.app
10-24 09:55:42.679 29325 29325 W qa.tyba.app: type=1400 audit(0.0:793261): avc: denied { search } for name="miuilog" dev="dm-40" ino=1900815 scontext=u:r:untrusted_app:s0:c68,c259,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=qa.tyba.app
10-24 09:55:42.679 29325 29325 W qa.tyba.app: type=1400 audit(0.0:793262): avc: denied { search } for name="miuilog" dev="dm-40" ino=1900815 scontext=u:r:untrusted_app:s0:c68,c259,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=qa.tyba.app
10-24 09:55:42.679 29325 29325 W qa.tyba.app: type=1400 audit(0.0:793263): avc: denied { search } for name="miuilog" dev="dm-40" ino=1900815 scontext=u:r:untrusted_app:s0:c68,c259,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=qa.tyba.app
10-24 09:55:42.679 29325 29325 W qa.tyba.app: type=1400 audit(0.0:793264): avc: denied { search } for name="miuilog" dev="dm-40" ino=1900815 scontext=u:r:untrusted_app:s0:c68,c259,c512,c768 tcontext=u:object_r:data_log_file:s0 tclass=dir permissive=0 app=qa.tyba.app
10-24 09:55:42.682 29325 29325 W OOMEventManagerFK: Failed to mkdir /data/miuilog/stability/memleak/heapdump/
10-24 09:55:42.685 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.696 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.699 29325 29763 I DynamiteModule: Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
10-24 09:55:42.700 29325 29763 W ProviderInstaller: Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.
10-24 09:55:42.701 4924 27087 W MQSEventManager: jeoccur
10-24 09:55:42.709 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.709 30625 30865 D MiuiCloudControl: resource version info bucket: bluetoothencrypt, region: [ALL], delay sync data: 777600000
10-24 09:55:42.714 1857 4945 D ConnectivityService: requestNetwork for uid/pid:10387/30608 activeRequest: null callbackRequest: 77978 [NetworkRequest [ REQUEST id=77979, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10387 RequestorUid: 10387 RequestorPkg: com.whatsapp UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647 isUidTracked: false declaredMethods: 0xffffffff
10-24 09:55:42.722 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.727 29325 29763 D nativeloader: Configuring clns-8 for other apk /system/framework/org.apache.http.legacy.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~P5gAvVtv2SHqZ3ls3N1Cvw==/com.google.android.gms-w-mlyKVYCNqOy7v-f85_NQ==/lib/arm64:/data/app/~~P5gAvVtv2SHqZ3ls3N1Cvw==/com.google.android.gms-w-mlyKVYCNqOy7v-f85_NQ==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
10-24 09:55:42.727 29325 29763 D nativeloader: Extending system_exposed_libraries: libmisys_jni.xiaomi.so:libbinauralrenderer_wrapper.qti.so:libhoaeffects.qti.so:libQOC.qti.so:libupdateprof.qti.so:libthermalclient.qti.so:libQOC.qti.so:libdiag_system.qti.so:libqape.qti.so:liblistenjni.qti.so
10-24 09:55:42.725 1134 1134 D [email protected]_handler: SerialClockVote: vote for UART CLK ON
10-24 09:55:42.731 30625 30625 D MiuiFastConnectService: changeMode: true
10-24 09:55:42.731 1134 1134 D [email protected]_transport: SocRxDWakeup: Flow off->Change UART baudrate to 38.4kbs->send 0x00->Change UART baudrate to max->Flow on
10-24 09:55:42.731 1134 1134 I [email protected]_transport: ## userial_vendor_ioctl: UART Flow Off
10-24 09:55:42.733 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.735 29325 29763 D nativeloader: Configuring clns-9 for other apk /system/framework/com.android.media.remotedisplay.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~P5gAvVtv2SHqZ3ls3N1Cvw==/com.google.android.gms-w-mlyKVYCNqOy7v-f85_NQ==/lib/arm64:/data/app/~~P5gAvVtv2SHqZ3ls3N1Cvw==/com.google.android.gms-w-mlyKVYCNqOy7v-f85_NQ==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
10-24 09:55:42.735 29325 29763 D nativeloader: Extending system_exposed_libraries: libmisys_jni.xiaomi.so:libbinauralrenderer_wrapper.qti.so:libhoaeffects.qti.so:libQOC.qti.so:libupdateprof.qti.so:libthermalclient.qti.so:libQOC.qti.so:libdiag_system.qti.so:libqape.qti.so:liblistenjni.qti.so
10-24 09:55:42.737 29325 29763 W qa.tyba.app: Loading /data/misc/apexdata/com.android.art/dalvik-cache/arm64/system@framework@[email protected] non-executable as it requires an image which we failed to load
10-24 09:55:42.739 29325 29763 D nativeloader: Configuring clns-10 for other apk /system/framework/com.android.location.provider.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~P5gAvVtv2SHqZ3ls3N1Cvw==/com.google.android.gms-w-mlyKVYCNqOy7v-f85_NQ==/lib/arm64:/data/app/~~P5gAvVtv2SHqZ3ls3N1Cvw==/com.google.android.gms-w-mlyKVYCNqOy7v-f85_NQ==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
10-24 09:55:42.739 29325 29763 D nativeloader: Extending system_exposed_libraries: libmisys_jni.xiaomi.so:libbinauralrenderer_wrapper.qti.so:libhoaeffects.qti.so:libQOC.qti.so:libupdateprof.qti.so:libthermalclient.qti.so:libQOC.qti.so:libdiag_system.qti.so:libqape.qti.so:liblistenjni.qti.so
10-24 09:55:42.744 537 537 D lowmemorykiller: No processes to kill with adj score >= 702
10-24 09:55:42.744 4924 5267 D DigestGenerator: digest=============qa.tyba.appjava.lang.RuntimeException: Internal error in Cloud Firestore (XX..).
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$(AsyncQueue.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda.run(Unknown Source:)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.os.Handler.handleCallback(Handler.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.os.Handler.dispatchMessage(Handler.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.os.Looper.loopOnce(Looper.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.os.Looper.loop(Looper.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.app.ActivityThread.main(ActivityThread.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.lang.reflect.Method.invoke(Native Method)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: Caused by: java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$(AsyncQueue.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$$ExternalSyntheticLambda.run(Unknown Source:)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.util.concurrent.FutureTask.run(FutureTask.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at java.lang.Thread.run(Thread.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: Caused by: android.net.ConnectivityManager$TooManyRequestsException
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.net.ConnectivityManager.convertServiceException(ConnectivityManager.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.net.ConnectivityManager.registerDefaultNetworkCallbackForUid(ConnectivityManager.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.configureNetworkMonitoring(AndroidConnectivityMonitor.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.(AndroidConnectivityMonitor.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.remote.RemoteComponenetProvider.createConnectivityMonitor(RemoteComponenetProvider.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.remote.RemoteComponenetProvider.initialize(RemoteComponenetProvider.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.core.ComponentProvider.initialize(ComponentProvider.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.core.FirestoreClient.initialize(FirestoreClient.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.core.FirestoreClient.lambda$new$$com-google-firebase-firestore-core-FirestoreClient(FirestoreClient.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.core.FirestoreClient$$ExternalSyntheticLambda.run(Unknown Source:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$(AsyncQueue.java:XX)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda.call(Unknown Source:)
10-24 09:55:42.744 4924 5267 D DigestGenerator: at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$(AsyncQueue.java:XX)
10-24 09:55:42.745 1134 1134 I [email protected]_transport: ## userial_vendor_set_baud: 17
10-24 09:55:42.745 1857 2686 D ConnectivityService: NetReassign [77979 : null → 460] [c 1] [a 8] [i 21]
10-24 09:55:42.748 30625 30625 D MiuiFastConnectService: change scan mode: 1
10-24 09:55:42.749 1857 2673 D WifiNetworkFactory: got request NetworkRequest [ REQUEST id=77979, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10387 RequestorUid: 10387 RequestorPkg: com.whatsapp UnderlyingNetworks: Null] ]
10-24 09:55:42.749 1857 2673 D UntrustedWifiNetworkFactory: got request NetworkRequest [ REQUEST id=77979, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10387 RequestorUid: 10387 RequestorPkg: com.whatsapp UnderlyingNetworks: Null] ]
10-24 09:55:42.749 1857 2673 D OemPaidWifiNetworkFactory: got request NetworkRequest [ REQUEST id=77979, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10387 RequestorUid: 10387 RequestorPkg: com.whatsapp UnderlyingNetworks: Null] ]
10-24 09:55:42.749 1857 2673 D MultiInternetWifiNetworkFactory: got request NetworkRequest [ REQUEST id=77979, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10387 RequestorUid: 10387 RequestorPkg: com.whatsapp UnderlyingNetworks: Null] ]
10-24 09:55:42.750 1857 2463 W ActivityTaskManager: Force finishing activity qa.tyba.app/com.tyba.app.tyba_app.MainActivity

@malhakeem
Copy link

I'm also facing what seems to be the same error after Flutterflow's update to flutter 3.24.2.
firebase_core 3.6.0
cloud_firestore 5.4.4

The app crashes immediately after startup:

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:38)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

@NicolasLopezFer
Copy link

Same error

@lgomeza
Copy link

lgomeza commented Oct 28, 2024

Same issue here. It doesn't happen all the time, it happens randomly in different sessions and it is becoming such a big issue that we are considering downgrading the Flutter version (it seems to have something to do with both the combination of the Firebase version and the Flutter version)

@Jhonsebas77
Copy link

Is there any update on this case, it keeps happening to me randomly, I have tried several things mentioned here, however, nothing has worked for me

[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64, locale en-CO)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.94.2)

@Diegoo3210
Copy link

I am experiencing the same issue intermittently across different sessions, and it's starting to significantly impact our app's functionality. The bug appears to be random, but it's persistent. Im running latest flutter versión.

@EricLyannaz
Copy link

Same error since the last update of FlutterFlow

@MarkDuckworth
Copy link
Contributor

MarkDuckworth commented Oct 30, 2024

I'm trying to isolate this issue and get the right people involved.

If you are replying to this thread to report the issue, please include the following information. If you've already replied and can also provide this info, please leave another comment.

  1. Are you using Flutter? YES or NO.
    If yes, the report the version of Flutter where you first experienced the issue.
  2. Firebase Android SDK version where you first experienced the issue
  3. Android Studio version where you first experienced the issue
  4. If you started experiencing the issue after updating of these, please let us know the version you were using and if downgrading to the prior version resolves the issue for you?
  5. In your stack trace you also seeing Caused by java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException? YES or NO, or include this part of the trace if posting logs.

These stack traces and logs are helpful. Thanks.

@cynthiajoan
Copy link

One more question to help identify the issue:
If you are using Flutter, what's the version of the following firebase flutter plugins that you first run into the issue
firebase_core
cloud_firestore

@MarkDuckworth
Copy link
Contributor

I'm going to limit this thread to Internal error in Cloud Firestore (25.1.0) stack trace containing Caused by java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException. Anyone seeing other behavior should open a separate issue. This may apply to @fractalbob and @malhakeem.

@MarkDuckworth
Copy link
Contributor

I was able to find a possible cause of the TooManyRequestsExecption, which is that your applications are creating more than 100 FirebaseFirestore instances without calling terminate() to clean up any of their resources. This then exhausts resources in the ConnectivityMonitor class use by Firestore, and results in the observed error.

Many reports of the error in this thread correlate with an update to Flutter. There may be a change in Flutter or any Flutter libraries you are using that are causing your app to create many FirebaseFirestore instances without ever terminating them. I've followed up on this FlutterFire issue to see if that team can investigate the issue.

If there are users that need a large number of FirebaseFirestore instances concurrently (~100 or more), can you tell me more about your use case?

@google-oss-bot
Copy link
Contributor

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!

@pranavo72bex
Copy link

pranavo72bex commented Nov 15, 2024

I am facing same issue in flutter 3.24.3
cloud_firestore: ^5.4.4

[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64, locale en-CO)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.94.2)
java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(AsyncQueue.java:546)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.AsyncQueue.$r8$lambda$jx84dqgUsF4ojecSMurRqFLFD1Y(AsyncQueue.java:0)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda1.run(R8$$SyntheticClass:0)
E/AndroidRuntime( 8025): 	at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime( 8025): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8025): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime( 8025): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime( 8025): 	at android.app.ActivityThread.main(ActivityThread.java:7839)
E/AndroidRuntime( 8025): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8025): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime( 8025): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
E/AndroidRuntime( 8025): Caused by: com.google.android.gms.tasks.RuntimeExecutionException: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 8025): 	at com.google.android.gms.tasks.zzw.getResult(com.google.android.gms:play-services-tasks@@18.1.0:3)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.remote.FirestoreChannel.lambda$runBidiStreamingRpc$0(FirestoreChannel.java:146)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.remote.FirestoreChannel.$r8$lambda$ThFui-hvcsrVGYxlBtcTH5vVbvE(FirestoreChannel.java:0)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.remote.FirestoreChannel$$ExternalSyntheticLambda0.onComplete(R8$$SyntheticClass:0)
E/AndroidRuntime( 8025): 	at com.google.android.gms.tasks.zzi.run(com.google.android.gms:play-services-tasks@@18.1.0:1)
E/AndroidRuntime( 8025): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
E/AndroidRuntime( 8025): 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/AndroidRuntime( 8025): 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
E/AndroidRuntime( 8025): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime( 8025): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:235)
E/AndroidRuntime( 8025): 	at java.lang.Thread.run(Thread.java:920)
E/AndroidRuntime( 8025): Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 8025): 	at com.google.android.gms.tasks.zzz.run(com.google.android.gms:play-services-tasks@@18.1.0:2)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.ThrottledForwardingExecutor.lambda$execute$0(ThrottledForwardingExecutor.java:54)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.ThrottledForwardingExecutor.$r8$lambda$MfIJbVuxZtLwosAgPzPA-cU66Ko(ThrottledForwardingExecutor.java:0)
E/AndroidRuntime( 8025): 	at com.google.firebase.firestore.util.ThrottledForwardingExecutor$$ExternalSyntheticLambda0.run(R8$$SyntheticClass:0)

@pranavo72bex
Copy link

I'm also facing what seems to be the same error after Flutterflow's update to flutter 3.24.2. firebase_core 3.6.0 cloud_firestore 5.4.4

The app crashes immediately after startup:

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:38) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8762) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

In my case, app only crash when it is logged in btw which uses firebase auth. without logged-in it is working fine.

@google-oss-bot
Copy link
Contributor

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!

@pranavo72bex
Copy link

pranavo72bex commented Nov 26, 2024

Issue Details:


Are you using Flutter? YES
Flutter version where issue first occurred: 3.24.3
Firebase Android SDK version:
Cloud Firestore: com.google.firebase:firebase-firestore:24.9.1
Crashlytics: 2.9.9
Google Services Plugin: 4.3.0
Android Studio version: Android Studio Hedgehog
Gradle version: 7.6.1
Kotlin version: 1.9.10
Other dependencies:
WorkManager: androidx.work:work-runtime-ktx:2.9.0
Play Review: com.google.android.play:review:2.0.1
Play Review KTX: com.google.android.play:review-ktx:2.0.1
Desugaring Library: com.android.tools:desugar_jdk_libs: 2.0.0
 id "com.android.application" version '7.4.2' apply false
firebase_auth: ^5.3.3
firebase_core: ^3.8.0
firebase_dynamic_links: ^6.0.10
firebase_messaging: ^15.1.3
 
Did the issue occur after an update?  YES
Stack trace includes Caused by java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException: Not mentioned directly. However, similar exception trace observed:
Key exception trace:
java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1)
com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3

...

Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
Logs: The full trace was shared. Key logs:
Error observed in Firestore channel initialization and AsyncQueue handling.

@Noesersi
Copy link

I'm having the same error but when trying to run test with detox 20.28.0 on mi emulator with the last version on Android Studio in RN 0.73.8.

The app has crashed, see the details below:

@Thread detox.primary(107):
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at androidx.test.espresso.Espresso.onIdle(Espresso.java:357)
    at com.wix.detox.TestEngineFacade.awaitIdle(TestEngineFacade.kt:12)
    at com.wix.detox.adapters.server.ReadyActionHandler.handle(DetoxActionHandlers.kt:25)
    at com.wix.detox.DetoxMain$setupActionHandlers$SynchronizedActionHandler.handle(DetoxMain.kt:75)
    at com.wix.detox.adapters.server.ActionsExecutor.executeAction$lambda$2$lambda$1(DetoxActionsDispatcher.kt:76)
    at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$LZ3KRuVesIYkeXHJoNMi_yqw1HU(Unknown Source:0)
    at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda0.run(Unknown Source:8)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at com.wix.detox.adapters.server.ActionsExecutor._init_$lambda$0(DetoxActionsDispatcher.kt:62)
    at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$4eWOlZMqOQq2jbqiFbTCEP-pHOY(Unknown Source:0)
    at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda1.run(Unknown Source:4)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at androidx.test.espresso.Espresso.onIdle(Espresso.java:349)
    ... 14 more
Caused by: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(AsyncQueue.java:546)
    at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda6.run(Unknown Source:2)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at androidx.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:156)
    at androidx.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:510)
    at androidx.test.espresso.base.UiControllerImpl.loopMainThreadUntilIdle(UiControllerImpl.java:433)
    at androidx.test.espresso.Espresso.lambda$onIdle$2(Espresso.java:340)
    at androidx.test.espresso.Espresso$$ExternalSyntheticLambda1.call(Unknown Source:0)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8705)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)

@pranavo72bex
Copy link

pranavo72bex commented Nov 28, 2024

I'm having the same error but when trying to run test with detox 20.28.0 on mi emulator with the last version on Android Studio in RN 0.73.8.

The app has crashed, see the details below:

@Thread detox.primary(107):
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at androidx.test.espresso.Espresso.onIdle(Espresso.java:357)
    at com.wix.detox.TestEngineFacade.awaitIdle(TestEngineFacade.kt:12)
    at com.wix.detox.adapters.server.ReadyActionHandler.handle(DetoxActionHandlers.kt:25)
    at com.wix.detox.DetoxMain$setupActionHandlers$SynchronizedActionHandler.handle(DetoxMain.kt:75)
    at com.wix.detox.adapters.server.ActionsExecutor.executeAction$lambda$2$lambda$1(DetoxActionsDispatcher.kt:76)
    at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$LZ3KRuVesIYkeXHJoNMi_yqw1HU(Unknown Source:0)
    at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda0.run(Unknown Source:8)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at com.wix.detox.adapters.server.ActionsExecutor._init_$lambda$0(DetoxActionsDispatcher.kt:62)
    at com.wix.detox.adapters.server.ActionsExecutor.$r8$lambda$4eWOlZMqOQq2jbqiFbTCEP-pHOY(Unknown Source:0)
    at com.wix.detox.adapters.server.ActionsExecutor$$ExternalSyntheticLambda1.run(Unknown Source:4)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at androidx.test.espresso.Espresso.onIdle(Espresso.java:349)
    ... 14 more
Caused by: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(AsyncQueue.java:546)
    at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda6.run(Unknown Source:2)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at androidx.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:156)
    at androidx.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:510)
    at androidx.test.espresso.base.UiControllerImpl.loopMainThreadUntilIdle(UiControllerImpl.java:433)
    at androidx.test.espresso.Espresso.lambda$onIdle$2(Espresso.java:340)
    at androidx.test.espresso.Espresso$$ExternalSyntheticLambda1.call(Unknown Source:0)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at android.os.Handler.handleCallback(Handler.java:959)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8705)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)

It would be nicer if you could provide detailed information in this formate #6365 (comment)

@Noesersi
Copy link

  • Are you using Flutter? NO.
  • Firebase Android SDK version where you first experienced the issue.
    firebaseMessagingVersion = "21.1.0"
    google-services:4.3.10
    firebase-analytics:17.3.0
    "@react-native-firebase/app": "21.6.1 "
  • Android Studio version where you first experienced the issue
    Android Studio Ladybug | 2024.2.1 Patch 2
    Build #AI-242.23339.11.2421.12550806, built on October 24, 2024
    Runtime version: 21.0.3+-79915917-b509.11 aarch64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    Toolkit: sun.lwawt.macosx.LWCToolkit
    macOS 15.0.1
    GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
    Memory: 2048M
    Cores: 8
    Metal Rendering is ON
    Registry:
    ide.experimental.ui=true
    i18n.locale=
  • If you started experiencing the issue after updating of these, please let us know the version you were using and if downgrading to the prior version resolves the issue for you?
    I never made it work with detox, I tried in RN 0.73.8 and 0.75.4
  • In your stack trace you also seeing Caused by java.lang.RuntimeException: android.net.ConnectivityManager$TooManyRequestsException? YES
    @thread detox.primary(107):
    java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Internal error in Cloud Firestore (25.1.1).
    at androidx.test.espresso.Espresso.onIdle(Espresso.java:357)

@google-oss-bot
Copy link
Contributor

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!

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