-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Godot freezes forever on save with small chance on Linux #74548
Comments
The next few times you run Godot, can you run it from the command line and then let us know what is printed when it freezes? We need that information to be able to do anything. |
Godot prints nothing (only default startup info):
godot-2023-03-08_08.00.24.mp4 |
I had instances of freezing as well, even when not saving. I did happen to have a debugger attached and with a pause I saw it froze on this line:
Ultimately the freeze is on I also get this warning every time a window is created, including tooltips, not sure if it's related:
For reference I'm on Arch Linux using i3wm. |
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 ( |
That's strange, if xinput is not available, it should never get to this part of code, I'm not sure what's going on (maybe some part is breaking after main window init, and Godot is left with invalid xi context). |
I ran This is first GDB output:
This is second GDB output:
|
That's a good start! What you should do when it freezes is to press Ctrl-C as you did, and then run Depending on when you press Ctrl-C then backtrace may be a bit difference, you can check a few Ctrl-C + |
Backtrace:
It is Godot from official website (release build) and there is not all useful information, but building from source with debug options will take some time. Should i build debug version and repeat with it or this backtrace enough? |
I think it's good enough for now, it seems to confirm what @vnen commented in #74548 (comment). 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 use GNOME |
I see here (ubuntu 20.04.5 LTS) very often some thread-caused lock-downs in the interface (e.g. when it saves internally, hanging in tooltip thread, often when switching the renderer, ...) in the official 4.0 version. The git tip-dev version doesn't do that. unrelatedPerhaps this is also related, although it works in 4.0.
|
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:
|
Godot doesn't freeze with KDE |
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 :) |
This is still happening to me randomly. I had to enable single window mode to stop it (so far it hasn't happened in single window mode). |
I get this very often in the following circumstance:
|
This was happening to me (I use Ubuntu 20.04 with KDE and Godot 4.1). I disabled my other monitor and that seems to have fixed it. I hope they fix this in the future. |
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. |
So, is this problem solved? It's still freezing on Fedora 39. Godot version is 4.2.1 (stable). |
Same here. Freezing a log on Ubuntu 22.04.3 LTS with Gadot 4.2.1. |
It's still freezing on Manjaro. Godot version is 4.2.1 (stable). |
Same for me, Ubuntu 23.10, and Godot 4.2.1 (stable) |
Still happening on Fedora39 Godot 4.2.2 (Flathub). I can sometimes save for as many times as I want without problem. I think it might be random, but most frequent when actively working on a project. |
For anyone still having this issue. A temporary solution is to enable single window mode on editor settings on the interface/editor catalog. It now doesn't freeze and Godot finally works like normal. This settings doesn't change your workflow at all, so its a plus. 👍 |
Not sure if this is related, but I experienced freezing editor on Ubuntu 24.04, Godot 4.3, when saving script files. |
I can't reproduce this issue for weeks now. I think that following may be related but don't know exact reason:
Can anybody reproduce this issue on one of latest (4.4dev) versions? If yes, are you using X11 or Wayland? |
I got a new laptop which was an upgrade from 4 threads to 12. I pretty much stopped getting this, but now I was doing some Godot dev while also compiling Godot, and I got two such freezes consecutively. There may be many bugs involved in such freezes, but it seems pretty certain now that this happens when there are a lot of occupied threads. Edit: Godot v4.3.stable - Pop!_OS 22.04 LTS - X11 - GLES3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads) |
@RandomShaper This smells threading deadlocks. |
It'd be cool if we could have a back trace from a debug build, at the point the editor freezes. That'd help me a lot. |
I came across this accidentally when googling about my problem. Apparently, this problem is not exclusive to Godot. I currently have a problem on Gentoo where the moment I press a key when a game has focus, it freezes forever. Pressing mouse buttons doesn't cause issues. I have tried attaching GDB to the stuck game and found that the game was stuck on that exact same function you mentioned. EDIT: It turned out that IBus was the one causing this issue. Disabling it made games no longer freeze. |
Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.
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
Script
tabCtrl + S
5-13 times (tested 2 times, first time 13 saves, second time 5)Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: