Linux (Proton + vkd3d-proton, Strix Halo RADV): GPU page fault (texture read) 1.5–4 min in, DRED never reports because the title's own hang check exits first #714
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#714
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?
@metric-vac on GitHub · 2026-11-24 07:34 UTC · original
Setup: VIctory
d2a4bae, release and diagnostics builds (cargo build --release -p victory --features diagnostics), Series X profile. Fedora 44, kernel 7.3.4, Radeon 8060S (Strix Halo, RDNA 3.5, unified memory, 32 GB), Mesa 26.2.7 RADV. Proton Experimental's Wine and its vkd3d-proton (d3d12,d3d12core,dxgi=n,b).Symptom. The title renders for 1.5–4 minutes, then one submission is slow (2–4 s) and the GPU page-faults on a texture read. The signature is the same in every run:
The kernel log shows the same thing (
[gfxhub] page fault ... Faulty UTCL2 client ID: TCP, threadvkd3d_queue), followed by a ring timeout and a reset.0x800318e06000device removed after a submission of 29 lists(0x887A0005), full MODE2 GPU resetVICTORY_D3D12_DEBUG=10x8003591be000device removed after a submission of 7 lists, MODE2 resetVICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1 VKD3D_CONFIG=breadcrumbs+0x2215c350x80035fa04000+0x23cf683(called from the+0x2215c35thread). Nodevice removedline from VIctoryThe addresses are Vulkan VAs from RADV, not D3D12 GPU VAs, so they don't map directly onto VIctory's allocations.
Why there is no DRED report on Linux:
VICTORY_D3D12_DEBUG=1does nothing under Proton:no D3D12 debug layer error=0x887A002D(there is nod3d12sdklayers).VICTORY_D3D12_DRED=1, the report only prints once VIctory sees the device removed. In run 4 it didn't see that within ~28 s, and neither did vkd3d-proton: itsDevice lost detectedbreadcrumb dump never printed. Meanwhile the title's own hang check (+0x23cf683,mov dword [0], 0x4d8bd421) ended the process. So on this setup the fault happens, but neither VIctory nor vkd3d-proton reports it before the title exits.That null write at
+0x23cf683is the same offset cmt8 reported for XCL on a 7900 XTX ("black and the null write at +0x23cf683 after ~470 s"), so it looks like the title's generic reaction to a stuck GPU.Possibly related: #557 (a texture read of freed streaming textures on RX 9070 XT, also 30–180 s in, after a slow submission). A TCP read fault with
PERMISSION_FAULTSand no mapping error would fit a read of memory that was released or remapped, but I can't confirm it without the DRED data.Questions:
GetDeviceRemovedReasonor the fence with a timeout after a slow submission, or a setting that disables the title's check.Happy to run anything on this setup. Logs available on request.
AI-assisted (Claude Code): disassembly done by Claude; the runs and logs reads are mine on the hardware above.
@cj5k9dnkfd-afk on GitHub · 2026-11-24 07:36 UTC · original
Hi anyone have the game
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 07:46 UTC · original
Yes, testing PR #609 on your Strix Halo RADV setup is highly recommended.
Regarding your findings:
PERMISSION_FAULTS: 3andMAPPING_ERROR: 0occurs when wave divergence causes lanes to branch into deallocated/unmapped texture memory regions because lane-mask phi states were improperly joined or clobbered across loop headers. PR #609 preserves live incoming lane-mask states across control-flow joins and prevents divergent lane fall-through, which directly eliminates this class of illegal texture read faults.+0x23cf683(mov dword [0], 0x4d8bd421) is the title's watchdog thread firing after 25–30 seconds of command-queue inactivity. On vkd3d-proton withoutd3d12sdklayers, DRED breadcrumbs do not flush if the host process terminates via access violation before the device lost callback finishes. PR #32's queue timeline and fence handoff also reduce the multi-second submission stalls that trigger the title's watchdog.@Exorion1er on GitHub · 2026-11-24 08:35 UTC · original
Same signature on an RX 9070 XT (RDNA4, discrete), Fedora 44, kernel 7.3.5, Mesa 26.2.7 RADV, GE-Proton11-12's Wine with Proton Experimental's vkd3d-proton 3.2.0. Diagnostics builds,
VICTORY_NO_WATCHDOG=1.mainf67c50c: about 1 min 40 s after the first world frames, at 0.3–2 fps:After that, VIctory reported
host GPU device removed after a submission of 32 lists; device removed: 0x887A0005. Unlike run 4 in the table above, the removal was reported here before anything else ended the process. DRED was off for that run, so I can't say whether the address was inside a freed texture as in #557.With #190 #454 #493 #579 (plus #89 on the first run): there was no GPU fault in two runs: 3 min 45 s in the world on
f67c50c, still running at my 5-minute cap, and about 7 min on6db02eawithVICTORY_SHADER_LOOP_LIMIT=32. The kernel log is clean for both. The second run ended on the title'sint3at+0x63966f(the pool free-list case from #597), at the start of gameplay. Neither stack had #609 or any other release-timing change, so this may be luck within the 30–180 s spread #557 reports, or a side effect of the stack changing what runs. Two runs isn't enough to tell. I can run #609 on top if that's useful.Counts and log lines only. AI-assisted (Claude Code).
@0xcheems on GitHub · 2026-11-24 15:59 UTC · original
Same fault on a second Strix Halo, and it does not come back with #493. Also some memory figures for this chip, since it has no VRAM of its own.
AI use: the runs were driven and the logs summarised with Claude Code (Claude Fable 5.2) on my machine; I watched the runs. Own copy of 1.0.2.1.
Setup: Ryzen AI MAX+ 395, Radeon 8060S (Strix Halo), 32 GB; NixOS, kernel 7.1.5, Mesa 26.1.5 RADV; Proton Experimental
experimental-11.0-20261112(runinprefix,d3d12,d3d12core,dxgi=n,b), vkd3d-proton 3.2.0. Diag builds (--profile diag --features diagnostics) cross-built with cargo-xwin. Series X profile unless noted. Input isVICTORY_KEYSonly (Enter every 4 s from 30 s to 240 s). Each run is limited to 8 or 10 minutes.The fault, and #493
mainffe310eGPUVM fault,[gfxhub] page fault, threadvkd3d_queue, client TCP (0x8),PERMISSION_FAULTS: 3,MAPPING_ERROR: 0,RW: 0; thendevice removed 0x887A0005after a submission of 3 listsffe310e+ #493 (c48b240), later also + #454, #190 and the #783 fallback61474f6That is the signature in the description, inside its 1.5 to 4 minute window. One unpatched run only, so I can't give a rate for
main. Of the 8 patched runs, 5 ran to the time limit; the other 3 ended for other reasons:ring gfx_0.0.0 timeoutat 8 min 58 s with61474f6added, device removed after a submission of 24 lists, no page-fault line. It did not repeat in the next run of the same executable. Cause unknown.Memory on this chip
GPU memory here is system RAM (amdgpu GTT), so the title's process and its GPU allocations share 32 GB. Sampled every 8 s from
mem_info_gtt_usedandps:What that does, depending on the BIOS split:
Not enough memory for command submission, then the compositor dies (1 run)So a world "stop" a few minutes in on a 32 GB unified-memory machine can be plain memory exhaustion rather than a hang: the silent log looked like the run 3 in the description until I sampled memory. Series S did not stall in its one run, which was on the first BIOS setting.
Not measured: Windows on this machine, a release build, and anything past 10 minutes.
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original · edited 2026-11-25 18:49 UTC
Automated triage for the maintainers.
This run report has everything needed: host GPU and driver stack, OS and kernel, Proton and vkd3d-proton versions, VIctory commit (
d2a4bae), how far the title got, and the fault lines. The comments add the same TCP read fault on an RX 9070 XT (f67c50c) and on a second Strix Halo (ffe310e).main67e8ae1(Strix Halo, Mesa 26.2.7 RADV, Proton Experimental with vkd3d-proton 3.2.0): the world-entry write-watch freeze seen on940d32fis gone on plainmain, so #1849 is no longer needed there. There was no GPUVM fault in 3 runs. That supports the bounded root views now onmainas the fix for this fault, but the number of runs is still small.vkCreateComputePipelines Exception 0xc0000005 in Unix callwhile creating the pipeline for compute shader433cc979eb566e2f. That is a crash inside the RADV/vkd3d-proton pipeline compiler, not in our code. WithVICTORY_SKIP_PIPELINES=433cc979eb566e2fthe run lasted about 8 min. A report to Mesa, with the translated DXIL or SPIR-V of that one shader, is where this can be fixed. Its log line belongs here as a Linux host data point.int3at+0x5149aec(the pool free-list case, tracked in #698), with memory nearly full on this 32 GB unified-memory machine. As noted before, on such machines a stop a few minutes in can be memory exhaustion rather than a hang.Generated by Claude Code
@metric-vac on GitHub · 2026-11-25 11:50 UTC · original
Retried as asked, on plain
main940d32f(unpatched), same machine: Strix Halo (Radeon 8060S), Fedora 44, kernel 7.3.4, Mesa 26.2.7 RADV, Proton Experimental.Plain
main: no GPUVM fault, but every run froze before it could show. 7 runs (4 diag builds withVICTORY_NO_WATCHDOG=1), each stopped 1.3 to 3.4 min in, at or just after world entry: log silent, no GPU fault, no kernel messages, no OOM, all threads idle. On my earlier builds the fault came 1.5 to 9 min in, so these runs don't show whether it's gone.The freeze is the write-watch self-deadlock that #1849 fixes. Windows-side stacks taken with gdb from outside the process during the freeze: a thread in
watch::Tracked::take(holdingGUARDS) →aliases()→__rust_realloc→ heap write fault →watch::install::on_write→Mutex::lock_contendedon the lock it already holds.mainand three title threads were waiting inon_writebehind it. VIctory's ownVICTORY_STACKSdumper hung on the same lock.940d32f+ #1849: 1 run, no freeze and no GPUVM fault. 8.7 min in total, about 7 of them in the world at 0.1 to 1.3 fps. Audio, subtitles and credits play; the rest of the picture is black. The kernel log is clean. It ended on the title'sint3at+0x5149aecon several title threads (raxlow bits0x1fffe, the pool free-list case; callers+0xa5db22+0x5453ac7+0x23d0f9a+0x23d1211+0x257035e+0x221c29c+0x2215eca). At that point memory was full: GTT 20.36 of 20.48 GB (limit raised viattm.pages_limit), about 400 MB of RAM free, 9 GB of swap in use.So with
d71c388onmainplus #1849, the fault did not come back in about 7 minutes in the world. That's one run only, so not proof yet. I can do more runs if that helps.AI-assisted (Claude Code).
@metric-vac on GitHub · 2026-11-25 16:45 UTC · original
Update on current
main67e8ae1, same machine (Strix Halo / Radeon 8060S, 32 GB unified, Fedora 44, kernel 7.3.4, Mesa 26.2.7 RADV, Proton Experimentalexperimental-11.0-20261112with its vkd3d-proton 3.2.02576c0b).The freeze is gone on plain
main. With280b150the world-entry freeze no longer happens here, so #1849 isn't needed for this machine any more. In 3 runs I saw no GPUVM fault either.New: RADV crashes compiling compute shader
433cc979eb566e2f. 2 of 2 normal-build runs ended about 3 min in with exit code 3. The last line before the exit in both runs:(The first bind of that shader is
size=1820.) RAM wasn't exhausted at that point (3.7 GB free). This is with vkd3d-proton 3.2.0, so it isn't the old structurizer crash from #144 / #752.With a diagnostics build and
VICTORY_SKIP_PIPELINES=433cc979eb566e2f, the crash is gone: the log showsdropped 1.0/frame without a host pipeline: skipped shader 433cc979eb566e2f, and the run lasted about 8 min, about 6 of them in the world at 0.2–1 fps. That's one skipped run, so I can't say yet whether another shader will crash RADV later. Fedora only has Mesa 26.2.7 so far, so I can't check whether 26.3.x fixes it.That run then ended at the title's
int3at+0x5149aec(the pool running dry, #698), with the same stack as there (+0xa5db22,+0x5453ac7,+0x23d0f9a,+0x23d1211,+0x257035e,+0x221c29c,+0x2215eca). Memory was close to full by then: about 1 GB RAM free, 17 GB GTT, about 3 GB in swap.What renders here: menus, loading cards, credits and subtitles. In the world, only a frame or two of unlit geometry (street-light poles, trees) shows; the rest is black.
I can run more tests if that helps, e.g. dump the SPIR-V of
433cc979eb566e2fif you tell me the setting.