Skip to content

Auth (macOS): Fails to save credentials to Keychain in editor #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hipposan opened this issue Jun 15, 2019 · 14 comments
Closed

Auth (macOS): Fails to save credentials to Keychain in editor #387

hipposan opened this issue Jun 15, 2019 · 14 comments

Comments

@hipposan
Copy link

I'm following the authentication instructions from here. When the method auth.SignInWithCustomTokenAsync is called, there will be an error shows in Unity Editor Console with the message SaveUserData: Error -25299 adding [ID].firebase.auth/__FIRAPP_DEFAULT: The specified item already exists in the keychain.

Please give some pieces of advice.

I'm using:
Unity editor version: 2017.4.20f2
Firebase Unity SDK version: 6.1.1
Firebase plugins in use (Auth, Database, etc.): Auth, Database, Analytics, Functions, Messaging, RemoteConfig, Storage
Additional SDKs you are using (Facebook, AdMob, etc.): Facebook
Platform you are using the Unity editor on (Mac, Windows, or Linux): macOS 10.14.5
Platform you are targeting (iOS, Android, and/or desktop): Editor, iOS, Android

@hipposan hipposan added the new New issue. label Jun 15, 2019
@jonsimantov
Copy link
Contributor

Hi,

Thanks for reporting the issue. Could you tell me if you are running inside the Unity editor (by pressing the "Play" button) or building a standalone desktop build? Did you recently copy your project, run it from different directories, run it under different versions of Unity, etc?

In any case, it sounds like the location in your keychain where we cache the user credentials on desktop may have gotten into a bad state. If you run Keychain Access on your mac and locate and delete the key you mentioned, it should work again.

If it happens again, I'd definitely be interested to find out how it got into that state so we could reproduce the issue and prevent it from happening in the future.

@hipposan
Copy link
Author

Hi @jonsimantov

I was running inside the Unity editor. I didn't try other Unity versions yet. Previously I was using v.5.7.0, there wasn't any problem. I guess this could be caused by the new feature added from version 6?

I can try to remove the key from Keychain and will be back to you if there is anything new.

@stewartmiles stewartmiles added type: question and removed new New issue. labels Jun 25, 2019
@stewartmiles
Copy link
Contributor

@hipposan any update on removing the key from the Keychain?

@stewartmiles stewartmiles changed the title SaveUserData: Error -25299 Auth (macOS): Fails to save credentials to Keychain in editor Jun 25, 2019
@inxidious
Copy link

@stewartmiles I'm experiencing same issue today after upgrading to firebase sdk 6.2.0

And the unity editor crashed (not responding) if i hit Play button after the error.
Removing the key from keychain access solved the problem. No errors and the editor not crashed anymore.

@a-maurice
Copy link
Contributor

Hi @inxidious, is there any chance you could provide the editor log (or perhaps just any relevant bits from it) from a time when it crashes?

@inxidious
Copy link

@a-maurice Unfortunately i didn't save the editor log when it happened. I'll save it the next time it crashes.

fyi, it happened twice. after i deleted the key from the keychain, it runs fine for a while, the it crashes again after a couple of editor play. But after i deleted it for the second time, it never happened again until now (already 5 days).

@Vah94
Copy link

Vah94 commented Jul 19, 2019

Hi @jonsimantov . I have same error.
SaveUserData: Error -25299 adding com.companyname.gamename-XXXXXXX.5HC2ceuJrOE.firebase.auth/__FIRAPP_DEFAULT: The specified item already exists in the keychain.
UnityEngine.Debug:LogError(Object)
Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) (at Z:/tmp/tmp.dV9kf5oLzs/firebase/app/client/unity/src/Unity/FirebaseLogger.cs:79)
Firebase.LogUtil:LogMessage(LogLevel, String) (at Z:/tmp/tmp.LXG0TU0ZlU/firebase/app/client/unity/proxy/LogUtil.cs:62)
Firebase.LogUtil:LogMessageFromCallback(LogLevel, String) (at Z:/tmp/tmp.LXG0TU0ZlU/firebase/app/client/unity/proxy/LogUtil.cs:70)

Please give me more info what file in Keychain Access I have to remove?

@cynthiajoan
Copy link
Contributor

Hi @Vah94 you can search com.companyname.gamename-XXXXXXX.5HC2ceuJrOE.firebase.auth in your keychain and delete the result found. Besides that, I'd like to understand can you still work with the editor when you see the error, or even the editor will crash?

@inxidious
Copy link

@a-maurice i got this error almost everytime i updated firebase sdk. Here's some information from unity editor log:

`UnityMonetizationEditor: Initialize(2832680, True);
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.Monetization.Platform:Initialize(String, Boolean) (at Library/PackageCache/[email protected]/Runtime/Monetization/MonetizationPlatform.cs:108)
UnityEngine.Monetization.Monetization:Initialize(String, Boolean) (at Library/PackageCache/[email protected]/Runtime/Monetization/Monetization.cs:118)
d__10:MoveNext() (at Assets/_Game/_Scenes/InitScene/InitSceneController.cs:81)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

(Filename: Library/PackageCache/[email protected]/Runtime/Monetization/MonetizationPlatform.cs Line: 108)

< HTTP/1.1 200 OK
< Expires: Mon, 01 Jan 1990 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Date: Thu, 01 Aug 2019 10:00:30 GMT
< Content-Type: application/json; charset=UTF-8
< Vary: X-Origin
< Vary: Referer
< Server: ESF
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Alt-Svc: quic=":443"; ma=2592000; v="46,43,39"
< Accept-Ranges: none
< Vary: Origin,Accept-Encoding
< Transfer-Encoding: chunked
<

  • Connection All firebase plugins in one project #8 to host www.googleapis.com left intact
    SaveUserData: Error -25299 adding com.aaa.bbb.ccc.ddd.firebase.auth/__FIRAPP_DEFAULT: The specified item already exists in the keychain.
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:LogError(Object)
    Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseLogger.cs:79)
    Firebase.LogUtil:LogMessage(LogLevel, String) (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\LogUtil.cs:62)
    Firebase.LogUtil:LogMessageFromCallback(LogLevel, String) (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\LogUtil.cs:70)

(Filename: Z Line: 0)

Refreshing native plugins compatible for Editor in 2.80 ms, found 5 plugins.
Preloading 1 native plugins for Editor in 1.70 ms.
Got local time! 8/1/2019 10:00:29 AM
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
<>c__DisplayClass12_0:b__3() (at Assets/_Core/Managers/Time Manager/TimeManager.cs:135)
d__4:MoveNext() (at Assets/_Core/Tools/UnityMainThreadDispatcher.cs:61)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutineManaged2(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) (at /Users/builduser/buildslave/unity/build/Runtime/Export/MonoBehaviour.bindings.cs:91)
<>c__DisplayClass2_0:b__0() (at Assets/_Core/Tools/UnityMainThreadDispatcher.cs:46)
UnityMainThreadDispatcher:Update() (at Assets/_Core/Tools/UnityMainThreadDispatcher.cs:34)

(Filename: Assets/_Core/Managers/Time Manager/TimeManager.cs Line: 135)

Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Signed in Sjq4LJireoQT9DlyD9FF4hnc5mC3
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
FirebaseManager:AuthStateChanged(Object, EventArgs) (at Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs:113)
Firebase.Auth.FirebaseAuth:m__0(FirebaseAuth) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:250)
Firebase.Auth.c__AnonStorey3:<>m__0() (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.ExceptionAggregator:Wrap(Action) (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:98)
Firebase.Auth.FirebaseAuth:ForwardStateChange(IntPtr, Action`1) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.Auth.FirebaseAuth:StateChangedFunction(IntPtr) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:244)
Firebase.AppUtilPINVOKE:PollCallbacks()
Firebase.AppUtil:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\AppUtil.cs:32)
Firebase.Platform.FirebaseAppUtils:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\FirebaseAppUtils.cs:17)
Firebase.Platform.FirebaseHandler:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:189)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseMonoBehaviour.cs:29)

(Filename: Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs Line: 113)

Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
DisplayName:
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
FirebaseManager:AuthStateChanged(Object, EventArgs) (at Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs:114)
Firebase.Auth.FirebaseAuth:m__0(FirebaseAuth) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:250)
Firebase.Auth.c__AnonStorey3:<>m__0() (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.ExceptionAggregator:Wrap(Action) (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:98)
Firebase.Auth.FirebaseAuth:ForwardStateChange(IntPtr, Action`1) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.Auth.FirebaseAuth:StateChangedFunction(IntPtr) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:244)
Firebase.AppUtilPINVOKE:PollCallbacks()
Firebase.AppUtil:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\AppUtil.cs:32)
Firebase.Platform.FirebaseAppUtils:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\FirebaseAppUtils.cs:17)
Firebase.Platform.FirebaseHandler:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:189)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseMonoBehaviour.cs:29)

(Filename: Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs Line: 114)

Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
isAnonymous: False
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
FirebaseManager:AuthStateChanged(Object, EventArgs) (at Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs:115)
Firebase.Auth.FirebaseAuth:m__0(FirebaseAuth) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:250)
Firebase.Auth.c__AnonStorey3:<>m__0() (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.ExceptionAggregator:Wrap(Action) (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:98)
Firebase.Auth.FirebaseAuth:ForwardStateChange(IntPtr, Action`1) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.Auth.FirebaseAuth:StateChangedFunction(IntPtr) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:244)
Firebase.AppUtilPINVOKE:PollCallbacks()
Firebase.AppUtil:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\AppUtil.cs:32)
Firebase.Platform.FirebaseAppUtils:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\FirebaseAppUtils.cs:17)
Firebase.Platform.FirebaseHandler:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:189)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseMonoBehaviour.cs:29)

(Filename: Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs Line: 115)

Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
providerID: Firebase
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
FirebaseManager:AuthStateChanged(Object, EventArgs) (at Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs:117)
Firebase.Auth.FirebaseAuth:m__0(FirebaseAuth) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:250)
Firebase.Auth.c__AnonStorey3:<>m__0() (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.ExceptionAggregator:Wrap(Action) (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:98)
Firebase.Auth.FirebaseAuth:ForwardStateChange(IntPtr, Action`1) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:237)
Firebase.Auth.FirebaseAuth:StateChangedFunction(IntPtr) (at Z:\tmp\tmp.o4H0dMWyzf\firebase\auth\client\unity\proxy\FirebaseAuth.cs:244)
Firebase.AppUtilPINVOKE:PollCallbacks()
Firebase.AppUtil:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\AppUtil.cs:32)
Firebase.Platform.FirebaseAppUtils:PollCallbacks() (at Z:\tmp\tmp.myBRAAObi2\firebase\app\client\unity\proxy\FirebaseAppUtils.cs:17)
Firebase.Platform.FirebaseHandler:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:189)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:\tmp\tmp.sCe05msHfb\firebase\app\client\unity\src\Unity\FirebaseMonoBehaviour.cs:29)

(Filename: Assets/_Core/Managers/Firebase Manager/FirebaseManager.cs Line: 117)

Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Load scene 'Temp/__Backupscenes/0.backup' time: 0.422149 ms
Unloading 270 Unused Serialized files (Serialized files now loaded: 0)
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
System memory in use before: 470.4 MB.
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle.so
System memory in use after: 470.4 MB.

Unloading 1117 unused Assets to reduce memory usage. Loaded Objects now: 2981.
Total: 17.097549 ms (FindLiveObjects: 0.958480 ms CreateObjectMapping: 0.259921 ms MarkObjects: 13.692039 ms DeleteObjects: 2.186004 ms)

Fallback handler could not load library /Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_2_2.bundle
INFO: Firebase App initializing app __FIRAPP_DEFAULT (default 1).
ERROR: SaveUserData: Error -25299 adding com.aaa.bbb.ccc.ddd.firebase.auth/__FIRAPP_DEFAULT: The specified item already exists in the keychain.

Native stacktrace:

0   libmonobdwgc-2.0.dylib              0x000000013b0dc8a6 mono_handle_native_crash + 242
1   libsystem_platform.dylib            0x00007fff67badb5d _sigtramp + 29
2   ???                                 0x0000000000000000 0x0 + 0
3   libsystem_c.dylib                   0x00007fff67a676a6 abort + 127
4   FirebaseCppApp-5.4.3.bundle         0x0000000149fdf44e RSA_parse_public_key + 0
5   FirebaseCppApp-5.4.3.bundle         0x0000000149f8c4d9 SSL_CTX_free + 26
6   FirebaseCppApp-5.4.3.bundle         0x0000000149f8c7a1 _ZN6ssl_stD2Ev + 123
7   FirebaseCppApp-5.4.3.bundle         0x0000000149f8d026 SSL_free + 22
8   FirebaseCppApp-5.4.3.bundle         0x0000000149f5a15d _ZN2uS6Socket11closeSocketIN3uWS10HttpSocketILb0EEEEEvv + 47
9   FirebaseCppApp-5.4.3.bundle         0x0000000149f59a54 _ZN3uWS10HttpSocketILb0EE5onEndEPN2uS6SocketE + 36
10  FirebaseCppApp-6_2_2.bundle         0x000000015a468ce6 uv__run_timers + 22
11  FirebaseCppApp-6_2_2.bundle         0x000000015a46c383 uv_run + 163
12  FirebaseCppApp-6_2_2.bundle         0x000000015a411c0b _ZN8firebase8database8internal10connection19WebSocketClientImpl16EventLoopRoutineEPv + 35
13  FirebaseCppApp-5.4.3.bundle         0x000000014a06ddfa _ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEPFvPvES7_EEEEES7_S7_ + 44
14  libsystem_pthread.dylib             0x00007fff67bb62eb _pthread_body + 126
15  libsystem_pthread.dylib             0x00007fff67bb9249 _pthread_start + 66
16  libsystem_pthread.dylib             0x00007fff67bb540d thread_start + 13

Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.gbvI2P'
Executing commands in '/tmp/mono-gdb-commands.gbvI2P'.
(lldb) process attach --pid 10924
Process 10924 stopped

  • thread Readmes pointing to wrong location for the SDK #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff67af722a libsystem_kernel.dylibmach_msg_trap + 10 libsystem_kernel.dylibmach_msg_trap:
    -> 0x7fff67af722a <+10>: retq
    0x7fff67af722b <+11>: nop

libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x7fff67af722c <+0>: movq %rcx, %r10
0x7fff67af722f <+3>: movl $0x1000020, %eax ; imm = 0x1000020
Target 0: (Unity) stopped.

Executable module set to "/Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/MacOS/Unity".
Architecture set to: x86_64h-apple-macosx-.
(lldb) thread list
Process 10924 stopped

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

[Unity Package Manager (Upm)]
Parent process [10924] was terminated`

@mikeypdev
Copy link

If helpful, I can see this issue in the editor on Unity 2019.1.14f1 on macOS 10.14.6 with Firebase SDK 6.3.0 when using Email credentials. I am not seeing the issue on Standalone builds.

If I first delete the key in the keychain, the new key is created successfully and the game runs.

User signed in successfully:  (NCU9uWEaiMP1MatfnTp0kA6DwN32)
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
UnityEngine.Debug:LogFormat(String, Object[])
AuthCredentialEmail:<SignInWithCredential>b__5_0(Task`1) (at Assets/Scripts/Backend/AuthCredentialEmail.cs:179)
Firebase.Extensions.<ContinueWithOnMainThread>c__AnonStorey9:<>m__0() (at Z:\tmp\tmp.P9pZ2WBzyC\firebase\app\client\unity\task-extension\TaskExtension.cs:112)
Firebase.<RunAsync>c__AnonStorey1`1:<>m__0() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Platform\Dispatcher.cs:61)
Firebase.ExceptionAggregator:Wrap(Action) (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:98)
Firebase.Dispatcher:PollJobs() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Platform\Dispatcher.cs:107)
Firebase.Platform.FirebaseHandler:Update() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:188)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Unity\FirebaseMonoBehaviour.cs:29)

If I don’t quit Unity, I can restart the game as often as desired, and everything will continue to work fine. However after quitting and restarting unity, the game will encounter SaveUserData: Error -25299, and Unity will eventually hang if I run the game more than once, or try to exit Unity.

CurrentUser == null is reported after the AuthStateChanged handler, so it appears that the keychain failed to read. Since the game thinks the user is logged out, a login dialog is prompted, and I encounter the keychain error after login.

Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.1.14f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle (http://unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle)
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.1.14f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle.dylib (http://unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle.dylib)
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.1.14f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle.so (http://unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle.so)
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.1.14f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle (http://unity.app/Contents/Frameworks/Mono/lib/libAssets/Firebase/Plugins/x86_64/FirebaseCppApp-6_3_0.bundle)
SaveUserData: Error -25299 adding com.[REDACTED].5HC2ceuJrOE.firebase.auth/__FIRAPP_DEFAULT: The specified item already exists in the keychain.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Unity\FirebaseLogger.cs:79)
Firebase.LogUtil:LogMessage(LogLevel, String) (at Z:\tmp\tmp.HzqjZMMOFf\firebase\app\client\unity\proxy\LogUtil.cs:62)
Firebase.LogUtil:LogMessageFromCallback(LogLevel, String) (at Z:\tmp\tmp.HzqjZMMOFf\firebase\app\client\unity\proxy\LogUtil.cs:70)

(Filename: Z Line: 0)

User signed in successfully: (NCU9uWEaiMP1MatfnTp0kA6DwN32)
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:LogFormat(LogType, String, Object[])
UnityEngine.Debug:LogFormat(String, Object[])
AuthCredentialEmail:<SignInWithCredential>b__5_0(Task`1) (at Assets/Scripts/Backend/AuthCredentialEmail.cs:179)
Firebase.Extensions.<ContinueWithOnMainThread>c__AnonStorey9:<>m__0() (at Z:\tmp\tmp.P9pZ2WBzyC\firebase\app\client\unity\task-extension\TaskExtension.cs:112)
Firebase.<RunAsync>c__AnonStorey1`1:<>m__0() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Platform\Dispatcher.cs:61)
Firebase.ExceptionAggregator:Wrap(Action) (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Platform\ExceptionAggregator.cs:98)
Firebase.Dispatcher:PollJobs() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Platform\Dispatcher.cs:107)
Firebase.Platform.FirebaseHandler:Update() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Unity\FirebaseHandler.cs:188)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:\tmp\tmp.SOETccsZXr\firebase\app\client\unity\src\Unity\FirebaseMonoBehaviour.cs:29)

Note also that I see a ton of the “Fallback handler could not load library ... FirebaseCppApp-6_3_0.bundle” messages in the Editor log, and once when Unity hanged, I saw this line continue to repeat in the editor.log.

@AndreyMay
Copy link

AndreyMay commented Aug 28, 2019

Firebase 6.2.2, macOS 10.14.6, unity 2019.2.2f1 same issue happens

@Greganator-zz
Copy link

Firebase 6.2.2, macOS 10.14.6, unity 2019.2.2f1, I am also experiencing the same issue as described above

@lfg-ryan
Copy link

Same issue on unity 2019.2.0f1. For those stuck. Open Keychain Access, Select category All Items. then search for firebase. Delete the key. You should be good at least until your next unity launch.

@stewartmiles
Copy link
Contributor

@firebase firebase locked and limited conversation to collaborators Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests