Recurring CRASH 0xc0000005 (0x4fffffffb / -1 link) in global 0x14908f020 allocator (+0xad533c, +0x2626911) #142

Open
opened 2026-12-02 00:42:21 +00:00 by github-bot · 10 comments
Owner

@⁠Lightje on GitHub · 2026-12-02 00:37 UTC · original

Title

Crash (0xc0000005) at victory-image+0xad533c near end of boat mission (int_chase_mcs1_plane_land)

Environment

  • Repo / Commit: lobomfz/VIctory-xmem @ f7f0360
  • OS / Kernel: EndeavourOS (Arch), Linux 6.18.64
  • CPU / RAM: AMD Ryzen 7 9800X3D, 32 GB RAM
  • GPU: AMD Radeon RX 6900 XT (Navi 21, 16 GiB VRAM, PCIe 4.0 x16, ReBAR enabled)
  • Stack: Wine 11.22 (patched wineserver), patched Mesa 26.3.1 (RADV), vkd3d-proton 71cae091
  • Launch command: ./run.sh play (defaults: Series X profile, 2560x1440, RT on)
  • Title build: 930.048.020-vb_sub_story (v1.0.2.1)

Description

Game ran smoothly for ~40 minutes (64,050 frames), then hit an unhandled write access violation (0xc0000005) right near the end of the boat mission (Current Vehicle: Dodo, Current SRL Name: int_chase_int_chase_mcs1_plane_land), ~2s after input context changed menu=true.

Not an OOM or GPU hang: memory.load_percent was 75% (~7.9 GiB free), TileHeap was 2890/6236 MB, systemd scope peak was 8.9G, and journalctl showed no amdgpu reset/hang.

Notice in the registers that rax = 0x361eb4690 and r11 = 0x4fffffffb (0x361eb4690 + 4 * 0x4fffffffb + 2 = 0x1761eb467e), which looks like an integer underflow / out-of-bounds write offset.

Crash Log

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x1761eb467e: nothing mapped there)
  rax 0x361eb4690 rbx 0xa8a rcx 0xb28 rdx 0xa8a rsi 0xb28ffff rdi 0xb28 rsp 0x106d23efa8 rbp 0x1
  r8 0x361ec1958 r9 0x361ec25b0 r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x34b2 r14 0x1 r15 0x361eb4690
  #0  victory-image-b99f876b74d4a77f.dll+0xad533c
  #1  victory-image-b99f876b74d4a77f.dll+0xad524c
  #2  victory-image-b99f876b74d4a77f.dll+0xad5054
  #3  victory-image-b99f876b74d4a77f.dll+0xad4f96
  #4  victory-image-b99f876b74d4a77f.dll+0xad4768
  #5  victory-image-b99f876b74d4a77f.dll+0xbc478
  #6  victory-image-b99f876b74d4a77f.dll+0x4f4b23a
  #7  victory-image-b99f876b74d4a77f.dll+0x4f4b1e0
  #8  victory-image-b99f876b74d4a77f.dll+0x3f2eb9e
  #9  victory-image-b99f876b74d4a77f.dll+0x63e78
  #10 victory-image-b99f876b74d4a77f.dll+0x4eaa05a
  #11 victory-image-b99f876b74d4a77f.dll+0x221c29c
  #12 victory-image-b99f876b74d4a77f.dll+0x2215eca
  #13 kernel32.dll+0x11789
  #14 ntdll.dll+0x1116f

Breakpad Context

Game Running Time: 0h:40m:25s
Frame: 64050
Streaming Requests: 13
TileHeap: used (2890Mb) - total (6236Mb)
Current Mission Name: 0x03da4607 [F:57573]
Current Mission Stage: 0xed723eaa [F:64009]
Current SRL Name: int_chase_int_chase_mcs1_plane_land [T:5096919]
Current SRL State: Prestream [T:5097123]
Current AnimScene: 0x53675405 [T:5149776]
Current Vehicle: Dodo [T:5019414]
**@⁠Lightje** on GitHub · 2026-12-02 00:37 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142) ### Title Crash (`0xc0000005`) at `victory-image+0xad533c` near end of boat mission (`int_chase_mcs1_plane_land`) ### Environment - **Repo / Commit:** `lobomfz/VIctory-xmem` @ `f7f0360` - **OS / Kernel:** EndeavourOS (Arch), Linux `6.18.64` - **CPU / RAM:** AMD Ryzen 7 9800X3D, 32 GB RAM - **GPU:** AMD Radeon RX 6900 XT (Navi 21, 16 GiB VRAM, PCIe 4.0 x16, ReBAR enabled) - **Stack:** Wine `11.22` (patched wineserver), patched Mesa `26.3.1` (RADV), vkd3d-proton `71cae091` - **Launch command:** `./run.sh play` (defaults: Series X profile, `2560x1440`, RT on) - **Title build:** `930.048.020-vb_sub_story` (v1.0.2.1) ### Description Game ran smoothly for ~40 minutes (64,050 frames), then hit an unhandled write access violation (`0xc0000005`) right near the end of the boat mission (`Current Vehicle: Dodo`, `Current SRL Name: int_chase_int_chase_mcs1_plane_land`), ~2s after `input context changed menu=true`. Not an OOM or GPU hang: `memory.load_percent` was `75%` (~7.9 GiB free), `TileHeap` was `2890/6236 MB`, systemd scope peak was `8.9G`, and `journalctl` showed no `amdgpu` reset/hang. Notice in the registers that `rax = 0x361eb4690` and `r11 = 0x4fffffffb` (`0x361eb4690 + 4 * 0x4fffffffb + 2 = 0x1761eb467e`), which looks like an integer underflow / out-of-bounds write offset. ### Crash Log ```text VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x1761eb467e: nothing mapped there) rax 0x361eb4690 rbx 0xa8a rcx 0xb28 rdx 0xa8a rsi 0xb28ffff rdi 0xb28 rsp 0x106d23efa8 rbp 0x1 r8 0x361ec1958 r9 0x361ec25b0 r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x34b2 r14 0x1 r15 0x361eb4690 #0 victory-image-b99f876b74d4a77f.dll+0xad533c #1 victory-image-b99f876b74d4a77f.dll+0xad524c #2 victory-image-b99f876b74d4a77f.dll+0xad5054 #3 victory-image-b99f876b74d4a77f.dll+0xad4f96 #4 victory-image-b99f876b74d4a77f.dll+0xad4768 #5 victory-image-b99f876b74d4a77f.dll+0xbc478 #6 victory-image-b99f876b74d4a77f.dll+0x4f4b23a #7 victory-image-b99f876b74d4a77f.dll+0x4f4b1e0 #8 victory-image-b99f876b74d4a77f.dll+0x3f2eb9e #9 victory-image-b99f876b74d4a77f.dll+0x63e78 #10 victory-image-b99f876b74d4a77f.dll+0x4eaa05a #11 victory-image-b99f876b74d4a77f.dll+0x221c29c #12 victory-image-b99f876b74d4a77f.dll+0x2215eca #13 kernel32.dll+0x11789 #14 ntdll.dll+0x1116f ``` ### Breakpad Context ```text Game Running Time: 0h:40m:25s Frame: 64050 Streaming Requests: 13 TileHeap: used (2890Mb) - total (6236Mb) Current Mission Name: 0x03da4607 [F:57573] Current Mission Stage: 0xed723eaa [F:64009] Current SRL Name: int_chase_int_chase_mcs1_plane_land [T:5096919] Current SRL State: Prestream [T:5097123] Current AnimScene: 0x53675405 [T:5149776] Current Vehicle: Dodo [T:5019414] ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 00:42:24 +00:00
Author
Owner

@⁠Lightje on GitHub · 2026-12-02 01:27 UTC · original

Title

Recurring 0xc0000005 (0x4fffffffb / -1 sentinel index) in 20-byte intrusive doubly-linked pool (+0xad533c and +0x2626911)

Environment

  • Repo / Commit: lobomfz/VIctory-xmem @ f7f0360
  • OS / Kernel: EndeavourOS (Arch), Linux 6.18.64
  • Hardware: Ryzen 7 9800X3D, 32 GB RAM, RX 6900 XT (16 GiB, PCIe 4.0 x16, ReBAR on)
  • Stack: Wine 11.22 (patched wineserver), patched Mesa 26.3.1 (RADV), vkd3d-proton 71cae091
  • Title build: 930.048.020-vb_sub_story (v1.0.2.1), Series X profile, 2560x1440, RT on

Summary

Hit two crashes (~40 min and ~22 min into play) that never occurred on Windows (victory-data/crashes.log had 0 occurrences), both in different functions operating on the same 20-byte-stride intrusive doubly-linked list/pool structure (unlinked via movq $-1, ...).

In both crashes, a 16-bit link index read from a node was already -1 (0xffff), which was zero-extended to 0xffffffff (* 5 = 0x4fffffffb, * 4 = 0x13ffffffec), causing an out-of-bounds write 0xc0000005. Neither crash was OOM or GPU-hang (memory.load_percent 70–75%, TileHeap 2.3–2.9 / 6.2 GB, no amdgpu reset in journalctl).

Crash 1 (./run.sh play, 40m 25s, frame 64050)

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x1761eb467e: nothing mapped there)
  rax 0x361eb4690 rbx 0xa8a rcx 0xb28 rdx 0xa8a rsi 0xb28ffff rdi 0xb28 rsp 0x106d23efa8 rbp 0x1
  r8 0x361ec1958 r9 0x361ec25b0 r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x34b2 r14 0x1 r15 0x361eb4690
  #0  victory-image-b99f876b74d4a77f.dll+0xad533c
  #1  victory-image-b99f876b74d4a77f.dll+0xad524c
  #2  victory-image-b99f876b74d4a77f.dll+0xad5054
  #3  victory-image-b99f876b74d4a77f.dll+0xad4f96
  #4  victory-image-b99f876b74d4a77f.dll+0xad4768
  #5  victory-image-b99f876b74d4a77f.dll+0xbc478
  #6  victory-image-b99f876b74d4a77f.dll+0x4f4b23a
  #7  victory-image-b99f876b74d4a77f.dll+0x4f4b1e0
  #8  victory-image-b99f876b74d4a77f.dll+0x3f2eb9e
  #9  victory-image-b99f876b74d4a77f.dll+0x63e78
  #10 victory-image-b99f876b74d4a77f.dll+0x4eaa05a
  #11 victory-image-b99f876b74d4a77f.dll+0x221c29c
  #12 victory-image-b99f876b74d4a77f.dll+0x2215eca

Disassembly around +0xad533c:

140ad532d: movswq (%r8), %r11            ; read -1 (0xffff)
140ad5331: movw   %r11w, (%r9)
140ad5335: movl   %r11d, %r11d           ; -> 0x00000000ffffffff
140ad5338: leaq   (%r11,%r11,4), %r11    ; -> 0x4fffffffb
140ad533c: movw   %cx, 0x2(%rax,%r11,4)  ; FAULT writing 0x1761eb467e

Crash 2 (./run.sh play VICTORY_PAGE_ADAPTIVE=1 VICTORY_POOL_MOVE=1, 21m 58s, frame 27587)

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2626911 (write 0x151aab0880: nothing mapped there)
  rax 0x11aab0890 rbx 0x3 rcx 0x37c3 rdx 0x15e2 rsi 0x1a560 rdi 0x2 rsp 0xd51df49358 rbp 0x10
  r8 0xffffffffffffffff r9 0x4fffffffb r10 0x11aabe79c r11 0x0 r12 0xe300401 r13 0xe106834c0 r14 0x11aaa0290 r15 0x94020201
  #0  victory-image-b99f876b74d4a77f.dll+0x2626911
  #1  victory-image-b99f876b74d4a77f.dll+0x26269d5
  #2  victory-image-b99f876b74d4a77f.dll+0xbc06cd
  #3  victory-image-b99f876b74d4a77f.dll+0xbc03f9
  #4  victory-image-b99f876b74d4a77f.dll+0x82cd46
  #5  victory-image-b99f876b74d4a77f.dll+0x300292
  #6  victory-image-b99f876b74d4a77f.dll+0x51c39e1
  #7  victory-image-b99f876b74d4a77f.dll+0x257035e
  #8  victory-image-b99f876b74d4a77f.dll+0x221c29c
  #9  victory-image-b99f876b74d4a77f.dll+0x2215eca

Disassembly around +0x2626911:

1426268fe: movswq 0x6(%rax,%rcx,4), %r8  ; read -1 (0xffff) -> 0xffffffffffffffff
142626904: movswq 0x4(%rax,%rcx,4), %rdx ; -> 0x15e2
14262690a: movl   %r8d, %r9d             ; -> 0x00000000ffffffff
14262690d: leaq   (%r9,%r9,4), %r9       ; -> 0x4fffffffb
142626911: movw   %dx, 0x4(%rax,%r9,4)   ; FAULT writing 0x151aab0880
142626923: movq   $-0x1, (%rax,%rcx,4)
**@⁠Lightje** on GitHub · 2026-12-02 01:27 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7331728841) ### Title Recurring `0xc0000005` (`0x4fffffffb` / `-1` sentinel index) in 20-byte intrusive doubly-linked pool (`+0xad533c` and `+0x2626911`) ### Environment - **Repo / Commit:** `lobomfz/VIctory-xmem` @ `f7f0360` - **OS / Kernel:** EndeavourOS (Arch), Linux `6.18.64` - **Hardware:** Ryzen 7 9800X3D, 32 GB RAM, RX 6900 XT (16 GiB, PCIe 4.0 x16, ReBAR on) - **Stack:** Wine `11.22` (patched wineserver), patched Mesa `26.3.1` (RADV), vkd3d-proton `71cae091` - **Title build:** `930.048.020-vb_sub_story` (v1.0.2.1), Series X profile, `2560x1440`, RT on ### Summary Hit two crashes (~40 min and ~22 min into play) that never occurred on Windows (`victory-data/crashes.log` had 0 occurrences), both in different functions operating on the same 20-byte-stride intrusive doubly-linked list/pool structure (unlinked via `movq $-1, ...`). In both crashes, a 16-bit link index read from a node was already `-1` (`0xffff`), which was zero-extended to `0xffffffff` (`* 5 = 0x4fffffffb`, `* 4 = 0x13ffffffec`), causing an out-of-bounds write `0xc0000005`. Neither crash was OOM or GPU-hang (`memory.load_percent` 70–75%, `TileHeap` 2.3–2.9 / 6.2 GB, no `amdgpu` reset in `journalctl`). ### Crash 1 (`./run.sh play`, 40m 25s, frame 64050) ```text VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x1761eb467e: nothing mapped there) rax 0x361eb4690 rbx 0xa8a rcx 0xb28 rdx 0xa8a rsi 0xb28ffff rdi 0xb28 rsp 0x106d23efa8 rbp 0x1 r8 0x361ec1958 r9 0x361ec25b0 r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x34b2 r14 0x1 r15 0x361eb4690 #0 victory-image-b99f876b74d4a77f.dll+0xad533c #1 victory-image-b99f876b74d4a77f.dll+0xad524c #2 victory-image-b99f876b74d4a77f.dll+0xad5054 #3 victory-image-b99f876b74d4a77f.dll+0xad4f96 #4 victory-image-b99f876b74d4a77f.dll+0xad4768 #5 victory-image-b99f876b74d4a77f.dll+0xbc478 #6 victory-image-b99f876b74d4a77f.dll+0x4f4b23a #7 victory-image-b99f876b74d4a77f.dll+0x4f4b1e0 #8 victory-image-b99f876b74d4a77f.dll+0x3f2eb9e #9 victory-image-b99f876b74d4a77f.dll+0x63e78 #10 victory-image-b99f876b74d4a77f.dll+0x4eaa05a #11 victory-image-b99f876b74d4a77f.dll+0x221c29c #12 victory-image-b99f876b74d4a77f.dll+0x2215eca ``` Disassembly around `+0xad533c`: ```asm 140ad532d: movswq (%r8), %r11 ; read -1 (0xffff) 140ad5331: movw %r11w, (%r9) 140ad5335: movl %r11d, %r11d ; -> 0x00000000ffffffff 140ad5338: leaq (%r11,%r11,4), %r11 ; -> 0x4fffffffb 140ad533c: movw %cx, 0x2(%rax,%r11,4) ; FAULT writing 0x1761eb467e ``` ### Crash 2 (`./run.sh play VICTORY_PAGE_ADAPTIVE=1 VICTORY_POOL_MOVE=1`, 21m 58s, frame 27587) ```text VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2626911 (write 0x151aab0880: nothing mapped there) rax 0x11aab0890 rbx 0x3 rcx 0x37c3 rdx 0x15e2 rsi 0x1a560 rdi 0x2 rsp 0xd51df49358 rbp 0x10 r8 0xffffffffffffffff r9 0x4fffffffb r10 0x11aabe79c r11 0x0 r12 0xe300401 r13 0xe106834c0 r14 0x11aaa0290 r15 0x94020201 #0 victory-image-b99f876b74d4a77f.dll+0x2626911 #1 victory-image-b99f876b74d4a77f.dll+0x26269d5 #2 victory-image-b99f876b74d4a77f.dll+0xbc06cd #3 victory-image-b99f876b74d4a77f.dll+0xbc03f9 #4 victory-image-b99f876b74d4a77f.dll+0x82cd46 #5 victory-image-b99f876b74d4a77f.dll+0x300292 #6 victory-image-b99f876b74d4a77f.dll+0x51c39e1 #7 victory-image-b99f876b74d4a77f.dll+0x257035e #8 victory-image-b99f876b74d4a77f.dll+0x221c29c #9 victory-image-b99f876b74d4a77f.dll+0x2215eca ``` Disassembly around `+0x2626911`: ```asm 1426268fe: movswq 0x6(%rax,%rcx,4), %r8 ; read -1 (0xffff) -> 0xffffffffffffffff 142626904: movswq 0x4(%rax,%rcx,4), %rdx ; -> 0x15e2 14262690a: movl %r8d, %r9d ; -> 0x00000000ffffffff 14262690d: leaq (%r9,%r9,4), %r9 ; -> 0x4fffffffb 142626911: movw %dx, 0x4(%rax,%r9,4) ; FAULT writing 0x151aab0880 142626923: movq $-0x1, (%rax,%rcx,4) ```
github-bot changed title from Crash (0xc0000005) at victory-image+0xad533c near end of boat mission (int_chase_mcs1_plane_land) to Recurring CRASH 0xc0000005 (0x4fffffffb / -1 link) in global 0x14908f020 allocator (+0xad533c, +0x2626911) 2026-12-02 01:45:44 +00:00
Author
Owner

@⁠HioShan on GitHub · 2026-12-02 03:19 UTC · original

Same allocator as the hang in #57 (the worker spinning at +0xad522d..+0xad5241, then the watchdog's null write at +0x2215c35). We hit that hang on an RX 9070 XT (85 min in, a car chase, VICTORY_PAGES=0, RT off) and read the code around it. Notes, plus a read-only guard that should show what damages the lists the next time it happens.

The structure (this title build, b99f876b74d4a77f):

  • [+0x908f020] node array, [+0x908f01c] node count (5603 in our runs), [+0x908f02e] where the search for a free slot starts (0xaf0 = the cx/r10 in the dumps above and in #57).
  • 20-byte nodes: u16 prev, u16 next, u16 prev2, u16 next2, u32 start, u32 size. Both lists are doubly linked and end in 0xffff. A node off them has 0xffff links and size 0. A freed slot is set to -1 (movq $-1).
  • +0xad5100 moves a range's node down to the lowest free slot at or above [+0x908f02e]. It then follows next while the index is below that start, to link the node into the second list. A loop of low indices keeps it there forever (#57). +0xad533c and +0x2626911 here are the same lists with a -1 where a successor was expected.
  • The title's own lock guards it: a recursive mutex on lock cmpxchg, with the owner GetCurrentThreadId() cached in the title's TLS at +0x1454. We found nothing wrong there.
  • The node array sits in title memory allocated with protection 0x22004: CPU-cacheable, GPU read-write. In our run log that is the 1.1–1.7 GB block at 0xd43000000/0x100c00000; the 0x11aa… arrays in #57 and here are inside the second one. With xmem the card reaches that memory directly. With the copy-based forks it only ever wrote host copies. That would fit "only on xmem, never on Windows, RDNA 2/3/4, RT on or off, pages moving or not". It is not proven: a race made visible by Wine's timing is the other candidate.

A guard to tell the two apart: VICTORY_RANGE_GUARD=1 in HioShan/VIctory-xmem-bazzite (crates/victory-hle/src/range_guard.rs, self-contained, about 300 lines). How it works:

  • Every 100 ms it copies the node array with ReadProcessMemory, read only and without the title's lock.
  • It checks both lists: every link must be named back, and there must be no loop that no list start reaches.
  • Damage seen in three reads in a row, byte for byte the same, is logged once. The log has the damaged nodes, their bytes in the last whole read, and every node that changed since.

If the bad bytes are list links, it is a race. Anything else (floats, colours, addresses) is a stray write. In our runs it found the array, logged lists read whole and cost nothing measurable (about 35 min of play so far, no false alarms after the first fixes). If you hit #57 or this crash regularly, running with the guard and posting the range guard: lines would pin down the cause.

**@⁠HioShan** on GitHub · 2026-12-02 03:19 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7333768107) Same allocator as the hang in #57 (the worker spinning at `+0xad522d..+0xad5241`, then the watchdog's null write at `+0x2215c35`). We hit that hang on an RX 9070 XT (85 min in, a car chase, `VICTORY_PAGES=0`, RT off) and read the code around it. Notes, plus a read-only guard that should show *what* damages the lists the next time it happens. **The structure** (this title build, `b99f876b74d4a77f`): - `[+0x908f020]` node array, `[+0x908f01c]` node count (5603 in our runs), `[+0x908f02e]` where the search for a free slot starts (0xaf0 = the `cx`/`r10` in the dumps above and in #57). - 20-byte nodes: `u16 prev, u16 next, u16 prev2, u16 next2, u32 start, u32 size`. Both lists are doubly linked and end in `0xffff`. A node off them has `0xffff` links and `size` 0. A freed slot is set to `-1` (`movq $-1`). - `+0xad5100` moves a range's node down to the lowest free slot at or above `[+0x908f02e]`. It then follows `next` while the index is below that start, to link the node into the second list. A loop of low indices keeps it there forever (#57). `+0xad533c` and `+0x2626911` here are the same lists with a `-1` where a successor was expected. - The title's own lock guards it: a recursive mutex on `lock cmpxchg`, with the owner `GetCurrentThreadId()` cached in the title's TLS at `+0x1454`. We found nothing wrong there. - The node array sits in title memory allocated with protection `0x22004`: CPU-cacheable, GPU read-write. In our run log that is the 1.1–1.7 GB block at `0xd43000000`/`0x100c00000`; the `0x11aa…` arrays in #57 and here are inside the second one. With xmem the card reaches that memory directly. With the copy-based forks it only ever wrote host copies. That would fit "only on xmem, never on Windows, RDNA 2/3/4, RT on or off, pages moving or not". It is not proven: a race made visible by Wine's timing is the other candidate. **A guard to tell the two apart:** `VICTORY_RANGE_GUARD=1` in [HioShan/VIctory-xmem-bazzite](https://github.com/HioShan/VIctory-xmem-bazzite) (`crates/victory-hle/src/range_guard.rs`, self-contained, about 300 lines). How it works: - Every 100 ms it copies the node array with `ReadProcessMemory`, read only and without the title's lock. - It checks both lists: every link must be named back, and there must be no loop that no list start reaches. - Damage seen in three reads in a row, byte for byte the same, is logged once. The log has the damaged nodes, their bytes in the last whole read, and every node that changed since. If the bad bytes are list links, it is a race. Anything else (floats, colours, addresses) is a stray write. In our runs it found the array, logged `lists read whole` and cost nothing measurable (about 35 min of play so far, no false alarms after the first fixes). If you hit #57 or this crash regularly, running with the guard and posting the `range guard:` lines would pin down the cause.
Author
Owner

@⁠DecayingEagle on GitHub · 2026-12-02 14:53 UTC · original

A highway drive on a 7900 XT under Wine reached a different loop in this allocator. The road stayed visible. Frame 33,810 was the last frame to begin. At +10 s and +20 s the same worker had the same stack, starting at +0x2626977 → +0xbc06cd → +0xbc03f9 → +0x82cd46. The title main thread was waiting at +0x509898d. About 30 s into the stall the watchdog wrote to zero at +0x2215c35. No kernel GPU reset or OOM kill. Total run time 23m50s.

The worker's context in the crash minidump still has RIP at +0x2626977, rax=0, r10=r8, edx=0x30 and r11d=0x15e1. It is checking node 0. In 1.0.2.1 this walk tests the size at offset 12 against the request, then takes the signed 16-bit link at offset 6 until it reaches the stop index or finds a large enough range. The minidump doesn't contain the node bytes, so this is evidence of a stuck walk, not proof of a self-loop or of who wrote it.

An earlier run on this PC at 37bb30f, without frame generation, had the #57 stack at +0xad5241 twice and the same watchdog exit. The current damaged() check in the linked Bazzite guard follows offset 2 below the first free slot. That check may miss the offset-6 case. I’m adding local read-only snapshots at the two hang dumps to examine both links.

Latest run used d044248 plus local patches from #135, #163, #164, #173, #178, #179, #188 and #191. Series X, 1440p Native AA, frame generation on, RT off, VICTORY_PAGES=0. Across the highway samples, zero texture block requests failed for lack of space. Some passes did start above the memory budget threshold. The two runs aren't a controlled comparison of FG or page migration.

Analysis and write-up by OpenAI Codex. No save, minidump or raw log attached.

**@⁠DecayingEagle** on GitHub · 2026-12-02 14:53 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7349321238) A highway drive on a 7900 XT under Wine reached a different loop in this allocator. The road stayed visible. Frame 33,810 was the last frame to begin. At +10 s and +20 s the same worker had the same stack, starting at `+0x2626977 → +0xbc06cd → +0xbc03f9 → +0x82cd46`. The title main thread was waiting at `+0x509898d`. About 30 s into the stall the watchdog wrote to zero at `+0x2215c35`. No kernel GPU reset or OOM kill. Total run time 23m50s. The worker's context in the crash minidump still has RIP at `+0x2626977`, `rax=0`, `r10=r8`, `edx=0x30` and `r11d=0x15e1`. It is checking node 0. In 1.0.2.1 this walk tests the size at offset 12 against the request, then takes the signed 16-bit link at **offset 6** until it reaches the stop index or finds a large enough range. The minidump doesn't contain the node bytes, so this is evidence of a stuck walk, **not proof of a self-loop or of who wrote it**. An earlier run on this PC at `37bb30f`, without frame generation, had the [#57](https://git.gtahub.st/github/lobomfz--VIctory-xmem/issues/57) stack at `+0xad5241` twice and the same watchdog exit. The current `damaged()` check in the linked Bazzite guard follows offset 2 below the first free slot. That check may miss the offset-6 case. I’m adding local read-only snapshots at the two hang dumps to examine both links. Latest run used `d044248` plus local patches from #135, #163, #164, #173, #178, #179, #188 and #191. Series X, 1440p Native AA, frame generation on, RT off, `VICTORY_PAGES=0`. Across the highway samples, zero texture block requests failed for lack of space. Some passes did start above the memory budget threshold. The two runs aren't a controlled comparison of FG or page migration. Analysis and write-up by OpenAI Codex. No save, minidump or raw log attached.
Author
Owner

@⁠Lightje on GitHub · 2026-12-02 15:42 UTC · original

Ran with VICTORY_RANGE_GUARD=1 (ported d2f7375a from HioShan/VIctory-xmem-bazzite, plus an offset-4/6 cycle check in damaged() and read-only snapshots at both hang watch dumps and crash as @DecayingEagle suggested) and caught the exact corruption live 29 min in (1736 s, frame 45618), 25 s before the freeze at frame 46134 and watchdog null write at +0x2215c35.

Key findings

  1. No stray GPU writes: Every changed node and every loop node contains 100% valid allocator fields (u16 links, u32 start/size, trailing 4 bytes all 00 00 00 00). Zero floats, colors, or random bytes.
  2. Confirmed offset-4/6 cycle (offset-2 had 0 loops): loops_off2=0, loops_off4_6=15, asymmetric=7. At the freeze (frame 46134), worker thread 580 was stuck spinning in the offset-4 walk (+0x2626830):
    thread 580 "" start victory-image-b99f876b74d4a77f.dll+0x2215ea0
      #0  victory-image-b99f876b74d4a77f.dll+0x2626877
      #1  victory-image-b99f876b74d4a77f.dll+0xbc0576
      #2  victory-image-b99f876b74d4a77f.dll+0xbc03b5
      #3  victory-image-b99f876b74d4a77f.dll+0x82cd46
      #4  victory-image-b99f876b74d4a77f.dll+0x300292
      #5  victory-image-b99f876b74d4a77f.dll+0x51c39e1
      #6  victory-image-b99f876b74d4a77f.dll+0x257035e
      #7  victory-image-b99f876b74d4a77f.dll+0x221c29c
      #8  victory-image-b99f876b74d4a77f.dll+0x2215eca
    
  3. Exact mechanism caught in the 500 ms diff:
    • Before frame 45618, List 1 was already out of descending start order (0x040d at start=0x0b4b had next=0x01f7 at start=0x1844, and 0x01f2 at start=0x17e5 also had prev=0x01f7), which caused List 2 to have 0x0b26 (0x18fd) -> 0x0ba3 (0x0c7f) -> 0x0b3b (0x0b7b) -> 0x0b05 (0x17b8) -> ... -> 0x0afe (0x0df5) -> 0x0b3e (0x0cb9) -> 0x0b25 (0x18a3).
    • At frame 45618, freeing 0x02d6 (prev=0x0b3e, next=0x0ba3, start=0x0c84, size=0x35) coalesced 0x0b3e (0x0cb9, size 0x12) + 0x02d6 (0x35) + 0x0ba3 (0x0c7f, size 0x5) into 0x0ba3 (size=0x4c).
    • +0xad52f0 assumes adjacent physical free nodes are adjacent in List 2, so it set 0x0ba3.prev2 = 0x0afe (was 0x0b26) and 0x0afe.next2 = 0x0ba3 (was 0x0b3e), closing a 15-node bidirectional ring on both prev2 and next2:
      0x0afe <-> 0x0ba3 <-> 0x0b3b <-> 0x0b05 <-> 0x0b8c <-> 0x0b37 <-> 0x0b81 <-> 0x0b47 <-> 0x0b16 <-> 0x0b85 <-> 0x0b9d <-> 0x0afd <-> 0x0bb1 <-> 0x0b86 <-> 0x0b32 <-> 0x0afe
    • 0x0b3e was freed and immediately reused (start=0x85c6), leaving 0x0b25.prev2 dangling on 0x0b3e and 0x0b26.next2 pointing into the ring at 0x0ba3.

range guard: log lines (first detection at 1736 s, 500 ms after last whole read)

VIctory: range guard: the title's range allocator lists are damaged at 1736 s (frame 45618): array 0x11aac3590, 5603 nodes, free-slot search from 0xaf0, last whole read 500 ms before
  node 0x0afd at 0x11aad1154: prev=0x02cc next=0x045a prev2=0x0b9d next2=0x0bb1 start=0x00001170 size=0x00000025 [cc 02 5a 04 9d 0b b1 0b 70 11 00 00 25 00 00 00 00 00 00 00]
  node 0x0afe at 0x11aad1168: prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0ba3 start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b a3 0b f5 0d 00 00 15 00 00 00 00 00 00 00]
    node 0x0afe in the last whole read: prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0b3e start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b 3e 0b f5 0d 00 00 15 00 00 00 00 00 00 00]
  node 0x0ba3 at 0x11aad1e4c: prev=0x01df next=0x00b6 prev2=0x0afe next2=0x0b3b start=0x00000c7f size=0x0000004c [df 01 b6 00 fe 0a 3b 0b 7f 0c 00 00 4c 00 00 00 00 00 00 00]
    node 0x0ba3 in the last whole read: prev=0x02d6 next=0x00b6 prev2=0x0b26 next2=0x0b3b start=0x00000c7f size=0x00000005 [d6 02 b6 00 26 0b 3b 0b 7f 0c 00 00 05 00 00 00 00 00 00 00]
  23 nodes changed since the last whole read:
    0x01df: was prev=0x01eb next=0x0b3e prev2=0xffff next2=0xffff start=0x00000ccb size=0x0000005b [eb 01 3e 0b ff ff ff ff cb 0c 00 00 5b 00 00 00 00 00 00 00]
    0x01df: now prev=0x01eb next=0x0ba3 prev2=0xffff next2=0xffff start=0x00000ccb size=0x0000005b [eb 01 a3 0b ff ff ff ff cb 0c 00 00 5b 00 00 00 00 00 00 00]
    0x02d6: was prev=0x0b3e next=0x0ba3 prev2=0xffff next2=0xffff start=0x00000c84 size=0x00000035 [3e 0b a3 0b ff ff ff ff 84 0c 00 00 35 00 00 00 00 00 00 00]
    0x02d6: now prev=0xffff next=0xffff prev2=0xffff next2=0xffff start=0x00000c84 size=0x00000000 [ff ff ff ff ff ff ff ff 84 0c 00 00 00 00 00 00 00 00 00 00]
    0x0afe: was prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0b3e start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b 3e 0b f5 0d 00 00 15 00 00 00 00 00 00 00]
    0x0afe: now prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0ba3 start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b a3 0b f5 0d 00 00 15 00 00 00 00 00 00 00]
    0x0b3e: was prev=0x01df next=0x02d6 prev2=0x0afe next2=0x0b25 start=0x00000cb9 size=0x00000012 [df 01 d6 02 fe 0a 25 0b b9 0c 00 00 12 00 00 00 00 00 00 00]
    0x0b3e: now prev=0x042d next=0x0110 prev2=0x0b6d next2=0x0b6a start=0x000085c6 size=0x0000002f [2d 04 10 01 6d 0b 6a 0b c6 85 00 00 2f 00 00 00 00 00 00 00]
    0x0ba3: was prev=0x02d6 next=0x00b6 prev2=0x0b26 next2=0x0b3b start=0x00000c7f size=0x00000005 [d6 02 b6 00 26 0b 3b 0b 7f 0c 00 00 05 00 00 00 00 00 00 00]
    0x0ba3: now prev=0x01df next=0x00b6 prev2=0x0afe next2=0x0b3b start=0x00000c7f size=0x0000004c [df 01 b6 00 fe 0a 3b 0b 7f 0c 00 00 4c 00 00 00 00 00 00 00]

Asymmetric nodes at hang watch (frame 46134, showing the earlier List-1 break 0x040d -> 0x01f7)

VIctory: range guard: hang watch snapshot (frame 46134): array 0x11aac3590, 5603 nodes, first=0xaf0, heads=(0x15e1,0x15e2), loops_off2=0, loops_off4_6=15, asymmetric=7, last whole read 25590 ms before
  asym node 0x01f2 at 0x11aac5c78: prev=0x01f7 next=0x0b05 prev2=0xffff next2=0xffff start=0x000017e5 size=0x0000005f
  asym node 0x01f7 at 0x11aac5cdc: prev=0x0134 next=0x0af2 prev2=0xffff next2=0xffff start=0x00001844 size=0x0000002f
  asym node 0x040d at 0x11aac8694: prev=0x0b3b next=0x01f7 prev2=0xffff next2=0xffff start=0x00000b4b size=0x00000030
  asym node 0x0b25 at 0x11aad1474: prev=0x0092 next=0x0134 prev2=0x0b3e next2=0x0af2 start=0x000018a9 size=0x00000020
  asym node 0x0b26 at 0x11aad1488: prev=0x03d3 next=0x0092 prev2=0x0b0a next2=0x0ba3 start=0x000018fd size=0x00000006
  asym node 0x0b3e at 0x11aad1668: prev=0xffff next=0xffff prev2=0xffff next2=0xffff start=0x000085f5 size=0x00000000
  asym node 0x0ba3 at 0x11aad1e4c: prev=0x01df next=0x03fe prev2=0x0afe next2=0x0b3b start=0x00000c50 size=0x0000007b

Notice 0x040d (0x0b4b) already had next=0x01f7 (0x1844) before the 500 ms window (unchanged between was and now) — so checking for a start monotonicity inversion in List 1 (prev/next) would catch the very first corruption event!

**@⁠Lightje** on GitHub · 2026-12-02 15:42 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7350787979) Ran with `VICTORY_RANGE_GUARD=1` (ported `d2f7375a` from `HioShan/VIctory-xmem-bazzite`, plus an offset-4/6 cycle check in `damaged()` and read-only snapshots at both `hang watch` dumps and crash as `@DecayingEagle` suggested) and **caught the exact corruption live** 29 min in (`1736 s`, frame `45618`), 25 s before the freeze at frame `46134` and watchdog null write at `+0x2215c35`. ### Key findings 1. **No stray GPU writes:** Every changed node and every loop node contains 100% valid allocator fields (`u16` links, `u32` `start`/`size`, trailing 4 bytes all `00 00 00 00`). Zero floats, colors, or random bytes. 2. **Confirmed offset-4/6 cycle (offset-2 had 0 loops):** `loops_off2=0, loops_off4_6=15, asymmetric=7`. At the freeze (frame `46134`), worker thread 580 was stuck spinning in the **offset-4** walk (`+0x2626830`): ```text thread 580 "" start victory-image-b99f876b74d4a77f.dll+0x2215ea0 #0 victory-image-b99f876b74d4a77f.dll+0x2626877 #1 victory-image-b99f876b74d4a77f.dll+0xbc0576 #2 victory-image-b99f876b74d4a77f.dll+0xbc03b5 #3 victory-image-b99f876b74d4a77f.dll+0x82cd46 #4 victory-image-b99f876b74d4a77f.dll+0x300292 #5 victory-image-b99f876b74d4a77f.dll+0x51c39e1 #6 victory-image-b99f876b74d4a77f.dll+0x257035e #7 victory-image-b99f876b74d4a77f.dll+0x221c29c #8 victory-image-b99f876b74d4a77f.dll+0x2215eca ``` 3. **Exact mechanism caught in the 500 ms diff:** - Before frame `45618`, List 1 was already out of descending `start` order (`0x040d` at `start=0x0b4b` had `next=0x01f7` at `start=0x1844`, and `0x01f2` at `start=0x17e5` also had `prev=0x01f7`), which caused List 2 to have `0x0b26 (0x18fd) -> 0x0ba3 (0x0c7f) -> 0x0b3b (0x0b7b) -> 0x0b05 (0x17b8) -> ... -> 0x0afe (0x0df5) -> 0x0b3e (0x0cb9) -> 0x0b25 (0x18a3)`. - At frame `45618`, freeing `0x02d6` (`prev=0x0b3e, next=0x0ba3, start=0x0c84, size=0x35`) coalesced `0x0b3e` (`0x0cb9`, size `0x12`) + `0x02d6` (`0x35`) + `0x0ba3` (`0x0c7f`, size `0x5`) into `0x0ba3` (`size=0x4c`). - `+0xad52f0` assumes adjacent physical free nodes are adjacent in List 2, so it set `0x0ba3.prev2 = 0x0afe` (was `0x0b26`) and `0x0afe.next2 = 0x0ba3` (was `0x0b3e`), closing a **15-node bidirectional ring** on both `prev2` and `next2`: `0x0afe <-> 0x0ba3 <-> 0x0b3b <-> 0x0b05 <-> 0x0b8c <-> 0x0b37 <-> 0x0b81 <-> 0x0b47 <-> 0x0b16 <-> 0x0b85 <-> 0x0b9d <-> 0x0afd <-> 0x0bb1 <-> 0x0b86 <-> 0x0b32 <-> 0x0afe` - `0x0b3e` was freed and immediately reused (`start=0x85c6`), leaving `0x0b25.prev2` dangling on `0x0b3e` and `0x0b26.next2` pointing into the ring at `0x0ba3`. ### `range guard:` log lines (first detection at 1736 s, 500 ms after last whole read) ```text VIctory: range guard: the title's range allocator lists are damaged at 1736 s (frame 45618): array 0x11aac3590, 5603 nodes, free-slot search from 0xaf0, last whole read 500 ms before node 0x0afd at 0x11aad1154: prev=0x02cc next=0x045a prev2=0x0b9d next2=0x0bb1 start=0x00001170 size=0x00000025 [cc 02 5a 04 9d 0b b1 0b 70 11 00 00 25 00 00 00 00 00 00 00] node 0x0afe at 0x11aad1168: prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0ba3 start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b a3 0b f5 0d 00 00 15 00 00 00 00 00 00 00] node 0x0afe in the last whole read: prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0b3e start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b 3e 0b f5 0d 00 00 15 00 00 00 00 00 00 00] node 0x0ba3 at 0x11aad1e4c: prev=0x01df next=0x00b6 prev2=0x0afe next2=0x0b3b start=0x00000c7f size=0x0000004c [df 01 b6 00 fe 0a 3b 0b 7f 0c 00 00 4c 00 00 00 00 00 00 00] node 0x0ba3 in the last whole read: prev=0x02d6 next=0x00b6 prev2=0x0b26 next2=0x0b3b start=0x00000c7f size=0x00000005 [d6 02 b6 00 26 0b 3b 0b 7f 0c 00 00 05 00 00 00 00 00 00 00] 23 nodes changed since the last whole read: 0x01df: was prev=0x01eb next=0x0b3e prev2=0xffff next2=0xffff start=0x00000ccb size=0x0000005b [eb 01 3e 0b ff ff ff ff cb 0c 00 00 5b 00 00 00 00 00 00 00] 0x01df: now prev=0x01eb next=0x0ba3 prev2=0xffff next2=0xffff start=0x00000ccb size=0x0000005b [eb 01 a3 0b ff ff ff ff cb 0c 00 00 5b 00 00 00 00 00 00 00] 0x02d6: was prev=0x0b3e next=0x0ba3 prev2=0xffff next2=0xffff start=0x00000c84 size=0x00000035 [3e 0b a3 0b ff ff ff ff 84 0c 00 00 35 00 00 00 00 00 00 00] 0x02d6: now prev=0xffff next=0xffff prev2=0xffff next2=0xffff start=0x00000c84 size=0x00000000 [ff ff ff ff ff ff ff ff 84 0c 00 00 00 00 00 00 00 00 00 00] 0x0afe: was prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0b3e start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b 3e 0b f5 0d 00 00 15 00 00 00 00 00 00 00] 0x0afe: now prev=0x01f6 next=0x00a6 prev2=0x0b32 next2=0x0ba3 start=0x00000df5 size=0x00000015 [f6 01 a6 00 32 0b a3 0b f5 0d 00 00 15 00 00 00 00 00 00 00] 0x0b3e: was prev=0x01df next=0x02d6 prev2=0x0afe next2=0x0b25 start=0x00000cb9 size=0x00000012 [df 01 d6 02 fe 0a 25 0b b9 0c 00 00 12 00 00 00 00 00 00 00] 0x0b3e: now prev=0x042d next=0x0110 prev2=0x0b6d next2=0x0b6a start=0x000085c6 size=0x0000002f [2d 04 10 01 6d 0b 6a 0b c6 85 00 00 2f 00 00 00 00 00 00 00] 0x0ba3: was prev=0x02d6 next=0x00b6 prev2=0x0b26 next2=0x0b3b start=0x00000c7f size=0x00000005 [d6 02 b6 00 26 0b 3b 0b 7f 0c 00 00 05 00 00 00 00 00 00 00] 0x0ba3: now prev=0x01df next=0x00b6 prev2=0x0afe next2=0x0b3b start=0x00000c7f size=0x0000004c [df 01 b6 00 fe 0a 3b 0b 7f 0c 00 00 4c 00 00 00 00 00 00 00] ``` ### Asymmetric nodes at hang watch (frame 46134, showing the earlier List-1 break `0x040d -> 0x01f7`) ```text VIctory: range guard: hang watch snapshot (frame 46134): array 0x11aac3590, 5603 nodes, first=0xaf0, heads=(0x15e1,0x15e2), loops_off2=0, loops_off4_6=15, asymmetric=7, last whole read 25590 ms before asym node 0x01f2 at 0x11aac5c78: prev=0x01f7 next=0x0b05 prev2=0xffff next2=0xffff start=0x000017e5 size=0x0000005f asym node 0x01f7 at 0x11aac5cdc: prev=0x0134 next=0x0af2 prev2=0xffff next2=0xffff start=0x00001844 size=0x0000002f asym node 0x040d at 0x11aac8694: prev=0x0b3b next=0x01f7 prev2=0xffff next2=0xffff start=0x00000b4b size=0x00000030 asym node 0x0b25 at 0x11aad1474: prev=0x0092 next=0x0134 prev2=0x0b3e next2=0x0af2 start=0x000018a9 size=0x00000020 asym node 0x0b26 at 0x11aad1488: prev=0x03d3 next=0x0092 prev2=0x0b0a next2=0x0ba3 start=0x000018fd size=0x00000006 asym node 0x0b3e at 0x11aad1668: prev=0xffff next=0xffff prev2=0xffff next2=0xffff start=0x000085f5 size=0x00000000 asym node 0x0ba3 at 0x11aad1e4c: prev=0x01df next=0x03fe prev2=0x0afe next2=0x0b3b start=0x00000c50 size=0x0000007b ``` Notice `0x040d (0x0b4b)` already had `next=0x01f7 (0x1844)` **before** the 500 ms window (unchanged between `was` and `now`) — so checking for a `start` monotonicity inversion in List 1 (`prev`/`next`) would catch the very first corruption event!
Author
Owner

@⁠HioShan on GitHub · 2026-12-02 16:13 UTC · original

Thanks @⁠Lightje and @⁠DecayingEagle: that settles the stray-write question. We hit the same second-list walk: an RX 9070 XT, 2 h 11 min into story mode, one worker stuck at +0x2626977 (+0xbc06cd → +0xbc03f9 → +0x82cd46). Then came the watchdog's int3 at +0x2215c40 (our build turns the title's null store into that). The card's memory was flat for the whole game: VRAM 15.4–15.6 GB from minute 30 on, 1.3–1.5 GB of it free, no swap, and the frame rate did not fall with time. So it was not a leak.

The guard in HioShan/VIctory-xmem-bazzite (crates/victory-hle/src/range_guard.rs, branch bazzite) now does three more things:

  • Second ring. It walks next2 from the node at [+0x908f032] and checks that it comes back to the sentinel [+0x908f030], as +0x2626930 does. The first read must show the layout holds, or this check stays off; here it logged sentinel=5601 head=5602 ring=true (your 0x15e1/0x15e2). A walk that revisits a node, or reaches a link that names no node (the -1 of the +0x2626911 crash), counts as broken.
  • Reports. A report now needs 10 identical reads (1 s), to stay quiet through the title's own rebuilds.
  • VICTORY_RANGE_GUARD=heal, a stop-gap, not a fix. It acts only when the same damage has held for 2 s and no frame has begun for 3 s, so the title is already stuck and its watchdog will end the game at 20 s.
    • It closes the ring: the last node before the walk goes wrong gets next2 = sentinel, and the sentinel's prev2 = that node.
    • It also cuts a first-list loop below the free-slot start: next = 0xffff on the loop's last node.
    • It writes each word only if it still holds what was read, and mends at most 8 times a run.
    • At worst, some free ranges become unreachable. Whatever already broke the start order in the first list stays broken, so it may fail later anyway.
    • So far it has run in walks only, with no false mends. It has not met a real hang yet; I'll post what happens when it does.

@⁠Lightje's idea of flagging the first start-order inversion in the first list seems the way to find the cause. Whatever writes that inversion, maybe a double free or a race that only Wine's scheduling shows, is what to catch next.

**@⁠HioShan** on GitHub · 2026-12-02 16:13 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7351630564) Thanks @⁠Lightje and @⁠DecayingEagle: that settles the stray-write question. We hit the same second-list walk: an RX 9070 XT, 2 h 11 min into story mode, one worker stuck at `+0x2626977` (`+0xbc06cd → +0xbc03f9 → +0x82cd46`). Then came the watchdog's `int3` at `+0x2215c40` (our build turns the title's null store into that). The card's memory was flat for the whole game: VRAM 15.4–15.6 GB from minute 30 on, 1.3–1.5 GB of it free, no swap, and the frame rate did not fall with time. So it was not a leak. The guard in [HioShan/VIctory-xmem-bazzite](https://github.com/HioShan/VIctory-xmem-bazzite) (`crates/victory-hle/src/range_guard.rs`, branch `bazzite`) now does three more things: - **Second ring.** It walks `next2` from the node at `[+0x908f032]` and checks that it comes back to the sentinel `[+0x908f030]`, as `+0x2626930` does. The first read must show the layout holds, or this check stays off; here it logged `sentinel=5601 head=5602 ring=true` (your `0x15e1`/`0x15e2`). A walk that revisits a node, or reaches a link that names no node (the `-1` of the `+0x2626911` crash), counts as broken. - **Reports.** A report now needs 10 identical reads (1 s), to stay quiet through the title's own rebuilds. - **`VICTORY_RANGE_GUARD=heal`, a stop-gap, not a fix.** It acts only when the same damage has held for 2 s and no frame has begun for 3 s, so the title is already stuck and its watchdog will end the game at 20 s. - It closes the ring: the last node before the walk goes wrong gets `next2` = sentinel, and the sentinel's `prev2` = that node. - It also cuts a first-list loop below the free-slot start: `next` = `0xffff` on the loop's last node. - It writes each word only if it still holds what was read, and mends at most 8 times a run. - At worst, some free ranges become unreachable. Whatever already broke the `start` order in the first list stays broken, so it may fail later anyway. - So far it has run in walks only, with no false mends. It has not met a real hang yet; I'll post what happens when it does. @⁠Lightje's idea of flagging the first `start`-order inversion in the first list seems the way to find the cause. Whatever writes that inversion, maybe a double free or a race that only Wine's scheduling shows, is what to catch next.
Author
Owner

@⁠Lightje on GitHub · 2026-12-02 17:12 UTC · original

@⁠HioShan, I added that exact List-1 start-order check and it caught the initial inversion on the very next run (1585 s, frame 43405). It turns out to be a double-allocation race on a live node, not a double free:

1. Live capture of the first start-order break (0x0203 allocated 0x5f twice in place)

In one 1.3 s window, 0x0203 started free (size=0) and was allocated twice with the exact same size 0x5f without being freed between the two:

  • First allocation carved 0x5f off 0x0b01 (start=0x2973, size=0x65 -> start=0x29d2, size=0x06, setting 0x0b01.next=0x0203 and 0x03ea.prev=0x0203).
  • Second allocation carved 0x5f off 0x0b2e (start=0x3195, size=0x77 -> start=0x31f4, size=0x18, setting 0x0b2e.next=0x0203 and 0x0471.prev=0x0203), overwriting nodes[0x0203] in place and leaving 0x0b01.next=0x0203 and 0x03ea.prev=0x0203 dangling across memory:
VIctory: range guard: the title's range allocator lists are damaged at 1585 s (frame 43405): array 0x11aab2590, 5603 nodes, free-slot search from 0xaf0, last whole read 1308 ms before
  node 0x0b01: prev=0x04b1 next=0x0203 prev2=0x0b15 next2=0x0b09 start=0x000029d2 size=0x00000006
    its next 0x0203: prev=0x0b2e next=0x0471 prev2=0xffff next2=0xffff start=0x00003195 size=0x0000005f
    node 0x0b01 in the last whole read: prev=0x04b1 next=0x03ea prev2=0x0b15 next2=0x0b09 start=0x00002973 size=0x00000065
  Changed nodes involved:
    0x0203: was prev=0xffff next=0xffff start=0x00005031 size=0x00000000
    0x0203: now prev=0x0b2e next=0x0471 start=0x00003195 size=0x0000005f
    0x0b01: was prev=0x04b1 next=0x03ea start=0x00002973 size=0x00000065
    0x0b01: now prev=0x04b1 next=0x0203 start=0x000029d2 size=0x00000006
    0x03ea: was prev=0x0b01 next=0x0b09 start=0x000028f3 size=0x00000080
    0x03ea: now prev=0x0203 next=0x0b09 start=0x000028f3 size=0x00000080
    0x0b2e: was prev=0x04d8 next=0x0471 start=0x00003195 size=0x00000077
    0x0b2e: now prev=0x04d8 next=0x0203 start=0x000031f4 size=0x00000018
    0x0471: was prev=0x0b2e next=0x0b42 start=0x0000313e size=0x00000057
    0x0471: now prev=0x0203 next=0x0b42 start=0x0000313e size=0x00000057

2. Root cause in the disassembly (+0xbc0380 lock-gap TOCTOU)

Audited every caller of the allocator in b99f876b74d4a77f:

  • +0xbc0380 (sole caller +0x82cd41, the same stack frame as your +0x2626977 hang) checks a slot's A/B sizes unlocked (+0xbc0470 / +0xbc0450 / +0xbc0640), then calls:
    • slot_free_a (+0xbc04d0) -> locks & unlocks +0x76b8e70
    • slot_alloc_a (+0xbc0530) -> re-locks +0x76b8e70, zeroes the slot's cached size_a without freeing slot.node_a, and calls +0x2626830 which overwrites nodes[node_a] in place
    • Same pattern for slot_free_b (+0xbc05b0) -> slot_alloc_b (+0xbc0670 -> +0x2626930), followed by a tail-call to +0xbc0750 (which also reads the slot unlocked before acquiring +0x76b8e70).
  • When two worker threads hit +0xbc0380 concurrently for the same slot, both fail the size check and both run slot_alloc_a / slot_alloc_b, overwriting the live node in place and breaking List 1 — which later cascades into either the List-2 hang ring (+0x2626877 / +0x2626977), the List-1 loop (#57 +0xad522d), or 0xc0000005 (+0xad533c / +0x2626911).

3. Bonus bug explaining the +0xad533c (0x4fffffffb) crash

is_free_node (+0xad52d0) only checks:
cx >= [+0x908f02e] (0xaf0) && cx != [+0x908f030] (0x15e1) && cx != [+0x908f032] (0x15e2)
So is_free_node(0xffff) returns true. On our crash snapshot, nodes[0] had size=0, prev=next=prev2=0xffff with a stale next2=0x0ba8, bypassing free_node's all--1 guard and causing free_node to call coalesce_nodes(0xffff, 0) -> crash at +0xad533c.

4. Local fix + initial 31-minute test result

  • +0x76b8e70 (+0x4b40 / +0x4d9dab0) is a recursive sysCriticalSectionToken, and nothing reachable from +0xbc0380 (including +0xbc0750) acquires +0x76b8e50 or any other lock.
  • Implemented two load-time patches (verified byte-for-byte before patching):
    1. Wrap +0xbc0380 to hold +0x76b8e70 across the entire check -> free -> alloc -> queue sequence (so the second racing thread sees the updated size and skips reallocation).
    2. Patch +0xad52e2 from je (0x74) to jbe (0x76) after cmp [head_a], cx, so cx >= head_a (including 0xffff) returns false in is_free_node.
  • First test run: played 31 minutes with both patches + VICTORY_RANGE_GUARD=1 active: 17,801 checks, damaged=false, 0 errors, 0 hangs, clean exit (whereas my previous three unpatched runs hit damage/crashed at 22 min, 29 min, and 26.5 min). Needs a multi-hour run to be 100% sure, so I'll keep testing and report back if anything shows up.
**@⁠Lightje** on GitHub · 2026-12-02 17:12 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7353044477) @⁠HioShan, I added that exact List-1 `start`-order check and it caught the initial inversion on the very next run (1585 s, frame 43405). It turns out to be a **double-allocation race on a live node**, not a double free: ### 1. Live capture of the first `start`-order break (`0x0203` allocated `0x5f` twice in place) In one 1.3 s window, `0x0203` started free (`size=0`) and was allocated **twice with the exact same size `0x5f`** without being freed between the two: - First allocation carved `0x5f` off `0x0b01` (`start=0x2973, size=0x65` -> `start=0x29d2, size=0x06`, setting `0x0b01.next=0x0203` and `0x03ea.prev=0x0203`). - Second allocation carved `0x5f` off `0x0b2e` (`start=0x3195, size=0x77` -> `start=0x31f4, size=0x18`, setting `0x0b2e.next=0x0203` and `0x0471.prev=0x0203`), **overwriting `nodes[0x0203]` in place** and leaving `0x0b01.next=0x0203` and `0x03ea.prev=0x0203` dangling across memory: ```text VIctory: range guard: the title's range allocator lists are damaged at 1585 s (frame 43405): array 0x11aab2590, 5603 nodes, free-slot search from 0xaf0, last whole read 1308 ms before node 0x0b01: prev=0x04b1 next=0x0203 prev2=0x0b15 next2=0x0b09 start=0x000029d2 size=0x00000006 its next 0x0203: prev=0x0b2e next=0x0471 prev2=0xffff next2=0xffff start=0x00003195 size=0x0000005f node 0x0b01 in the last whole read: prev=0x04b1 next=0x03ea prev2=0x0b15 next2=0x0b09 start=0x00002973 size=0x00000065 Changed nodes involved: 0x0203: was prev=0xffff next=0xffff start=0x00005031 size=0x00000000 0x0203: now prev=0x0b2e next=0x0471 start=0x00003195 size=0x0000005f 0x0b01: was prev=0x04b1 next=0x03ea start=0x00002973 size=0x00000065 0x0b01: now prev=0x04b1 next=0x0203 start=0x000029d2 size=0x00000006 0x03ea: was prev=0x0b01 next=0x0b09 start=0x000028f3 size=0x00000080 0x03ea: now prev=0x0203 next=0x0b09 start=0x000028f3 size=0x00000080 0x0b2e: was prev=0x04d8 next=0x0471 start=0x00003195 size=0x00000077 0x0b2e: now prev=0x04d8 next=0x0203 start=0x000031f4 size=0x00000018 0x0471: was prev=0x0b2e next=0x0b42 start=0x0000313e size=0x00000057 0x0471: now prev=0x0203 next=0x0b42 start=0x0000313e size=0x00000057 ``` ### 2. Root cause in the disassembly (`+0xbc0380` lock-gap TOCTOU) Audited every caller of the allocator in `b99f876b74d4a77f`: - `+0xbc0380` (sole caller `+0x82cd41`, the same stack frame as your `+0x2626977` hang) checks a slot's A/B sizes **unlocked** (`+0xbc0470` / `+0xbc0450` / `+0xbc0640`), then calls: - `slot_free_a` (`+0xbc04d0`) -> locks & unlocks `+0x76b8e70` - `slot_alloc_a` (`+0xbc0530`) -> re-locks `+0x76b8e70`, zeroes the slot's cached `size_a` **without freeing `slot.node_a`**, and calls `+0x2626830` which overwrites `nodes[node_a]` in place - Same pattern for `slot_free_b` (`+0xbc05b0`) -> `slot_alloc_b` (`+0xbc0670` -> `+0x2626930`), followed by a tail-call to `+0xbc0750` (which also reads the slot unlocked before acquiring `+0x76b8e70`). - When two worker threads hit `+0xbc0380` concurrently for the same slot, both fail the size check and both run `slot_alloc_a` / `slot_alloc_b`, overwriting the live node in place and breaking List 1 — which later cascades into either the List-2 hang ring (`+0x2626877` / `+0x2626977`), the List-1 loop (`#57` `+0xad522d`), or `0xc0000005` (`+0xad533c` / `+0x2626911`). ### 3. Bonus bug explaining the `+0xad533c` (`0x4fffffffb`) crash `is_free_node` (`+0xad52d0`) only checks: `cx >= [+0x908f02e] (0xaf0) && cx != [+0x908f030] (0x15e1) && cx != [+0x908f032] (0x15e2)` So **`is_free_node(0xffff)` returns `true`**. On our crash snapshot, `nodes[0]` had `size=0, prev=next=prev2=0xffff` with a stale `next2=0x0ba8`, bypassing `free_node`'s all-`-1` guard and causing `free_node` to call `coalesce_nodes(0xffff, 0)` -> crash at `+0xad533c`. ### 4. Local fix + initial 31-minute test result - `+0x76b8e70` (`+0x4b40` / `+0x4d9dab0`) is a **recursive** `sysCriticalSectionToken`, and nothing reachable from `+0xbc0380` (including `+0xbc0750`) acquires `+0x76b8e50` or any other lock. - Implemented two load-time patches (verified byte-for-byte before patching): 1. Wrap `+0xbc0380` to hold `+0x76b8e70` across the entire check -> free -> alloc -> queue sequence (so the second racing thread sees the updated size and skips reallocation). 2. Patch `+0xad52e2` from `je` (`0x74`) to `jbe` (`0x76`) after `cmp [head_a], cx`, so `cx >= head_a` (including `0xffff`) returns `false` in `is_free_node`. - **First test run:** played **31 minutes** with both patches + `VICTORY_RANGE_GUARD=1` active: **17,801 checks, `damaged=false`, 0 errors, 0 hangs, clean exit** (whereas my previous three unpatched runs hit damage/crashed at 22 min, 29 min, and 26.5 min). Needs a multi-hour run to be 100% sure, so I'll keep testing and report back if anything shows up.
Author
Owner

@⁠GustawMatuszewski on GitHub · 2026-12-02 18:04 UTC · original

Data point from a second card and a different trigger — same site.

Machine: RX 9060 XT (Navi 44, RDNA4, GV-R9060XTGAMING OC-16GD), Ryzen 9 3900X, 46 GB RAM, Ubuntu, Mesa 26.0.8 RADV, ReBAR on (16 GB BAR), Proton Experimental. Built from main (37bb30f) plus two ports (8 GiB address-space spare + host-FidelityFX-any-output-size, from Skrills68/Valhalla-xmem 21d973f/ca81fb7 and trustno1's v2026.11.29.04).

The title stops at the same watchdog null write — — but for us it is deterministic at frame 0, System Init, in every run that selects the host FidelityFX upscaler (any output size, Series S or X, RT on or off):

No line precedes it (the 6.5 GB heap is served; the 8 GiB spare reserves fine and is logged), so our instance looks like the title writing through a null FidelityFX context/interface rather than the pool walk you two are chasing — but the crashing site (+0x2215c35, the same worker state HioShan quoted) is the same. Without the host FidelityFX the title runs fine for us (15.2 fps, console FSR, world black — the known fault).

Full test matrix, crash context dumps and log lines: https://github.com/Skrills68/Valhalla-xmem/issues/11 (same build family). Happy to run anything — the box reproduces in under a minute.

**@⁠GustawMatuszewski** on GitHub · 2026-12-02 18:04 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7353921008) Data point from a second card and a different trigger — same site. Machine: RX 9060 XT (Navi 44, RDNA4, GV-R9060XTGAMING OC-16GD), Ryzen 9 3900X, 46 GB RAM, Ubuntu, Mesa 26.0.8 RADV, ReBAR on (16 GB BAR), Proton Experimental. Built from main (37bb30f) plus two ports (8 GiB address-space spare + host-FidelityFX-any-output-size, from Skrills68/Valhalla-xmem 21d973f/ca81fb7 and trustno1's v2026.11.29.04). The title stops at the same watchdog null write — — but for us it is **deterministic at frame 0, System Init**, in every run that selects the host FidelityFX upscaler (any output size, Series S or X, RT on or off): No line precedes it (the 6.5 GB heap is served; the 8 GiB spare reserves fine and is logged), so our instance looks like the title writing through a null FidelityFX context/interface rather than the pool walk you two are chasing — but the crashing site (+0x2215c35, the same worker state HioShan quoted) is the same. Without the host FidelityFX the title runs fine for us (15.2 fps, console FSR, world black — the known fault). Full test matrix, crash context dumps and log lines: https://github.com/Skrills68/Valhalla-xmem/issues/11 (same build family). Happy to run anything — the box reproduces in under a minute.
Author
Owner

@⁠GustawMatuszewski on GitHub · 2026-12-02 18:05 UTC · original

Data point from a second card and a different trigger — same site.

Machine: RX 9060 XT (Navi 44, RDNA4), Ryzen 9 3900X, 46 GB RAM, Ubuntu, Mesa RADV 26.0.8, ReBAR on (16 GB BAR), Proton Experimental. Built from main (37bb30f) plus two ports (8 GiB address-space spare + host-FidelityFX any output size, from Skrills68/Valhalla-xmem 21d973f/ca81fb7 and trustno1's v2026.11.29.04).

The title stops at the same watchdog null write — victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0) — but for us it is deterministic at frame 0, System Init, in every run that selects the host FidelityFX upscaler (any output size, Series S or X, RT on or off):

Game State: System Init, Frame: 0, TileHeap: used (420Mb) - total (6236Mb)
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there)
  #0  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #1  victory-image-b99f876b74d4a77f.dll+0x2215eca

No XMemVirtualAlloc-refused line precedes it (the 6.5 GB heap is served; the 8 GiB spare reserves fine and is logged), so our instance looks like the title writing through a null FidelityFX context/interface rather than the pool walk you are chasing — but the crashing site is the same one HioShan quoted. Without the host FidelityFX the title runs fine for us (15.2 fps, console FSR, world black — the known fault).

Full test matrix, crash context dumps and log lines: Skrills68/Valhalla-xmem#11 (same build family). Happy to run anything — the box reproduces in under a minute.

**@⁠GustawMatuszewski** on GitHub · 2026-12-02 18:05 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7353924176) Data point from a second card and a different trigger — same site. Machine: RX 9060 XT (Navi 44, RDNA4), Ryzen 9 3900X, 46 GB RAM, Ubuntu, Mesa RADV 26.0.8, ReBAR on (16 GB BAR), Proton Experimental. Built from main (37bb30f) plus two ports (8 GiB address-space spare + host-FidelityFX any output size, from Skrills68/Valhalla-xmem 21d973f/ca81fb7 and trustno1's v2026.11.29.04). The title stops at the same watchdog null write — victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0) — but for us it is **deterministic at frame 0, System Init**, in every run that selects the host FidelityFX upscaler (any output size, Series S or X, RT on or off): Game State: System Init, Frame: 0, TileHeap: used (420Mb) - total (6236Mb) VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there) #0 victory-image-b99f876b74d4a77f.dll+0x2215c35 #1 victory-image-b99f876b74d4a77f.dll+0x2215eca No XMemVirtualAlloc-refused line precedes it (the 6.5 GB heap is served; the 8 GiB spare reserves fine and is logged), so our instance looks like the title writing through a null FidelityFX context/interface rather than the pool walk you are chasing — but the crashing site is the same one HioShan quoted. Without the host FidelityFX the title runs fine for us (15.2 fps, console FSR, world black — the known fault). Full test matrix, crash context dumps and log lines: Skrills68/Valhalla-xmem#11 (same build family). Happy to run anything — the box reproduces in under a minute.
Author
Owner

@⁠AxolotOfficialYT on GitHub · 2026-12-03 21:07 UTC · original · edited 2026-12-03 21:13 UTC

Automatic report by Axolot's AI agent.

Same crash signature as the first crash here: 0xc0000005 at victory-image-...dll+0xad533c, r11=0x4fffffffb. Adding a data point from an RX 7700 XT on the current main.

Environment

  • Repo / commit: lobomfz/VIctory-xmem @ 00aa4d38820e94c2f85d14dcf93ee7e12d9d735f (main, 2026-12-03 12:22 -0600)
  • Build hash: b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93
  • OS / kernel: Arch Linux, Linux 7.3.4-arch1-1
  • CPU / RAM: Ryzen 5 7600X (6c/12t), 30 GiB RAM, 32 GiB swapfile
  • GPU: AMD Radeon RX 7700 XT (Navi 32), 12 GiB VRAM, RADV NAVI32
  • Mesa: repo-built Mesa 26.3.1 (the VUM RADV from setup.sh)
  • Windows stack: GE-Proton11-5 (GE-Proton11-5-x86_64), vkd3d-proton from the repo
  • FSR: PC upscaler 4.1.2 selected, quality preset (1280x720 -> 1920x1080)

Settings

CONSOLE=series-x
VICTORY_PRESET=medium
VICTORY_FSR_4K=quality
VICTORY_BVH_BUILDER=0
VICTORY_POOL_MOVE=1
VICTORY_OUTPUT=1920x1080
VICTORY_FULLSCREEN=1
SWAP_MAX=32G

Launched with ./run.sh play; cgroup MemoryMax=15485M, MemorySwapMax=32G. The crash happened with RT off, not with ray tracing.

Crash

  • Local time: 2026-12-03 21:55:06 CET (20:55:06Z)
  • Uptime in that run: 52m 55s, frame 73378
  • Title: 930.048.020-vb_sub_story, TitleID 7952987a, Anaconda / RETAIL
  • No kernel GPU reset, no OOM kill, no amdgpu fault in the window.
VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x215daba07e: reserved, never committed)
  rax 0xd5daba090 rbx 0x4df rcx 0xb56 rdx 0x4df rsi 0xb56ffff rdi 0xb56 rsp 0x4bffa98 rbp 0x1
  r8 0xd5dac01fc r9 0xd5dac8348 r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x185b r14 0x1 r15 0xd5daba090
  #0  victory-image-b99f876b74d4a77f.dll+0xad533c
  #1  victory-image-b99f876b74d4a77f.dll+0xad524c
  #2  victory-image-b99f876b74d4a77f.dll+0xad5042
  #3  victory-image-b99f876b74d4a77f.dll+0xad4f96
  #4  victory-image-b99f876b74d4a77f.dll+0xad4768
  #5  victory-image-b99f876b74d4a77f.dll+0xbc478
  #6  victory-image-b99f876b74d4a77f.dll+0x4f4b23a
  #7  victory-image-b99f876b74d4a77f.dll+0x4f4b1e0
  #8  victory-image-b99f876b74d4a77f.dll+0x256fb83
  #9  victory-image-b99f876b74d4a77f.dll+0x221c29c
  #10 victory-image-b99f876b74d4a77f.dll+0x2215eca
  #11 kernel32.dll+0x11669
  #12 ntdll.dll+0x10e0f
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x215daba07e: reserved, never committed)

Note the stack here is 2 frames shallower than the #142 crash 1; frames 3-4 differ (+0xad5042 / +0xad4f96 here vs +0xad5054 / +0xad4f96 in #142), but the faulting instruction and registers match (r11=0x4fffffffb, rsi=0xb56ffff, rcx=0xb56).

Title crash context

Game Running Time: 0h:52m:55s
Frame: 73378
Paused: No
TileHeap: used (2234Mb) - total (6236Mb)
Game Virtual: 974525712/1228931056
Game Physical: 1729151824/2305818624
Pool: 591978304/624951280
Version: 930.048.020-vb_sub_story
Camera Position: <-5079.105469, -1891.690552, 2.008899>
Camera Front: <0.000000, 0.999996, 0.002718>
Current Mission Name: 0x30f17e42
Current Mission Stage: 0x30f17e42
Current AnimScene: 0xd8fee489
Player Position: <-5079.542969, -1888.519531, 1.394828>
Wanted Level: 0
Player Health: 190.00/190.00
Current Vehicle: (none)
Pools: BUILDING 5998/22500, VEHICLE 38/700, PED 84/600, OBJECT 3344/27500,
       INSTANCE_LIST 8745/45000, GRASS_INSTANCE_LIST 2040/9000, LIGHT 173/8000

The title's Breakpad handler tried to upload the crash context and minidump to submit.backtrace.io:443; VIctory's net module blocked the connection, so the report stayed local.

Files

  • local/data/7952987A/temp/victory-20261203-215506-256.crash.log (2,648 bytes)
  • local/data/7952987a/temp/38947266-0c04-4c9e-9287-b3d070873160.dmp (461,306 bytes)
  • Session log: local/run/play-20261203-210201.log (34 MB)

I can provide the minidump or the full session log if they would help; I did not attach the dump here.

Reproducibility

First occurrence on this checkout; I have not retried the same route/mission yet. No GPU fault, no OOM, no texture-eviction error immediately before the fault. It looks like the same allocator-list corruption as the two crashes in #142 (the 0xffff link read as 0xffffffff, then *5 = 0x4fffffffb).

Related reports I found while searching: #57, #184, #196, #200. This one matches #142's +0xad533c exactly.

**@⁠AxolotOfficialYT** on GitHub · 2026-12-03 21:07 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7392309385) · edited 2026-12-03 21:13 UTC *Automatic report by Axolot's AI agent.* Same crash signature as the first crash here: `0xc0000005` at `victory-image-...dll+0xad533c`, `r11=0x4fffffffb`. Adding a data point from an RX 7700 XT on the current `main`. ## Environment - **Repo / commit:** `lobomfz/VIctory-xmem` @ `00aa4d38820e94c2f85d14dcf93ee7e12d9d735f` (`main`, 2026-12-03 12:22 -0600) - **Build hash:** `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` - **OS / kernel:** Arch Linux, `Linux 7.3.4-arch1-1` - **CPU / RAM:** Ryzen 5 7600X (6c/12t), 30 GiB RAM, 32 GiB swapfile - **GPU:** AMD Radeon RX 7700 XT (Navi 32), 12 GiB VRAM, RADV NAVI32 - **Mesa:** repo-built Mesa `26.3.1` (the VUM RADV from `setup.sh`) - **Windows stack:** GE-Proton11-5 (`GE-Proton11-5-x86_64`), vkd3d-proton from the repo - **FSR:** PC upscaler `4.1.2` selected, quality preset (`1280x720` -> `1920x1080`) ## Settings ```ini CONSOLE=series-x VICTORY_PRESET=medium VICTORY_FSR_4K=quality VICTORY_BVH_BUILDER=0 VICTORY_POOL_MOVE=1 VICTORY_OUTPUT=1920x1080 VICTORY_FULLSCREEN=1 SWAP_MAX=32G ``` Launched with `./run.sh play`; cgroup `MemoryMax=15485M`, `MemorySwapMax=32G`. The crash happened with **RT off**, not with ray tracing. ## Crash - Local time: **2026-12-03 21:55:06 CET** (`20:55:06Z`) - Uptime in that run: **52m 55s**, frame **73378** - Title: `930.048.020-vb_sub_story`, `TitleID 7952987a`, Anaconda / RETAIL - No kernel GPU reset, no OOM kill, no `amdgpu` fault in the window. ```text VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x215daba07e: reserved, never committed) rax 0xd5daba090 rbx 0x4df rcx 0xb56 rdx 0x4df rsi 0xb56ffff rdi 0xb56 rsp 0x4bffa98 rbp 0x1 r8 0xd5dac01fc r9 0xd5dac8348 r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x185b r14 0x1 r15 0xd5daba090 #0 victory-image-b99f876b74d4a77f.dll+0xad533c #1 victory-image-b99f876b74d4a77f.dll+0xad524c #2 victory-image-b99f876b74d4a77f.dll+0xad5042 #3 victory-image-b99f876b74d4a77f.dll+0xad4f96 #4 victory-image-b99f876b74d4a77f.dll+0xad4768 #5 victory-image-b99f876b74d4a77f.dll+0xbc478 #6 victory-image-b99f876b74d4a77f.dll+0x4f4b23a #7 victory-image-b99f876b74d4a77f.dll+0x4f4b1e0 #8 victory-image-b99f876b74d4a77f.dll+0x256fb83 #9 victory-image-b99f876b74d4a77f.dll+0x221c29c #10 victory-image-b99f876b74d4a77f.dll+0x2215eca #11 kernel32.dll+0x11669 #12 ntdll.dll+0x10e0f VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x215daba07e: reserved, never committed) ``` Note the stack here is 2 frames shallower than the #142 crash 1; frames 3-4 differ (`+0xad5042` / `+0xad4f96` here vs `+0xad5054` / `+0xad4f96` in #142), but the faulting instruction and registers match (`r11=0x4fffffffb`, `rsi=0xb56ffff`, `rcx=0xb56`). ## Title crash context ```text Game Running Time: 0h:52m:55s Frame: 73378 Paused: No TileHeap: used (2234Mb) - total (6236Mb) Game Virtual: 974525712/1228931056 Game Physical: 1729151824/2305818624 Pool: 591978304/624951280 Version: 930.048.020-vb_sub_story Camera Position: <-5079.105469, -1891.690552, 2.008899> Camera Front: <0.000000, 0.999996, 0.002718> Current Mission Name: 0x30f17e42 Current Mission Stage: 0x30f17e42 Current AnimScene: 0xd8fee489 Player Position: <-5079.542969, -1888.519531, 1.394828> Wanted Level: 0 Player Health: 190.00/190.00 Current Vehicle: (none) Pools: BUILDING 5998/22500, VEHICLE 38/700, PED 84/600, OBJECT 3344/27500, INSTANCE_LIST 8745/45000, GRASS_INSTANCE_LIST 2040/9000, LIGHT 173/8000 ``` The title's Breakpad handler tried to upload the crash context and minidump to `submit.backtrace.io:443`; VIctory's net module blocked the connection, so the report stayed local. ## Files - `local/data/7952987A/temp/victory-20261203-215506-256.crash.log` (2,648 bytes) - `local/data/7952987a/temp/38947266-0c04-4c9e-9287-b3d070873160.dmp` (461,306 bytes) - Session log: `local/run/play-20261203-210201.log` (34 MB) I can provide the minidump or the full session log if they would help; I did not attach the dump here. ## Reproducibility First occurrence on this checkout; I have not retried the same route/mission yet. No GPU fault, no OOM, no texture-eviction error immediately before the fault. It looks like the same allocator-list corruption as the two crashes in #142 (the `0xffff` link read as `0xffffffff`, then `*5 = 0x4fffffffb`). Related reports I found while searching: #57, #184, #196, #200. This one matches #142's `+0xad533c` exactly.
Author
Owner

@⁠abomalocaris on GitHub · 2026-12-04 04:14 UTC · original

Another data point: same site, under a second after a menu opened, on main at 00aa4d3

RX 9070 XT 16 GB, Ryzen 7 9800X3D, 32 GB RAM, CachyOS (kernel 7.3.7), proton-cachyos-slr, repo Mesa 26.3.1. main at 00aa4d3 with #342, #216 and #344 merged (their switches off), Series X, 2560x1440 with FSR 4 quality, hardware ray tracing off, VICTORY_PAGES=0.

About 3.5 minutes into a free-roam session, walking up to a clothes rack to try on a hat:

03:31:50.227  input context changed menu=true map=false wheel=false veh=false walking=false
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x215dacc67e: reserved, never committed)
  rax 0xd5dacc690 rbx 0x0 rcx 0xffff rdx 0x0 rsi 0xffffffff rdi 0xffff rsp 0x46ffa98 rbp 0x1
  r8 0xd5dacc690 r9 0xd5dc0c67c r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x0 r14 0x1 r15 0xd5dacc690

Same r11 = 0x4fffffffb, and rax + 4 * r11 + 2 is the faulting address again. Not memory: the card was at 12.7 of 17.0 GB (budget as set), the title reported 79 % memory load, no amdgpu message in the kernel log. One occurrence so far; the same session type ran for 10 minutes several times in scripted tests without it, but those never open a menu.

Written with AI assistance (Claude Code); the runs and observations are from my own machine.

**@⁠abomalocaris** on GitHub · 2026-12-04 04:14 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/142#issuecomment-7400987922) **Another data point: same site, under a second after a menu opened, on `main` at `00aa4d3`** RX 9070 XT 16 GB, Ryzen 7 9800X3D, 32 GB RAM, CachyOS (kernel 7.3.7), `proton-cachyos-slr`, repo Mesa 26.3.1. `main` at `00aa4d3` with #342, #216 and #344 merged (their switches off), Series X, 2560x1440 with FSR 4 quality, hardware ray tracing off, `VICTORY_PAGES=0`. About 3.5 minutes into a free-roam session, walking up to a clothes rack to try on a hat: ``` 03:31:50.227 input context changed menu=true map=false wheel=false veh=false walking=false VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xad533c (write 0x215dacc67e: reserved, never committed) rax 0xd5dacc690 rbx 0x0 rcx 0xffff rdx 0x0 rsi 0xffffffff rdi 0xffff rsp 0x46ffa98 rbp 0x1 r8 0xd5dacc690 r9 0xd5dc0c67c r10 0xaf0 r11 0x4fffffffb r12 0x0 r13 0x0 r14 0x1 r15 0xd5dacc690 ``` Same `r11 = 0x4fffffffb`, and `rax + 4 * r11 + 2` is the faulting address again. Not memory: the card was at 12.7 of 17.0 GB (budget as set), the title reported 79 % memory load, no `amdgpu` message in the kernel log. One occurrence so far; the same session type ran for 10 minutes several times in scripted tests without it, but those never open a menu. _Written with AI assistance (Claude Code); the runs and observations are from my own machine._
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#142
No description provided.