-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wayland: Editor crashes trying to load any project. #88113
Comments
Thanks for the report. Could you give a bit more detail on the exact command you run to start Godot, and how you then load the project? If you run Godot with So it's important to figure out if it's actually trying to open the editor with X11 or Wayland when it crashes. The stacktrace is also a bit weird as it involves both the OpenGL and Vulkan drivers for your Nvidia GPU. If you're able to compile Godot from source, you could try to compiling with |
This had been happening to me for a few months until a day or two ago, though I'm using Kubuntu 23.10 and it only started happening when I switched to it. What seems to have fixed it is the most recent kernel update, at least I haven't seen it since then. This bug also affected my custom engine (OpenGL) application as well, and in both cases, my whole PC sometimes ended up freezing up. The screen would switch on and off and usually, if I waited long enough, KDE would kind of crash but still be somewhat active (enough that I could either restart the device the normal way or restart Kwin through the terminal). But yeah, sometimes it would completely freeze up. And it wasn't even Nvidia, but an AMD APU (Ryzen 5500U). |
Well, I have tested further and observed that:
|
What's your GPU and driver version? Judging from the stack trace you're probably using a card from NVIDIA. Their drivers are notoriously broken, especially when it comes to Wayland support in older versions (the situation is slowly improving). I see that you're using an LTS version of Ubuntu, so that might be it. I would try to reproduce this issue on a more bleeding-edge distro with the latest everything. |
Tried on an updated version of arch, opened the project both from the command line directly and through setting the wayland preference flag in the editor settings, got the follow error with both attempts:
System InformationOS: EndevourOS x86_64 |
@Spizzy1 judging from the log, it really looks like a driver bug, I'm sorry :/ The only error written there is pretty much a vulkan-related one. Does the Could you also try the compatibility graphics backend (OpenGL)? |
Oops, sorry for the ping, the PR above does not fix the issue here, sorry. |
Same issue. Project loader works fine, except there's some warnings about DRI_PRIME. Always crashes when opening editor. Does not happen when simply loading up the scene (because it runs X11?). Also, i can open the editor when i create a new project (from scratch), but opening existing project won't work. godot-git from aur
godot 4.3-1 from arch extra repository
System InformationOS: Arch Linux x86_64 |
Tested versions
System information
Ubuntu 22.04.3 LTS using Wayland.
Issue description
If configured to use Wayland, the editor crashes when trying to load any project. It works as usual when using x11.
The console output is:
Steps to reproduce
Launch Godot with the --display-driver wayland option. Create a new project and try to load it.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: