turanszkij / WickedEngine

3D engine with modern graphics
https://wickedengine.net
Other
5.84k stars 619 forks source link

Crash on Debian with AMD #972

Open cryham opened 3 weeks ago

cryham commented 3 weeks ago

So I extracted all from latest relase (v0.71.585) Content.zip and Editor.Linux.zip in folder. Made Editor_Linux executable, and started. I saw window, with a text saying "Creating pipeline shaders" or so. Shortly after I got a driver crash I think, because I lost my screen and session, then I saw log in screen, had to newly log in.

OS: Debian 12 GPU: ASRock AMD Radeon RX 6600 XT drivers: amggpu

Any idea what's wrong? I also tried this with nightly build and crashed the same way.

turanszkij commented 3 weeks ago

Sounds like a bug in graphics driver, linux users have often problems like this.

cryham commented 3 weeks ago

So what's next, how can I fix this? Should I try other drivers? Is there a log for WickedEngine telling it is this problem and not some other? If this is a known issue is there any info about what others did and if they had the same issue on Debian/AMD?

turanszkij commented 3 weeks ago

The log file is saved to the user temp folder. I don't know what this is on Linux, on Windows this is: C:\Users\username\AppData\Local\Temp\wiBacklog.txt

Apart from that you can try debugging the problem or follow the troubleshoot guide in the readme: https://github.com/turanszkij/WickedEngine?tab=readme-ov-file#troubleshooting

I'm personally not working with linux, so maybe someone can come here, or you can also go to the discord to ask others.

k4ss4n commented 2 weeks ago

So what's next, how can I fix this? Should I try other drivers? Is there a log for WickedEngine telling it is this problem and not some other? If this is a known issue is there any info about what others did and if they had the same issue on Debian/AMD?

You could check if you are using "radv" which is known to currently cause problems on AMD 6000 series gpus on linux: vulkaninfo | grep "driverName" AMDs own open source driver "amdvlk" works for the current build from source(revision 615) and for the current build available on steam(0.71.613). Note that installing amdvlk may cause it to be used by default unless specifically setting radv.

To use amdvlk for the steam version when using radv for the OS you can use the following launch options in steam: VK_ICD_FILENAMES="<ICD_PATH>/amd_icd32.json:<ICD_PATH>/amd_icd64.json" AMD_VULKAN_ICD=AMDVLK %command% Where is the absolute path of the installed driver, "/usr/share/vulkan/icd.d" in my case. Don't know how Debian handles it.