-
-
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
GUI unresponsive on Godot 4 (regression from the NVIDIA Linux 450.66 driver and later) #41614
Comments
Maybe related to #41574? |
Yeah, its related with that @Riteo. It's the same bug. |
That's not i3wm like in #41574, is this KDE Plasma? |
For the reference, I don't get this issue with a build from the current |
@akien-mga what version of the NVidia driver do you have installed? |
I'm #TeamAMD :) Dual graphics Intel HD 630 / AMD Radeon RX Vega M both running on Mesa 20.1.6. |
@DavidNexuss could replicate this issue on all the WMs he tried. |
@Riteo I can't reproduce it with the recommended nvidia drivers (version 440) on Ubuntu 20.04.1 with Gnome or KDE (but I can reproduce it when using i3). I tried to install nvidia drivers version 450.66 but it caused all application windows to be either black or full of graphical glitches so it doesn't seem compatible with my configuration. I'll try and see if I can install Arch Linux separately to reproduce the issue. |
I can confirm this issue exists on Arch Linux + NVidia + KDE. Godot 4 is unusable due to this issue at the moment. The issue persists with |
@seadra did you start godot with only --single-window? IIRC after opening a project from the project manager, the editor is started without that flag. |
Indeed! The problem disappears when editing a project directly with -e (and --single-window)! This is indeed an issue related to multiple windows. |
I'd like to confirm this issue is similar to #41574. Could someone run these tests on ArchLinux with an nvidia card:
|
I can confirm that |
Thanks @seadra, that confirms a general issue with the nvidia drivers and not just in godot. In your case it might work better by switching the drivers version to 450.57 (apart from the workaround with --single-window). |
@pouleyKetchoupp in my case, after rolling back to 450.57 vkcube still freezes briefly after focusing and unfocusing its window, but Godot 4.0 doesn't freeze the X11 server. |
@Riteo Could you please try and run I'm opening a ticket on the nvidia developer forum and it could help to provide more information. Unfortunately I still have issues with these drivers and they don't work at all for me :/ |
I've opened the ticket upstream: |
@insomniacUNDERSCORElemon mhh, that sounds weird, very weird. I'll investigate |
@Riteo I just found that I can easily re-create a crash in the project manager when trying to create a new project, but I still haven't seen a crash in the editor itself. So there might be some difference there. |
@insomniacUNDERSCORElemon I still haven't found the occasion to test, but wait a second, you said that it's slugghish? Like, is the editor very slow? I think I know why it doesn't crash. |
@Riteo it was sluggish in the GCC version too (the one that did crash with sub-windows in the editor) so that's a shared thing with the Clang version. I mean it could be related, but I would assume it isn't. |
@insomniacUNDERSCORElemon maybe you're compiling it in debug mode? Anyways if it goes slow, it might not crash because the FPS are just low enough to not mess up the driver's synchronization (see this comment and my response) |
@Riteo I didn't change the target. To be specific I am not aware of FPS, the sluggishness I'm experiencing is a delay when selecting nodes. Also seemingly any menu item (project or editor settings) that has color boxes in it. Which might even be the reason for the sluggishness w/node switching since they all have a color box (AFAICT) even if it's just modulation. I couldn't find an FPS meter for the editor in 2D, trying to go to 3D immediately caused a freeze. I'm now noticing freezing with the project/editor settings as well when typing something into the filter box. I've also seen 2 outright crashes due to the editor settings window. Even in the setting windows it's not a guaranteed thing and still less frequent than it was with GCC, so maybe it is related to FPS (the more complicated submenus not causing crashes)? EDIT: Yeah I think it's the color boxes thing, because with literal nodes (Node node) switching is instant. A viewport window node doesn't switch as fast for me (not as slow as other nodes either), so possibly there's a bit more to this (even if color boxes are the biggest issue). |
@insomniacUNDERSCORElemon if you didn't specify the target then it chose the default, which is |
Alright, I just tested it with the release_debug target and the result is that 1. Crashing is as frequent as it was with GCC debug. 2. The sluggishness of switching nodes/colorboxes is gone/not noticable (even when crashing is present). Seems faster than GCC debug was, but maybe that's coincidence (newer master branch). Seems usable with multi-window-mode turned off. In case anyone gets the idea, an external framelimit doesn't seem to prevent the crashing. At least for me, libstrangle seems to do nothing and mangohud seems to make stability significantly worse. I also tried disabling v-sync (for testing with 240 FPS on w/60Hz display) in addition to the framelimit. |
Disabling V-Sync currently has no effect with the Vulkan renderer. |
Thought I might as well chime in with what I found so far, since everything in this issue happened to me. This seems to be an issue for me with everything that uses vulkan on my system, including Retroarch, Dolphin Emulator, etc. @TCROC 's fix does work for me, so big thanks for that, but I've also noticed that this freezing only tends to happen when invoking certain animations; such as highlighting text, and scrolling with the scrollbar too fast. My System: Linux 5.12.9-arch1-1, Arch Linux + KDE Plasma 5.21.5 |
I've tried to reproduce this issue with no luck so far. @carterisonline Do you have a laptop optimus system or just a desktop Nvidia card? I had problems with Vulkan on my system (it was failing to run using the correct GPU) so I've followed this step: |
@pouleyKetchoupp yep, I can still replicate this bug on 6955316. Had some big trouble doing it though. I had to compile it to
|
@Riteo Thanks for info! Are you able to reproduce it consistently now or is it completely random? Also please share some details about your system and nvidia driver version. |
@pouleyKetchoupp I can consistently reproduce w/d36b220, GCC (Or Clang), target=release_debug, 5.12.9-arch1-1 (Arch Linux+XFCE+no compositor), 1050 Ti w/driver v 465.31. CPU is a Ryzen 2700, so there isn't a 2nd GPU for any confusion here. The fastest way is to open any color picker and click+drag (although in debug_release+single window mode this seems to be broken anyways, as in dragging does not continue changing color. And GCC debug seems to have it working but not crashing from that. Crashing aside, different bug?). A different way is by highlighting text in the search bar in the project or editor settings windows. I can also confirm it happens when scrolling the about page. In the past I've also have had random freezing (and sometimes even crashing) with debug versions as I've commented here before. But as said in the past this is a very performance-dependent thing. |
For me It freezes only after moving cursor while holding mouse button inside text fields and scroll bars but not after selecting text only with keyboard or scrolling with mouse wheel. Arch Linux 5.12.10-arch1-1 |
Thanks all for the replies and reproduction steps! There are two last things that I would like to confirm before we can contact Nvidia support with more information:
Link:
Is that accurate? Are you always able to reproduce the issue on the first attempt, and if not how long does it take? |
From what I'm seeing it is instant and consistent, at least triggered this way and from color/text boxes. I've tested it quite a few times, but I can't exactly test too much as it freezes my system for a second time when killing the process (xkill leaves them behind, taking up resources). |
Oh sorry @pouleyKetchoupp I completely forgot to answer! Like @insomniacUNDERSCORElemon I haven't got any iGPU since I run a ryzen 2600 and I can replicate this on the latest arch linux version too running version 465.31 of the drivers. Is that nightly build any special from a fresh compilation of HEAD? I can confirm though that it happens in a consistent way by doing things like scrolling or in general updating very quickly a sub-window. I don't know if the freeze depends on a continuous fast update or just a very well timed out one though. If you're contacting nvidia I collected some detailed data using their debug tool some time ago, that may be useful to them. Also I found out some time later that the X server timed out after the freeze and I can confirm that it still happens, maybe they could use it as a starting point for finding out the cause of the issue. |
@pouleyKetchoupp |
* Multisampling was wrongly selected, possibly fixes godotengine#49937 * Image semaphore acquisition is now per window, possibly fixes godotengine#41614 Please make sure to test the above two issues again, since I can't reproduce either anyway.
Bugsquad edit: This issue has been confirmed several times already. No need to confirm it further.
Godot version: v4.0 Git commit f10c381
OS: Archlinux latest (NVIDIA GTX 1060, 64 GB RAM, Intel Core i7)
Issue description: When initialize godot UI modals remains unresponsive
Steps to reproduce:
Bugsquad edit (keywords for easier searching): crash, crashing, freeze, freezing
Windows counterpart of this issue: #45325
The text was updated successfully, but these errors were encountered: