firebase / firebase-android-sdk

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

Fatal Exception: java.lang.SecurityException: Not allowed to bind to service Intent #5640

Closed billdizl closed 9 months ago

billdizl commented 10 months ago

I don't know why ,but have this crash. Wiko - FIH Foxconn View4 Lite ,Android 10 implementation platform('com.google.firebase:firebase-bom:32.7.0') implementation 'com.google.firebase:firebase-analytics' implementation 'com.google.firebase:firebase-crashlytics' implementation 'com.google.firebase:firebase-messaging' implementation 'com.google.firebase:firebase-core:21.1.1' implementation 'com.google.firebase:firebase-perf' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9' // classpath "com.novoda:bintray-release:$versions.bintrayPlugin" classpath 'com.google.firebase:perf-plugin:1.4.2'

Fatal Exception: java.lang.SecurityException: Not allowed to bind to service Intent { act=9360 cmp=com.xxx.xxx/com.google.firebase.sessions.SessionLifecycleService (has extras) } at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1741) at android.app.ContextImpl.bindService(ContextImpl.java:1651) at android.content.ContextWrapper.bindService(ContextWrapper.java:705) at com.google.firebase.sessions.SessionLifecycleServiceBinderImpl.bindToService(SessionLifecycleServiceBinder.kt:52) at com.google.firebase.sessions.SessionLifecycleClient.bindToService(SessionLifecycleClient.kt:104) at com.google.firebase.sessions.FirebaseSessions$1.invokeSuspend(FirebaseSessions.kt:53) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0$com-google-firebase-concurrent-CustomThreadFactory(CustomThreadFactory.java:47) at com.google.firebase.concurrent.CustomThreadFactory$$ExternalSyntheticLambda0.run(:4) at java.lang.Thread.run(Thread.java:919)

google-oss-bot commented 10 months ago

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

lehcar09 commented 10 months ago

Hi @billdizl, thank you for reaching out. I tried reproducing the issue using our quickstart app, however, I wasn't able to encounter any exception. Can you share an MCVE to help us investigate the issue?

google-oss-bot commented 9 months ago

Hey @billdizl. 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!

billdizl commented 9 months ago

No , I don't know why

lehcar09 commented 9 months ago

It would be helpful that you provide a minimal, reproducible example as this could be used as a baseline for troubleshooting so that we can identify what's causing the issue. If you're unable to provide one, can you try our quickstart app and see if you can reproduce the issue?

Aside from that, are you constantly experiencing this error? Could you provide the steps you've taken when you encountered the issue?

In addition to that, the latest release includes an update in firebase-sessions dependency. Could you try using the latest SDK version (32.7.1) and see if the issue persists? The latest release includes an update in firebase-sessions dependency.

billdizl commented 9 months ago

ok i will try , but need long time to find it, because we next version will be one month late

google-oss-bot commented 9 months ago

Hey @billdizl. 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!

google-oss-bot commented 9 months ago

Since there haven't been any recent updates here, I am going to close this issue.

@billdizl if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.