-
-
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
Game crashing on swap_buffers - Seemingly random #67404
Comments
I am willing to join a voice call on Discord to show off the error and share more information if needed. |
Recently got this in the log files as well, not sure if it helps
|
Same for me on beta11, nvidia gtx1060. It began happening after i played around with environment settings and skies. The editor even crashes when opening the scene containing that world environment. |
I can't reproduce this on 4.0.beta12 on with the project you linked. I've tried opening all 3 scenes, closing them and opening them a second time: Specs: Fedora 37, GeForce RTX 4090 (NVIDIA 525.60.11) |
It freezes reliably on my pc, even after rebooting (4.0 beta 11, Win 10, 16gb ram, nvidia gtx1060 6gb (driver version 516.59)). out.mp4This is right after opening the project from the project manager (the offending scene is set as main scene). It only started happening after i opened the project the second time though (not sure if that's relevant or just coincidence) Edit: on beta12 it's the same, only that there are fewer errors printed to the console (these are all): |
While the Godot editor is closed, can you try editing the |
I'll try that later when I'm at my PC again. I already edited the environment resource directly (in-editor inspector) earlier with the scene closed though, where it didn't seem to have any effect, but that could also have been the result of some caching |
Ok, it happens when i add a Sky to the environment settings (removed all references to it from the tres before), even when i try to set it in the editor it freezes. Edit: it does not freeze when i edit the environment settings (sky), while no 'WorldEnvironment' is currently in the scene. When i then add that to the scene it works just fine, but when i add the sky while a WorldEnvironment with that tres assigned is currently active it reliably freezes (and after project reloads from then, just like before). |
Have you changed any Sky settings from the default? |
It happens right when I select new sky in the dropdown for the corresponding sky field directly inside the environment settings, i can't even get to its sub settings. |
Once you've added a sky (maybe in a copy of the scene/project so that it doesn't freeze your main project) you should IIRC be able to edit its values in the scene file in any text editor - I'm wondering whether it's a general "fail to work with the shader" situation or if one of the settings is to blame (maybe the radiance size) |
I was able to create a sky by using the steps mentioned above, deleting the worldenvironment, editing the env-resource, then creating the corresponding node, and it seems the freeze happens when or as the sky is created with no sky material. |
It also freezes reliably with PanoramaSkyMaterial (with or without texture) assigned to the sky (but not with physical or procedural sky, nor with a physical sky that has a night sky texture assigned) |
My main project and the example do not crash anymore in beta16 under the same scenarios. |
Having the same problem with AMD on Artix Linux. Just having the editor open is enough; it likes to happen when I'm not even at the computer. It happens about once per day. Takes out the entire desktop session.
|
@RenaKunisaki Which graphics card model do you have, and which Vulkan driver are you using (RADV or AMDVLK)? |
My system is ASUS ROG Strix G513QY, which has two GPUs: Radeon integrated with 512MB (its name seems to be just "AMD Radeon Graphics"), and Radeon RX 6800M with 12GB. By running |
Just had it happen again with the integrated GPU.
Since my RAM usage is normally around 50% and there are no logs mentioning oom-killer, I assume either it was a VRAM allocation failure or godot somehow leaked 32GB within a few minutes. This crash actually seems to be accidentally exploiting CVE-2023-0047, at least in this instance. I guess this is probably a driver bug, but only godot seems to trigger it; I've never had it happen before I started using godot. |
Hi! Could you test this version to see if you can still repro the problem? Thanks. |
Godot version
4.0 Beta2
System information
OS: Windows 11 | CPU: AMD Ryzen 5 3600X 6-Core | GPU: AMD Radeon RX 5700 XT (Driver: 22.20.19.16-221003a-384125E-AMD-Software-Adrenalin-Edition) | Rendering Backend: Vulkan
Issue description
From what I can tell from my search, this exact issue has not been reported. Very similar issues exist, but none that describe this particular crash.
Description
Every so often while my game is running it will crash my GPU with this error:
Error source link
And AMD's crash detection will show up with this message:
However, it doesn't seem to be any fault of mine. Even if there's nothing going on in-game, or it's just a blank window containing a scene with a single node, it will randomly crash my GPU and show that error.
It does seem to be a 3D issue, I've been unable to reproduce it in a project without 3D rendering.
I've tried out a few fixes from issues similar to this one:
VulkanContext::swap_buffers
#60979But so far none of them have worked. 😢
Steps to reproduce
As far as I can tell, this is an AMD GPU specific issue. So reproducing it on other hardware will probably be impossible.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: