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

[Bug] java.lang.IllegalStateException UnityPlayerGameActivity FirebaseApp was deleted #1156

Open
UnwindGamesDeveloper opened this issue Nov 30, 2024 · 1 comment

Comments

@UnwindGamesDeveloper
Copy link

UnwindGamesDeveloper commented Nov 30, 2024

Description

Game Crashes at Launch some times.

Reproducing the issue

  • Add the Firebase Unity SDK.
  • Instantiate Firebase via FirebaseApp.Create instead of default instance.
  • Remove FirebaseInitProvider from manifest --- provider android:name="com.google.firebase.provider.FirebaseInitProvider" android:authorities="xyz.firebaseinitprovider" tools:node="remove"

Firebase Unity SDK Version

12.4.1

Unity editor version

6000.0.27f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

No response

Other Firebase Component(s) in use

No response

Additional SDKs you are using

No response

Targeted Platform(s)

Android

Unity editor platform

Mac

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

java.lang.IllegalStateException: FirebaseApp was deleted
        at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.3.0:2)
        at com.google.firebase.FirebaseApp.checkNotDeleted(FirebaseApp.java:462)
        at com.google.firebase.FirebaseApp.getApplicationContext(FirebaseApp.java:122)
        at com.google.firebase.installations.FirebaseInstallations.getPrefsWithGeneratedIdMultiProcessSafe(FirebaseInstallations.java:475)
        at com.google.firebase.installations.FirebaseInstallations.doRegistrationOrRefresh(FirebaseInstallations.java:361)
        at com.google.firebase.installations.FirebaseInstallations.lambda$getToken$2$com-google-firebase-installations-FirebaseInstallations(FirebaseInstallations.java:261)
        at com.google.firebase.installations.FirebaseInstallations$$ExternalSyntheticLambda4.run(D8$$SyntheticClass)
        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(D8$$SyntheticClass)
        at java.lang.Thread.run(Thread.java:923)

If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet
👀 Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

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

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

3 participants