-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Vulkan: Editor freezes when system wakes up from sleep #52738
Comments
See also #41559. @hmans Can you reproduce this with Godot 3.3.3? Note that in general, NVIDIA + suspend on Linux is not very reliable. Open source drivers generally fare better here, but there are no viable open source drivers available for Maxwell 2 and newer GPUs due to NVIDIA's signed firmware requirement. |
I can confirm that this still happens on latest. I am on Linux Mint with amd64 Linux 5.13. The issue says that the editor freezes, however for me it still works. It just fails to render new dialogues. Windows appear empty but are still interactive. |
Which Godot version do you refer by "latest"? The Does the issue go away if you resize the window? |
I am also experiencing this issue with the recently released godot 4 alpha build. So far, this issue has happened every time I have slept/resumed my system. Godot Engine v4.0.alpha1.official.31a7ddbf8 Godot Engine v3.4.2.stable.official.45eaa2daf does not have the same problem for me and I haven't noticed any material problems like the one @hmans mentioned. As @fwsGonzo said, the editor still responds to mouse clicks, but the window shows a ghost of the last rendered content. Running from the terminal shows lots of these errors whenever a re-render event is triggered (such as resizing the window or hovering over components inside):
I also saw this error in one of my tests, but it may not be related.
Lspci shows:
|
Can reproduce with 4.0 alpha 6 on a laptop with linux 5.17.3-arch1-1, driver nvidia 510.60.02 with a nvidia geforce gtx 1060 This is a prime setup (nvidia is not the display gpu), not sure if that changes anything |
Happens to me as well. NVIDIA GeForce GT 1030/PCIe/SSE2. 5.10.109-1-MANJARO (linux510). On both alpha 6 and 3.4.4. Not a huge problem, just relaunch the editor when I come back from suspend. |
I am no longer experiencing the issue with Godot v4.0.alpha14.official [106b680]. |
Closing per @DragonAxe's comment. Please comment if you can still reproduce this on the latest 4.0 alpha and a recent graphics driver. |
I may have spoke too soon. I am still experiencing this issue on v4.0.alpha15.official [432b25d] |
nvidia-suspend.service and others seemed already enabled on my Ubuntu 20.04 running Nvidia continuously (Performance Mode), and, in fact trying to enable it anyway will cause black screen. So I just followed the 2nd instruction, setting /etc/modprobe.d/nvidia-power-management.conf to but it still froze Godot after sleep and re-awake. Maybe reboot is needed... I'll try again later, or rather, I'll work normally until it happens again or it is fixed. UPDATE 2023-03-26: |
This definitely seems to be a wider problem than Godot. I booted up Valheim on Pop! OS and put my computer into sleep mode. The Vulkan version of Valheim behaved just like Godot 4 (entire window stopped rendering), whereas OpenGL version of Valheim behaved more like Godot 3 (2D UI continued to render, but 3D meshes were completely black) Also since I don't think it was mentioned in this thread yet: this problem affects not just the editor but any games made with Godot as well |
Given how this isn't a Godot-specific issue and large sweeping changes are required to support suspend on Linux, it's fair to document this for now. |
This is likely valid for #55389 too (doesn't happen in my machine after doing the suspend workaround) |
Unable to acquire framebuffer
after Linux virtual console switch
#88879
Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.
Godot version
4.0.dev (5179124)
System information
Linux 5.13.13, Ryzen 5800X, GTX 1060, Vulkan
Issue description
When my Linux system goes to sleep and later wakes up, any currently running Godot 4.0.dev editors are completely frozen, and I need to
kill -9
their processes.Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: