[Bug] Firebase 11.1 causing multiple issues
See original GitHub issue[REQUIRED] Please fill in the following fields:
- Unity editor version: 2021.3.14f1
- Firebase Unity SDK version: 11.1.0
- Source you installed the SDK: UPM
- Problematic Firebase Component: Crashlytics, Core
- Other Firebase Components in use: Auth, Firestore, Storage, Messaging, Installation, Auth, Remote Config, Analytics
- Additional SDKs you are using: iron-source
- Platform you are using the Unity editor on: mac, windows and linux
- Platform you are targeting: iOS and Android
- Scripting Runtime: IL2CPP
- Pre-built SDK from the website or open-source from this repo: Website
[REQUIRED] Please describe the issue here:
Since we’d updated the Firebase SDK to 11.0+ we’ve found several issues across our project:
Editor - NOT FIXED
After updating we are occasionally experiencing Editor crashes that are linked to the Firebase SDK. We haven’t been able to specifically identify where, although I’m going to provide some logs as it may be useful:
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at Firebase.Auth.AuthUtilPINVOKE:FirebaseUser_UserId_get <0x000a5>
at Firebase.Auth.FirebaseUser:get_UserId <0x0004a>
at Pixodust.Firebase.Auth.FirebaseAuthHandler:get_FirebaseId <0x00032>
at DisconnectController:TryGetValidUserId <0x0003d>
at DisconnectController:FindUserId <0x00032>
at DisconnectController:Initialize <0x00032>
...
at UnityEngine.Events.UnityAction`2:invoke_void_T0_T1 <0x000c8>
at UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded <0x00052>
at <Module>:runtime_invoke_void_Scene_int <0x00098
This only happens when trying to connect with Firebase services, there’s also this other log:
FunctionsException: INTERNAL
Firebase.Functions.HttpsCallableReference.<CallAsync>b__9_0 (System.Threading.Tasks.Task`1[TResult] task) (at /home/runner/work/firebase-unity-sdk/firebase-unity-sdk/functions/src/HttpsCallableReference.cs:88)
System.Threading.Tasks.ContinuationResultTaskFromResultTask`2[TAntecedentResult,TResult].InnerInvoke () (at <41229cbbc9214cf28863fc47f2e1508c>:0)
System.Threading.Tasks.Task.Execute () (at <41229cbbc9214cf28863fc47f2e1508c>:0)
--- End of stack trace from previous location where exception was thrown ---
This happens on Editor, but you can see that we’ve got some logs for ‘/home/runner’ path, perhaps this is an issue with Firebase CI?
Steps to reproduce:
It happens really occasionally, no specific steps are recorded but this issue is present in both MacOS Ventura 13.1 and Windows 11
Build - WORKAROUNDED
We found that running Android builds on Linux environments will output broken builds which cannot be opened. This is due this error, when triggered Crashlytics can’t generate the build_id property and will prevent the game from opening:
Assembly 'Packages/com.google.firebase.crashlytics/Firebase/Editor/Firebase.Crashlytics.Editor.dll' will not be loaded due to errors:
Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?"
To solve this we had to add iOS Build Support for CI Android, which is not optimal.
If I can provide any further info or help please let me know, thanks 😃
[EDIT]
Issue also present on MacOS 12.5
Issue Analytics
- State:
- Created 3 months ago
- Comments:14 (3 by maintainers)
Top GitHub Comments
Same, 11.1v issues https://github.com/firebase/firebase-unity-sdk/issues/777
We have just updated from Firebase 10.4.0 to 11.2.0 and we’re getting this Editor crash randomly, across all our editors. In our case the call stack is:
There have been no changes to our auth code, the only change has been updating Firebase while integrating Firebase Messaging. There is clearly something broken here, please re-open.