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
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#861
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 somethingthis 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
30b0eb9(also tried GE-Proton11-14's: same result), DXVKdxgia26859fc(also16849898and31714deb: same), Series X files 1.0.2.1,--features diagnosticsVICTORY_NO_WATCHDOGloader hook (upstream #454),VICTORY_SHADER_LOOP_LIMIT=32,VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsWhat happens on the 5090
settings), right as the loading screen fades into the world.
Xid 13 ... Graphics SM Warp Exception on (GPC x, TPC y, SM z): MMU Fault, from many SMs at once, then Xid109/31 on teardown.
VK_EXT_device_faultreporting (VKD3D_CONFIG=fault):WriteInvalidat addresses that were nevermapped 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.
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)
WriteInvalidreported anyway)VICTORY_HEAP_SYNC,a26859fc) onno_descriptor_heap, vkd3d frees delayed 120 s, global UAV barriers after every draw/dispatchRenderDoc: 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
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.)
@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.f2963ee2), DXVKdxgi.0b0074eplus 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.dc33a831,6c4160eaand13dfdd3bat frame 1,045,88994c34at 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 109CTX SWITCH TIMEOUT, then two Xid 13SM Warp Exception ... MMU Fault, the same signature as yours), and a later one was Xid 13Illegal Instruction Encoding. So the 5080 is not immune; it faults sometimes where your 5090 faults every time. I have not seen it on0b0074ein 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.
@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-shaderemit/lower.rscode_dwordbuilds 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.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.)