[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.
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:
- Created 3 months ago
- Comments:16 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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!