godot: Crash after creating C# project in 4.0.beta1 when .NET SDK 6.0 is not installed
Godot version
4.0.beta1
System information
Linux, X11, Vulkan
Issue description
First time ever. Created a new project, immediate crash.
user@debian:~/a/Godot_v4.0-beta1_mono_linux_x86_64$ ./Godot_v4.0-beta1_mono_linux.x86_64
Godot Engine v4.0.beta1.mono.official.4ba934bf3 - https://godotengine.org
Vulkan API 1.2.0 - Using Vulkan Device #0: AMD - AMD Radeon RX 6900 XT (RADV NAVI21)
ERROR: The host fxr folder does not exist: /usr/share/dotnet/host/fxr
at: try_get_path_from_dotnet_root (modules/mono/editor/hostfxr_resolver.cpp:323)
ERROR: .NET: One of the dependent libraries is missing. Typically when the `hostfxr`, `hostpolicy` or `coreclr` dynamic libraries are not present in the expected locations.
at: find_hostfxr (modules/mono/mono_gd/gd_mono.cpp:126)
ERROR: .NET: Failed to load hostfxr
at: initialize (modules/mono/mono_gd/gd_mono.cpp:397)
Migrating legacy project list
WARNING: Error getting image file from URL: https://raw.githubusercontent.com/ywmaa/Advanced-Movement-System-Godot/master/icon.png
at: _image_request_completed (editor/plugins/asset_library_editor_plugin.cpp:828)
WARNING: Error getting image file from URL: https://raw.githubusercontent.com/ywmaa/Advanced-Movement-System-Godot/master/icon.png
at: _image_request_completed (editor/plugins/asset_library_editor_plugin.cpp:828)
Editing project: /home/user/asdasd
Godot Engine v4.0.beta1.mono.official.4ba934bf3 - https://godotengine.org
Vulkan API 1.2.0 - Using Vulkan Device #0: AMD - AMD Radeon RX 6900 XT (RADV NAVI21)
user@debian:~/a/Godot_v4.0-beta1_mono_linux_x86_64$
ERROR: The host fxr folder does not exist: /usr/share/dotnet/host/fxr
at: try_get_path_from_dotnet_root (modules/mono/editor/hostfxr_resolver.cpp:323)
ERROR: .NET: One of the dependent libraries is missing. Typically when the `hostfxr`, `hostpolicy` or `coreclr` dynamic libraries are not present in the expected locations.
at: find_hostfxr (modules/mono/mono_gd/gd_mono.cpp:126)
ERROR: .NET: Failed to load hostfxr
at: initialize (modules/mono/mono_gd/gd_mono.cpp:397)
WARNING: Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
at: _editor_init (modules/gltf/register_types.cpp:75)
WARNING: FBX file import is enabled in the project settings, but no FBX2glTF path is configured in the editor settings. FBX files will not be imported.
at: _editor_init (modules/gltf/register_types.cpp:99)
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.beta1.mono.official (4ba934bf3d1e697d8f332b5e8cfd694cdf49a7ba)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x3daf0) [0x7ff934a40af0] (??:0)
-- END OF BACKTRACE --
================================================================
Steps to reproduce
Download, create a project.
Minimal reproduction project
Empty one.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 26 (10 by maintainers)
I solved this by installing the .NET 6 packages from Microsoft
For me under Debian but they seem to maintain packages for most major distros
https://learn.microsoft.com/en-us/dotnet/core/install/linux
Also, the crash on startup with no useful error message is far from optimal.
Regarding the crash, I have some changes pending a PR which fix the crashes I experienced when failing to load the .NET runtime. But it seems more important for this issue to focus on why the runtime cannot be found in the first place, rather than the symptoms of it.
I come here from this issue and fulfill the requirements from akien.