Skip to content

Feature Request: Build in safety for accessing the Firebase instance in Finalize - either as a warning or with some other guard against a deadlock lock. #397

Open
@puschie286

Description

@puschie286

Please fill in the following fields:

Unity editor version: 2020.1
Firebase Unity SDK version: 16.15.2
Source you installed the SDK (.unitypackage or Unity Package Manager): UPM
Firebase plugins in use (Auth, Database, etc.): auth, database, messaging
Additional SDKs you are using (Facebook, AdMob, etc.): does not matter
Platform you are using the Unity editor on (Mac, Windows, or Linux): windows
Platform you are targeting (iOS, Android, and/or desktop): desktop
Scripting Runtime (Mono, and/or IL2CPP): both

Please describe the issue here:

the unity editor does not clean up the game classes when exiting play mode but right before a entering play mode and before a recompile. if you try to cleanup ( accessing firebase app or firebase database ) in the destructor of your class and the play mode has not started it will cause a deadlook of the whole editor.

callstack:
image

Please answer the following, if applicable:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
no

What's the issue repro rate? (eg 100%, 1/5 etc)
100%

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions