godot: Godot 4: gpu/os crash on startup with Vulkan (Linux, Radeon, regression in alpha 13)
Godot version
4.0 alpha 15 (same problem on older alphas)
System information
Nobara linux 36 KDE (Fedora 36)
Issue description
Hello,
In short, my issue is that my display freezes and input stops (keyboard, mouse, etc) but sound is still working, whenever I startup Godot 4 alpha 15 | x86_64 (and 32) (same problem on older alphas) and my only option is hard reboot. Crash happens before Godot’s window is drawn. I’m currently on Nobara 36 KDE (Fedora 36, Wayland) and I’ve also tried with EndeavourOS Atlantis (arch, xOrg) on the same system, the problem persists.
I’ve tried launching godot with --single-window, the problem is still there, but I found that launching Godot with opengl3 instead of Vulkan, works. Well not totally, the UI is broken, unless I launch it with --single-window on top of using opengl3.
I think that Vulkan is the problem here, I can’t log what’s happening since my pc is freezing, but the freeze happens the instant Vulkan is executed by Godot.
And of course, Vulkan is installed and working well in my pc, no errors, I can play games with Vulkan exclusively already, everything is up-to-date in my system and I also recently did a clean os install, just to make sure my system wasn’t the problem. Godot 3.5 and older versions perfectly work, in windows or linux.
For the experiment, I tried launching Godot 4 alpha 15 win 64 with wine, the exact same problem happens. Seems like the AMD Vulkan driver is having issues with Godot’s behavior?
Here’s more info about my system, just in case:
- Operating System: Nobara Linux 36
- KDE Plasma Version: 5.25.4
- KDE Frameworks Version: 5.97.0
- Qt Version: 5.15.5
- Kernel Version: 5.19.4-201.fsync.fc36.x86_64 (64-bit)
- Graphics Platform: Wayland
- Processors: 8 × AMD FX™-8350 Eight-Core Processor
- Memory: 7.7 GiB of RAM
- Graphics Processor: AMD Radeon HD 8800 Series
- GPU driver: Mesa 22.3.0-devel (LLVM 14.0.5)
- Vulkan driver: RADV 1.3.224
- Manufacturer: Gigabyte Technology Co., Ltd.
Steps to reproduce
Launch Godot 4 with the default launch options (Vulkan) in Linux, GPU AMD Radeon HD 8800 series.
Minimal reproduction project
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 46 (15 by maintainers)
Hello again,
Bisecting was done, and here’s the result:
Bisecting: 0 revisions left to test after this (roughly 0 steps) [d139131aab7f228d5cca612b35289e6abd18e26a] Adding Variable Rate Shading support to Godot Improve GI renderer and add VRS support Implement render device has_feature and move subgroup settings to limit_get
Please bear in mind that I have no experience with git and this was my very first time bisecting, I might have done some things wrong, I’d take it with a pinch of salt, but this was the result I got. I hope it helps!
I found out I can run godot with --rendering-driver opengl3 and I can create and edit projects, and the gpu crash will happen once you run a scene, I can get godot crash logs but it’s the same information as always.
logg.txt godot.log
Hello,
I just wanted to notify you that in about two weeks, I’ll have an entire new pc rig, so I wouldn’t be able to help from that point and on on this specific issue, since I wouldn’t be using the current rig anymore. So please, if you still need me, make sure to contact me before that.
I have been running the commands suggested, with 2>&1 included and I get similar outputs, only difference is that it didn’t manage to print out the EditorSettings part. I don’t know why it’s so hard to get an error message or anything to point to the issue, maybe there is no issue at all on the code and maybe its a driver issue that the AMDGPU devs should know, I don’t know how to contact them though.
It didn’t work, but I’m pretty sure my os isn’t the problem. It’s seems to be a gpu one, since other people in this thread have the same issue with the same gpu. Though, is it godot causing an issue with it? I suppose so, since everything works fine up to godot 3.5 and godot 4 alpha 12. Though I don’t know much, that’s just my opinion.
Meaning I clone right now
git clone https://github.com/godotengine/godot.gitno specific branches and compile withscons -j$(nproc) platform=linuxbsd lto=noneand when it’s finished, I run the executable in bin, right? If so, ok. I’m doing it right now!The dbus issue is likely unrelated to this, it’s opened dynamically if available to enable some features, but Godot should work fine without it too. You can install your distro’s dbus package to silence the error.
Hello, thanks for your response. So I’ve compiled it, launched the executable in the bin folder and then, same thing happened. I hope it helps identifying the potential culprits.