godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.16k stars 21.2k forks source link

Godot crashes on WSL2 when creating a new project #76635

Open songyang-dev opened 1 year ago

songyang-dev commented 1 year ago

Godot version

v4.0.2.stable.official.7a0977ce2

System information

Windows 11, WSL version: 1.2.5.0, Vulkan API 1.1.182

Issue description

On WSL2, using the Linux binary for Godot crashes with a segmentation fault when creating a new project. Here is the complete error log.

[20:40:03] song@my-desktop:~/installations$ ./Godot_v4.0.2-stable_linux.x86_64
Godot Engine v4.0.2.stable.official.7a0977ce2 - https://godotengine.org
/lib/x86_64-linux-gnu/libxkbcommon.so.0: undefined symbol: xkb_utf32_to_keysym
/lib/x86_64-linux-gnu/libxkbcommon.so.0: undefined symbol: xkb_keymap_key_get_mods_for_level
libspeechd.so.2: cannot open shared object file: No such file or directory
OpenGL API 3.3 (Core Profile) Mesa 21.2.6 - Compatibility - Using Device: Microsoft Corporation - D3D12 (NVIDIA GeForce RTX 3070 Laptop GPU)

Editing project: /home/song/projects/gamedev
Godot Engine v4.0.2.stable.official.7a0977ce2 - https://godotengine.org
/lib/x86_64-linux-gnu/libxkbcommon.so.0: undefined symbol: xkb_utf32_to_keysym
/lib/x86_64-linux-gnu/libxkbcommon.so.0: undefined symbol: xkb_keymap_key_get_mods_for_level
libspeechd.so.2: cannot open shared object file: No such file or directory
Vulkan API 1.1.182 - Forward+ - Using Vulkan Device #0: Unknown - llvmpipe (LLVM 12.0.0, 256 bits)
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
Segmentation fault

Steps to reproduce

  1. Download the Godot Linux binary.
  2. Unzip and run the binary from the command line.
  3. Select a location to create a new project.
  4. Wait for Godot to run.
  5. Crash.

Minimal reproduction project

N/A

Kwpa commented 1 year ago

Hey was a solution found for this? I'm getting a similar error when simply trying to open godot from the commandline on linux

songyang-dev commented 1 year ago

Hey was a solution found for this? I'm getting a similar error when simply trying to open godot from the commandline on linux

No, unfortunately. I'd like to work on a fix for this problem, though. If there is any progress, I will comment here! 👍

GeorgeS2019 commented 7 months ago

WSL2 Godot4.3 dev5

https://github.com/microsoft/wslg/issues/40#issuecomment-2037539322

songyang-dev commented 7 months ago

WSL2 Godot4.3 dev5 microsoft/wslg#40 (comment)

Thanks! I'll try this