-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Freeze when a window or popup is open (Linux with i3) (workaround: Use --single-window
)
#41574
Comments
Can confirm same thing happens with Arch Linux, I've test so far the following WMs and their last versions at the moment of writing this:
The whole editor freezes each time a popup or a window is created, the error seem more related to the latest versions of xorg packages as to me its seems more WM agnostic, at least on Arch Linux. I also tried to replicate the issue with dwm though in this one godot just crashed instead of freezing the editor. I made the tests with a fresh build of godot in release_debug in the latest commit on the master branch 1ff139c and b0ca859 |
If I reproduce this issue while editing a project, the editor freezes completely. |
After a lot of ideas, tests and weird behaviour, I found a workaround which is getting us closer and closer to the exact cause of the freezing. Edit: I searched for the changelog of this new version, and the only change reported is:
I'll investigate further as soon as I can. |
This can be worked around by enabling Single Window Mode. Since you can't really open editor settings with this bug, edit |
@nathanfranke To force single-window mode, you can also pass the |
I've never worked with Vulkan, 3D graphics nor a debugger before, so I'm sorry for any ignorance or mistakes on any informations related to them, expecially with terminology. Also, its 4:30 AM at the time of writing this, so there may be some grammatical issues too. On my Arch Linux machine, with the currently latest NVidia drivers(version 450.66), running a build of 5abb53b this is what I found out in these last days: It seems that Godot actually freezes along with the X11 server in two different ways internally, one way when the window is opened, and another when the focus is changed. In the first way, Godot gets stuck on this line, which seems to wait for either
In the second way, Godot gets stuck on
In both backtraces, right after these waiting functions, there are some unknown functions from a library of NVidia's drivers, which after updating to 450.66 gave these issues. Maybe something related to syncronization may have changed in them. This should be the forum post reporting the issue fixed in the last version of the driver, I still haven't read it whole, but maybe there could be something useful. I also read a bit the Vulkan specifications, and at first glance the affected source files seem to be following them. Since even older, previously working revisions of the source code would still freeze, I don't think that the issue resides in the code, could it be in the driver? I did some research with my newly obtained function names and the closest reported issue I could find to this one was this reddit post which seems to have a similar problem to what I found with I took 2 hours and an half to write this message because I kept adding new stuff. I could have continued researching more, but I really, really have to go to sleep. I hope that this information could be useful, and to have written something coherent. |
Can somebody without an NVidia card try to reproduce this issue on i3wm? |
I've confirmed this is due to an issue with nvidia drivers. I don't reproduce the issue anymore when disabling my nvidia card and enabling my Intel GPU instead. I can reproduce it with the default/recommended proprietary version on Ubuntu (440.100). Possible workaround: |
--single-window
)
I think that there are two issues here:
Should a new issue be opened to track the Nvidia 450.66 regression which is not specific to tiling WMs? And at this point we need to start talking with upstream as this regression is pretty bad. |
Agreed! Concerning the 450.66 driver regression we have #41614, which was initially reported as an Arch issue but happened to be linked to the nvidia driver version. |
I can confirm this also happens on Cinnamon in Linux Mint 20 using Nvidia Driver 450.80.02. |
|
Can anyone still reproduce the consistent freezing with i3wm? (I'm not talking about #41614). It happened consistently when changing windows focus before, but this issue seems to be fixed for me with drivers 465.31 on Arch Linux. |
@pouleyKetchoupp I'm pretty sure it was never related to i3, as implied by my original comment. |
@Riteo Are you sure you're not talking about #41614? There are two different issues that look similar.
Is that correct? If nobody can reproduce 1. then this issue can be closed, while 2. still needs investigation because it seems to still happen for some users on the latest driver version. |
@pouleyKetchoupp oh I can replicate that but I always thought that for some reason #41614 and this were somehow the same thing (see my very long comment related to the other issue), my bad! |
This should be fixed in 4.0 since alpha1 at least, closing. I can't reproduce it here anymore at least. If you can still reproduce this, please open a separate issue. |
Godot version:
Master b0ca859
OS/device including version:
Ubuntu 20.04 / WM: i3
Issue description:
This issue is specific to i3 (tiling window manager).
In multi-windows mode, the whole editor freezes for a few seconds each time a new window is opened, or when the focus switches from the editor or back to the editor.
It doesn't seem to be related to a specific change in Godot but didn't happen before, so it might be due to an update in i3 or one of its dependencies.
More details here: #41456 (comment)
Steps to reproduce:
Can be reproduced easily by starting the editor with any project, using i3 window manager.
Minimal reproduction project:
n/a
The text was updated successfully, but these errors were encountered: