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

Open
opened 2026-11-26 04:13:52 +00:00 by github-bot · 7 comments
Owner

@⁠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:

radv: GPUVM fault detected at address 0x80035fa04000.
GCVM_L2_PROTECTION_FAULT_STATUS: 0x401031
	 CLIENT_ID: (TCP) 0x8
	 PERMISSION_FAULTS: 3
	 MAPPING_ERROR: 0
	 RW: 0

The kernel log shows the same thing ([gfxhub] page fault ... Faulty UTCL2 client ID: TCP, thread vkd3d_queue), followed by a ring timeout and a reset.

Run Build / env Time, frame Fault address (host GPU VA) Slow submission before it How it ended
1 release ~4 min 0x800318e06000 27 lists device removed after a submission of 29 lists (0x887A0005), full MODE2 GPU reset
2 diag, VICTORY_D3D12_DEBUG=1 ~3 min, frame 1758 0x8003591be000 4059 ms, 7 lists device removed after a submission of 7 lists, MODE2 reset
3 diag, VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1 VKD3D_CONFIG=breadcrumbs ~4.5 min, frame 1494 none none ~30 s of no output, then the title's null write at +0x2215c35
4 same as 3 ~1.5 min, frame 1324 0x80035fa04000 2057 ms, 7 lists ring reset only; ~28 s later the title's null write at +0x23cf683 (called from the +0x2215c35 thread). No device removed line from VIctory

The 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=1 does nothing under Proton: no D3D12 debug layer error=0x887A002D (there is no d3d12sdklayers).
  • With 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: its Device lost detected breadcrumb 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 +0x23cf683 is 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_FAULTS and 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:

  1. Is there a way to get the DRED or breadcrumb report before the title's hang check fires? For example, VIctory polling GetDeviceRemovedReason or the fence with a timeout after a slow submission, or a setting that disables the title's check.
  2. Should I test a #557-related PR (e.g. #609) on this machine?

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.

**@⁠metric-vac** on GitHub · 2026-11-24 07:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/714) **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: ``` radv: GPUVM fault detected at address 0x80035fa04000. GCVM_L2_PROTECTION_FAULT_STATUS: 0x401031 CLIENT_ID: (TCP) 0x8 PERMISSION_FAULTS: 3 MAPPING_ERROR: 0 RW: 0 ``` The kernel log shows the same thing (`[gfxhub] page fault ... Faulty UTCL2 client ID: TCP`, thread `vkd3d_queue`), followed by a ring timeout and a reset. | Run | Build / env | Time, frame | Fault address (host GPU VA) | Slow submission before it | How it ended | |---|---|---|---|---|---| | 1 | release | ~4 min | `0x800318e06000` | 27 lists | `device removed after a submission of 29 lists` (0x887A0005), full MODE2 GPU reset | | 2 | diag, `VICTORY_D3D12_DEBUG=1` | ~3 min, frame 1758 | `0x8003591be000` | 4059 ms, 7 lists | `device removed after a submission of 7 lists`, MODE2 reset | | 3 | diag, `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1 VKD3D_CONFIG=breadcrumbs` | ~4.5 min, frame 1494 | none | none | ~30 s of no output, then the title's null write at `+0x2215c35` | | 4 | same as 3 | ~1.5 min, frame 1324 | `0x80035fa04000` | 2057 ms, 7 lists | ring reset only; ~28 s later the title's null write at `+0x23cf683` (called from the `+0x2215c35` thread). No `device removed` line from VIctory | The 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=1` does nothing under Proton: `no D3D12 debug layer error=0x887A002D` (there is no `d3d12sdklayers`). - With `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: its `Device lost detected` breadcrumb 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 `+0x23cf683` is 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_FAULTS` and 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:** 1. Is there a way to get the DRED or breadcrumb report before the title's hang check fires? For example, VIctory polling `GetDeviceRemovedReason` or the fence with a timeout after a slow submission, or a setting that disables the title's check. 2. Should I test a #557-related PR (e.g. #609) on this machine? 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:52 +00:00
Author
Owner

@⁠cj5k9dnkfd-afk on GitHub · 2026-11-24 07:36 UTC · original

Hi anyone have the game

**@⁠cj5k9dnkfd-afk** on GitHub · 2026-11-24 07:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7125176235) Hi anyone have the game
Author
Owner

@⁠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:

  1. Correlation with #557: The TCP read fault with PERMISSION_FAULTS: 3 and MAPPING_ERROR: 0 occurs 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.
  2. Title Hang Check Bypass: The deliberate null write at +0x23cf683 (mov dword [0], 0x4d8bd421) is the title's watchdog thread firing after 25–30 seconds of command-queue inactivity. On vkd3d-proton without d3d12sdklayers, 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.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 07:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7125358775) Yes, testing PR #609 on your Strix Halo RADV setup is highly recommended. Regarding your findings: 1. **Correlation with #557**: The TCP read fault with `PERMISSION_FAULTS: 3` and `MAPPING_ERROR: 0` occurs 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. 2. **Title Hang Check Bypass**: The deliberate null write at `+0x23cf683` (`mov dword [0], 0x4d8bd421`) is the title's watchdog thread firing after 25–30 seconds of command-queue inactivity. On vkd3d-proton without `d3d12sdklayers`, 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.
Author
Owner

@⁠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.

main f67c50c: about 1 min 40 s after the first world frames, at 0.3–2 fps:

radv: GPUVM fault detected at address 0x8002b6d03000.
[gfxhub] page fault (src_id:0 ring:157 vmid:6 pasid:154)
GCVM_L2_PROTECTION_FAULT_STATUS:0x0060113A
Faulty UTCL2 client ID: TCP (0x8)

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 on 6db02ea with VICTORY_SHADER_LOOP_LIMIT=32. The kernel log is clean for both. The second run ended on the title's int3 at +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).

**@⁠Exorion1er** on GitHub · 2026-11-24 08:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7126315766) 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`. **`main` `f67c50c`:** about 1 min 40 s after the first world frames, at 0.3–2 fps: ``` radv: GPUVM fault detected at address 0x8002b6d03000. [gfxhub] page fault (src_id:0 ring:157 vmid:6 pasid:154) GCVM_L2_PROTECTION_FAULT_STATUS:0x0060113A Faulty UTCL2 client ID: TCP (0x8) ``` 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 on `6db02ea` with `VICTORY_SHADER_LOOP_LIMIT=32`. The kernel log is clean for both. The second run ended on the title's `int3` at `+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).
Author
Owner

@⁠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 is VICTORY_KEYS only (Enter every 4 s from 30 s to 240 s). Each run is limited to 8 or 10 minutes.

The fault, and #493

Build Runs Result
main ffe310e 1 GPU page fault 3 min 9 s in: GPUVM fault, [gfxhub] page fault, thread vkd3d_queue, client TCP (0x8), PERMISSION_FAULTS: 3, MAPPING_ERROR: 0, RW: 0; then device removed 0x887A0005 after a submission of 3 lists
ffe310e + #493 (c48b240), later also + #454, #190 and the #783 fallback 61474f6 8 no GPUVM or gfxhub page-fault line in any run

That 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:

  • one with #493 alone: the title's own crash reporter at 5 min 10 s (watchdog not disabled in that run);
  • one out of GPU memory (below);
  • one ring gfx_0.0.0 timeout at 8 min 58 s with 61474f6 added, 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_used and ps:

Profile Process RSS, peak GPU memory, peak
Series X 8.2 GB 16.2 to 16.8 GB, still rising slowly at 10 min
Series S 7.9 GB 11.0 GB

What that does, depending on the BIOS split:

BIOS setting Series X result
4 GB dedicated, default GTT limit system RAM runs out about 2.5 min in; VIctory's log goes silent at about 4.5 min while the process keeps running (2 runs)
512 MB dedicated, 14 GB GPU limit GPU pool full at 2.5 min; kernel Not enough memory for command submission, then the compositor dies (1 run)
512 MB dedicated, 20 GB GPU limit runs to the 10 min limit, logging throughout (2 of 3 runs; the third is the ring timeout above)

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.

**@⁠0xcheems** on GitHub · 2026-11-24 15:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7136955064) 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 is `VICTORY_KEYS` only (Enter every 4 s from 30 s to 240 s). Each run is limited to 8 or 10 minutes. ## The fault, and #493 | Build | Runs | Result | |---|---:|---| | `main` `ffe310e` | 1 | GPU page fault 3 min 9 s in: `GPUVM fault`, `[gfxhub] page fault`, thread `vkd3d_queue`, client TCP (0x8), `PERMISSION_FAULTS: 3`, `MAPPING_ERROR: 0`, `RW: 0`; then `device removed 0x887A0005` after a submission of 3 lists | | `ffe310e` + #493 (`c48b240`), later also + #454, #190 and the #783 fallback `61474f6` | 8 | no GPUVM or gfxhub page-fault line in any run | That 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: - one with #493 alone: the title's own crash reporter at 5 min 10 s (watchdog not disabled in that run); - one out of GPU memory (below); - one `ring gfx_0.0.0 timeout` at 8 min 58 s with `61474f6` added, 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_used` and `ps`: | Profile | Process RSS, peak | GPU memory, peak | |---|---:|---:| | Series X | 8.2 GB | 16.2 to 16.8 GB, still rising slowly at 10 min | | Series S | 7.9 GB | 11.0 GB | What that does, depending on the BIOS split: | BIOS setting | Series X result | |---|---| | 4 GB dedicated, default GTT limit | system RAM runs out about 2.5 min in; VIctory's log goes silent at about 4.5 min while the process keeps running (2 runs) | | 512 MB dedicated, 14 GB GPU limit | GPU pool full at 2.5 min; kernel `Not enough memory for command submission`, then the compositor dies (1 run) | | 512 MB dedicated, 20 GB GPU limit | runs to the 10 min limit, logging throughout (2 of 3 runs; the third is the ring timeout above) | 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.
Author
Owner

@⁠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).

  • Where the cause is discussed: #557 (world entry, page fault on a texture read inside freed memory, 30–180 s in, RX 9070 XT on Windows, with DRED). It is the oldest complete report of this failure. Related: #772 (RX 6900 XT, freed texture) and #844 (Linux/Proton on RADV, TCP fault from a read past a root SRV's host copy). This issue is the main Linux/RADV data point.
  • Latest retest on main 67e8ae1 (Strix Halo, Mesa 26.2.7 RADV, Proton Experimental with vkd3d-proton 3.2.0): the world-entry write-watch freeze seen on 940d32f is gone on plain main, so #1849 is no longer needed there. There was no GPUVM fault in 3 runs. That supports the bounded root views now on main as the fix for this fault, but the number of runs is still small.
  • New, separate: 2 of 2 release runs ended about 3 min in with vkCreateComputePipelines Exception 0xc0000005 in Unix call while creating the pipeline for compute shader 433cc979eb566e2f. That is a crash inside the RADV/vkd3d-proton pipeline compiler, not in our code. With VICTORY_SKIP_PIPELINES=433cc979eb566e2f the 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.
  • That run then ended at the title's int3 at +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

**@⁠Marvisak** on GitHub · 2026-11-25 01:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7149947997) · edited 2026-11-25 18:49 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T16:45:27Z at=2026-11-25T19:38:00Z --> 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`). - **Where the cause is discussed:** #557 (world entry, page fault on a texture read inside freed memory, 30–180 s in, RX 9070 XT on Windows, with DRED). It is the oldest complete report of this failure. Related: #772 (RX 6900 XT, freed texture) and #844 (Linux/Proton on RADV, TCP fault from a read past a root SRV's host copy). This issue is the main Linux/RADV data point. - **Latest retest on `main` `67e8ae1` (Strix Halo, Mesa 26.2.7 RADV, Proton Experimental with vkd3d-proton 3.2.0):** the world-entry write-watch freeze seen on `940d32f` is gone on plain `main`, so #1849 is no longer needed there. There was no GPUVM fault in 3 runs. That supports the bounded root views now on `main` as the fix for this fault, but the number of runs is still small. - **New, separate:** 2 of 2 release runs ended about 3 min in with `vkCreateComputePipelines Exception 0xc0000005 in Unix call` while creating the pipeline for compute shader `433cc979eb566e2f`. That is a crash inside the RADV/vkd3d-proton pipeline compiler, not in our code. With `VICTORY_SKIP_PIPELINES=433cc979eb566e2f` the 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. - That run then ended at the title's `int3` at `+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](https://claude.ai/code)_
Author
Owner

@⁠metric-vac on GitHub · 2026-11-25 11:50 UTC · original

Retried as asked, on plain main 940d32f (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 with VICTORY_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 (holding GUARDS) → aliases() → __rust_realloc → heap write fault → watch::install::on_write → Mutex::lock_contended on the lock it already holds. main and three title threads were waiting in on_write behind it. VIctory's own VICTORY_STACKS dumper 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's int3 at +0x5149aec on several title threads (rax low bits 0x1fffe, 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 via ttm.pages_limit), about 400 MB of RAM free, 9 GB of swap in use.

So with d71c388 on main plus #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 11:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7161570775) Retried as asked, on plain `main` `940d32f` (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 with `VICTORY_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` (holding `GUARDS`) → `aliases()` → `__rust_realloc` → heap write fault → `watch::install::on_write` → `Mutex::lock_contended` on the lock it already holds. `main` and three title threads were waiting in `on_write` behind it. VIctory's own `VICTORY_STACKS` dumper 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's `int3` at `+0x5149aec` on several title threads (`rax` low bits `0x1fffe`, 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 via `ttm.pages_limit`), about 400 MB of RAM free, 9 GB of swap in use. So with `d71c388` on `main` plus #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).
Author
Owner

@⁠metric-vac on GitHub · 2026-11-25 16:45 UTC · original

Update on current main 67e8ae1, same machine (Strix Halo / Radeon 8060S, 32 GB unified, Fedora 44, kernel 7.3.4, Mesa 26.2.7 RADV, Proton Experimental experimental-11.0-20261112 with its vkd3d-proton 3.2.0 2576c0b).

The freeze is gone on plain main. With 280b150 the 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:

INFO victory_gpu::pipeline: shader translated stage="compute" hash=433cc979eb566e2f user_data=2 samplers=0
err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call.

(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 shows dropped 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 int3 at +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 433cc979eb566e2f if you tell me the setting.

**@⁠metric-vac** on GitHub · 2026-11-25 16:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/714#issuecomment-7168484625) Update on current `main` `67e8ae1`, same machine (Strix Halo / Radeon 8060S, 32 GB unified, Fedora 44, kernel 7.3.4, Mesa 26.2.7 RADV, Proton Experimental `experimental-11.0-20261112` with its vkd3d-proton 3.2.0 `2576c0b`). **The freeze is gone on plain `main`.** With 280b150 the 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: ``` INFO victory_gpu::pipeline: shader translated stage="compute" hash=433cc979eb566e2f user_data=2 samplers=0 err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call. ``` (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 shows `dropped 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 `int3` at `+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 `433cc979eb566e2f` if you tell me the setting.
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/Marvisak--VIctory#714
No description provided.