[RX 6800 XT / RDNA2 | CachyOS]: Hang, then null write at victory-image+0x2215c35, after 10–24 min #57

Open
opened 2026-12-01 07:42:20 +00:00 by github-bot · 8 comments
Owner

@⁠Spel0 on GitHub · 2026-12-01 06:58 UTC · original

Summary

The game hangs and then crashes with 0xc0000005 after 10–24 minutes of play. I have the same hang twice, with an identical stack in the one non-waiting thread and the same crash address. A third run crashed with a different signature. Logs are attached.

Environment

  • CachyOS (Arch-based), kernel 7.3.6, Mesa/RADV 26.3.1
  • AMD RX 6800 XT (16 GB), Ryzen 5 7600, 32 GB RAM
  • KDE Plasma on Wayland (Xwayland running)
  • Runtime from the log: proton-cachyos-slr; vkd3d-proton 3.2.0, DXVK 3.1.1, ntsync enabled
  • Launched with ./run.sh play.

Settings (run.conf, confirmed in the game process's /proc/<pid>/environ)

VICTORY_BVH_BUILDER=0
VICTORY_BVH_HARDWARE=0
VICTORY_FSR_4K=performance   # 1920x1080 -> 3840x2160, FSR 4.1.2
VICTORY_RECORDS=0 # Not set during "play-20261201-091606" run
VICTORY_SKIP_BINK=1 # Not set during "play-20261201-091606" run
VICTORY_FULLSCREEN=1 # Not set during "play-20261201-091606" run
SAFE=1  # Not set during "play-20261201-091606" and "play-20261201-085531" run

Console profile: Xbox Series X.

Runs (log timestamps are UTC)

Log Duration End
play-20261201-064121.log ~10.5 min Hang watch at 10 s and 20 s (frame 16434), then crash at victory-image+0x2215c35, write to 0x0
play-20261201-091606.log ~24 min Hang watch at 10 s and 20 s (frame 64441), then the same crash, write to 0x0
play-20261201-085531.log ~19 min No hang watch. Crash at victory-image+0xad533c, write to 0x215da4c37e ("reserved, never committed"). The last log line before it was a texback: texture readback landed

logs.zip

The repeated hang (runs 1 and 3)

In both stall dumps exactly one guest thread is not waiting. It was thread 456 in run 1 and thread 452 in run 3, both started at victory-image+0x2215ea0. Its stack is identical in both runs and in both dumps within each run:

+0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292
<- +0x51c39e1 <- +0x257035e <- +0x221c29c <- +0x2215eca

Every other thread I looked at (title-main, victory-submit, relay, records, list, pipelines, the vkd3d queue and fence threads) is idle in a wait. My guess is that the spinning thread is polling for a value that never arrives, but I can't tell from the log. There are no WARN or ERROR lines and no kernel messages (no amdgpu errors) in the last 30 seconds before the hang. Per-frame stats looked normal until then.

Other observations

  • The view-slot table (records: … slots=1048576) is still active in the logs despite VICTORY_RECORDS=0 (confirmed in the process environment). Its "taken so far" counter reached about 524,3xx about 1.5 min before the hang in run 1 and about 11 min before it in run 3, so I don't think it is the trigger.
  • VRAM sits at 14–15.7 GB of 16 GB for most of a session, and the log repeatedly reports "the card has no room for more" textures. Host RAM had about 9–10 GB available throughout, with no memory pressure.
  • Separately, KWin hitches heavily when alt-tabbing. A perf top of its submission thread shows the time spent in dmem_cgroup_state_evict_valuable, css_next_descendant_pre and page_counter_calculate_protection. I suspect a kernel/amdgpu issue under VRAM pressure, not VIctory itself, but I'm mentioning it in case it's related.

Questions

  1. Can you tell what code +0x2626877, +0x2215c35 and +0xad533c are in the translated image?
  2. Is RDNA2 expected to work on this path, or is RDNA4 the only tested target?
  3. Is there a setting that turns off the view-slot table?

Happy to try patches or collect more logs.

**@⁠Spel0** on GitHub · 2026-12-01 06:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57) ## Summary The game hangs and then crashes with `0xc0000005` after 10–24 minutes of play. I have the same hang twice, with an identical stack in the one non-waiting thread and the same crash address. A third run crashed with a different signature. Logs are attached. ## Environment - CachyOS (Arch-based), kernel 7.3.6, Mesa/RADV 26.3.1 - AMD RX 6800 XT (16 GB), Ryzen 5 7600, 32 GB RAM - KDE Plasma on Wayland (Xwayland running) - Runtime from the log: `proton-cachyos-slr`; vkd3d-proton 3.2.0, DXVK 3.1.1, ntsync enabled - Launched with `./run.sh play`. ## Settings (`run.conf`, confirmed in the game process's `/proc/<pid>/environ`) ``` VICTORY_BVH_BUILDER=0 VICTORY_BVH_HARDWARE=0 VICTORY_FSR_4K=performance # 1920x1080 -> 3840x2160, FSR 4.1.2 VICTORY_RECORDS=0 # Not set during "play-20261201-091606" run VICTORY_SKIP_BINK=1 # Not set during "play-20261201-091606" run VICTORY_FULLSCREEN=1 # Not set during "play-20261201-091606" run SAFE=1 # Not set during "play-20261201-091606" and "play-20261201-085531" run ``` Console profile: Xbox Series X. ## Runs (log timestamps are UTC) | Log | Duration | End | |---|---|---| | play-20261201-064121.log | ~10.5 min | Hang watch at 10 s and 20 s (frame 16434), then crash at `victory-image+0x2215c35`, write to `0x0` | | play-20261201-091606.log | ~24 min | Hang watch at 10 s and 20 s (frame 64441), then the same crash, write to `0x0` | | play-20261201-085531.log | ~19 min | No hang watch. Crash at `victory-image+0xad533c`, write to `0x215da4c37e` ("reserved, never committed"). The last log line before it was a `texback: texture readback landed` | [logs.zip](https://github.com/user-attachments/files/35662373/logs.zip) ## The repeated hang (runs 1 and 3) In both stall dumps exactly one guest thread is not waiting. It was thread 456 in run 1 and thread 452 in run 3, both started at `victory-image+0x2215ea0`. Its stack is identical in both runs and in both dumps within each run: ``` +0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292 <- +0x51c39e1 <- +0x257035e <- +0x221c29c <- +0x2215eca ``` Every other thread I looked at (title-main, victory-submit, relay, records, list, pipelines, the vkd3d queue and fence threads) is idle in a wait. My guess is that the spinning thread is polling for a value that never arrives, but I can't tell from the log. There are no WARN or ERROR lines and no kernel messages (no amdgpu errors) in the last 30 seconds before the hang. Per-frame stats looked normal until then. ## Other observations - The view-slot table (`records: … slots=1048576`) is still active in the logs despite `VICTORY_RECORDS=0` (confirmed in the process environment). Its "taken so far" counter reached about 524,3xx about 1.5 min before the hang in run 1 and about 11 min before it in run 3, so I don't think it is the trigger. - VRAM sits at 14–15.7 GB of 16 GB for most of a session, and the log repeatedly reports "the card has no room for more" textures. Host RAM had about 9–10 GB available throughout, with no memory pressure. - Separately, KWin hitches heavily when alt-tabbing. A `perf top` of its submission thread shows the time spent in `dmem_cgroup_state_evict_valuable`, `css_next_descendant_pre` and `page_counter_calculate_protection`. I suspect a kernel/amdgpu issue under VRAM pressure, not VIctory itself, but I'm mentioning it in case it's related. ## Questions 1. Can you tell what code `+0x2626877`, `+0x2215c35` and `+0xad533c` are in the translated image? 2. Is RDNA2 expected to work on this path, or is RDNA4 the only tested target? 3. Is there a setting that turns off the view-slot table? Happy to try patches or collect more logs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:42:20 +00:00
Author
Owner

@⁠DecayingEagle on GitHub · 2026-12-01 12:31 UTC · original · edited 2026-12-01 12:52 UTC

Another related gameplay stall on RDNA3, current unmodified main 37bb30f. This one may help connect the watchdog crash to the +0xad533c case above: the one running title worker is stuck in the adjacent code at +0xad5241.

Setup: RX 7900 XT (20 GB), Ryzen 9 9900X, 32 GB RAM; private Mesa 26.3.1 at fec8830e + this tree's mesa.patch, vkd3d-proton 71cae091 + both this tree's patches, Wine 11.22 with the view-tree wineserver patch. Diagnostic MSVC build with diagnostics, Series X, native 2560×1440, RT off (VICTORY_BVH_BUILDER=0), no FSR. Page migration enabled by default. VICTORY_RECORDS and SAFE unset. Native RAM/VRAM aliases and lazy-page startup probes pass.

Run: 825.8 s wall time; the title's crash context says 13m7s of game time, Game Running, driving a Carbonizzare. Median of the log's scene samples was ~24.8 FPS. Last renderer stats at 12:22:40 UTC: 25.28 FPS, ~6,970 draws/frame, no pipelines being made. Frames then stop at 25812. Hang dumps at +10 s and +20 s, followed by the null write at +0x2215c35 at 12:23:14 UTC. I found no kernel ring timeout, GPU reset or OOM kill in this interval.

The same worker's stack in both hang dumps:

+ad5241 <- +ad5042 <- +ad4f96 <- +ad4768 <- +bc478
<- +4f4b23a <- +4f4b1e0 <- +3f2eb9e <- +63e78
<- +4eaa05a <- +221c29c <- +2215eca

The minidump captured it at +ad5241 again. Disassembly there walks 16-bit links in entries of stride 20, repeatedly following [r15 + r8*20 + 2] while r8w < cx. The captured values are r15=0x11aac6a90, r8=0x461, cx=0xaf0, rdx=0x11aad4c08, rax=0xb46. A cycle/corrupt link is a possibility; the small minidump does not include that heap region, so I cannot prove it. Title-main is waiting; submit/relay/vkd3d fence and queue workers are idle. The later null write looks like the watchdog ending this CPU-side stall, rather than its original cause.

VRAM was close to full (~19.6/20.5 GB). The scope's swap peaked at its 2 GB cap, so paging pressure remains a possible contributor; no OOM kill was recorded. Last residency line: ~4,109 MB on card out of 9,330 MB paged title memory, 773 MB card free, 0 refused page moves.

Update, 2026-12-01T12:52 UTC: the VICTORY_PAGES=0 comparison is still running after ~15.5 minutes of world samples (draws >= 500; menus excluded), controlled by the player, with 0 hang dumps and 0 unhandled exceptions so far. Median of those logged world samples: 25.76 FPS. Same executable, driver, Series X/native 1440p/RT-off settings, and an isolated copy of the crash-time save. The pre-start warm made 89,387 additional learned pipelines in 252 s, 0 rejected or crashed; this run has 21 first-use misses so far. Cache state and the route differ, so this is a stability observation, not a controlled FPS benchmark or proof that migration is the cause. VRAM is again near full; the scope still has a 2 GB swap cap. I have kept pages-off as a provisional local fallback. No crash bypass applied, and the title is still open. No game files or dumps attached.

Analysis and this comment prepared with Codex; the run and hardware measurements are real.

**@⁠DecayingEagle** on GitHub · 2026-12-01 12:31 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7311264985) · edited 2026-12-01 12:52 UTC Another related gameplay stall on RDNA3, current unmodified `main` `37bb30f`. This one may help connect the watchdog crash to the `+0xad533c` case above: the one running title worker is stuck in the adjacent code at `+0xad5241`. **Setup:** RX 7900 XT (20 GB), Ryzen 9 9900X, 32 GB RAM; private Mesa 26.3.1 at `fec8830e` + this tree's `mesa.patch`, vkd3d-proton `71cae091` + both this tree's patches, Wine 11.22 with the view-tree wineserver patch. Diagnostic MSVC build with `diagnostics`, Series X, native 2560×1440, RT off (`VICTORY_BVH_BUILDER=0`), no FSR. Page migration enabled by default. `VICTORY_RECORDS` and `SAFE` unset. Native RAM/VRAM aliases and lazy-page startup probes pass. **Run:** 825.8 s wall time; the title's crash context says 13m7s of game time, Game Running, driving a Carbonizzare. Median of the log's scene samples was ~24.8 FPS. Last renderer stats at 12:22:40 UTC: 25.28 FPS, ~6,970 draws/frame, no pipelines being made. Frames then stop at 25812. Hang dumps at +10 s and +20 s, followed by the null write at `+0x2215c35` at 12:23:14 UTC. I found no kernel ring timeout, GPU reset or OOM kill in this interval. The same worker's stack in both hang dumps: ``` +ad5241 <- +ad5042 <- +ad4f96 <- +ad4768 <- +bc478 <- +4f4b23a <- +4f4b1e0 <- +3f2eb9e <- +63e78 <- +4eaa05a <- +221c29c <- +2215eca ``` The minidump captured it at `+ad5241` again. Disassembly there walks 16-bit links in entries of stride 20, repeatedly following `[r15 + r8*20 + 2]` while `r8w < cx`. The captured values are `r15=0x11aac6a90`, `r8=0x461`, `cx=0xaf0`, `rdx=0x11aad4c08`, `rax=0xb46`. A cycle/corrupt link is a possibility; the small minidump does not include that heap region, so I cannot prove it. Title-main is waiting; submit/relay/vkd3d fence and queue workers are idle. The later null write looks like the watchdog ending this CPU-side stall, rather than its original cause. VRAM was close to full (~19.6/20.5 GB). The scope's swap peaked at its 2 GB cap, so paging pressure remains a possible contributor; no OOM kill was recorded. Last residency line: ~4,109 MB on card out of 9,330 MB paged title memory, 773 MB card free, 0 refused page moves. **Update, 2026-12-01T12:52 UTC:** the `VICTORY_PAGES=0` comparison is still running after ~15.5 minutes of world samples (draws >= 500; menus excluded), controlled by the player, with 0 hang dumps and 0 unhandled exceptions so far. Median of those logged world samples: 25.76 FPS. Same executable, driver, Series X/native 1440p/RT-off settings, and an isolated copy of the crash-time save. The pre-start warm made 89,387 additional learned pipelines in 252 s, 0 rejected or crashed; this run has 21 first-use misses so far. Cache state and the route differ, so this is a stability observation, not a controlled FPS benchmark or proof that migration is the cause. VRAM is again near full; the scope still has a 2 GB swap cap. I have kept pages-off as a provisional local fallback. No crash bypass applied, and the title is still open. No game files or dumps attached. Analysis and this comment prepared with Codex; the run and hardware measurements are real.
Author
Owner

@⁠LloydNicholson on GitHub · 2026-12-01 13:57 UTC · original

Same hang and crash on RDNA4, with ray tracing on and page migration on.

Setup: RX 9060 XT (16 GB, RDNA4), Ryzen 7 5700X, 32 GB RAM; Nobara (Fedora 44), kernel 7.3.4; Mesa/RADV 26.3.1 at fec8830e (#44's driver build); Proton-CachyOS Latest with ntsync and the view-tree wineserver patch; DXVK 3.1.1. Release build of main 37bb30f plus local merges of #44, #47 and #52. Series X profile, VICTORY_OUTPUT=1920x1080, VICTORY_RENDER_SCALE=1.0, fullscreen, no FSR. run.sh defaults otherwise: VICTORY_BVH_BUILDER=1, VICTORY_BVH_IN_PLACE=1, VICTORY_PAGES unset (pages move).

Run: started 13:37:25 UTC; frames stop at 13257 around 13:44:28, about 7 minutes in, while playing. Hang dumps at +10 s (13:44:38) and +20 s, then the null write: 0xc0000005 at victory-image+0x2215c35 (write 0x0) at about 13:44:50. Last stats before the stop: 20.7 fps, ~10,200 draws a frame (it had been ~25 fps at ~5,500 draws a few seconds earlier). VRAM 12.7/15.4 GB; last residency line: 3,869 MB of 9,330 MB paged title memory on the card, 2,617 MB of the card free, 0 pages moved down for room. No ERROR lines before the hang; the only WARN in the last 30 s is a records: a buffer view read by number is made on a copy apart from title memory address=0x0 line, which also shows up earlier in the run without trouble.

The only thread not waiting, in both dumps, starts at +0x2215ea0 and sits at the same place as in the RDNA3 comment above (+ad5231 in the second dump, +ad5241 in the first):

+ad5241 <- +ad5042 <- +ad4f96 <- +ad4768 <- +bc478
<- +4f4b23a <- +4f4b1e0 <- +3f2eb9e <- +63e78
<- +4eaa05a <- +221c29c <- +2215eca

So it happens on RDNA2, RDNA3 and RDNA4, with RT on and off. In about 27 runs that day this is the only hang; the other runs (all but one with pages moving) didn't hit it.

Log details pulled with Claude Code; the run and the numbers are from my machine.

**@⁠LloydNicholson** on GitHub · 2026-12-01 13:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7313472632) Same hang and crash on **RDNA4**, with ray tracing **on** and page migration on. **Setup:** RX 9060 XT (16 GB, RDNA4), Ryzen 7 5700X, 32 GB RAM; Nobara (Fedora 44), kernel 7.3.4; Mesa/RADV 26.3.1 at `fec8830e` (#44's driver build); Proton-CachyOS Latest with ntsync and the view-tree wineserver patch; DXVK 3.1.1. Release build of `main` `37bb30f` plus local merges of #44, #47 and #52. Series X profile, `VICTORY_OUTPUT=1920x1080`, `VICTORY_RENDER_SCALE=1.0`, fullscreen, no FSR. `run.sh` defaults otherwise: `VICTORY_BVH_BUILDER=1`, `VICTORY_BVH_IN_PLACE=1`, `VICTORY_PAGES` unset (pages move). **Run:** started 13:37:25 UTC; frames stop at **13257** around 13:44:28, about 7 minutes in, while playing. Hang dumps at +10 s (13:44:38) and +20 s, then the null write: `0xc0000005 at victory-image+0x2215c35 (write 0x0)` at about 13:44:50. Last stats before the stop: 20.7 fps, ~10,200 draws a frame (it had been ~25 fps at ~5,500 draws a few seconds earlier). VRAM 12.7/15.4 GB; last residency line: 3,869 MB of 9,330 MB paged title memory on the card, 2,617 MB of the card free, 0 pages moved down for room. No ERROR lines before the hang; the only WARN in the last 30 s is a `records: a buffer view read by number is made on a copy apart from title memory address=0x0` line, which also shows up earlier in the run without trouble. The only thread not waiting, in both dumps, starts at `+0x2215ea0` and sits at the same place as in the RDNA3 comment above (`+ad5231` in the second dump, `+ad5241` in the first): ``` +ad5241 <- +ad5042 <- +ad4f96 <- +ad4768 <- +bc478 <- +4f4b23a <- +4f4b1e0 <- +3f2eb9e <- +63e78 <- +4eaa05a <- +221c29c <- +2215eca ``` So it happens on RDNA2, RDNA3 and RDNA4, with RT on and off. In about 27 runs that day this is the only hang; the other runs (all but one with pages moving) didn't hit it. Log details pulled with Claude Code; the run and the numbers are from my machine.
Author
Owner

@⁠Aruku448 on GitHub · 2026-12-01 17:57 UTC · original

Same fault address on RDNA3, which may narrow the hunt: 0xc0000005 at victory-image+0x2215c35 (write 0x0), i.e. the same +0x2215c35 as in the title of this issue.

Environment: 37bb30f, RX 7800 XT (NAVI32, 16 GB), Ryzen 7 5700X3D, Arch kernel 7.3.6-cachyos, wine-staging 11.22 with the patches/wine.patch wineserver, Mesa 26.3.1 + patches/mesa.patch, vkd3d-proton 71cae09.

When it hit, and when it did not, over ~10 runs in one evening — a pattern that may say more than the address:

build config outcome
release defaults / VICTORY_RENDER_SCALE=0.5 / 1.0 / VICTORY_LATE_MOST=1024 8 runs, no crash (5–20 min each)
diag (--profile diag --features diagnostics) VICTORY_RECORD=<folder>, capture in progress (~100 s in) crash at +0x2215c35
diag VICTORY_LATE_MOST=1024, in the world crash at +0x2215c35, before the first 5 s report
diag same, again crash, no frame report at all

So on this machine the fault shows up in diagnostics builds only, and it is much faster there: seconds to minutes rather than the 10–24 minutes reported here. Two of the diag runs died before the first frame report, i.e. while the title was still presenting its boot/menu frames.

Two guesses for whoever looks next, both testable:

  1. If this is a race on a write to a null pointer, the diagnostics-only paths that touch the frame boundary are the first suspects — crate::draw::frame_began() (a newer diagnostics-only hook I added at Host::present/present_planes), crate::capture::op, and the per-frame tracing in crate::host. A diag build without those hooks showed the same address in the VICTORY_RECORD run, which had none of them, so it is not just my new hook.
  2. The address is in victory-image, not in the title, so a diagnostics build's line tables should name it. If someone can run the crash under the build with RUST_BACKTRACE=1 and VICTORY_LOG=debug, the frame line just before the fault would pin it.

I have kept the logs of the three crashes if they help.

**@⁠Aruku448** on GitHub · 2026-12-01 17:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7320138521) Same fault address on **RDNA3**, which may narrow the hunt: `0xc0000005` at `victory-image+0x2215c35` (write 0x0), i.e. the same `+0x2215c35` as in the title of this issue. **Environment:** `37bb30f`, RX 7800 XT (NAVI32, 16 GB), Ryzen 7 5700X3D, Arch kernel 7.3.6-cachyos, wine-staging 11.22 with the `patches/wine.patch` wineserver, Mesa 26.3.1 + `patches/mesa.patch`, vkd3d-proton `71cae09`. **When it hit, and when it did not**, over ~10 runs in one evening — a pattern that may say more than the address: | build | config | outcome | |---|---|---| | release | defaults / `VICTORY_RENDER_SCALE=0.5` / `1.0` / `VICTORY_LATE_MOST=1024` | 8 runs, no crash (5–20 min each) | | **diag** (`--profile diag --features diagnostics`) | `VICTORY_RECORD=<folder>`, capture in progress (~100 s in) | **crash at `+0x2215c35`** | | **diag** | `VICTORY_LATE_MOST=1024`, in the world | **crash at `+0x2215c35`**, before the first 5 s report | | **diag** | same, again | **crash**, no frame report at all | So on this machine the fault shows up in **diagnostics builds only**, and it is *much* faster there: seconds to minutes rather than the 10–24 minutes reported here. Two of the diag runs died before the first frame report, i.e. while the title was still presenting its boot/menu frames. Two guesses for whoever looks next, both testable: 1. If this is a race on a write to a null pointer, the diagnostics-only paths that touch the frame boundary are the first suspects — `crate::draw::frame_began()` (a newer diagnostics-only hook I added at `Host::present`/`present_planes`), `crate::capture::op`, and the per-frame tracing in `crate::host`. A diag build without those hooks showed the same address in the `VICTORY_RECORD` run, which had none of them, so it is not just my new hook. 2. The address is in `victory-image`, not in the title, so a `diagnostics` build's line tables should name it. If someone can run the crash under the build with `RUST_BACKTRACE=1` and `VICTORY_LOG=debug`, the frame line just before the fault would pin it. I have kept the logs of the three crashes if they help.
Author
Owner

@⁠Frtuchinno on GitHub · 2026-12-01 19:11 UTC · original

Same crash on RDNA3 (RX 7800 XT), and I think it shows what the hang and the crash have in common: a doubly linked list in the title's own allocator is already corrupt when either happens. The hang walks it into a cycle; the crash unlinks a node whose "previous" link is -1. Plus a second VICTORY_PAGES=0 session that ran clean past the time it crashed.

Setup: RX 7800 XT (16 GB, gfx1101), Ryzen 5 7600, 32 GB RAM; CachyOS, kernel 7.3.6, KDE; proton-cachyos-slr with ntsync; Mesa/RADV 26.3.1 + mesa.patch from setup.sh. Release build of 37bb30f plus local merges of #31, #38, #44, #45, #47 and #67. Series X, 2560x1440, ray tracing on, VICTORY_BVH_HARDWARE=1, VICTORY_POOL_MOVE=1, pages move (defaults otherwise).

The crash

About 24 minutes in, no hang watch first, frames presented up to it:

VIctory: first-chance exception 0xc0000005 at victory-image+0x2626911 (write 0x215da61280: reserved, never committed)
  rax 0xd5da61290 rbx 0xd5da5cf60 rcx 0x37d2 rdx 0xb58 rsi 0x2e7 rdi 0x412
  r8 0xffffffffffffffff r9 0x4fffffffb r10 0xd5da6f1d8 r11 0x1501 r12 0x0 r13 0xd77cd5e20 r14 0x26de9fc r15 0x0
  #0 +0x2626911  #1 +0x26268da  #2 +0xbc0576  #3 +0xbc03b5  #4 +0x82cd46  #5 +0xb97f8  #6 +0xb973e
  #7 +0x4f40800  #8 +0x4f40072  #9 +0xf5ef0b  #10 +0x3447ec  #11 +0x257035e  #12 +0x221c29c  #13 +0x2215eca

What the code at the fault does

  • +0x26268f0 unlinks entry i from a doubly linked list kept in a table of 20-byte entries with 16-bit links (next at +4, previous at +6), the table's base read from a global. It sets entry[prev].next = next, entry[next].prev = prev, then fills the entry's first 8 bytes with -1.
  • It does not handle prev == -1. The sign-extended -1 (r8) is cut to 32 bits, so the index becomes 0xffffffff (r9 = 0xffffffff * 5), and the store lands ~80 GB past the table: rax + r9*4 + 4 = 0x215da61280. Above 0x2000000000, so not title memory at all (port heap: our own memory lies above the title's address space at=0x2000000000), hence "reserved, never committed".
  • So entry i had no previous node, while its caller treated it as a linked one: either it was the head, or it had already been unlinked (an unlinked entry has -1 in both links; here next was still 0xb58).
  • Its caller (+0x2626860..) walks the same list by the 16-bit next links, comparing a size at +0xc of each entry. +0x2626877, where the spinning thread of the first post's hang dumps sits, is the loop's compare-and-branch in that walk. A walk that never ends there is a cycle in the same list. The +ad5241 in the RDNA3 hang comment above also walks 16-bit links in 20-byte entries, possibly another list of the same kind; the cycle suspected there is what this crash shows directly.

The allocator does not do this on the console, so something on our side corrupts the list before either symptom shows; the code at the fault only exposes it.

Page migration

A second VICTORY_PAGES=0 data point next to the one in the RDNA3 comment above: same build and settings as the crash, plus VICTORY_PAGES=0, 32 minutes, no hang, no crash (the crash came at 24 minutes). Frame rate was the same here (~27 fps either way). Still one session each, so a hint rather than proof.

Residency counters at the crash, in case they point somewhere:

127513 pages moved up (55281 of them seen by the card, never touched by the CPU), 32047 down cold,
0 down for room, 80951 down when the processor touched them, 40305 taken from the processor to watch,
110929 touched while watched or up, 0 not moved by the driver, 112.7 s moving

So the CPU touches pages while they are on the card very often. My guess, which I could not confirm: if a page holding allocator state (the list and the lock around it) sits on the card while title threads use it, through the BAR rather than as cached RAM, the lock's atomicity or ordering may not be what the title relies on, and two threads end up in the list at once. That would give both a cycle and a double unlink. Someone who knows um/residency.rs and um/lazy.rs may see a more direct path.

On the comment just above: victory-image-*.dll is the title's own executable as the loader rebased it (local/cache/images/), not this repo's code, so a diagnostics build's line tables won't name +0x2215c35. And that address is not an accident: the instruction there is a deliberate store to address 0, right after an indirect call — the title's own abort path. So the write 0x0 crash in this issue's title is the title giving up after the hang (in the first post's runs and the two comments after it, it follows the hang watch), and the bug is whatever stalled it, i.e. the list walk above. Its diag builds crashing in seconds instead of minutes fits a race, though: anything that changes the timing of the title's threads against the layer's (diagnostics, tracing, the page mover's pace) would move it.

I have the full logs and can run a diagnostic build or switch on this card.

**@⁠Frtuchinno** on GitHub · 2026-12-01 19:11 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7322354471) Same crash on **RDNA3 (RX 7800 XT)**, and I think it shows what the hang and the crash have in common: **a doubly linked list in the title's own allocator is already corrupt** when either happens. The hang walks it into a cycle; the crash unlinks a node whose "previous" link is -1. Plus a second `VICTORY_PAGES=0` session that ran clean past the time it crashed. **Setup:** RX 7800 XT (16 GB, gfx1101), Ryzen 5 7600, 32 GB RAM; CachyOS, kernel 7.3.6, KDE; `proton-cachyos-slr` with ntsync; Mesa/RADV 26.3.1 + `mesa.patch` from `setup.sh`. Release build of `37bb30f` plus local merges of #31, #38, #44, #45, #47 and #67. Series X, 2560x1440, ray tracing on, `VICTORY_BVH_HARDWARE=1`, `VICTORY_POOL_MOVE=1`, pages move (defaults otherwise). ### The crash About 24 minutes in, no hang watch first, frames presented up to it: ``` VIctory: first-chance exception 0xc0000005 at victory-image+0x2626911 (write 0x215da61280: reserved, never committed) rax 0xd5da61290 rbx 0xd5da5cf60 rcx 0x37d2 rdx 0xb58 rsi 0x2e7 rdi 0x412 r8 0xffffffffffffffff r9 0x4fffffffb r10 0xd5da6f1d8 r11 0x1501 r12 0x0 r13 0xd77cd5e20 r14 0x26de9fc r15 0x0 #0 +0x2626911 #1 +0x26268da #2 +0xbc0576 #3 +0xbc03b5 #4 +0x82cd46 #5 +0xb97f8 #6 +0xb973e #7 +0x4f40800 #8 +0x4f40072 #9 +0xf5ef0b #10 +0x3447ec #11 +0x257035e #12 +0x221c29c #13 +0x2215eca ``` ### What the code at the fault does - `+0x26268f0` unlinks entry `i` from a doubly linked list kept in a table of **20-byte entries with 16-bit links** (next at +4, previous at +6), the table's base read from a global. It sets `entry[prev].next = next`, `entry[next].prev = prev`, then fills the entry's first 8 bytes with -1. - It does not handle `prev == -1`. The sign-extended -1 (`r8`) is cut to 32 bits, so the index becomes `0xffffffff` (`r9 = 0xffffffff * 5`), and the store lands ~80 GB past the table: `rax + r9*4 + 4 = 0x215da61280`. Above `0x2000000000`, so not title memory at all (`port heap: our own memory lies above the title's address space at=0x2000000000`), hence "reserved, never committed". - So entry `i` had no previous node, while its caller treated it as a linked one: either it was the head, or it had already been unlinked (an unlinked entry has -1 in both links; here `next` was still `0xb58`). - Its caller (`+0x2626860..`) walks the same list by the 16-bit next links, comparing a size at +0xc of each entry. **`+0x2626877`, where the spinning thread of the first post's hang dumps sits, is the loop's compare-and-branch in that walk.** A walk that never ends there is a cycle in the same list. The `+ad5241` in the RDNA3 hang comment above also walks 16-bit links in 20-byte entries, possibly another list of the same kind; the cycle suspected there is what this crash shows directly. The allocator does not do this on the console, so something on our side corrupts the list before either symptom shows; the code at the fault only exposes it. ### Page migration A second `VICTORY_PAGES=0` data point next to the one in the RDNA3 comment above: same build and settings as the crash, plus `VICTORY_PAGES=0`, **32 minutes, no hang, no crash** (the crash came at 24 minutes). Frame rate was the same here (~27 fps either way). Still one session each, so a hint rather than proof. Residency counters at the crash, in case they point somewhere: ``` 127513 pages moved up (55281 of them seen by the card, never touched by the CPU), 32047 down cold, 0 down for room, 80951 down when the processor touched them, 40305 taken from the processor to watch, 110929 touched while watched or up, 0 not moved by the driver, 112.7 s moving ``` So the CPU touches pages while they are on the card very often. My guess, which I could not confirm: if a page holding allocator state (the list and the lock around it) sits on the card while title threads use it, through the BAR rather than as cached RAM, the lock's atomicity or ordering may not be what the title relies on, and two threads end up in the list at once. That would give both a cycle and a double unlink. Someone who knows `um/residency.rs` and `um/lazy.rs` may see a more direct path. On the comment just above: `victory-image-*.dll` is the title's own executable as the loader rebased it (`local/cache/images/`), not this repo's code, so a diagnostics build's line tables won't name `+0x2215c35`. And that address is not an accident: the instruction there is a deliberate store to address 0, right after an indirect call — the title's own abort path. So the `write 0x0` crash in this issue's title is the title giving up after the hang (in the first post's runs and the two comments after it, it follows the hang watch), and the bug is whatever stalled it, i.e. the list walk above. Its diag builds crashing in seconds instead of minutes fits a race, though: anything that changes the timing of the title's threads against the layer's (diagnostics, tracing, the page mover's pace) would move it. I have the full logs and can run a diagnostic build or switch on this card.
Author
Owner

@⁠Frtuchinno on GitHub · 2026-12-01 20:46 UTC · original

Correction to my comment above: VICTORY_PAGES=0 does not prevent it. Same RX 7800 XT, the hang came back with pages off, after only about 4.5 minutes:

  • VICTORY_PAGES=0 confirmed in the game process's environment and in the log (unified memory: VICTORY_PAGES=0, each pool stays where it starts).
  • Build: 37bb30f plus local merges of #31, #44, #47, #67, #93, #75, #100 and #98 (no #38, #45). VICTORY_BVH_HARDWARE=0, VICTORY_POOL_MOVE=1.
  • Hang watch at 10 s and 20 s (frame 15236), then the title's abort at +0x2215c35, as in the first post.
  • The one thread not waiting sits at +0x2626877, stack +0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292: the same walk of the same 20-byte-entry list as in the first post's dumps and in my crash.

So page migration is not the cause, or at least not the only one: my clean 32-minute session with pages off was luck, and pages off is not a workaround. What stands from my comment is the mechanism: the title's allocator list is corrupt by the time either symptom shows, and the corruption happens with pages off as well, so it comes from something else on our side.

**@⁠Frtuchinno** on GitHub · 2026-12-01 20:46 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7325250447) Correction to my comment above: **`VICTORY_PAGES=0` does not prevent it.** Same RX 7800 XT, the hang came back with pages off, after only about 4.5 minutes: - `VICTORY_PAGES=0` confirmed in the game process's environment and in the log (`unified memory: VICTORY_PAGES=0, each pool stays where it starts`). - Build: `37bb30f` plus local merges of #31, #44, #47, #67, #93, #75, #100 and #98 (no #38, #45). `VICTORY_BVH_HARDWARE=0`, `VICTORY_POOL_MOVE=1`. - Hang watch at 10 s and 20 s (frame 15236), then the title's abort at `+0x2215c35`, as in the first post. - The one thread not waiting sits at **`+0x2626877`**, stack `+0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292`: the same walk of the same 20-byte-entry list as in the first post's dumps and in my crash. So page migration is not the cause, or at least not the only one: my clean 32-minute session with pages off was luck, and pages off is not a workaround. What stands from my comment is the mechanism: the title's allocator list is corrupt by the time either symptom shows, and the corruption happens with pages off as well, so it comes from something else on our side.
Author
Owner

@⁠Flamware on GitHub · 2026-12-01 21:15 UTC · original

Same hang on RDNA2 (RX 6950 XT), RT on, VICTORY_PAGES=0.

Setup: RX 6950 XT 16 GB, Ryzen 5 7600X, 32 GB, Bazzite (kernel 7.3.5), Fedora 45 distrobox, Wine 11.22 with the patched wineserver, Mesa 26.3.1 with #44's mesa.patch. 37bb30f + local merges of Hawkeye54781/rdna2-fixes, #44, #52, #63, #68, #81, #87, #93, #106 and two small local patches (frame generation off in this run). Release build, Series X, 1920x1080, VICTORY_BVH_BUILDER=1, VICTORY_AMBIENT_RT=0, VICTORY_PAGES=0, VICTORY_CARD_PULL=0.

Run: about 15 min (title: 14m48s), driving into the city. Frames stop at 25573 with no GPU error in the kernel log, hang watch at +10 s and +20 s, then 0xc0000005 at victory-image+0x2215c35 (write 0x0). Last reports: 14–18 fps, 9,000–11,000 draws.

The only thread not waiting, in both dumps (top frame +0x2626877, then +0x262687e): +0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292 <- +0x51c39e1 <- +0x257035e <- +0x221c29c <- +0x2215eca.

So VICTORY_PAGES=0 did not prevent it here either. I can share the full log. Analysis prepared with Claude Code; the run is real.

**@⁠Flamware** on GitHub · 2026-12-01 21:15 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7325972157) **Same hang on RDNA2 (RX 6950 XT), RT on, `VICTORY_PAGES=0`.** **Setup:** RX 6950 XT 16 GB, Ryzen 5 7600X, 32 GB, Bazzite (kernel 7.3.5), Fedora 45 distrobox, Wine 11.22 with the patched wineserver, Mesa 26.3.1 with #44's `mesa.patch`. `37bb30f` + local merges of `Hawkeye54781/rdna2-fixes`, #44, #52, #63, #68, #81, #87, #93, #106 and two small local patches (frame generation off in this run). Release build, Series X, 1920x1080, `VICTORY_BVH_BUILDER=1`, `VICTORY_AMBIENT_RT=0`, `VICTORY_PAGES=0`, `VICTORY_CARD_PULL=0`. **Run:** about 15 min (title: 14m48s), driving into the city. Frames stop at 25573 with no GPU error in the kernel log, hang watch at +10 s and +20 s, then `0xc0000005 at victory-image+0x2215c35 (write 0x0)`. Last reports: 14–18 fps, 9,000–11,000 draws. The only thread not waiting, in both dumps (top frame `+0x2626877`, then `+0x262687e`): `+0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292 <- +0x51c39e1 <- +0x257035e <- +0x221c29c <- +0x2215eca`. So `VICTORY_PAGES=0` did not prevent it here either. I can share the full log. Analysis prepared with Claude Code; the run is real.
Author
Owner

@⁠EdouardSence on GitHub · 2026-12-05 16:58 UTC · original

This looks fixed by #466 (merged 2026-12-04, 792dc2c): the stuck worker here sits at +ad5241 walking the 16-bit links of the title's range allocator (0x14908f020), and +0x2215c35 is the title's watchdog null write after that hang, which is what #466 describes. #466 locks +0xbc0380 (unlocked size check before the slot alloc/free calls) and makes is_free_node reject 0xffff.

Checked on RDNA4 (RX 9070 XT, CachyOS, proton-cachyos) with main at 8bf4878: both patches apply at launch:

range allocator: slot ensure wrapped with lock site=0xbc0380
range allocator: is_free_node sentinel check patched site=0xad52db

On #82, a 3 h 18 session on 0016306 ran 213,252 frames with no fault (it used to crash at ~33,000). No report of this signature on a build with #466 so far. Suggest closing; reopen if someone hits +0x2215c35 on a build that logs the two lines above.

(Checked with Claude Code; the run is on my machine.)

**@⁠EdouardSence** on GitHub · 2026-12-05 16:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7441751566) This looks fixed by #466 (merged 2026-12-04, `792dc2c`): the stuck worker here sits at `+ad5241` walking the 16-bit links of the title's range allocator (`0x14908f020`), and `+0x2215c35` is the title's watchdog null write after that hang, which is what #466 describes. #466 locks `+0xbc0380` (unlocked size check before the slot alloc/free calls) and makes `is_free_node` reject `0xffff`. Checked on RDNA4 (RX 9070 XT, CachyOS, proton-cachyos) with `main` at `8bf4878`: both patches apply at launch: ``` range allocator: slot ensure wrapped with lock site=0xbc0380 range allocator: is_free_node sentinel check patched site=0xad52db ``` On #82, a 3 h 18 session on `0016306` ran 213,252 frames with no fault (it used to crash at ~33,000). No report of this signature on a build with #466 so far. Suggest closing; reopen if someone hits `+0x2215c35` on a build that logs the two lines above. (Checked with Claude Code; the run is on my machine.)
Author
Owner

@⁠cjs0131 on GitHub · 2026-12-06 00:07 UTC · original

Hit this on a build with #466 in, so reopening the question per the last comment.

Setup: RX 9070 XT 16 GB, i9-12900K, 32 GB, CachyOS (kernel 7.3.6), system Wine 11.23 with the repo's Mesa 26.3.1 and vkd3d-proton. Build 8c4e663 (release). Series X, VICTORY_PRESET=medium, 2560x1440 output, FSR 4 balanced, VICTORY_FIDELITYFX_FRAMEGEN=4 (ML frame gen), VICTORY_FRAME_INTERVAL_MS=33.333, VICTORY_TEXTURE_ROOM_PERCENT=97, VICTORY_AMBIENT_MOST=8, VICTORY_DUALSENSE=1, RT off.

Both #466 lines are in the log at launch:

range allocator: slot ensure wrapped with lock site=0xbc0380
range allocator: is_free_node sentinel check patched site=0xad52db

Run: about 19 min after the title loaded. Frames stop at 46772, hang watch at 10 s and 20 s, then:

VIctory: unhandled exception 0xc0000005 at victory-image-…dll+0x2215c35 (write 0x0: nothing mapped there)
  #0  victory-image+0x2215c35
  #1  victory-image+0x2215eca

One difference from the dumps above: in the 20 s hang-watch dump, all 164 threads have their top frame in ntdll/win32u waits (100 at ntdll+0x10cb4, 57 at ntdll+0xec74). There is no thread sitting at +0x2626877 or +ad5241, so this hang doesn't look like the range-allocator walk #466 fixes. Same watchdog crash, apparently a different stall. Full log available if useful.

**@⁠cjs0131** on GitHub · 2026-12-06 00:07 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/57#issuecomment-7448098245) Hit this on a build with #466 in, so reopening the question per the last comment. **Setup:** RX 9070 XT 16 GB, i9-12900K, 32 GB, CachyOS (kernel 7.3.6), system Wine 11.23 with the repo's Mesa 26.3.1 and vkd3d-proton. Build `8c4e663` (release). Series X, `VICTORY_PRESET=medium`, 2560x1440 output, FSR 4 balanced, `VICTORY_FIDELITYFX_FRAMEGEN=4` (ML frame gen), `VICTORY_FRAME_INTERVAL_MS=33.333`, `VICTORY_TEXTURE_ROOM_PERCENT=97`, `VICTORY_AMBIENT_MOST=8`, `VICTORY_DUALSENSE=1`, RT off. Both #466 lines are in the log at launch: ``` range allocator: slot ensure wrapped with lock site=0xbc0380 range allocator: is_free_node sentinel check patched site=0xad52db ``` **Run:** about 19 min after the title loaded. Frames stop at 46772, hang watch at 10 s and 20 s, then: ``` VIctory: unhandled exception 0xc0000005 at victory-image-…dll+0x2215c35 (write 0x0: nothing mapped there) #0 victory-image+0x2215c35 #1 victory-image+0x2215eca ``` One difference from the dumps above: in the 20 s hang-watch dump, all 164 threads have their top frame in ntdll/win32u waits (100 at `ntdll+0x10cb4`, 57 at `ntdll+0xec74`). There is no thread sitting at `+0x2626877` or `+ad5241`, so this hang doesn't look like the range-allocator walk #466 fixes. Same watchdog crash, apparently a different stall. Full log available if useful.
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/lobomfz--VIctory-xmem#57
No description provided.