firebase-unity-sdk: [Bug] AppUtilPINVOKE.PollCallbacks(); - Crash Unity Editor

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.3.12f1
  • Firebase Unity SDK version: 11.2
  • Source you installed the SDK: UPM ( .tgz )
  • Problematic Firebase Component: Auth
  • Other Firebase Components in use: Firestore, Messaging, Remote Config, Crashlytics
  • Additional SDKs you are using: Applovin Mediation, Admob, many more (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: Windows (Mac, Windows, or Linux)
  • Platform you are targetin: iOS/Android/Desktop
  • Scripting Runtime: IL2CPP (Mono, and/or IL2CPP)
  • Pre-built SDK from the website or open-source from this repo: PreBuilt

[REQUIRED] Please describe the issue here:

Authenticate the user.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? Don’t event try it… I’ve upgraded version from 10.6 -> 11.2

What happened? How can we make the problem occur?

After initialization of firebase, and authentication unity editor crashes. There, is nothin in the Unity Editor Logs. image

Relevant Code:

        
        public void Initialize()
        {
            if (GameMaster.Firebase.IsSafeToUse == false)
            {
                Log.Error("Firebase is not safe to use!!");
                return;
            }
            
            _auth = FirebaseAuth.GetAuth(GameMaster.Firebase.Application);
            
            Log.Info("[DevilmindAuth] Registering AuthOnStateChanged callback");
            _auth.StateChanged += AuthOnStateChanged;
            
            Log.Info("[DevilmindAuth] Calling AuthOnStateChanged callback initialy on start");
            AuthOnStateChanged(this, null);
            
            //Assigning after initial login, to make sure that we have already logged in
            Log.Info("[DevilmindAuth] Registering AuthOnIdTokenChanged callback");
            _auth.IdTokenChanged += AuthOnIdTokenChanged;
        }

        private void AuthOnIdTokenChanged(object sender, EventArgs e)
        {
            Log.Info("[DevilmindAuth]  AuthOnIdTokenChanged is called");
            RefreshToken(false, false);
        }
        

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

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

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

More informations.