firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
819 stars 424 forks source link

[Crash] Firebase crashes on some Windows machines #1284

Open Fellhuhn opened 2 years ago

Fellhuhn commented 2 years ago

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:

What is the expected result?

What happens instead of that?

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.

google-oss-bot commented 2 years ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

paulinon commented 2 years ago

Hi @Fellhuhn,

Thanks for reporting this to us. In order to identify what's causing this behavior, could you provide a minimal, reproducible example of your implementation?

google-oss-bot commented 2 years ago

Hey @Fellhuhn. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

chkuang-g commented 2 years ago

@Fellhuhn

A couple of questions:

Thank you, Shawn

Fellhuhn commented 2 years ago
* Which SDK version did you upgrade from?

I updated from firebase_unity_sdk_8.10.1.

* When it crashes for certain users, did it crash consistently to those users or is it flaky?

It always crashes, the game doesn't start at all.

As it seems the users are still running Windows 7, which might be the issue. Sadly they are not willing to help in resolving the problem.

chkuang-g commented 2 years ago

Thank you for the information.

To summarize, @Fellhuhn saw crashes for Windows standalone build related to websocket handshake upgrade on Windows 7 machine after upgrading Unity SDK from 8.10.1 to 9.0.0.

It does not seems to have any change in uWebSocket, the third-party SDK we use. Both versions were built from https://github.com/firebase/firebase-unity-sdk.

More investigation may need to be done.

chkuang-g commented 2 years ago

There are some change to boringssl from 8.10.1 to 9.0.0. This may be the cause. https://github.com/firebase/firebase-unity-sdk/compare/v8.10.1...v9.0.0

I'll mark this as a bug for now.

dconeybe commented 2 years ago

FYI This same crash has been reported against Firestore as well, with a slightly different stack trace: https://github.com/firebase/firebase-unity-sdk/issues/381

deveshbeniwal commented 2 years ago

Do anyone found the solution for this?

deveshbeniwal commented 2 years ago

I am not using ANSI characters in my user name but still its crashing at a point where i declare document refrence or collection refrence! Its crashing at firebaseCoreCpp file socket upgrade

deveshbeniwal commented 2 years ago

@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

dconeybe commented 2 years ago

@deveshbeniwal That's surprising that you fixed this crash by disabling persistence. There is a known issue where only one live Firestore instance can access a Firestore database with persistence enabled, but there is a distinct stack trace when that occurs. This stack trace was related to uWS, which has nothing to do with persistence. Maybe it's just a red herring though :shrug:

@Fellhuhn Could you try disabling persistence to see if it fixes this crash for you? In RTDB call FirebaseDatabase.SetPersistenceEnabled(false).

novalain commented 2 years ago

One team member also got this crash and callstack on Windows when upgrading to firebase > 9.0.0 @deveshbeniwal's fix worked great 🎉 hopefully there will be a real fix soon

Fellhuhn commented 1 year ago

@Fellhuhn Could you try disabling persistence to see if it fixes this crash for you? In RTDB call FirebaseDatabase.SetPersistenceEnabled(false).

Updated to 9.2.0 and disabled persistence. It still crashes for that user.

Awais6 commented 1 year ago

@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

Thanks, It worked, Wasted my 2 hours.

sharpgraf commented 1 year ago

@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

works for me ! Thanks !

iremguner commented 1 year ago

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 ?

Girildo commented 8 months ago

I encounter this issue on Win 10 win Firebase 11.5 as of October 2023. I could only observe on some older surface tablet (with Win10 64 bit). No special characters in the user's name. The weird thing is that everything works fine if and only if the AppData/Local/firestore is empty.

That is: on the very first startup everything works as expected. Closing the application and restarting result in a crash, but clearing the content of the AppData/Local/firestore directory and restarting the app makes it work again. Unsurprisingly, turning the persistence off makes it work.

Mono path[0] = 'C:/Users/<user>/Desktop/Windows x64/Aestico_Data/Managed'
Mono config path = 'C:/Users/<user>/Desktop/Windows x64/MonoBleedingEdge/etc'
Initialize engine version: 2022.3.4f1 (35713cd46cd7)
[Subsystems] Discovering subsystems at path C:/Users/<user>/Desktop/Windows x64/Aestico_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1; jobified=0
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: Intel(R) HD Graphics (ID=0x22b0)
    Vendor:   Intel
    VRAM:     2006 MB
    Driver:   20.19.15.4835
Begin MonoManager ReloadAssembly
- Loaded All Assemblies, in  0.663 seconds
- Finished resetting the current domain, in  0.007 seconds
<RI> Initializing input.

XInput1_3.dll not found. Trying XInput9_1_0.dll instead...
<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 3.963600 ms
Setting culture to de-CH
Crash!!!
SymInit: Symbol-SearchPath: '.;C:\Users\<user>\Desktop\Windows x64;C:/Users/<user>/Desktop/Windows x64/Aestico_Data/Plugins\x86_64;C:/Users/<user>/Desktop/Windows x64/Aestico_Data/Plugins;C:\Users\<user>\Desktop\Windows x64;C:\WINDOWS;C:\WINDOWS\system32;', symOptions: 534, UserName: '<user>'
OS-Version: 10.0.0
C:\Users\<user>\Desktop\Windows x64\Aestico.exe:Aestico.exe (00007FF671D50000), size: 688128 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2022.3.4.28988
C:\WINDOWS\SYSTEM32\ntdll.dll:ntdll.dll (00007FFCC3DD0000), size: 2060288 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\KERNEL32.DLL:KERNEL32.DLL (00007FFCC1E40000), size: 774144 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\KERNELBASE.dll:KERNELBASE.dll (00007FFCC1670000), size: 3104768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\Users\<user>\Desktop\Windows x64\UnityPlayer.dll:UnityPlayer.dll (00007FFC88F70000), size: 31608832 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2022.3.4.28988
C:\WINDOWS\System32\USER32.dll:USER32.dll (00007FFCC3760000), size: 1695744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\win32u.dll:win32u.dll (00007FFCC1B20000), size: 139264 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\GDI32.dll:GDI32.dll (00007FFCC2860000), size: 180224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\gdi32full.dll:gdi32full.dll (00007FFCC14E0000), size: 1155072 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\msvcp_win.dll:msvcp_win.dll (00007FFCC1B50000), size: 643072 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\ucrtbase.dll:ucrtbase.dll (00007FFCC1A20000), size: 1048576 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\ole32.dll:ole32.dll (00007FFCC2730000), size: 1224704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\RPCRT4.dll:RPCRT4.dll (00007FFCC2550000), size: 1204224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\combase.dll:combase.dll (00007FFCC32D0000), size: 3489792 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\VERSION.dll:VERSION.dll (00007FFCAF240000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\SHLWAPI.dll:SHLWAPI.dll (00007FFCC3630000), size: 348160 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\msvcrt.dll:msvcrt.dll (00007FFCC24B0000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.0.19041.3570
C:\WINDOWS\System32\SETUPAPI.dll:SETUPAPI.dll (00007FFCC3900000), size: 4644864 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\cfgmgr32.dll:cfgmgr32.dll (00007FFCC1D50000), size: 319488 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\bcrypt.dll:bcrypt.dll (00007FFCC14B0000), size: 159744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\ADVAPI32.dll:ADVAPI32.dll (00007FFCC3180000), size: 712704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\sechost.dll:sechost.dll (00007FFCC1F00000), size: 638976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\SHELL32.dll:SHELL32.dll (00007FFCC2A30000), size: 7618560 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\OLEAUT32.dll:OLEAUT32.dll (00007FFCC3690000), size: 839680 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\IMM32.dll:IMM32.dll (00007FFCC3290000), size: 196608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\OPENGL32.dll:OPENGL32.dll (00007FFCB6430000), size: 1200128 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\CRYPT32.dll:CRYPT32.dll (00007FFCC1BF0000), size: 1429504 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\WINMM.dll:WINMM.dll (00007FFCAEA20000), size: 159744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\WS2_32.dll:WS2_32.dll (00007FFCC28A0000), size: 438272 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\WINHTTP.dll:WINHTTP.dll (00007FFCBD990000), size: 1089536 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\HID.DLL:HID.DLL (00007FFCBFB60000), size: 53248 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\GLU32.dll:GLU32.dll (00007FFCBB700000), size: 180224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\dwmapi.dll:dwmapi.dll (00007FFCBED50000), size: 192512 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\kernel.appcore.dll:kernel.appcore.dll (00007FFCBFCE0000), size: 73728 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\bcryptPrimitives.dll:bcryptPrimitives.dll (00007FFCC1DA0000), size: 532480 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\system32\uxtheme.dll:uxtheme.dll (00007FFCBE8A0000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\shcore.dll:shcore.dll (00007FFCC2680000), size: 708608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\windows.storage.dll:windows.storage.dll (00007FFCBF0B0000), size: 7974912 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\Wldp.dll:Wldp.dll (00007FFCC0E20000), size: 184320 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\profapi.dll:profapi.dll (00007FFCC13E0000), size: 151552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\Users\<user>\Desktop\Windows x64\MonoBleedingEdge\EmbedRuntime\mono-2.0-bdwgc.dll:mono-2.0-bdwgc.dll (00007FFC90B40000), size: 10682368 (result: 0), SymType: '-deferred-', PDB: ''
C:\WINDOWS\SYSTEM32\iphlpapi.dll:iphlpapi.dll (00007FFCC0870000), size: 241664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\MSCTF.dll:MSCTF.dll (00007FFCC2910000), size: 1130496 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\d3d11.dll:d3d11.dll (00007FFCBBC10000), size: 2502656 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\dxgi.dll:dxgi.dll (00007FFCBFD50000), size: 995328 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\igd10iumd64.dll:igd10iumd64.dll (00007FFCB6920000), size: 16109568 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 20.19.15.4835
C:\WINDOWS\SYSTEM32\ncrypt.dll:ncrypt.dll (00007FFCC0E90000), size: 159744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\apphelp.dll:apphelp.dll (00007FFCBD710000), size: 589824 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\NTASN1.dll:NTASN1.dll (00007FFCC0E50000), size: 241664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\igdusc64.dll:igdusc64.dll (00007FFCB5520000), size: 10743808 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 20.19.15.4835
C:\WINDOWS\SYSTEM32\dxcore.dll:dxcore.dll (00007FFCB7980000), size: 241664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\clbcatq.dll:clbcatq.dll (00007FFCC2080000), size: 692224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2001.12.10941.16384
C:\WINDOWS\system32\wbem\wbemprox.dll:wbemprox.dll (00007FFC9ED60000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\wbemcomn.dll:wbemcomn.dll (00007FFCAD4B0000), size: 589824 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\system32\wbem\wbemsvc.dll:wbemsvc.dll (00007FFC9F500000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\system32\wbem\fastprox.dll:fastprox.dll (00007FFC9F600000), size: 1093632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\amsi.dll:amsi.dll (00007FFC9F2D0000), size: 126976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\USERENV.dll:USERENV.dll (00007FFCC13A0000), size: 188416 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.23090.2008-0\MpOav.dll:MpOav.dll (00007FFC9F250000), size: 507904 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 4.18.23090.2008
C:\WINDOWS\System32\MMDevApi.dll:MMDevApi.dll (00007FFCB4320000), size: 544768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\DEVOBJ.dll:DEVOBJ.dll (00007FFCC1170000), size: 208896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (00007FFCB27E0000), size: 1581056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\powrprof.dll:powrprof.dll (00007FFCC1310000), size: 307200 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\UMPDC.dll:UMPDC.dll (00007FFCC12F0000), size: 73728 (result: 0), SymType: '-deferred-', PDB: ''
C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll:resourcepolicyclient.dll (00007FFCBEA20000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\xinput9_1_0.dll:xinput9_1_0.dll (00007FFCBBA00000), size: 28672 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1
C:\WINDOWS\SYSTEM32\dcomp.dll:dcomp.dll (00007FFCBCA20000), size: 1978368 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\textinputframework.dll:textinputframework.dll (00007FFCA9A70000), size: 1024000 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\CoreUIComponents.dll:CoreUIComponents.dll (00007FFCBCC10000), size: 3518464 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\CoreMessaging.dll:CoreMessaging.dll (00007FFCBD2F0000), size: 991232 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\ntmarta.dll:ntmarta.dll (00007FFCC05B0000), size: 208896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\wintypes.dll:wintypes.dll (00007FFCBBAB0000), size: 1396736 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\system32\Oleacc.dll:Oleacc.dll (00007FFCA4770000), size: 417792 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.2.19041.3570
C:\WINDOWS\System32\NSI.dll:NSI.dll (00007FFCC32C0000), size: 32768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\dhcpcsvc6.DLL:dhcpcsvc6.DLL (00007FFCB5500000), size: 94208 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL:dhcpcsvc.DLL (00007FFCB8210000), size: 118784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\system32\mswsock.dll:mswsock.dll (00007FFCC0B80000), size: 434176 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\DNSAPI.dll:DNSAPI.dll (00007FFCC08B0000), size: 827392 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\Windows\System32\rasadhlp.dll:rasadhlp.dll (00007FFCB8D40000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\System32\fwpuclnt.dll:fwpuclnt.dll (00007FFCB4520000), size: 532480 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\CRYPTSP.dll:CRYPTSP.dll (00007FFCC0D80000), size: 98304 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\system32\rsaenh.dll:rsaenh.dll (00007FFCC0490000), size: 212992 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (00007FFCC0D70000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\MSASN1.dll:MSASN1.dll (00007FFCC0FB0000), size: 73728 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\gpapi.dll:gpapi.dll (00007FFCBFD00000), size: 143360 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\Users\<user>\Desktop\Windows x64\Aestico_Data\Plugins\x86_64\FirebaseCppApp-11_5_0.dll:FirebaseCppApp-11_5_0.dll (00007FFC8FBF0000), size: 15994880 (result: 0), SymType: '-deferred-', PDB: ''
C:\WINDOWS\SYSTEM32\dbghelp.dll:dbghelp.dll (00007FFCBF970000), size: 1982464 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\MSVCP140.dll:MSVCP140.dll (00007FFCB5FD0000), size: 581632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.32.31332.0
C:\WINDOWS\SYSTEM32\VCRUNTIME140_1.dll:VCRUNTIME140_1.dll (00007FFCBB6D0000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.32.31332.0
C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll:VCRUNTIME140.dll (00007FFCBB6E0000), size: 110592 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.32.31332.0
C:\WINDOWS\SYSTEM32\icu.dll:icu.dll (00007FFC99FE0000), size: 2285568 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 64.2.0.0
C:\WINDOWS\System32\WINTRUST.dll:WINTRUST.dll (00007FFCC1600000), size: 421888 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\bthprops.cpl:bthprops.cpl (00007FFCBD550000), size: 286720 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.3570_none_60bb2a3971f3e41a\comctl32.dll:comctl32.dll (00007FFCAB940000), size: 2727936 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 6.10.19041.3570
C:\WINDOWS\SYSTEM32\BluetoothAPIs.dll:BluetoothAPIs.dll (00007FFCA6180000), size: 225280 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\secur32.dll:secur32.dll (00007FFCABDE0000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570
C:\WINDOWS\SYSTEM32\SSPICLI.DLL:SSPICLI.DLL (00007FFCC1360000), size: 204800 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.3570

========== OUTPUTTING STACK TRACE ==================

0x00007FFC8FFED24D (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFEE75B (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFEA5E1 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFEB71C (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFDE4C5 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFDE69D (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFDA71B (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFD319A (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFD1B3A (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFD1194 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FFD01A7 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FEF5B7B (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FEF4CE0 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FEF5085 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FF3B189 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC8FEDF9D4 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC9000F738 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC9001A5FD (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC9000D898 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFC9000CAB4 (FirebaseCppApp-11_5_0) uWS::HttpSocket<0>::upgrade
0x00007FFCC1A41BB2 (ucrtbase) configthreadlocale
0x00007FFCC1E57344 (KERNEL32) BaseThreadInitThunk
0x00007FFCC3E226B1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

A crash has been intercepted by the crash handler. For call stack and other details, see the latest crash report generated in:
 * C:/Users/<user>/AppData/Local/Temp/Aestico AG/Aestico/Crashes
Girildo commented 6 months ago

Anything new on this? It seems to be machine related. I am willing to help nailing down the issue, as I have 2 devices on which I can reproduce this problem-- 100% of the time the app crashes with the exact same stacktrace, apparently at uWS::HttpSocket<0>::upgrade.

As mentioned in my last comment, the app will work the very first time it is ran and any time the firestore directory located at "C:\Users\\AppData\Local\firestore" is empty. I can't disable offline persistence because it's a feature I need.

The exact same executable runs on many other windows machines just fine. Also, the devices where it crashes are a bit older (say 5 to 10 years) but still running 64-bit Windows

Please let me know if I can be of help.

felipekieling commented 4 months ago

Aki estava acontecendo sempre o mesmo Stack Trace!!.

========== OUTPUTTING STACK TRACE ==================

0x00007FFB98732F09 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB9873426B (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB987300F1 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB98730CC0 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB98731929 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB98731C19 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB9872E453 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB98720F01 (FirebaseCppApp-11_7_0) uWS::HttpSocket<0>::upgrade 0x00007FFB9856D144 (FirebaseCppApp-11_7_0) uS::TLS::Context::operator bool 0x00007FFB98556C97 (FirebaseCppApp-11_7_0) uS::TLS::Context::operator bool 0x00007FFB9853A6D1 (FirebaseCppApp-11_7_0) uS::TLS::Context::operator bool 0x00007FFB9853AE96 (FirebaseCppApp-11_7_0) uS::TLS::Context::operator bool 0x00007FFB985333C9 (FirebaseCppApp-11_7_0) uS::TLS::Context::operator bool 0x00007FFB98528E38 (FirebaseCppApp-11_7_0) uS::TLS::Context::operator bool 0x00007FFB984D3A3C (FirebaseCppApp-11_7_0) uS::Socket::freeMessage 0x00007FFB984DCF0F (FirebaseCppApp-11_7_0) uS::Socket::freeMessage 0x00007FFC110F1BB2 (ucrtbase) configthreadlocale 0x00007FFC123B7344 (KERNEL32) BaseThreadInitThunk 0x00007FFC133026B1 (ntdll) RtlUserThreadStart

Estou utilizando FirebaseDatabase, apos utilizar "FirebaseDatabase.DefaultInstance.SetPersistenceEnabled(false);", o crash sumiu ate então!!!