question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Crash] Firebase crashes on some Windows machines

See original GitHub issue

Operating 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:open
  • Created a year ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
deveshbeniwalcommented, Jun 28, 2022

@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 -

    db = FirebaseFirestore.DefaultInstance;
    db.Settings.PersistenceEnabled = false;

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

0reactions
iremgunercommented, Nov 25, 2022

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 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashlytics App Crash & Stability Reporting - Firebase - Google
Firebase Crashlytics, a real time crash reporting tool, helps you prioritize and fix your most pervasive app crashes based on the impact on...
Read more >
Crashes on Firebase Z (PC Specific) : r/blackopscoldwar
I'm wondering if anyone else is having an issue with crashes ... It almost always seems to crash the game when moving between...
Read more >
How to fix Android app crashing that uses Firebase?
Connect your app to Crashlytics,this way you will receive crash emails that will lead you to the exact issue thats causing your app...
Read more >
Analyze issues from Firebase Crashlytics with App Quality ...
Analyze and address issues from Firebase Crashlytics with the App Quality Insights tool window in Android Studio.
Read more >
Check a crashed app for errors by using Error Reporting
Check a crashed app for errors by using Error Reporting · Simulate an error from a service in a Google Cloud project. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found