Skip to content

[Bug] Firebase 11.1 causing multiple issues #768

Closed
@brenofurlanpixo

Description

@brenofurlanpixo

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions