[Crash] Firebase crashes on some Windows machines
See original GitHub issueOperating system: Windows Operating system version: Windows 10 (10.0.19044) 64bit Firebase version: 9.0.0 Unity version: 2021.3.1f1
What steps will reproduce the problem:
- Starting the game (Hnefatafl on Steam) -> Crash
What is the expected result?
- Don’t crash…
What happens instead of that?
- It crashes…
The Unity game has been using Firebase for a while now and with the latest update the plugin got upgraded to 9_0_0. Since then some users can’t start the game anymore as it crashes right away. The game uses Auth, Database (on desktop) and Messaging (on mobile). The stacktrace:
0x00007FFA7ED1A569 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED1B8CB (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED17751 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED18320 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED18F89 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED19279 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED15AB3 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED08B91 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7EB81544 (FirebaseCppApp-9_0_0) uS::Node::getLoop
0x00007FFA7EB6B387 (FirebaseCppApp-9_0_0) uS::Node::getLoop
0x00007FFA7EB4F8AF (FirebaseCppApp-9_0_0) uS::Node::getLoop
0x00007FFA7EB4FFBB (FirebaseCppApp-9_0_0) uS::Node::getLoop
0x00007FFA7EB48C39 (FirebaseCppApp-9_0_0) uS::Node::getLoop
0x00007FFA7EB3E791 (FirebaseCppApp-9_0_0) uS::Node::getLoop
0x00007FFA7EFAC9F4 (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFA7ED0245F (FirebaseCppApp-9_0_0) uWS::HttpSocket<0>::upgrade
0x00007FFAF4691BB2 (ucrtbase) configthreadlocale
0x00007FFAF57C7034 (KERNEL32) BaseThreadInitThunk
0x00007FFAF6EE2651 (ntdll) RtlUserThreadStart
All the app does is using custom auth via our backend (REST API) and then accessing a realtime database (listening to changes). If those users change back to the old versions everything works fine. The new version also works fine for other users. So there is no consistency here.
What could be the cause for this issue? As the old version works fine for those users I assume it is not a networking issue on their side.
Issue Analytics
- State:
- Created a year ago
- Comments:17 (3 by maintainers)
Top GitHub Comments
@dconeybe Got the solution! Unity project is making multiple instances for firestore or realtime database so we have to make it persistant after taking instance. You can declare instance like below -
NOTE : PersistenceEnabled must be false. Also this error might thorugh from firebase while we initialize instance. HOPE this will be get solved in next updates
This issue is still exist for my project. I’m using firebase realtime db 9.5.0 and unity version 2021.3.2f1. In the beginning of the preoject I was using PersistenceEnabled = true. Then I changed my code to PersistenceEnabled = false but crash still occurs on Unity Editor.
Is it possible to have old cache from enabling persistency of database before? I searched on the internet, however I couldn’t find a proper solution for cleaning a persistent cache for realtime db. Anyone has a suggestion ?