question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] AppUtilPINVOKE.PollCallbacks(); - Crash Unity Editor

See original GitHub issue

[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);
        }
        

Issue Analytics

  • State:open
  • Created 3 months ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
google-oss-botcommented, Jul 25, 2023

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!

2reactions
google-oss-botcommented, Aug 18, 2023

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug - Editor keeps crashing constantly
I am using 2022.2.13f (but this is happening from 2022.2.10f1) and the editor crashes every couple of minutes making it impossible to work ......
Read more >
Firestore Listener Crashes Unity App On Android, but ...
My Unity app uses Firebase Firestore listeners to receive data. In the Unity editor everything works very well and I never get an...
Read more >
Unity Editor - Sign In Anonymously - keeps crashing
firebase auth test app keeps crashing every second time I try to sign in anonymously as you can see in appended video. Does...
Read more >
Debugging Unity Crashes & Errors - The Easy Way - YouTube
... Learn how to catch and fix bugs in about 2 minutes using Backtrace.io and Unity3D. ... Debugging Unity Crashes & Errors -...
Read more >
Identifying crashes at launch - Unity
If your app crashes whilst it is launching, you may want to give the crash more attention. BugSnag provides an API to mark...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found