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
[Bug] Windows user containing non-ANSI characters (e.g. ä) causes Unity Editor crash in Firestore #351
Comments
Thanks for reporting @Karottenrambo . Would you be able to provide the Unity Editor logs located at |
Sure, but I could not find anything suspicious :/ one thing that I did that was not according to the tutorial was, removing Unity.Compat.dll and Unity.Tasks.dll from the folder Parse/Plugins. With them I got an "Type Task<> exists in both Unity.Tasks and mscorelib" error. |
Make sure that you are importing the Firebase unitypackage file(s) from the |
You should not have to manually delete Unity.Compat.dll or Unity.Tasks.dll. If you do, then something is going wrong. Could you try creating a brand new, minimal project that uses Firestore to see if you still get this crash with that new project? If you are able to reproduce, could you post your project in a GitHub repository so that we can observe the crash for ourselves and investigate? |
I reimported the package and commented out the Code that used "Task" so I could build without the Build error. I created a minimal version: But there I get the same issue :/ I guess it might be related to my machine, but how to debug without any kind of logs? |
That project still looks like it had previously incorrectly imported the unitypackage files from the Please try the following:
This should get rid of the previously-imported dotnet3 files. See if it still crashes after that. |
Unfortunately I still experience the same issue, tried updating both, my original project and the minimal build. I updated the repository where do you see the incorrectly imported files from dotnet3? I really hope we can find a solution for this, on paper Firestore would fit my game much better than playfab... |
Hi @Karottenrambo. Unfortunately, I'm not able to assist further in this investigation. The only thing I can recommend is to try creating a brand new Unity project, import the Firestore unitypackage asset, and try and use Firestore. If that works for you then there is possibly something corrupted in your unity project. If that doesn't work for you, then there will be a much smaller reproducible scenario to investigate. |
hey @dconeybe https://github.com/Karottenrambo/FirebaseCrashTest is a brand new unity project, as you suggested, on my Windows PC it still has the same crashing behavior as on my original Project. However, meanwhile, I tried checking out the project on my Mac, there accessing the database works without any issues inside the unity Editor. So it seems indeed connected to my windows PC. Might there be any issues with accessing the local path that firststore uses for the offline database support? |
I'm not able to reproduce the crash with your project, even on Windows. This may be a lot to ask, but would you be able to record a screen capture video of you creating a new project, importing the Firebase unitypackage files, creating a csharp script that uses the Firestore APIs, then crashing? I'm now sure how else to proceed in the absence of logs and reproducibility. |
I fear that you won't see a lot of useful info in there, but if it helps: |
That video was actually incredibly helpful! I noticed something subtle. I believe you are experiencing firebase/firebase-cpp-sdk#728. Basically, if the path to your %USERPROFILE% folder contains non-ANSI characters (e.g. ä) then this causes a crash on Windows. If you're able, could you try creating a user with only plain ANSI characters and try the same steps when logging in as that user? |
This really was the issue, thanks! But I really hope that this gets fixed in the future, outside of the anglo American language are many names with special characters, all those users are affected by this bug. There is no easy workaround for this, renaming the user folder, even with changing the registry, breaks other software, and constantly switching user accounts is really annoying. Is there a way to manually set the path? |
I'm glad we've found the root cause and a workaround, albeit an annoying workaround. I'm going to transfer this issue to https://github.com/firebase/firebase-unity-sdk so that we can keep track of it and hopefully fix it in the future. I cannot provide any timeline for the fix, but it will likely be a while due to other priorities. |
[REQUIRED] Please describe the issue here:
Accessing the Firestore DB constantly crashes/closes the Unity editor without a freeze or a crashlog.
It does not matter if I get a DocumentReference, or try to read or write data.
Running the same code on an actual android device works.
Steps to reproduce:
Followed the basic Add Firebase to your Unity Game Firecast:
https://www.youtube.com/watch?v=b5h1bVGhuRk&t=283s
I already tried creating an separate Firestore Instance like so:
FirebaseFirestore db = FirebaseFirestore.GetInstance(Firebase.FirebaseApp.Create());
working with the default instance does not work either.
The issue looks similar to this, but I already tried the suggested solutions and it should be fixed in the new SDK version anyways:
firebase/quickstart-unity#638
Unity created the "google-services-desktop" config file, but it's identical to the original "google-services" file, should that be the case?
The text was updated successfully, but these errors were encountered: