quickstart-unity: Garbage collection of App, Auth, Instance ID, Realtime Database, Storage garbage collection can crash.
My app occasionally crashing since upgrading to firebase 5.1.1 The only indication of the source of the problem that I have is in this crash information from xcode from users using IOS 11.4.1 based on the stack it looks like the problem is firebase database
any ideas?
Crash information:
This is what the pod file looks like:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs'
platform :ios, '8.2'
target 'Unity-iPhone' do
pod 'Firebase/Analytics', '5.3.0'
pod 'Firebase/Auth', '5.3.0'
pod 'Firebase/Core', '5.3.0'
pod 'Firebase/Database', '5.3.0'
pod 'Firebase/DynamicLinks', '5.3.0'
pod 'Firebase/Messaging', '5.3.0'
pod 'Firebase/RemoteConfig', '5.3.0'
pod 'FirebaseInstanceID', '3.1.1'
pod 'GoogleMobileAdsMediationUnity', '2.2.1.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
end
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (10 by maintainers)
@inxidious Using Firebase/Plugins/FirebaseDatabase.dll in the editor is not supported yet. This is why it is disabled by default.
This dll is pointing to our C++ desktop implementation, which is still work in progress. (And it is almost done!!!) We are making a lot of changes lately so I wouldn’t be surprised that 5.6.0 behaves differently than 5.4.3. Unfortunately the best bet to resolve #106 is to change the networking environment for now.
Still, thanks for the report. I will forward this information to the engineer who is working on this.
@chkuang-g has another patch for this pending release.
@chkuang-g i think the bug is still there The weird thing is that, the bug behaved differently between version firebase v5.4.3 and v5.6.0 All the bugs happened on Unity Editor, it runs fine on android
Please note that i disabled the FirebaseDatabase.dll under Firebase/Plugins/Mono for the editor platform, and enabled the one under Firebase/Plugins/ instead. Because of this issue: https://github.com/firebase/quickstart-unity/issues/106
Before upgrading to 5.6.0 (5.4.3): Everything runs smoothly if i didn’t use any database listener events, e.g. onChildAdded . But if use one, The unity editor either crashed or not responding on the second time i hit play.
After upgrade to 5.6.0:
My informations: Unity editor version: 2018.3.8f1 Firebase Unity SDK version: 5.6.0 Platform: Mac OS 10.14.3, 64 bit Scripting Runtime Version: .NET 4.x Equivalent Scripting Backend: Mono Api Compatibility Level: .NET Standard 2.0
Products used: Authentication, Database, & Cloud Functions