Skip to content
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

v 4.4.2 crashes with .NET 4.6 #138

Closed
criistii opened this issue Feb 15, 2018 · 8 comments
Closed

v 4.4.2 crashes with .NET 4.6 #138

criistii opened this issue Feb 15, 2018 · 8 comments

Comments

@criistii
Copy link

Hi,
I recently updated to Firebase 4.4.2 on a Unity project I am working on. The project uses .NET 4.6 under Unity 2017.3.1f1.

As soon as I call FirebaseApp.DefaultInstance, the editor crashes. I was able to reproduce the bug in a blank project. If the project is .NET 4.6 the editor crashes. If the project is .NET 3.5, everything is fine.

Please advice.

Thanks,

@stewartmiles
Copy link
Contributor

I'm surprised to hear that it crashes the editor, we know that currently compilation will fail. Do you have the editor log from the crash?

That said, we have a workaround documented here https://groups.google.com/d/embed/msg/firebase-talk/2w1Lk62VIcg/_laCr8JzAAAJ

@criistii
Copy link
Author

The proposed option did not work. I compiled the project both debug and released, and tried both versions of the dll. The editor is still crashing.
I am attaching the log file in case it helps.
In the meantime, can you point me to where I can get an older version of Firebase, so I can continue working?
Editor.log

@stewartmiles
Copy link
Contributor

@a-maurice the stack trace is pointing at some code you was poking at recently, ring any bells?

@criistii thanks for reporting.

All prior releases are available from

https://dl.google.com/firebase/sdk/unity/firebase_unity_sdk_VERSION.zip

e.g

https://dl.google.com/firebase/sdk/unity/firebase_unity_sdk_4.4.0.zip

4.4.1 was broken due to the iOS SDK it depends upon being revoked.

@criistii
Copy link
Author

Small update: I spent most of the day today trying to fix this. I tied different Unity versions and different Firebase versions (as low as 4.2.1). All of them are crashing in .NET 4.6 mode. Not sure how to fix this.

@stewartmiles
Copy link
Contributor

@criistii there must be something "different" with your machine vs. our test environments. What's the host operating system, Windows, OSX, Linux? Anything else you can share?

@criistii
Copy link
Author

I am working under MacOS 10.13.3. I did several clean installs of unity (moved the app to Trash). In case there are any caches I am not aware of, please let me know.
If you need more information, I would gladly help. Just let me know what you need.

Thansk,

@stewartmiles
Copy link
Contributor

@criistii, @patrickhoh patched the Unity SDK in 4.0.3 to workaround a Unity bug that broke certificate installation on OSX, essentially breaking the real-time database in the editor. However, Unity have fixed their bug and now our workaround is bringing down the editor. We have a patch internally which we're running through QA so expect a release to be posted next week.

In the meantime, I've attached a patched Firebase.Platform.dll (it's zipped) which you can use to replace Assets/Firebase/Plugins/Firebase.Platform.dll in the latest release of the SDK to workaround this issue.

Firebase.Platform.dll.zip

@johnb003
Copy link

We just released a fix for this in Firebase Unity 4.4.3. https://firebase.google.com/support/release-notes/unity#4.4.3

@firebase firebase locked and limited conversation to collaborators Oct 26, 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

3 participants