Skip to content

Editor get stuck on Application.Reload when using Listen() on a collection or document reference #845

@Sov3rain

Description

@Sov3rain

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.1.8f1
  • Firebase Unity SDK version: 6.16.0
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: Firestore
  • Other Firebase Components in use: Auth, Functions
  • Additional SDKs you are using: none
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: Android, iOS
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

When listening for changes on a collection or a document in any part of a script, Editor get stuck on Application.Reload state after recompiling or when entering play mode.

Steps to reproduce:

  • Add a document or collection listener with ref.Listen() in any part of a monobehaviour script.
  • Return to the Editor and wait for compilation
  • Try to enter play mode
  • Editor get stuck on Application.Reload state and is unusable.

image

Appens 100% of the time. If not listener is set, everything is ok.

Relevant Code:

Example class:

using Firebase.Firestore; using UnityEngine; public class TestListenFirebase : MonoBehaviour { void Start() { var db = FirebaseFirestore.DefaultInstance; CollectionReference col = db.Collection("users"); col.Listen(snapshot => { Debug.Log("Listening..."); }); } } 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions