[crash] Linux/Proton, RTX 5090: GPU hang (Xid 13 / Xid 109) a few seconds after the world starts rendering; in-shader constant tables (fixed by VictoryArch's code-table patch, A/B confirmed) #298

Open
opened 2026-12-04 12:05:19 +00:00 by uuwf0 · 1 comment

What happened

On Linux under Proton, every run hangs 3 to 25 s after the world starts rendering, right after the profile picker and loading screen. It happens every time, in about 25 runs.

  • Driver 620.73.04 gives Xid 13 ... MMU Fault ... Class 0000cec0. Driver 615.78.08 gives Xid 109 CTX SWITCH TIMEOUT.
  • vkd3d-proton never reports a lost device. It only logs Failed to wait for Vulkan timeline semaphore, vr 2.
  • The host fence never signals, the title waits on its fence forever, and the screen stays frozen or black with no crash.
  • The same dump and settings work on Windows 11 (driver 610.88).

Each of these still hangs:

  • Proton: GE-Proton11-16, Proton Experimental, and vkd3d-proton master (0959f0e4) beside darner.exe
  • NVIDIA drivers 620.73 and 615.78
  • VKD3D_CONFIG: descriptor_heap_robustness, no_descriptor_heap, no_upload_hvv, no_gpu_upload_heap
  • device-generated commands disabled
  • DARNER_LEAVE_OUT with all 552 title compute shaders from a cold-cache run (about 1,950 dispatches left out)
  • DARNER_AMBIENT=0, DARNER_CARD_ALL=0, DARNER_CARD_STEPS=0, DARNER_INDIRECT_BATCH=0, DARNER_GPU_DETILE=0, DARNER_PAGE_BUFFERS=0, DARNER_DLSS=0
  • Series S profile
  • native d3dcompiler_47

The VictoryArch fork (branch darner-up94, commit 7bc606d, on top of ad070f0) loads and plays on the same PC. Its "M16a" patch moves each shader's constant table out of an in-shader constant_global array and into a raw root SRV (slots 249, and 248 for pixel shaders). Its comment says the in-shader array becomes a SPIR-V Private per-thread array, which NVIDIA's Vulkan driver keeps in per-thread scratch VRAM (about 125 MB per KB of table).

That fits all of the above:

  • It is Linux only.
  • It shows up as an MMU fault or a timeout.
  • It does not depend on the driver version.
  • Leaving out compute shaders did not help, because pixel and vertex shaders carry tables too.

A/B with the fork's own exe on the same PC, driver 615.78.08, Proton Experimental, an automated run with the same input each time:

  • Fork defaults (tables in a root SRV): 117 s in the world, 2048+ frames, no Xid.
  • Fork with --set DARNER_CODE_TABLE_PRIVATE=1 (the old in-shader tables), run 1: Xid 109 6 s after the world started rendering.
  • The same, run 2: Xid 109 again, 6 s in.
    So the in-shader constant table is the cause on this card.

Side finding: darner play removes every DARNER_* environment variable it did not set itself (leftovers() in play.rs). Launchers that pass switches through the environment, such as AmericasLauncher on Linux, have them silently ignored. Only --set and darner-settings.txt work.

Before you post

  • I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this.
  • This issue is about one problem.
  • I verified the game files and run no mods.

RAY TRACING in F1

Off

GPU and driver

RTX 5090 32 GB, NVIDIA 615.78.08 (Linux, open kernel module); also 620.73.04

CPU, RAM and Windows version

Ryzen 9 9950X3D, 64 GB, Arch Linux (kernel 7.2.14), Proton Experimental / GE-Proton11-16 through umu-launcher (AmericasLauncher 0.0.0.3). Works on Windows 11.

Darner release or commit

v2026.12.03.02 (also v2026.12.03.01)

Settings

Series X, 1080p to 1440p, DLSS quality, no frame generation, ray tracing off, AMBIENT 0.8. Added: DARNER_PORT_CONSTANTS=1, DARNER_TEXTURE_NO_WAIT=0.

Log files attached

darner-play-20261204-105840-536.log (stock v2026.12.03.02, hang)
darner-play-20261204-115022-472.log (fork, defaults, no hang)
darner-play-20261204-115323-328.log (fork, DARNER_CODE_TABLE_PRIVATE=1, hang)

Are you working on a fix?

Yes: a port of just the fork's code-table change, on by default under Wine only (DARNER_CODE_TABLE_ROOT=1/0 forces it). A/B on this PC: defaults 2/2 no Xid; DARNER_CODE_TABLE_ROOT=0 gives Xid 109 2/2. PR coming from uuwf0:pr-fix/code-table-root-srv.

### What happened On Linux under Proton, every run hangs 3 to 25 s after the world starts rendering, right after the profile picker and loading screen. It happens every time, in about 25 runs. - Driver 620.73.04 gives `Xid 13 ... MMU Fault ... Class 0000cec0`. Driver 615.78.08 gives `Xid 109 CTX SWITCH TIMEOUT`. - vkd3d-proton never reports a lost device. It only logs `Failed to wait for Vulkan timeline semaphore, vr 2`. - The host fence never signals, the title waits on its fence forever, and the screen stays frozen or black with no crash. - The same dump and settings work on Windows 11 (driver 610.88). Each of these still hangs: - Proton: GE-Proton11-16, Proton Experimental, and vkd3d-proton master (0959f0e4) beside darner.exe - NVIDIA drivers 620.73 and 615.78 - VKD3D_CONFIG: descriptor_heap_robustness, no_descriptor_heap, no_upload_hvv, no_gpu_upload_heap - device-generated commands disabled - DARNER_LEAVE_OUT with all 552 title compute shaders from a cold-cache run (about 1,950 dispatches left out) - DARNER_AMBIENT=0, DARNER_CARD_ALL=0, DARNER_CARD_STEPS=0, DARNER_INDIRECT_BATCH=0, DARNER_GPU_DETILE=0, DARNER_PAGE_BUFFERS=0, DARNER_DLSS=0 - Series S profile - native d3dcompiler_47 The VictoryArch fork (branch darner-up94, commit 7bc606d, on top of ad070f0) loads and plays on the same PC. Its "M16a" patch moves each shader's constant table out of an in-shader `constant_global` array and into a raw root SRV (slots 249, and 248 for pixel shaders). Its comment says the in-shader array becomes a SPIR-V `Private` per-thread array, which NVIDIA's Vulkan driver keeps in per-thread scratch VRAM (about 125 MB per KB of table). That fits all of the above: - It is Linux only. - It shows up as an MMU fault or a timeout. - It does not depend on the driver version. - Leaving out compute shaders did not help, because pixel and vertex shaders carry tables too. A/B with the fork's own exe on the same PC, driver 615.78.08, Proton Experimental, an automated run with the same input each time: - Fork defaults (tables in a root SRV): 117 s in the world, 2048+ frames, no Xid. - Fork with --set DARNER_CODE_TABLE_PRIVATE=1 (the old in-shader tables), run 1: Xid 109 6 s after the world started rendering. - The same, run 2: Xid 109 again, 6 s in. So the in-shader constant table is the cause on this card. Side finding: `darner play` removes every DARNER_* environment variable it did not set itself (`leftovers()` in play.rs). Launchers that pass switches through the environment, such as AmericasLauncher on Linux, have them silently ignored. Only --set and darner-settings.txt work. ### Before you post - [x] I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this. - [x] This issue is about one problem. - [x] I verified the game files and run no mods. ### RAY TRACING in F1 Off ### GPU and driver RTX 5090 32 GB, NVIDIA 615.78.08 (Linux, open kernel module); also 620.73.04 ### CPU, RAM and Windows version Ryzen 9 9950X3D, 64 GB, Arch Linux (kernel 7.2.14), Proton Experimental / GE-Proton11-16 through umu-launcher (AmericasLauncher 0.0.0.3). Works on Windows 11. ### Darner release or commit v2026.12.03.02 (also v2026.12.03.01) ### Settings Series X, 1080p to 1440p, DLSS quality, no frame generation, ray tracing off, AMBIENT 0.8. Added: DARNER_PORT_CONSTANTS=1, DARNER_TEXTURE_NO_WAIT=0. ### Log files attached darner-play-20261204-105840-536.log (stock v2026.12.03.02, hang) darner-play-20261204-115022-472.log (fork, defaults, no hang) darner-play-20261204-115323-328.log (fork, DARNER_CODE_TABLE_PRIVATE=1, hang) ### Are you working on a fix? Yes: a port of just the fork's code-table change, on by default under Wine only (DARNER_CODE_TABLE_ROOT=1/0 forces it). A/B on this PC: defaults 2/2 no Xid; DARNER_CODE_TABLE_ROOT=0 gives Xid 109 2/2. PR coming from uuwf0:pr-fix/code-table-root-srv.

A data point from another Ada card under Proton, in case it helps narrow this down. RTX 4080, driver 620.73.04, Proton-CachyOS 11.0 (20261201) with vkd3d-proton master, VKD3D_CONFIG=no_descriptor_heap,pipeline_library_app_cache,no_upload_hvv and VK_NV_raw_access_chains disabled, on a build based on main f3840d7.

We don't hang every run like you do. Today, 1 of 4 runs got Xid 109 CTX SWITCH TIMEOUT, about 5 s after frame 499, while still on the loading screen from the prison save, with hardware ray tracing on. The same save and settings ran its full 200 s of world right after. In that hang the only busy thread was the title's watchdog (thread start +0x2215eca), counting its ticks. We haven't tried the code-table patch yet.

A data point from another Ada card under Proton, in case it helps narrow this down. RTX 4080, driver 620.73.04, Proton-CachyOS 11.0 (20261201) with vkd3d-proton master, `VKD3D_CONFIG=no_descriptor_heap,pipeline_library_app_cache,no_upload_hvv` and `VK_NV_raw_access_chains` disabled, on a build based on `main` f3840d7. We don't hang every run like you do. Today, 1 of 4 runs got `Xid 109 CTX SWITCH TIMEOUT`, about 5 s after frame 499, while still on the loading screen from the prison save, with hardware ray tracing on. The same save and settings ran its full 200 s of world right after. In that hang the only busy thread was the title's watchdog (thread start `+0x2215eca`), counting its ticks. We haven't tried the code-table patch yet.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#298
No description provided.