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

Firestore listener freezes Unity Editor on second launch (works on 6.15?) #859

Closed
scascar opened this issue Nov 7, 2020 · 1 comment
Closed

Comments

@scascar
Copy link

scascar commented Nov 7, 2020

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2019.4.14
  • Firebase Unity SDK version: 6.16.1 . Then downgraded to 6.15.2 and it worked
  • Source you installed the SDK: Package manager
  • Problematic Firebase Component: Firestore (DocumentReference.Listen)
  • Other Firebase Components in use: Auth, Storage, Functions
  • Additional SDKs you are using:
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

Hello, so I spent the last 5hours trying to resolve this bug, and the only way for me was to downgrade the sdk to 6.15.2.
This happened the first time i used the listener for firestore. On the first run, everything runs smoothly, but if i try to recompile or restart the project a second time, the editor hangs indefinitely.
The issue the closest to mine was #638 .
Seeing that there was a fix for 6.15.1, i gave it a chance, downgraded to 6.15.2 and apparently that solved my issue.

The editor logs were frozen on “Begin MonoManager ReloadAssembly”.
Sorry if thats not very detailed, I tried so many things ask me any question for explanation.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? No I used an existing firebase project.
What's the issue repro rate? 100%

What happened? How can we make the problem occur?
Just call a .Listen on a DocumentReference, quit play mode and try to restart.

Relevant Code:

//Basically call this anywhere in the project, on an existing DocumentReference object.
docRef.Listen(snap => TestFunc());
@scascar scascar added the new New issue. label Nov 7, 2020
@dconeybe
Copy link

dconeybe commented Nov 9, 2020

Unfortunately, this is a known issue and a fix is actively being worked on. Please see #845 for full details and a suggested workaround. I'm going to close this issue since it looks like an exact duplicate of #845, but feel free to re-open if you feel that it is a distinct issue.

@dconeybe dconeybe closed this as completed Nov 9, 2020
@dconeybe dconeybe added api: firestore type: bug and removed new New issue. labels Nov 9, 2020
@dconeybe dconeybe self-assigned this Nov 9, 2020
@firebase firebase locked and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.