-
Notifications
You must be signed in to change notification settings - Fork 444
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
Comments
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. |
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. |
@hipposan any update on removing the key from the Keychain? |
@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. |
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? |
@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). |
Hi @jonsimantov . I have same error. Please give me more info what file in Keychain Access I have to remove? |
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? |
@a-maurice i got this error almost everytime i updated firebase sdk. Here's some information from unity editor log: `UnityMonetizationEditor: Initialize(2832680, True); (Filename: Library/PackageCache/[email protected]/Runtime/Monetization/MonetizationPlatform.cs Line: 108) < HTTP/1.1 200 OK
(Filename: Z Line: 0) Refreshing native plugins compatible for Editor in 2.80 ms, found 5 plugins. (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 (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 (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 (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 (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 Unloading 1117 unused Assets to reduce memory usage. Loaded Objects now: 2981. 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 Native stacktrace:
Debug info from gdb: (lldb) command source -s 0 '/tmp/mono-gdb-commands.gbvI2P'
libsystem_kernel.dylib`mach_msg_overwrite_trap: Executable module set to "/Applications/Unity/Hub/Editor/2018.4.0f1/Unity.app/Contents/MacOS/Unity".
=================================================================
|
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.
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.
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. |
Firebase 6.2.2, macOS 10.14.6, unity 2019.2.2f1 same issue happens |
Firebase 6.2.2, macOS 10.14.6, unity 2019.2.2f1, I am also experiencing the same issue as described above |
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. |
This should be fixed in 6.5.0 https://firebase.google.com/support/release-notes/unity#version_650_-_september_10_2019 |
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
The text was updated successfully, but these errors were encountered: