Dying Light 2 (steam) crashes immediately on startup with Radeon 7900XT, mesa 23.3.0-devel.
Description
Dying Light 2 suddenly (a few weeks ago) started crashing when trying to start, just an instant of black screen, then back to library. I waited some time to see if a game update would correct the issue, but nothing so far despite several updates. I saw a couple of similar reports in the steam community, but none were resolved.
I really can't say for certain if this is a mesa issue, but given that it was working fine (with either DX11 or DX12) and suddenly it isn't, I assume it was either a game update or a mesa update. People seem to still be able to play on windows and the Steam Deck, so it probably isn't the game. On the other hand, this is the only game from the 19 steam games I have installed that stopped working.
Can't remember the latest mesa-git aur package that was working fine, but at least I think it was working fine with mesa-git 23.2.0_devel.170650.e6bcbd57.dae32bb875358c786b404388bf1ee875-1.
I have tried different proton versions, switching between X11 and wayland, some env variables I see some people use, nothing. All the same. And the game crash log doesn't seem helpful at all. Only thing that looked suspicious to me is (full crash log attached further down):
{23:22:44.744} INFO: [Renderer] > Renderer started in DX11 mode.
{23:22:44.744} RETL: [Renderer] > HW Scheduling Enabled: false
{23:22:44.744} INFO: [Renderer] > DX11 reported 20'464M free texture memory.
{23:22:44.857} INFO: [Renderer] > [d3d12-checker] Failed to create device with D3D_FEATURE_LEVEL_12_1.
Seems odd to me to start in DX11 mode and report a failure for d3d12. Sorry for not being able to provide an API trace, that's a little beyond my experience.
Also out of curiosity I booted my Windows 10 partition that had been dormant for months, ran updates, installed the game and it runs just fine there. Which is to be expected I guess, but did it just to be thorough.
Log files
- Backtrace (for crashes): crash_20230713_231405577.log
- Proton: steam-534380.log
- Output of
dmesg
: dmesg.txt - Hang reports:
RADV_DEBUG=hang
doesn't generate any files.
Steps to reproduce
Just start the game from the Steam Library. Black screen for an instant, then back to the library. Nothing else.
System information
System:
Host: desktop Kernel: 6.4.3-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc
v: 13.1.1 Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_wayland
dm: SDDM Distro: Arch Linux
CPU:
Info: 12-core (8-mt/4-st) model: 12th Gen Intel Core i7-12700K bits: 64
type: MST AMCP arch: Alder Lake rev: 2 cache: L1: 1024 KiB L2: 12 MiB
L3: 25 MiB
Speed (MHz): avg: 2760 high: 3600 min/max: 800/4900:5000:3800 cores:
1: 800 2: 3600 3: 3600 4: 3600 5: 3600 6: 3600 7: 800 8: 3600 9: 800
10: 3600 11: 800 12: 3600 13: 800 14: 3600 15: 800 16: 3600 17: 3600
18: 3600 19: 3600 20: 3600 bogomips: 144383
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel AlderLake-S GT1 vendor: Micro-Star MSI driver: i915
v: kernel ports: active: none empty: DP-4, DP-5, HDMI-A-2, HDMI-A-3,
HDMI-A-4, HDMI-A-5 bus-ID: 00:02.0 chip-ID: 8086:4680
Device-2: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX] driver: amdgpu
v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports:
active: HDMI-A-1 off: DP-3 empty: DP-1,DP-2 bus-ID: 03:00.0
chip-ID: 1002:744c
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_wayland driver: X: loaded: amdgpu,modesetting
alternate: fbdev,intel,vesa dri: radeonsi,iris gpu: i915,amdgpu
display-ID: 0
Monitor-1: HDMI-A-1 res: 1920x1080 size: N/A
API: OpenGL v: 4.6 Mesa 23.3.0-devel (git-5f5be9e4e1) renderer: AMD
Radeon RX 7900 XT (gfx1100 LLVM 15.0.7 DRM 3.52 6.4.3-zen1-1-zen)
direct-render: Yes
If applicable
- Xserver version: X.Org X Server 1.21.1.8
- DXVK version: (Whichever Steam uses by default)
- Wine/Proton version: GE-Proton8-6, Proton Experimental.