RTX 5090 only (Linux/Proton): Xid 13 MMU faults at world entry; the same build is clean on an RTX 5070 Ti in the same PC #861

Open
opened 2026-11-26 03:52:44 +00:00 by github-bot · 2 comments
Owner

@⁠OctoAlgo on GitHub · 2026-11-25 10:58 UTC · original

Summary

On Linux under Proton, this fork faults on an RTX 5090 every time the world starts drawing (NVRM Xid 13, "SM Warp
Exception: MMU Fault", wild shader writes to unmapped GPU addresses). The same build, same prefix, same driver and
same PC
runs clean on the RTX 5070 Ti next to it: 15 minutes into the lit prologue cutscene, zero GPU errors. The
testers branch (r4tedx/VIctory 94e0ea5) also runs clean on the 5090. So it looks like an interaction between something
this fork does and the 5090 (GB202), not a general Linux or NVIDIA problem. Has anyone run the fork on a 5090, on Windows
or Linux?

Setup

  • CachyOS, kernel 7.3.6, NVIDIA 620.73.04 (open kernel modules, the newest in the repositories), Hyprland (Wayland)
  • RTX 5090 32 GB (drives the desktop) + RTX 5070 Ti 16 GB (no display) in the same PC; Ryzen 9 9900X, 128 GB RAM
  • Proton 11, vkd3d-proton master 30b0eb9 (also tried GE-Proton11-14's: same result), DXVK dxgi
  • Fork a26859fc (also 16849898 and 31714deb: same), Series X files 1.0.2.1, --features diagnostics
  • Linux additions on top: DXC fallback for the runtime HLSL compiles (#20), the NVIDIA view-heap cap probe, the
    VICTORY_NO_WATCHDOG loader hook (upstream #454), VICTORY_SHADER_LOOP_LIMIT=32,
    VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains

What happens on the 5090

  • 70–95 s after the start-screen Enter, between frames ~1,200 and ~2,480 (it varies run to run with identical
    settings), right as the loading screen fades into the world.
  • Kernel: Xid 13 ... Graphics SM Warp Exception on (GPC x, TPC y, SM z): MMU Fault, from many SMs at once, then Xid
    109/31 on teardown.
  • vkd3d-proton with VK_EXT_device_fault reporting (VKD3D_CONFIG=fault): WriteInvalid at addresses that were never
    mapped or were freed seconds earlier, e.g. 1 MB past the end of a 16 MB allocation, or tens of MB past a 2560x1440
    image. The faulting PC differs from run to run.
  • The first faulting frame (in two runs captured frame by frame with RenderDoc) is the first one containing a one-off
    burst of 19 compute dispatches (title computes dc33a831d92addd1, 6c4160eab4a573bb, 13dfdd3b1136e407,
    88994c3496045f51, 95988cc1e16f1d89, the last one as a 64→1 chain). Refusing those five doesn't help.

Ruled out (each one run or more on the 5090, all still Xid 13)

Change Result
Testers-like translation (group sync, wave-local forms refused, raw-address programs refused, testers' 93 refusals) still faults
Every shader store and atomic dropped; every colour/depth/stencil write off still faults (WriteInvalid reported anyway)
All compute skipped / all VS pipelines skipped / all mesh skipped (each separately) still faults
No draws or dispatches at all clean (so the title's GPU work is needed)
All default-on runtime switches of the fork off (textures/views, buffers/memory/submission) still faults
Byte-copied descriptor mirroring (VICTORY_HEAP_SYNC, a26859fc) on still faults
CPU waits for every submission to finish before going on still faults
16 GB of the 5090 held by another process (game budget 13.9 GB) still faults
Constant second GPU load (preemption) still faults, at the same point
No presentation and no captures still faults
Pipelines with 16–18 KB of local memory per thread refused still faults
no_descriptor_heap, vkd3d frees delayed 120 s, global UAV barriers after every draw/dispatch still faults

RenderDoc: the fault also happens with the capture layer active, but about 4,200 replays of the captured frames right
before the fault never fault. So it seems to need live state, not just one frame's commands.

Ask

  • Does the fork run on a 5090 for anyone (Windows or Linux)?
  • Is there anything in the runtime that scales with the card's size (SM count 170 vs 70, VRAM 32 vs 16 GB) or picks a
    different path on very large cards?

Happy to run builds or switches and report back. No game files or images attached.

(Investigated with an AI coding assistant; all numbers are from runs on this PC.)

**@⁠OctoAlgo** on GitHub · 2026-11-25 10:58 UTC · [original](https://github.com/fxceless/victory-fork/issues/861) ## Summary On Linux under Proton, this fork faults on an RTX 5090 every time the world starts drawing (NVRM Xid 13, "SM Warp Exception: MMU Fault", wild shader writes to unmapped GPU addresses). The **same build, same prefix, same driver and same PC** runs clean on the RTX 5070 Ti next to it: 15 minutes into the lit prologue cutscene, zero GPU errors. The testers branch (r4tedx/VIctory `94e0ea5`) also runs clean on the 5090. So it looks like an interaction between something this fork does and the 5090 (GB202), not a general Linux or NVIDIA problem. Has anyone run the fork on a 5090, on Windows or Linux? ## Setup - CachyOS, kernel 7.3.6, NVIDIA 620.73.04 (open kernel modules, the newest in the repositories), Hyprland (Wayland) - RTX 5090 32 GB (drives the desktop) + RTX 5070 Ti 16 GB (no display) in the same PC; Ryzen 9 9900X, 128 GB RAM - Proton 11, vkd3d-proton master `30b0eb9` (also tried GE-Proton11-14's: same result), DXVK `dxgi` - Fork `a26859fc` (also `16849898` and `31714deb`: same), Series X files 1.0.2.1, `--features diagnostics` - Linux additions on top: DXC fallback for the runtime HLSL compiles (#20), the NVIDIA view-heap cap probe, the `VICTORY_NO_WATCHDOG` loader hook (upstream #454), `VICTORY_SHADER_LOOP_LIMIT=32`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` ## What happens on the 5090 - 70–95 s after the start-screen Enter, between frames ~1,200 and ~2,480 (it varies run to run with identical settings), right as the loading screen fades into the world. - Kernel: `Xid 13 ... Graphics SM Warp Exception on (GPC x, TPC y, SM z): MMU Fault`, from many SMs at once, then Xid 109/31 on teardown. - vkd3d-proton with `VK_EXT_device_fault` reporting (`VKD3D_CONFIG=fault`): `WriteInvalid` at addresses that were never mapped or were freed seconds earlier, e.g. 1 MB past the end of a 16 MB allocation, or tens of MB past a 2560x1440 image. The faulting PC differs from run to run. - The first faulting frame (in two runs captured frame by frame with RenderDoc) is the first one containing a one-off burst of 19 compute dispatches (title computes `dc33a831d92addd1`, `6c4160eab4a573bb`, `13dfdd3b1136e407`, `88994c3496045f51`, `95988cc1e16f1d89`, the last one as a 64→1 chain). Refusing those five doesn't help. ## Ruled out (each one run or more on the 5090, all still Xid 13) | Change | Result | |---|---| | Testers-like translation (group sync, wave-local forms refused, raw-address programs refused, testers' 93 refusals) | still faults | | Every shader store and atomic dropped; every colour/depth/stencil write off | still faults (`WriteInvalid` reported anyway) | | All compute skipped / all VS pipelines skipped / all mesh skipped (each separately) | still faults | | No draws or dispatches at all | clean (so the title's GPU work is needed) | | All default-on runtime switches of the fork off (textures/views, buffers/memory/submission) | still faults | | Byte-copied descriptor mirroring (`VICTORY_HEAP_SYNC`, a26859fc) on | still faults | | CPU waits for every submission to finish before going on | still faults | | 16 GB of the 5090 held by another process (game budget 13.9 GB) | still faults | | Constant second GPU load (preemption) | still faults, at the same point | | No presentation and no captures | still faults | | Pipelines with 16–18 KB of local memory per thread refused | still faults | | `no_descriptor_heap`, vkd3d frees delayed 120 s, global UAV barriers after every draw/dispatch | still faults | RenderDoc: the fault also happens with the capture layer active, but about 4,200 replays of the captured frames right before the fault never fault. So it seems to need live state, not just one frame's commands. ## Ask - Does the fork run on a 5090 for anyone (Windows or Linux)? - Is there anything in the runtime that scales with the card's size (SM count 170 vs 70, VRAM 32 vs 16 GB) or picks a different path on very large cards? Happy to run builds or switches and report back. No game files or images attached. *(Investigated with an AI coding assistant; all numbers are from runs on this PC.)*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:52:44 +00:00
Author
Owner

@⁠Ortomanic on GitHub · 2026-11-25 15:40 UTC · original

A contrast point from the next card down, on a setup close to yours: an RTX 5080 (16 GB) does not show this on 0b0074e.

  • CachyOS, kernel 7.3.5, NVIDIA 620.73.04, Ryzen 7 9800X3D; plain Wine 11.22 rather than Proton, vkd3d-proton 3.1.r64 (f2963ee2), DXVK dxgi.
  • Fork 0b0074e plus a few Linux patches (single-latch DXIL, a second present plane, the DXC or Microsoft compiler for the runtime HLSL). --features diagnostics, --console series-s, which is one difference from your Series X run.
  • Three runs today from start screen into the first room, 70 to 120 s in the world each: no Xid, no device loss. World entry was at frames 1,000 to 1,900.
  • The compute programs you name as the first faulting burst are bound here at world entry without a fault: dc33a831, 6c4160ea and 13dfdd3b at frame 1,045, 88994c34 at frame 1,296.

So on this card the same burst usually runs clean. Correction after checking my watchdog log: last night, on trees based on 4e17478, 4 of 21 sessions on this card did fault. Three were consecutive runs within ten minutes (one Xid 109 CTX SWITCH TIMEOUT, then two Xid 13 SM Warp Exception ... MMU Fault, the same signature as yours), and a later one was Xid 13 Illegal Instruction Encoding. So the 5080 is not immune; it faults sometimes where your 5090 faults every time. I have not seen it on 0b0074e in today's three runs, which is too few to call it fixed.

I have no 5090 to test on. If a switch or build would be useful to run on a 5080 for comparison, I can run it.

AI-assisted (Claude Code); numbers are from runs on this PC.

**@⁠Ortomanic** on GitHub · 2026-11-25 15:40 UTC · [original](https://github.com/fxceless/victory-fork/issues/861#issuecomment-7167202265) A contrast point from the next card down, on a setup close to yours: an **RTX 5080** (16 GB) does not show this on `0b0074e`. - CachyOS, kernel 7.3.5, NVIDIA 620.73.04, Ryzen 7 9800X3D; plain Wine 11.22 rather than Proton, vkd3d-proton 3.1.r64 (`f2963ee2`), DXVK `dxgi`. - Fork `0b0074e` plus a few Linux patches (single-latch DXIL, a second present plane, the DXC or Microsoft compiler for the runtime HLSL). `--features diagnostics`, **`--console series-s`**, which is one difference from your Series X run. - Three runs today from start screen into the first room, 70 to 120 s in the world each: no Xid, no device loss. World entry was at frames 1,000 to 1,900. - The compute programs you name as the first faulting burst are bound here at world entry without a fault: `dc33a831`, `6c4160ea` and `13dfdd3b` at frame 1,045, `88994c34` at frame 1,296. So on this card the same burst usually runs clean. **Correction after checking my watchdog log:** last night, on trees based on `4e17478`, 4 of 21 sessions on this card did fault. Three were consecutive runs within ten minutes (one Xid 109 `CTX SWITCH TIMEOUT`, then two Xid 13 `SM Warp Exception ... MMU Fault`, the same signature as yours), and a later one was Xid 13 `Illegal Instruction Encoding`. So the 5080 is not immune; it faults sometimes where your 5090 faults every time. I have not seen it on `0b0074e` in today's three runs, which is too few to call it fixed. I have no 5090 to test on. If a switch or build would be useful to run on a 5080 for comparison, I can run it. AI-assisted (Claude Code); numbers are from runs on this PC.
Author
Owner

@⁠OctoAlgo on GitHub · 2026-11-25 15:55 UTC · original

Root cause found, and there's a fix.

The translator's code table is too big. victory-shader emit/lower.rs code_dword builds a shader's constant table from the lowest code offset any load names. A load at a computed offset names offset 0, so the table becomes the whole program. In 12 of the world-entry lighting computes that is 4160–4596 dwords (16.3–18 KiB). vkd3d-proton turns it into a private array. NVIDIA keeps up to 16 KiB of such arrays in constant memory and copies a bigger one into every thread's local memory (16–18 KB per thread here). On the RTX 5090 (GB202) that local memory faults (Xid 13, writes to unmapped addresses). On other cards it only costs VRAM.

  • Refusing only those 12 computes: clean 15-minute run on the 5090 (dark, since they are lighting).
  • Starting the table where the instructions end (the program's constants follow its instructions): those tables shrink to 616–708 bytes, and no executable uses 16 KB or more of local memory any more (the largest compute uses 128 B). Two clean 15-minute 5090 runs with all shaders on, lit. The lighting on the 5070 Ti matches an unpatched run.

The same fix is already open upstream as Marvisak/VIctory#2143 by desplmfao. They found it through the VRAM use on an RTX 5080. I've ported it to this fork in #1006 (one commit, credit to desplmfao). With it, the 5090 ran a clean 15-minute run (frame 3059, 0 Xid, lit).

@⁠Ortomanic thanks, that 5080 data fits well: the per-thread copies scale with the number of SMs (5070 Ti 70, 5080 84, 5090 170), so the 5070 Ti never faulted here, your 5080 faults now and then, and the 5090 faulted every time. If you can run the branch of #1006 on your 5080 for a few sessions, that would be a good second data point: the fault should be gone, and the game's video memory should drop by a few GB, as #2143 measured on a 5080.

(Investigated with an AI coding assistant; all numbers are from runs on this PC.)

**@⁠OctoAlgo** on GitHub · 2026-11-25 15:55 UTC · [original](https://github.com/fxceless/victory-fork/issues/861#issuecomment-7167440524) Root cause found, and there's a fix. The translator's code table is too big. `victory-shader` `emit/lower.rs` `code_dword` builds a shader's constant table from the lowest code offset any load names. A load at a computed offset names offset 0, so the table becomes the whole program. In 12 of the world-entry lighting computes that is 4160–4596 dwords (16.3–18 KiB). vkd3d-proton turns it into a private array. NVIDIA keeps up to 16 KiB of such arrays in constant memory and copies a bigger one into **every thread's local memory** (16–18 KB per thread here). On the RTX 5090 (GB202) that local memory faults (Xid 13, writes to unmapped addresses). On other cards it only costs VRAM. - Refusing only those 12 computes: clean 15-minute run on the 5090 (dark, since they are lighting). - Starting the table where the instructions end (the program's constants follow its instructions): those tables shrink to 616–708 bytes, and no executable uses 16 KB or more of local memory any more (the largest compute uses 128 B). Two clean 15-minute 5090 runs with all shaders on, lit. The lighting on the 5070 Ti matches an unpatched run. The same fix is already open upstream as Marvisak/VIctory#2143 by desplmfao. They found it through the VRAM use on an RTX 5080. I've ported it to this fork in #1006 (one commit, credit to desplmfao). With it, the 5090 ran a clean 15-minute run (frame 3059, 0 Xid, lit). @⁠Ortomanic thanks, that 5080 data fits well: the per-thread copies scale with the number of SMs (5070 Ti 70, 5080 84, 5090 170), so the 5070 Ti never faulted here, your 5080 faults now and then, and the 5090 faulted every time. If you can run the branch of #1006 on your 5080 for a few sessions, that would be a good second data point: the fault should be gone, and the game's video memory should drop by a few GB, as #2143 measured on a 5080. *(Investigated with an AI coding assistant; all numbers are from runs on this PC.)*
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
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
github/fxceless--victory-fork#861
No description provided.