0x80000003 lands in function padding via call [r9+0x30] at the account-picker → world transition; a second crash overruns a 24-byte-stride table; crash-log appends interleave #2025

Open
opened 2026-11-26 04:51:57 +00:00 by github-bot · 8 comments
Owner

@⁠remembering7896 on GitHub · 2026-11-25 03:27 UTC · original

Summary

On the account-picker → first-world transition, the title sometimes takes an indirect call through [r9+0x30] on a fixed global object and lands inside single-byte int3 padding between two functions, raising 0x80000003. It hit 12 times inside one process (12 worker threads, same PC, one shared r9), then on another run the same code path instead died with 0xc0000005 reading past the end of a committed table. Booting to the account picker and the Rockstar/start screens is fine (stable 30 fps, issue #417); this only shows up once the title starts building world state.

Two separate things are worth a look, plus one logging bug (§3).

Build / host

  • main as of 2026-11-25 09:24 local build (victory.exe 7,291,392 B), cargo build --release -p victory
  • Windows 11 Pro 10.0.26300 x64, Ryzen 7 9800X3D, 32 GB, RX 7900 XTX (32.0.32029.2010, Adrenalin)
  • Title: GTA6.Xbox.v1.0.2.1, game_scarlett_master.exe 120,181,760 B, blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93, title id 7952987A
  • Page file 250 GB (commit peak during world entry ~25 GB, so not an allocation failure)
  • Default unimplemented policy (Trap)

crashes.log for that process (E:\victory-data\data\7952987A\crashes.log, header unix time 1795571527 = 2026-11-25 09:52:07):

1. 0x80000003 in the middle of inter-function padding

All 12 records share one PC — victory-image-b99f876b74d4a77f.dll+0x5149aec — and differ only in rbp, r12, rsp, rdi, r10, r11, i.e. distinct threads:

L88  unhandled exception 0x80000003 at ...+0x5149aec
     rax 0x10380001fffe rbx 0xc rcx 0xdfcf8b420 rdx 0xc rsi 0xc rdi 0x1d1d16cf0
     rsp 0x1fbe2ff950 rbp 0xe0 r8 0xffffffff00000000 r9 0x7ffa8bfd1de0 r10 0xd24713680
     r11 0x10 r12 0xc1 r13 0x0 r14 0x1fbe2ffa08 r15 0xd34405a80
     #0 ...+0x5149aec
     #1 ...+0xa5db22
     #2 ...+0x5453ac7
     #3 ...+0x23d0f9a
     #4 ...+0x23d1211
     #5 ...+0x257035e

r9 is byte-identical in all 12 records (0x7ffa8bfd1de0), as are rbx = rdx = rsi = 0xc and r8 = 0xffffffff00000000. rax is 0x10380001fffe in 8 of them and 0xc8e0001fffe in the other 4; rbp spans 0x5…0xc0, r12 spans 0x0…0xb0.

The crash PC is a padding byte, not a stub and not an assertion

Bytes at +0x5149aec (.text, VA 0x1000 / raw 0x400, so file offset 0x5148eec):

AF C2 48 01 C7 48 83 79 18 00 74 08  48 89 FA E8 50 25 F0 FA
48 89 F9 89 F2 E8 26 00 00 00 EB 03  [CC]  31 FF 48 89 F8 48
83 C4 28 5F 5E C3  89 F1 48 83 C4 28 5F 5E 48 FF E0  CC CC CC CC

The byte at the reported PC is CC (single-byte int3), sitting immediately after a jmp short +3 (EB 03) that exists precisely to skip it, and in front of a normal epilogue (xor edi,edi; mov rax,rdi; add rsp,28h; pop rdi; pop rsi; ret). So this is ordinary alignment padding between two functions — something made an indirect call resolve into it.

Also: none of the records contains the VIctory: unimplemented import <dll>!<symbol> called line that thunks.rs's Trap arm writes, so this is not one of our import thunks.

Where the call comes from

Reading the instruction that ends at each reported return address:

frame RVA instruction ending at the return address meaning
#1 0xa5db22 41 FF 51 30 call qword ptr [r9+0x30]
#2 0x5453ac7 E8 19 A0 60 FB direct call rel32
#3 0x23d0f9a E8 16 2B 08 03 direct call rel32

and #3 continues with

4B 89 04 E6        mov [r14+<idx>*8], rax
49 FF C4           inc r12
44 39 E5           cmp ebp, r12d
75 C0              jne -0x40

i.e. it is a loop over elements that calls [obj+0x30] once per element. The shared, fixed r9 means every thread is calling a virtual method on the same global object, and that slot holds an address inside padding.

That would explain the shape of the failure: one bad slot ⇒ every thread that reaches this loop traps at the same PC, with its own rbp/r12 loop counters (which is exactly what the 12 records show).

Question: is +0x30 off that object a slot we populate (vtable built by the loader / a translated dispatch table), or guest data? If it is ours, this looks like one entry getting the address of padding rather than the real method — e.g. an offset resolved from a neighbouring symbol, or a relocation applied to the wrong slot.

2. 0xc0000005 reading past the end of a table (same code path, different run)

unix time 1795574422 = 2026-11-25 11:12:22, pid 25672:

unhandled exception 0xc0000005 at ...+0x28cd253 (read 0x505a30010: reserved, never committed)
  rax 0x7ffa50bcffff rbx 0xd3283f428 rcx 0x50598c1b0 rdx 0x7c00 rsi 0x7c00 rdi 0x50598c1b0
  rsp 0x78359fb6a8 rbp 0x1 r8 0x286030a358a789fb r9 0x6d44 r10 0x147cc r11 0x2c
  r12 0x78359fbd00 r13 0x71 r14 0xd341aaa78 r15 0x50598c000
  #0 ...+0x28cd253
  #1 ...+0x3832c
  #2 ...+0x2a8a8b1
  #3 ...+0x259390c
  #4 ...+0x2592d69

Code at +0x28cd253:

FF 85 D2 74 1D    (…) test/je
45 31 C9          xor  r9d, r9d
45 0F B7 D1       movzx r10d, r9w        ; 16-bit index
4F 8D 14 52       lea  r10, [r10+r10*2]  ; ×3  -> 24-byte stride
4E 39 04 D1       cmp  [rcx+r10*8], r8   ; ← faults here
74 0D             je   found
41 FF C1          inc  r9d
45 0F B7 D1       movzx r10d, r9w
41 39 D2          cmp  r10d, rdx         ; ... 

With rcx = 0x50598c1b0 (table base, allocation base r15 = 0x50598c000) and r10 = 0x147cc:

0x50598c1b0 + 0x147cc * 8 = 0x50598c1b0 + 0xa3e60 = 0x505a30010   ← exactly the faulting address

So a lookup walks a 24-byte-stride entry table with a 16-bit counter and runs off the end of the committed region without meeting whatever terminator it is looking for (r8 = 0x286030a358a789fb never matches). Either the table's terminating entry is missing/not written, or the count/size handed to the title is short. (For reference, the same file recorded 0x887A0004/0x887A0006 device-removed failures earlier in the day, before the page file was enlarged; those are gone now.)

3. crashes.log appends are unsynchronised

The header line of the process above is interleaved:

L85: unix time unix time unix time unix time 17955715271795571527, process unix time 1074417955715271795571527, process 1795571527

Multiple threads (12 of them, per §1) wrote their records concurrently into the same file with no lock, so a parser can no longer split records by the unix time …, process … prefix. Worth a mutex around the record append (or a single dedicated writer), since the trap path is exactly the multi-thread case.

What I already ruled out

  • Not an unimplemented-import trap: no unimplemented import line in any record, and --unimplemented zero (110 s) never produced this crash — it instead sits at the account picker at a steady 30 fps and never advances.
  • Not memory exhaustion: commit peaks at ~25 GB with a 250 GB page file, and the failure is a read of reserved, never committed, not an allocation failure.
  • Not device removal: no host GPU device removed record after the page-file fix.
  • A --profile diag --features diagnostics run with VICTORY_LOG=debug reached the world (~T+50 s, 3610 draws) with no trap at all, so the failure is intermittent — it appears to depend on where the title is in world bring-up, not on the first frame.

Happy to run anything you want instrumented (VICTORY_STACKS, extra tracing at thunks.rs, or a build that dumps the object at r9 and the pointer in [r9+0x30] when the loop starts).

**@⁠remembering7896** on GitHub · 2026-11-25 03:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025) ## Summary On the account-picker → first-world transition, the title sometimes takes an indirect call through `[r9+0x30]` on a fixed global object and lands **inside single-byte `int3` padding between two functions**, raising `0x80000003`. It hit 12 times inside one process (12 worker threads, same PC, one shared `r9`), then on another run the same code path instead died with `0xc0000005` reading *past the end of a committed table*. Booting to the account picker and the Rockstar/start screens is fine (stable 30 fps, issue #417); this only shows up once the title starts building world state. Two separate things are worth a look, plus one logging bug (§3). ## Build / host - `main` as of 2026-11-25 09:24 local build (`victory.exe` 7,291,392 B), `cargo build --release -p victory` - Windows 11 Pro 10.0.26300 x64, Ryzen 7 9800X3D, 32 GB, RX 7900 XTX (32.0.32029.2010, Adrenalin) - Title: `GTA6.Xbox.v1.0.2.1`, `game_scarlett_master.exe` 120,181,760 B, blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`, title id `7952987A` - Page file 250 GB (commit peak during world entry ~25 GB, so not an allocation failure) - Default `unimplemented` policy (`Trap`) `crashes.log` for that process (`E:\victory-data\data\7952987A\crashes.log`, header `unix time 1795571527` = 2026-11-25 09:52:07): ## 1. `0x80000003` in the middle of inter-function padding All 12 records share one PC — `victory-image-b99f876b74d4a77f.dll+0x5149aec` — and differ only in `rbp`, `r12`, `rsp`, `rdi`, `r10`, `r11`, i.e. distinct threads: ``` L88 unhandled exception 0x80000003 at ...+0x5149aec rax 0x10380001fffe rbx 0xc rcx 0xdfcf8b420 rdx 0xc rsi 0xc rdi 0x1d1d16cf0 rsp 0x1fbe2ff950 rbp 0xe0 r8 0xffffffff00000000 r9 0x7ffa8bfd1de0 r10 0xd24713680 r11 0x10 r12 0xc1 r13 0x0 r14 0x1fbe2ffa08 r15 0xd34405a80 #0 ...+0x5149aec #1 ...+0xa5db22 #2 ...+0x5453ac7 #3 ...+0x23d0f9a #4 ...+0x23d1211 #5 ...+0x257035e ``` `r9` is **byte-identical in all 12 records** (`0x7ffa8bfd1de0`), as are `rbx = rdx = rsi = 0xc` and `r8 = 0xffffffff00000000`. `rax` is `0x10380001fffe` in 8 of them and `0xc8e0001fffe` in the other 4; `rbp` spans `0x5`…`0xc0`, `r12` spans `0x0`…`0xb0`. ### The crash PC is a padding byte, not a stub and not an assertion Bytes at `+0x5149aec` (`.text`, VA `0x1000` / raw `0x400`, so file offset `0x5148eec`): ``` AF C2 48 01 C7 48 83 79 18 00 74 08 48 89 FA E8 50 25 F0 FA 48 89 F9 89 F2 E8 26 00 00 00 EB 03 [CC] 31 FF 48 89 F8 48 83 C4 28 5F 5E C3 89 F1 48 83 C4 28 5F 5E 48 FF E0 CC CC CC CC ``` The byte at the reported PC is `CC` (single-byte `int3`), sitting immediately after a `jmp short +3` (`EB 03`) that exists precisely to skip it, and in front of a normal epilogue (`xor edi,edi; mov rax,rdi; add rsp,28h; pop rdi; pop rsi; ret`). So this is ordinary alignment padding between two functions — something made an indirect call resolve into it. Also: **none** of the records contains the `VIctory: unimplemented import <dll>!<symbol> called` line that `thunks.rs`'s `Trap` arm writes, so this is not one of our import thunks. ### Where the call comes from Reading the instruction that ends at each reported return address: | frame | RVA | instruction ending at the return address | meaning | |---|---|---|---| | #1 | `0xa5db22` | `41 FF 51 30` | `call qword ptr [r9+0x30]` | | #2 | `0x5453ac7` | `E8 19 A0 60 FB` | direct `call rel32` | | #3 | `0x23d0f9a` | `E8 16 2B 08 03` | direct `call rel32` | and `#3` continues with ``` 4B 89 04 E6 mov [r14+<idx>*8], rax 49 FF C4 inc r12 44 39 E5 cmp ebp, r12d 75 C0 jne -0x40 ``` i.e. it is a **loop over elements that calls `[obj+0x30]` once per element**. The shared, fixed `r9` means every thread is calling a virtual method on the *same global object*, and that slot holds an address inside padding. That would explain the shape of the failure: one bad slot ⇒ every thread that reaches this loop traps at the same PC, with its own `rbp`/`r12` loop counters (which is exactly what the 12 records show). **Question:** is `+0x30` off that object a slot we populate (vtable built by the loader / a translated dispatch table), or guest data? If it is ours, this looks like one entry getting the address of padding rather than the real method — e.g. an offset resolved from a neighbouring symbol, or a relocation applied to the wrong slot. ## 2. `0xc0000005` reading past the end of a table (same code path, different run) `unix time 1795574422` = 2026-11-25 11:12:22, pid 25672: ``` unhandled exception 0xc0000005 at ...+0x28cd253 (read 0x505a30010: reserved, never committed) rax 0x7ffa50bcffff rbx 0xd3283f428 rcx 0x50598c1b0 rdx 0x7c00 rsi 0x7c00 rdi 0x50598c1b0 rsp 0x78359fb6a8 rbp 0x1 r8 0x286030a358a789fb r9 0x6d44 r10 0x147cc r11 0x2c r12 0x78359fbd00 r13 0x71 r14 0xd341aaa78 r15 0x50598c000 #0 ...+0x28cd253 #1 ...+0x3832c #2 ...+0x2a8a8b1 #3 ...+0x259390c #4 ...+0x2592d69 ``` Code at `+0x28cd253`: ``` FF 85 D2 74 1D (…) test/je 45 31 C9 xor r9d, r9d 45 0F B7 D1 movzx r10d, r9w ; 16-bit index 4F 8D 14 52 lea r10, [r10+r10*2] ; ×3 -> 24-byte stride 4E 39 04 D1 cmp [rcx+r10*8], r8 ; ← faults here 74 0D je found 41 FF C1 inc r9d 45 0F B7 D1 movzx r10d, r9w 41 39 D2 cmp r10d, rdx ; ... ``` With `rcx = 0x50598c1b0` (table base, allocation base `r15 = 0x50598c000`) and `r10 = 0x147cc`: ``` 0x50598c1b0 + 0x147cc * 8 = 0x50598c1b0 + 0xa3e60 = 0x505a30010 ← exactly the faulting address ``` So a lookup walks a 24-byte-stride entry table with a 16-bit counter and runs off the end of the committed region without meeting whatever terminator it is looking for (`r8 = 0x286030a358a789fb` never matches). Either the table's terminating entry is missing/not written, or the count/size handed to the title is short. (For reference, the same file recorded `0x887A0004`/`0x887A0006` device-removed failures earlier in the day, before the page file was enlarged; those are gone now.) ## 3. `crashes.log` appends are unsynchronised The header line of the process above is interleaved: ``` L85: unix time unix time unix time unix time 17955715271795571527, process unix time 1074417955715271795571527, process 1795571527 ``` Multiple threads (12 of them, per §1) wrote their records concurrently into the same file with no lock, so a parser can no longer split records by the `unix time …, process …` prefix. Worth a mutex around the record append (or a single dedicated writer), since the trap path is exactly the multi-thread case. ## What I already ruled out - Not an unimplemented-import trap: no `unimplemented import` line in any record, and `--unimplemented zero` (110 s) never produced this crash — it instead sits at the account picker at a steady 30 fps and never advances. - Not memory exhaustion: `commit` peaks at ~25 GB with a 250 GB page file, and the failure is a read of `reserved, never committed`, not an allocation failure. - Not device removal: no `host GPU device removed` record after the page-file fix. - A `--profile diag --features diagnostics` run with `VICTORY_LOG=debug` reached the world (~T+50 s, 3610 draws) with no trap at all, so the failure is intermittent — it appears to depend on where the title is in world bring-up, not on the first frame. Happy to run anything you want instrumented (`VICTORY_STACKS`, extra tracing at `thunks.rs`, or a build that dumps the object at `r9` and the pointer in `[r9+0x30]` when the loop starts).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:51:57 +00:00
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 04:42 UTC · original

On §1: +0x5149aec isn't a call into padding. It's the title's own int 3 in a lock-free pool allocator, hit when the pool is empty. I decoded the same site earlier on an RTX 3050 laptop (#1232), and your registers match it exactly.

Disassembly of the same image (b99f876b…, image base 0x140000000), from the function's entry:

+0x5149a60  lea   rcx,[+0x2055960]
            cmp   rax,rcx                    ; the method expected here?
            jne   +0x5149af9
+0x5149a70  mov   rcx,[+0xa9ec938]           ; a fixed global pool object
            mov   r8,0FFFFFFFF00000000h      ; your r8, in all 12 records
            mov   rax,[rcx+20h]              ; the pool's free-list head
            cmp   eax,1FFFEh                 ; low 32 bits == empty marker?
            je    +0x5149aec                 ; -> int 3
            ...   lock cmpxchg [rcx+20h],r11 ; pop a node (tag in the high 32 bits)
            ...
            test  rdi,rdi
            je    +0x5149aec                 ; -> int 3
            ...
+0x5149aec  int   3                          ; the reported PC
            xor   edi,edi                    ; return null
  • The int 3 is a branch target (two jes), not padding between functions. The EB 03 before it is the success path jumping over it to the shared epilogue.
  • Both of your rax values end in the empty marker: 0x10380001fffe and 0xc8e0001fffe both have low 32 bits 0x0001fffe. The high 32 bits are the ABA tag, which is why they differ between records.
  • r8 = 0xffffffff00000000 is the tag mask loaded just above.
  • call [r9+0x30] at +0xa5db22 reached the right function (+0x5149a60, a normal entry). Twelve threads trap at one PC because they all allocate from the same global pool, and it's empty. It isn't a bad vtable slot of ours.

So the question is why the pool runs dry during world entry, not where a bad pointer came from. On the laptop it came with very low frame rates (0.1–0.4 fps): the title seemed to return nodes to the pool only as frames complete, so they piled up. Your machine is far faster, so a slow-frame explanation is less obvious there. Something else that holds nodes (a fence or completion the title waits on before freeing) would fit too. I haven't identified which pool this is, or what it holds.

AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and wrote this; no game data beyond addresses and instructions.

**@⁠AgneyaK** on GitHub · 2026-11-25 04:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153095171) On §1: `+0x5149aec` isn't a call into padding. **It's the title's own `int 3` in a lock-free pool allocator, hit when the pool is empty.** I decoded the same site earlier on an RTX 3050 laptop (#1232), and your registers match it exactly. Disassembly of the same image (`b99f876b…`, image base `0x140000000`), from the function's entry: ``` +0x5149a60 lea rcx,[+0x2055960] cmp rax,rcx ; the method expected here? jne +0x5149af9 +0x5149a70 mov rcx,[+0xa9ec938] ; a fixed global pool object mov r8,0FFFFFFFF00000000h ; your r8, in all 12 records mov rax,[rcx+20h] ; the pool's free-list head cmp eax,1FFFEh ; low 32 bits == empty marker? je +0x5149aec ; -> int 3 ... lock cmpxchg [rcx+20h],r11 ; pop a node (tag in the high 32 bits) ... test rdi,rdi je +0x5149aec ; -> int 3 ... +0x5149aec int 3 ; the reported PC xor edi,edi ; return null ``` - **The `int 3` is a branch target** (two `je`s), not padding between functions. The `EB 03` before it is the success path jumping over it to the shared epilogue. - **Both of your `rax` values end in the empty marker:** `0x10380001fffe` and `0xc8e0001fffe` both have low 32 bits `0x0001fffe`. The high 32 bits are the ABA tag, which is why they differ between records. - `r8 = 0xffffffff00000000` is the tag mask loaded just above. - **`call [r9+0x30]` at `+0xa5db22` reached the right function** (`+0x5149a60`, a normal entry). Twelve threads trap at one PC because they all allocate from the same global pool, and it's empty. It isn't a bad vtable slot of ours. So the question is **why the pool runs dry** during world entry, not where a bad pointer came from. On the laptop it came with very low frame rates (0.1–0.4 fps): the title seemed to return nodes to the pool only as frames complete, so they piled up. Your machine is far faster, so a slow-frame explanation is less obvious there. Something else that holds nodes (a fence or completion the title waits on before freeing) would fit too. I haven't identified which pool this is, or what it holds. AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and wrote this; no game data beyond addresses and instructions.
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 04:43 UTC · original

On §2, the registers say a bit more than "ran off the end". The table's own count says it's longer than the memory that's committed for it:

  • The loop's bound is edx = 0x7c00 (also in rsi): 31,744 entries of 24 bytes. The index is r9 = 0x6d44 = 27,972, and 0x6d44 × 24 = 0xa3e60, which is exactly fault − rcx. So it faulted at entry 27,972 of 31,744 (88%), well inside the count.
  • From the allocation base r15 = 0x50598c000: the table needs 0x1b0 + 0x7c00 × 24 = 0xba1b0 bytes, but memory is committed only to 0x505a30000, i.e. 0xa4000 bytes. That boundary is 64 KiB-aligned; the base itself isn't (…c000).

So the walk didn't miss a terminator. It was still within the entries it was told exist, and the tail of the table was never committed (reserved, never committed). That points at who sized or committed this block, rather than at the table's contents: a short commit of a reserved range, or the title committing on demand in steps the host didn't follow. I haven't found which allocation call made it. A VICTORY_LOG trace of xmem / VirtualAlloc calls covering 0x50598c000, with reserve and commit sizes, would settle whether the title asked for 0xba1b0+ and got less.

AI use: Claude Code (Claude Opus 5.5) did the arithmetic from the registers in the report and wrote this.

**@⁠AgneyaK** on GitHub · 2026-11-25 04:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153104501) On §2, the registers say a bit more than "ran off the end". **The table's own count says it's longer than the memory that's committed for it:** - The loop's bound is `edx = 0x7c00` (also in `rsi`): 31,744 entries of 24 bytes. The index is `r9 = 0x6d44` = 27,972, and `0x6d44 × 24 = 0xa3e60`, which is exactly `fault − rcx`. So it faulted at entry 27,972 of 31,744 (88%), well inside the count. - From the allocation base `r15 = 0x50598c000`: the table needs `0x1b0 + 0x7c00 × 24` = **`0xba1b0` bytes**, but memory is committed only to `0x505a30000`, i.e. **`0xa4000` bytes**. That boundary is 64 KiB-aligned; the base itself isn't (`…c000`). So the walk didn't miss a terminator. It was still within the entries it was told exist, and the tail of the table was never committed (`reserved, never committed`). That points at who sized or committed this block, rather than at the table's contents: a short commit of a reserved range, or the title committing on demand in steps the host didn't follow. I haven't found which allocation call made it. A `VICTORY_LOG` trace of `xmem` / `VirtualAlloc` calls covering `0x50598c000`, with reserve and commit sizes, would settle whether the title asked for `0xba1b0`+ and got less. AI use: Claude Code (Claude Opus 5.5) did the arithmetic from the registers in the report and wrote this.
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 04:45 UTC · original

A candidate for §2's uncommitted tail, in our own code. XMemVirtualAlloc documents a shortcut: a reservation of 64 KiB pages becomes a host placeholder, and "committing part of such a reservation later would fail (Grand Theft Auto VI's 23 calls never do)". The tail boundary here is 64 KiB-aligned (0x505a30000), which fits that kind of reservation.

I checked the shortcut with a throwaway unit test on main 940d32f (Windows 11 26300):

reserve 4 x 64 KiB with MEM_RESERVE | 64K pages         -> 0x100000000
  commit 1 page inside it  (MEM_COMMIT | 64K pages)       -> null
  commit all 4 pages       (MEM_COMMIT | 64K pages)       -> null
plain reservation, commit 1 page inside                   -> ok

So if the title commits into such a reservation on the way into the world (not just at boot, where it was counted), it gets null back, and the range stays reserved, as your fault says.

Could you check that run's log for either of these warnings shortly before the fault? VICTORY_LOG at the default level shows them:

  • committing virtual memory failed (with len)
  • XMemVirtualAlloc refused (with size, kind and flags)

If one is there with a len around 0x10000–0xba000, this is the cause, and the fix is the one the comment names: replace that part of the placeholder with committed memory. If neither is there, it's something else (for example XMemMapPhysicalPages not mapping the last page), and I'll look there instead.

AI use: Claude Code (Claude Opus 5.5) wrote the probe and this; the results are from the run described.

**@⁠AgneyaK** on GitHub · 2026-11-25 04:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153130985) A candidate for §2's uncommitted tail, in our own code. `XMemVirtualAlloc` documents a shortcut: a reservation of 64 KiB pages becomes a host **placeholder**, and "committing part of such a reservation later would fail (Grand Theft Auto VI's 23 calls never do)". The tail boundary here is 64 KiB-aligned (`0x505a30000`), which fits that kind of reservation. I checked the shortcut with a throwaway unit test on `main` `940d32f` (Windows 11 26300): ``` reserve 4 x 64 KiB with MEM_RESERVE | 64K pages -> 0x100000000 commit 1 page inside it (MEM_COMMIT | 64K pages) -> null commit all 4 pages (MEM_COMMIT | 64K pages) -> null plain reservation, commit 1 page inside -> ok ``` So if the title commits into such a reservation on the way into the world (not just at boot, where it was counted), it gets null back, and the range stays reserved, as your fault says. **Could you check that run's log** for either of these warnings shortly before the fault? `VICTORY_LOG` at the default level shows them: - `committing virtual memory failed` (with `len`) - `XMemVirtualAlloc refused` (with `size`, `kind` and `flags`) If one is there with a `len` around `0x10000`–`0xba000`, this is the cause, and the fix is the one the comment names: replace that part of the placeholder with committed memory. If neither is there, it's something else (for example `XMemMapPhysicalPages` not mapping the last page), and I'll look there instead. AI use: Claude Code (Claude Opus 5.5) wrote the probe and this; the results are from the run described.
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 04:45 UTC · original

One data point against my lead above, for balance: none of the 62 title logs on my machine (RTX 3050 laptop, 2026-11-24/25) has committing virtual memory failed, committing physical pages failed or XMemVirtualAlloc refused. That includes three 7–8.5-minute story-load runs (older main + PRs), which stopped before the world. So up to the story load the title never commits into a 64 KiB-page reservation here. It could still start at world entry, which I can't reach, so your log is what decides it.

AI use: Claude Code (Claude Opus 5.5) searched the local logs and wrote this.

**@⁠AgneyaK** on GitHub · 2026-11-25 04:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153138679) One data point against my lead above, for balance: none of the 62 title logs on my machine (RTX 3050 laptop, 2026-11-24/25) has `committing virtual memory failed`, `committing physical pages failed` or `XMemVirtualAlloc refused`. That includes three 7–8.5-minute story-load runs (older `main` + PRs), which stopped before the world. So up to the story load the title never commits into a 64 KiB-page reservation here. It could still start at world entry, which I can't reach, so your log is what decides it. AI use: Claude Code (Claude Opus 5.5) searched the local logs and wrote this.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 04:55 UTC · original · edited 2026-11-25 15:23 UTC

Partial progress on sections 1-2 (claimed in #1633), reported honestly since I could not confirm it live.

A candidate mechanism, from VIctory's own source only (no game data): crates/victory-gpu/src/watch.rs lines 33-35 document an accepted limitation:

shortcut: a system call writing into a guarded block fails; the known ones (file reads, DirectStorage) open their blocks first. Memory freed and allocated again while a tracker holds it is not seen.

The unmarked copy-back path, Shadow::copy_back_or_not (shadow.rs:339), keeps a per-submission "before" snapshot of title memory a GPU list may write, and writes GPU-changed bytes back into title memory once the submission completes. Nothing ties that pending snapshot to watch::title_memory_remapped: if the title frees and reallocates (or remaps) a title-memory range while a submission covering it is still between writing() and copy_back_or_not(), the stale "before" snapshot could be compared against, and written back over, memory that by then holds something unrelated — which would explain object state (e.g. a vtable pointer) going bad intermittently, exactly during the heavy alloc/free/remap churn of world loading. This is a hypothesis grounded in a documented gap, not a confirmed cause — I have not proven this is what happened in your two records.

What I could and couldn't verify locally: Windows 11 (10.0.26300), RTX 3080 (621.24), with the same title build as the report (its blake3 prefix matches). cargo build --release --features diagnostics succeeded at upstream 940d32f. Two scripted runs (VICTORY_KEYS) both ended in device removal before reaching the account-picker→world transition, for reasons unrelated to this issue:

  • Run 1: no host texture for Xbox-only format 115 (2560x1440), then device removed — this is #1781/#1753, already tracked and has an open fix (#1775).
  • Run 2 (same build, with #1775 merged locally for testing only, not proposed here): got further, then device removed with 0x887A0006 after a 5.8 s submission of 26 compute lists — the already-tracked NVIDIA world-hang (#1670/#1317/#1968 territory).

So on this hardware I cannot reach the code path #2025 describes at all right now; I can't corroborate or rule out the watch.rs hypothesis with a live run. The original report's AMD RX 7900 XTX evidently gets further than NVIDIA does here.

Suggested next step for whoever has a reliable repro (AMD, per the original report): the diagnostic you offered — dumping the object at r9 and [r9+0x30] when the loop starts, and checking whether that address falls inside a range victory-gpu's watch/shadow modules are tracking versus a plain title allocation — would directly confirm or rule this out, without needing any game-internal knowledge beyond "is this address one of ours."

I'm releasing the claim rather than sitting on it, since I can't currently reproduce the scenario to take this further myself.

AI-assisted (Claude Code). No game files, disassembly, or raw logs are included above; addresses/instruction shapes already public in the issue body aren't repeated.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 04:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153286597) · edited 2026-11-25 15:23 UTC Partial progress on sections 1-2 (claimed in #1633), reported honestly since I could not confirm it live. **A candidate mechanism, from VIctory's own source only (no game data):** `crates/victory-gpu/src/watch.rs` lines 33-35 document an accepted limitation: > shortcut: a system call writing into a guarded block fails; the known ones (file reads, DirectStorage) open their blocks first. Memory freed and allocated again while a tracker holds it is not seen. The unmarked copy-back path, `Shadow::copy_back_or_not` (`shadow.rs:339`), keeps a per-submission "before" snapshot of title memory a GPU list may write, and writes GPU-changed bytes back into title memory once the submission completes. Nothing ties that pending snapshot to `watch::title_memory_remapped`: if the title frees and reallocates (or remaps) a title-memory range while a submission covering it is still between `writing()` and `copy_back_or_not()`, the stale "before" snapshot could be compared against, and written back over, memory that by then holds something unrelated — which would explain object state (e.g. a vtable pointer) going bad intermittently, exactly during the heavy alloc/free/remap churn of world loading. This is a hypothesis grounded in a documented gap, not a confirmed cause — I have not proven this is what happened in your two records. **What I could and couldn't verify locally:** Windows 11 (10.0.26300), RTX 3080 (621.24), with the same title build as the report (its blake3 prefix matches). `cargo build --release --features diagnostics` succeeded at upstream `940d32f`. Two scripted runs (`VICTORY_KEYS`) both ended in **device removal before reaching the account-picker→world transition**, for reasons unrelated to this issue: - Run 1: `no host texture` for Xbox-only format 115 (2560x1440), then device removed — this is #1781/#1753, already tracked and has an open fix (#1775). - Run 2 (same build, with #1775 merged locally for testing only, not proposed here): got further, then device removed with `0x887A0006` after a 5.8 s submission of 26 compute lists — the already-tracked NVIDIA world-hang (#1670/#1317/#1968 territory). So on this hardware I cannot reach the code path #2025 describes at all right now; I can't corroborate or rule out the watch.rs hypothesis with a live run. The original report's AMD RX 7900 XTX evidently gets further than NVIDIA does here. **Suggested next step for whoever has a reliable repro (AMD, per the original report):** the diagnostic you offered — dumping the object at `r9` and `[r9+0x30]` when the loop starts, and checking whether that address falls inside a range `victory-gpu`'s `watch`/`shadow` modules are tracking versus a plain title allocation — would directly confirm or rule this out, without needing any game-internal knowledge beyond "is this address one of ours." I'm releasing the claim rather than sitting on it, since I can't currently reproduce the scenario to take this further myself. AI-assisted (Claude Code). No game files, disassembly, or raw logs are included above; addresses/instruction shapes already public in the issue body aren't repeated.
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 05:14 UTC · original

Thanks for writing that up. One check of the copy-back idea against the two records, so the reporter knows which logs would still help:

  • §2 faults on memory that is reserved, never committed. A stale copy-back writes into title memory that is committed (it can put wrong bytes there, or fault on the GPU side's own thread). It can't leave the tail of the table uncommitted, and the table's own count (31,744 entries, fault at 27,972) says the title expected those pages to exist. So §2 still points at how that block was reserved and committed.
  • §1 isn't a bad vtable pointer: call [r9+0x30] reached the right function, and the int 3 at +0x5149aec is the title's pool-empty assert (rax's low 32 bits are the empty marker 0x1fffe in every record). Stale bytes inside the pool's free list could in theory make it look empty, but the 12 threads trapping together at one PC fit a pool that really ran dry.

So for §2 the most useful thing from the reporter is still that run's log near the fault: committing virtual memory failed, XMemVirtualAlloc refused, or VICTORY_LOG=victory_hle=debug lines for XMemVirtualAlloc with an at near 0x50598c000. The watch/copy-back gap you quote is real, but these two records don't need it.

AI use: Claude Code (Claude Opus 5.5) wrote this from the decodes above; nothing new was run.

**@⁠AgneyaK** on GitHub · 2026-11-25 05:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153580558) Thanks for writing that up. One check of the copy-back idea against the two records, so the reporter knows which logs would still help: - **§2 faults on memory that is `reserved, never committed`.** A stale copy-back writes into title memory that is committed (it can put wrong bytes there, or fault on the GPU side's own thread). It can't leave the tail of the table uncommitted, and the table's own count (31,744 entries, fault at 27,972) says the title expected those pages to exist. So §2 still points at how that block was reserved and committed. - **§1 isn't a bad vtable pointer:** `call [r9+0x30]` reached the right function, and the `int 3` at `+0x5149aec` is the title's pool-empty assert (`rax`'s low 32 bits are the empty marker `0x1fffe` in every record). Stale bytes inside the pool's free list could in theory make it look empty, but the 12 threads trapping together at one PC fit a pool that really ran dry. So for §2 the most useful thing from the reporter is still that run's log near the fault: `committing virtual memory failed`, `XMemVirtualAlloc refused`, or `VICTORY_LOG=victory_hle=debug` lines for `XMemVirtualAlloc` with an `at` near `0x50598c000`. The watch/copy-back gap you quote is real, but these two records don't need it. AI use: Claude Code (Claude Opus 5.5) wrote this from the decodes above; nothing new was run.
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-25 05:25 UTC · original

Which pool §1 runs out of: the one the title's config calls building. Decoded from image b99f876b… (base 0x140000000):

+0x5ad8e40  mov  rax,[+0xabbeef0]          ; the title's config table
            mov  r8d,5411E15Ch             ; name hash
            mov  r9d,1                     ; default
            call +0x50cef40                ; -> esi = pool size from the config
            ...
            mov  ecx,38h / call +0x4f97130 ; the pool object
            mov  edx,esi                   ; count
            mov  r8d,0E0h                  ; node size: 224 bytes
            call +0x16cbe00                ; init: storage count*0xE0 (64-byte aligned) + a u32 per node
+0x5ad8eac  mov  [+0xa9ec938],rdi          ; the global that +0x5149a70 reads

0x5411E15C is the one-at-a-time ("joaat") hash of the string building, which is in the image. I hashed all 558,443 strings in the image, and that's the only match. So the allocator at +0x5149a60 that traps when the free list's low 32 bits are 0x1fffe hands out the title's building entries. That fits the moment both reports hit it: entering the world, when the map streams in.

What that means:

  • VIctory doesn't size this pool. The size comes from the title's own config data, so it's the same as on a console. Running dry means more building entries are alive at once than the title ever has on the console: they're created faster than they're released, or they aren't released.
  • One possibility, not checked: releasing a streamed-out building may wait on something tied to GPU or frame progress (a fence, or N frames presented). On the RTX 3050 laptop (#1232) the world-entry frames ran at 0.1–0.4 fps, and the same assert fired after 8–9 minutes of loading, which would fit releases lagging behind loads. On your much faster card, a completion that never signals (a fence value, or a stuck submission) would do the same.
  • I haven't decoded the release path yet. The pool global +0xa9ec938 is read at 15 other sites (for example +0x33b267, +0xd63f69, +0x21c0808, +0x5565d7b, +0x5897484, +0x5adb024), and the free path is among them.

AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and matched the hash against the image's strings; no game data beyond addresses, instructions and a hash name.

**@⁠AgneyaK** on GitHub · 2026-11-25 05:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7153763575) **Which pool §1 runs out of:** the one the title's config calls **`building`**. Decoded from image `b99f876b…` (base `0x140000000`): ``` +0x5ad8e40 mov rax,[+0xabbeef0] ; the title's config table mov r8d,5411E15Ch ; name hash mov r9d,1 ; default call +0x50cef40 ; -> esi = pool size from the config ... mov ecx,38h / call +0x4f97130 ; the pool object mov edx,esi ; count mov r8d,0E0h ; node size: 224 bytes call +0x16cbe00 ; init: storage count*0xE0 (64-byte aligned) + a u32 per node +0x5ad8eac mov [+0xa9ec938],rdi ; the global that +0x5149a70 reads ``` `0x5411E15C` is the one-at-a-time ("joaat") hash of the string `building`, which is in the image. I hashed all 558,443 strings in the image, and that's the only match. So the allocator at `+0x5149a60` that traps when the free list's low 32 bits are `0x1fffe` hands out the title's **building** entries. That fits the moment both reports hit it: entering the world, when the map streams in. What that means: - **VIctory doesn't size this pool.** The size comes from the title's own config data, so it's the same as on a console. Running dry means more building entries are alive at once than the title ever has on the console: they're created faster than they're released, or they aren't released. - One possibility, not checked: releasing a streamed-out building may wait on something tied to GPU or frame progress (a fence, or N frames presented). On the RTX 3050 laptop (#1232) the world-entry frames ran at 0.1–0.4 fps, and the same assert fired after 8–9 minutes of loading, which would fit releases lagging behind loads. On your much faster card, a completion that never signals (a fence value, or a stuck submission) would do the same. - I haven't decoded the release path yet. The pool global `+0xa9ec938` is read at 15 other sites (for example `+0x33b267`, `+0xd63f69`, `+0x21c0808`, `+0x5565d7b`, `+0x5897484`, `+0x5adb024`), and the free path is among them. AI use: Claude Code (Claude Opus 5.5) disassembled the image locally and matched the hash against the image's strings; no game data beyond addresses, instructions and a hash name.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:51 UTC · original

Automated triage for the maintainers.

Thanks, a detailed report: RX 7900 XTX, driver 32.0.32029.2010, Windows 11 26300, a main build of 2026-11-25 (please add the commit, git rev-parse --short HEAD).

  • §3 (interleaved crashes.log records): confirmed in main (940d32f). append_to_log in crates/victory-loader/src/crash.rs opens the file in append mode and writes the record with an unbuffered write! and no lock, so concurrent crash reports from several threads can interleave their pieces. Building the record into one string and writing it under a lock (or with one write_all) would fix it.
  • §1 (0x80000003 at +0x5149aec): per the comments, this is the title's own assert when a fixed-size pool runs empty during world entry, not a call through a bad pointer of ours; #1232 reports the same assert on a slower laptop. What keeps entries alive longer than on the console is open.
  • §2 (0xc0000005 reading reserved, never committed memory): still needs that run's log. Please paste, as text, any committing virtual memory failed or XMemVirtualAlloc refused lines shortly before the fault; they would show whether a commit into a 64 KiB-page reservation was refused (the documented shortcut in XMemVirtualAlloc, crates/victory-hle/src/modules/xmem.rs).

Disassembly and decoded internals of the title's code must not be posted in this tracker; please keep to offsets and register values.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/2025#issuecomment-7162950774) <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-25T05:25:57Z at=2026-11-25T12:51:10Z --> Automated triage for the maintainers. Thanks, a detailed report: RX 7900 XTX, driver 32.0.32029.2010, Windows 11 26300, a `main` build of 2026-11-25 (please add the commit, `git rev-parse --short HEAD`). - **§3 (interleaved `crashes.log` records): confirmed in `main` (`940d32f`).** `append_to_log` in `crates/victory-loader/src/crash.rs` opens the file in append mode and writes the record with an unbuffered `write!` and no lock, so concurrent crash reports from several threads can interleave their pieces. Building the record into one string and writing it under a lock (or with one `write_all`) would fix it. - **§1 (`0x80000003` at `+0x5149aec`):** per the comments, this is the title's own assert when a fixed-size pool runs empty during world entry, not a call through a bad pointer of ours; #1232 reports the same assert on a slower laptop. What keeps entries alive longer than on the console is open. - **§2 (`0xc0000005` reading reserved, never committed memory):** still needs that run's log. Please paste, as text, any `committing virtual memory failed` or `XMemVirtualAlloc refused` lines shortly before the fault; they would show whether a commit into a 64 KiB-page reservation was refused (the documented shortcut in `XMemVirtualAlloc`, `crates/victory-hle/src/modules/xmem.rs`). Disassembly and decoded internals of the title's code must not be posted in this tracker; please keep to offsets and register values. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#2025
No description provided.