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

[Crash] Caused by java.lang.SecurityException: Package android does not belong to 10307...at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.configureNetworkMonitoring(AndroidConnectivityMonitor.java:87) #6117

Open
kurosaki-tisak opened this issue Jul 23, 2024 · 3 comments
Assignees

Comments

@kurosaki-tisak
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: _____
  • Firebase Component: com.google.firebase:firebase-firestore
  • Component version: com.google.firebase:firebase-bom:33.1.1

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Stack trace:

Fatal Exception: java.lang.RuntimeException: Internal error in Cloud Firestore (25.0.0).
       at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda6.run(D8$$SyntheticClass:65353)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:264)
       at android.app.ActivityThread.main(ActivityThread.java:8258)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

Caused by java.lang.RuntimeException: java.lang.SecurityException: Package android does not belong to 10307
       at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:65353)
       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)

Caused by java.lang.SecurityException: Package android does not belong to 10307
       at android.os.Parcel.createExceptionOrNull(Parcel.java:2389)
       at android.os.Parcel.createException(Parcel.java:2373)
       at android.os.Parcel.readException(Parcel.java:2356)
       at android.os.Parcel.readException(Parcel.java:2298)
       at android.net.IConnectivityManager$Stub$Proxy.requestNetwork(IConnectivityManager.java:3820)
       at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3780)
       at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4283)
       at android.net.ConnectivityManager.registerDefaultNetworkCallback(ConnectivityManager.java:4250)
       at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.configureNetworkMonitoring(AndroidConnectivityMonitor.java:87)
       at com.google.firebase.firestore.remote.AndroidConnectivityMonitor.<init>(AndroidConnectivityMonitor.java:64)
       at com.google.firebase.firestore.core.MemoryComponentProvider.createConnectivityMonitor(MemoryComponentProvider.java:68)
       at com.google.firebase.firestore.core.ComponentProvider.initialize(ComponentProvider.java:152)
       at com.google.firebase.firestore.core.FirestoreClient.initialize(FirestoreClient.java:296)
       at com.google.firebase.firestore.core.FirestoreClient$$ExternalSyntheticLambda14.run(D8$$SyntheticClass:65353)
       at com.google.firebase.firestore.util.AsyncQueue$$ExternalSyntheticLambda0.call(D8$$SyntheticClass:65353)
       at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:65353)
       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

Steps to reproduce:

  • Open the app.
  • Crash occurs.

Be able to reproduce on the device list as follows;

  • Oppo RMX3231 (Android 11)
  • Realme C21-Y (Android 11)
  • Vivo 1906 (Android 11)
  • Galaxy S20 FE 5G (Android 11)
  • Redmi Note 8 (Android 11)
@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.

@lehcar09
Copy link
Contributor

Hi @kurosaki-tisak, thank you for reaching out and reporting the issue. I tried reproducing the issue using another device but with similar API version (11), however, I did not encounter the issue.

Can you reproduce this somewhat consistently? If possible can you share an MCVE that can help us investigate the issue? Thanks!

@dconeybe dconeybe self-assigned this Jul 23, 2024
@mar3kk
Copy link

mar3kk commented Aug 1, 2024

I think this might be because of the issue in the platform https://issuetracker.google.com/issues/175055271

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