godot: Godot freezes forever on save with small chance on Linux
Godot version
4.0.stable
System information
Ubuntu
Issue description
After 10-30 minutes when i open Godot, Godot freezes forever (buttons don’t work, no button hover animation, can’t close Godot window). Usually it happens when Godot is saving data (scene, script etc.) and after killing process (pkill godot-engine) data is saved, but sometimes it happens when subwindow (like Project settings or Editor settings) is opening and then unsaved data is lost.
This bug only on Ubuntu. I tested on same PC on Windows (dualboot) and Godot works good on Windows
Steps to reproduce
- Open any project in Godot
- Go to
Scripttab - Press
Ctrl + S5-13 times (tested 2 times, first time 13 saves, second time 5)
Minimal reproduction project
N/A
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 23 (12 by maintainers)
In my case, when I press “ctrl + s” and just when it reaches %100 I press again “ctrl + s” it freezes most of the times. I don’t know if this can help to find the cause of the error.
Godot doesn’t freeze with KDE UPD: Freezes, but 50-100 times less
I just got a crash that I’m not sure if it’s related to this, with the following message:
Though given the “this is not your fault” message this is probably a bug upstream.
Edit: For reference, this happened here on Godot source: https://github.com/godotengine/godot/blob/79454bfd3b218f5d2b2bb1da2013a3f359615d63/platform/linuxbsd/x11/display_server_x11.cpp#L3671
@capnm the crash with “Save as” is unrelated. I reported it here: #74069
I get this very often in the following circumstance:
sconsand compiling Godot. My laptop is sweating and heating up, presumably having 3 of its threads busy with the compilation and leaving a single thread to do everything else. (Idk multithreading)Try to use the latest version (or compile yourself a dev version) and as someone said enable interface/editor/single_window_mode . For me it is now like about 1000x less 😃
I think it’s good enough for now, it seems to confirm what @vnen commented in https://github.com/godotengine/godot/issues/74548#issuecomment-1460338268. vnen usually runs debug builds so he might also be able to provide a full stacktrace if needed.
BTW which window manager are you using?
I just noticed I have the same problem with Alacritty. It freezes randomly and with gdb I was able to see it stops in the same place (
xcb_wait_for_event). I wonder if this a bug in libxcb rather than a misusage in Godot.