Repository: godot
Issue: Godot mono closes / crashes upon start 
Labels: bug,platform:windows,needs testing,topic:dotnet,crash

### Godot version

v3.4.2.stable.mono.official.45eaa2daf

### System information

Windows 10,GLES3, NVIDIA GeForce GTX 1060 with Max-Q Design/PCIe/SSE2

### Issue description

Editor closes right after start. Also, some other games downloaded separately that use mono godot doesn't work.

```Godot Engine v3.4.2.stable.mono.official.45eaa2daf - https://godotengine.org
OpenGL ES 3.0 Renderer: NVIDIA GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
OpenGL ES Batching: ON
 
Mono: Log file is: 'C:/Users/user/AppData/Roaming/Godot/mono/mono_logs/2022-01-27_14.06.47_11848.log'
Scanning projects at: E:/Games/Thrive/NewGame
Found 1 projects.
ERROR: Condition "default_certs != nullptr" is true.
   at: load_default_certificates (modules/mbedtls/crypto_mbedtls.cpp:314) - Condition "default_certs != nullptr" is true.
```

And the other log referred above

```
Config attempting to parse: 'E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/etc\mono\config'. (in domain Mono, info)
Image addref mscorlib[000000001556fe80] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll[00000000156b79a0]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: image 'E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/mscorlib.dll.dll' not found: The system cannot find the file specified.
 (in domain Mono, info)
AOT: image 'E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/aot-cache/amd64/mscorlib.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly mscorlib[000000001556fe80] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[000000001556fe80] added to domain GodotEngine.Domain.Scripts, ref_count=2 (in domain Mono, info)
Image addref GodotSharp[0000000015570660] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharp.dll[00000000156fa750]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotSharp' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharp.dll) (in domain Mono, info)
Assembly GodotSharp[0000000015570660] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Requesting loading reference 0 (of 1) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharp.dll (in domain Mono, info)
Loading reference 0 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharp.dll asmctx DEFAULT, looking for netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (in domain Mono, info)
Config attempting to parse: ''. (in domain Mono, info)
Image addref netstandard[000000001556ffa0] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/Facades/netstandard.dll[00000000157173f0]: 2 (in domain Mono, info)
Prepared to set up assembly 'netstandard' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/Facades/netstandard.dll) (in domain Mono, info)
Assembly netstandard[000000001556ffa0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref GodotSharp[0000000015570660] -> netstandard[000000001556ffa0]: 2 (in domain Mono, info)
Requesting loading reference 0 (of 16) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/Facades/netstandard.dll (in domain Mono, info)
Loading reference 0 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/Facades/netstandard.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref netstandard[000000001556ffa0] -> mscorlib[000000001556fe80]: 3 (in domain Mono, info)
Image addref GodotSharpEditor[000000001556fa90] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharpEditor.dll[0000000015718dd0]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotSharpEditor' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharpEditor.dll) (in domain Mono, info)
Assembly GodotSharpEditor[000000001556fa90] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Requesting loading reference 0 (of 2) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharpEditor.dll (in domain Mono, info)
Loading reference 0 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/.mono/assemblies/Debug/GodotSharpEditor.dll asmctx DEFAULT, looking for netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (in domain Mono, info)
Assembly Ref addref GodotSharpEditor[000000001556fa90] -> netstandard[000000001556ffa0]: 3 (in domain Mono, info)
Requesting loading reference 2 (of 16) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/Facades/netstandard.dll (in domain Mono, info)
Loading reference 2 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/Facades/netstandard.dll asmctx DEFAULT, looking for System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Image addref System[00000000155709c0] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll[0000000015853a40]: 2 (in domain Mono, info)
Prepared to set up assembly 'System' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll) (in domain Mono, info)
Assembly System[00000000155709c0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref netstandard[000000001556ffa0] -> System[00000000155709c0]: 2 (in domain Mono, info)
Requesting loading reference 0 (of 6) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll (in domain Mono, info)
Loading reference 0 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System[00000000155709c0] -> mscorlib[000000001556fe80]: 4 (in domain Mono, info)
Requesting loading reference 2 (of 6) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll (in domain Mono, info)
Loading reference 2 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll asmctx DEFAULT, looking for System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (in domain Mono, info)
Image addref System.Configuration[0000000015570ed0] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll[00000000158b42c0]: 2 (in domain Mono, info)
Prepared to set up assembly 'System.Configuration' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll) (in domain Mono, info)
Assembly System.Configuration[0000000015570ed0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref System[00000000155709c0] -> System.Configuration[0000000015570ed0]: 2 (in domain Mono, info)
Requesting loading reference 0 (of 4) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll (in domain Mono, info)
Loading reference 0 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Configuration[0000000015570ed0] -> mscorlib[000000001556fe80]: 5 (in domain Mono, info)
Requesting loading reference 2 (of 4) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll (in domain Mono, info)
Loading reference 2 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll asmctx DEFAULT, looking for System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Configuration[0000000015570ed0] -> System[00000000155709c0]: 3 (in domain Mono, info)
Requesting loading reference 1 (of 4) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll (in domain Mono, info)
Loading reference 1 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Configuration.dll asmctx DEFAULT, looking for System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Image addref System.Xml[00000000155711a0] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll[00000000158b7b10]: 2 (in domain Mono, info)
Prepared to set up assembly 'System.Xml' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll) (in domain Mono, info)
Assembly System.Xml[00000000155711a0] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Assembly Ref addref System.Configuration[0000000015570ed0] -> System.Xml[00000000155711a0]: 2 (in domain Mono, info)
Requesting loading reference 0 (of 3) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll (in domain Mono, info)
Loading reference 0 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll asmctx DEFAULT, looking for mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Xml[00000000155711a0] -> mscorlib[000000001556fe80]: 6 (in domain Mono, info)
DllImport attempting to load: 'BCrypt.dll'. (in domain Mono, info)
DllImport error loading library 'E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5\BCrypt.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5\BCrypt.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport error loading library 'E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5\BCrypt.dll': 'The system cannot find the file specified.
'. (in domain Mono, info)
DllImport loaded library 'BCrypt.dll'. (in domain Mono, info)
DllImport searching in: 'BCrypt.dll' ('BCrypt.dll'). (in domain Mono, info)
Searching for 'BCryptGenRandom'. (in domain Mono, info)
Probing 'BCryptGenRandomW'. (in domain Mono, info)
Could not find 'BCryptGenRandomW' due to 'The specified procedure could not be found.
'. (in domain Mono, info)
Probing 'BCryptGenRandom'. (in domain Mono, info)
Found as 'BCryptGenRandom'. (in domain Mono, info)
DllImport attempting to load: '__Internal'. (in domain Mono, info)
DllImport loaded library '(null)'. (in domain Mono, info)
DllImport searching in: '__Internal' ('(null)'). (in domain Mono, info)
Searching for 'SetThreadErrorMode'. (in domain Mono, info)
DllImport searching in: '__Internal' ('(null)'). (in domain Mono, info)
Searching for 'GetFileAttributesExW'. (in domain Mono, info)
Probing 'GetFileAttributesExWW'. (in domain Mono, info)
Could not find 'GetFileAttributesExWW' due to 'The specified procedure could not be found.
'. (in domain Mono, info)
Probing 'GetFileAttributesExW'. (in domain Mono, info)
Found as 'GetFileAttributesExW'. (in domain Mono, info)
Requesting loading reference 2 (of 3) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll (in domain Mono, info)
Loading reference 2 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.Xml.dll asmctx DEFAULT, looking for System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System.Xml[00000000155711a0] -> System[00000000155709c0]: 4 (in domain Mono, info)
Requesting loading reference 3 (of 6) of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll (in domain Mono, info)
Loading reference 3 of E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Mono/lib/mono/4.5/System.dll asmctx DEFAULT, looking for System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (in domain Mono, info)
Assembly Ref addref System[00000000155709c0] -> System.Xml[00000000155711a0]: 3 (in domain Mono, info)
Image addref GodotTools[0000000015571c50] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Tools/GodotTools.dll[0000000027df7870]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotTools' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Tools/GodotTools.dll) (in domain Mono, info)
Assembly GodotTools[0000000015571c50] added to domain GodotEngine.Domain.Scripts, ref_count=1 (in domain Mono, info)
Image addref GodotTools.ProjectEditor[00000000155718f0] (asmctx DEFAULT) -> E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Tools/GodotTools.ProjectEditor.dll[000000002814e010]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotTools.ProjectEditor' (E:/Games/Thrive/Godot_v3.4.2-stable_mono_win64/GodotSharp/Tools/GodotTools.ProjectEditor.dll) (in domain Mono, info)
```

### Steps to reproduce

Run the exe. Exe launches and shows the local projects and ask to open asset library screen. Stays there for a second or two. Then the application closes. 

Some extra information is that this only happens with the mono version, the non mono godot loads fine. 

### Minimal reproduction project

_No response_