GTA VI (1.0.2.1, Xbox): title faults writing to address 0 right after the account picker #2477

Open
opened 2026-11-26 05:06:58 +00:00 by github-bot · 3 comments
Owner

@⁠nnkmn on GitHub · 2026-11-25 14:21 UTC · original

What happens

--console series-x boots correctly, the account picker draws at ~30 fps (21 draws/frame), then the title crashes with an access violation at a fixed RVA while entering the world. Two runs with different --unimplemented settings fault at exactly the same instruction.

VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
  #0  victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3  KERNEL32.DLL+0x2dda7
  #4  ntdll.dll+0x7ee4c

The faulting instruction is a trap stub, not a wild pointer

victory-image-*.dll is the mapped title image, so the offset is a plain RVA. RVA 0x23cf683 lands in .text (file offset 0x23CEA83):

C7 04 25 00 00 00 00 21 D4 8B 4D 48 83 C4 48 C3

i.e.

mov dword ptr [0], 0x4D8BD421
add rsp, 0x48
ret

The title deliberately writes a constant (0x4D8BD421) to address zero and returns: the shape of a compiler-emitted fatal-error helper. Which engine check reaches it, and what 0x4D8BD421 encodes, is the question.

Build

  • github.com/Marvisak/VIctory, branch capped-heap, HEAD bbe8770 = base 940d32f + cherry-picks of #1778, #1763, #1832, #1779, plus one local experimental patch (mouse to right stick in victory-hle::modules::gameinput), unrelated to this crash.
  • Shader cache warm: 25985 containers, 24801 translated, 295 refused, 1364 MB (cached=true for every shader in these runs).
  • Host pipeline library from a partial translate --cache --pipelines: 328114588 bytes, loaded=1079 made=0 in the crashing run.

Environment

OS Windows 11 10.0.26300
CPU Intel Core i7-8700 (6C/12T)
RAM 31.9 GB
GPU NVIDIA GTX 1060 3 GB, driver 32.0.15.8278 (no feature level 12_2)
Title GTA VI 1.0.2.1, Appx RockstarGamesInc.28872443D20A, TitleId 7952987A, TargetDeviceFamily="Scarlett"
Display 2560x1440; the title presents 3840x2160

Reproduce

victory.exe run "<game>\game_scarlett_master.exe" --execute --console series-x
# also: --unimplemented zero  -> identical crash

What the log says just before the crash

14:03:51  frame presented ... frame=2048 draws=11380 drawn=11380 dispatches=1674
14:04:05  11.6 fps, 86.2 ms/frame (8.7 preparing ... 43.4 on the GPU), 11 draws/frame
14:05:14  0.4 fps, 2776.9 ms/frame (421.8 preparing: copies 224.0 ms 178.0 MB, textures 9.8 ms 5.9 MB;
          2132.4 on the GPU; 26.7 copying back 2.1 MB), 57 draws/frame,
          dropped 506 without a host pipeline (0 being made) and 700 indirect
14:05:14  host textures: 3983 (9673 MB, 2298 MB of them used by lists), ... depth twin copies 0.8/frame
14:05:26  host pipeline library saved ... loaded=1079
          -> 0xc0000005 write 0x0 at +0x23cf683

Other lines from the same run:

  • 137 x host pipeline refused error=参数错误 (0x80070057) with shaders=[compute ...]
  • WARN victory_gpu::resource: dropping unordered access: the host cannot use this format as a typed UAV format=27
  • WARN victory_gpu::resource: the host refuses castable formats: ... desc format: 115 ... 2560x1440 ... flags: 1
  • a separate run of the same build died earlier with a Rust allocation panic instead: memory allocation of 1435801620 bytes failed at frame=3378 (2 GB page file, 33.9 GB commit limit)

Hypothesis / what would help

  1. If 0x4D8BD421 is an engine-side fatal code, what does it mean?
  2. Is dropped 506 without a host pipeline expected at world entry? If the title later reads back those targets, or builds a table from them, a dropped set could explain a null dereference.
  3. The last frame spends 2132 ms on the GPU with 57 draws: is there a world-entry watchdog that asserts on a long frame?

Secondary observation: --console series-s presents black

Same build, --console series-s: presents 1920x1080 at a steady 30 fps with host textures: 1522 (2599 MB), 11 draws/frame, but every presented frame is a uniform colour (diagnostics capture writes a 1586-byte PNG) and the draw count never advances past 11, so the account picker never appears. Series X reaches it at 21 draws. Looks like a distinct output-path problem rather than a slow load.

**@⁠nnkmn** on GitHub · 2026-11-25 14:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/2477) ## What happens `--console series-x` boots correctly, the account picker draws at ~30 fps (21 draws/frame), then the title crashes with an access violation at a **fixed RVA** while entering the world. Two runs with different `--unimplemented` settings fault at exactly the same instruction. ``` VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x2dda7 #4 ntdll.dll+0x7ee4c ``` ## The faulting instruction is a trap stub, not a wild pointer `victory-image-*.dll` is the mapped title image, so the offset is a plain RVA. RVA `0x23cf683` lands in `.text` (file offset `0x23CEA83`): ``` C7 04 25 00 00 00 00 21 D4 8B 4D 48 83 C4 48 C3 ``` i.e. ```asm mov dword ptr [0], 0x4D8BD421 add rsp, 0x48 ret ``` The title deliberately writes a constant (`0x4D8BD421`) to address zero and returns: the shape of a compiler-emitted fatal-error helper. Which engine check reaches it, and what `0x4D8BD421` encodes, is the question. ## Build - `github.com/Marvisak/VIctory`, branch `capped-heap`, HEAD `bbe8770` = base `940d32f` + cherry-picks of **#1778, #1763, #1832, #1779**, plus one local experimental patch (mouse to right stick in `victory-hle::modules::gameinput`), unrelated to this crash. - Shader cache warm: 25985 containers, 24801 translated, 295 refused, 1364 MB (`cached=true` for every shader in these runs). - Host pipeline library from a partial `translate --cache --pipelines`: `328114588` bytes, `loaded=1079 made=0` in the crashing run. ## Environment | | | |---|---| | OS | Windows 11 10.0.26300 | | CPU | Intel Core i7-8700 (6C/12T) | | RAM | 31.9 GB | | GPU | NVIDIA GTX 1060 3 GB, driver 32.0.15.8278 (no feature level 12_2) | | Title | GTA VI 1.0.2.1, Appx `RockstarGamesInc.28872443D20A`, TitleId `7952987A`, `TargetDeviceFamily="Scarlett"` | | Display | 2560x1440; the title presents 3840x2160 | ## Reproduce ```powershell victory.exe run "<game>\game_scarlett_master.exe" --execute --console series-x # also: --unimplemented zero -> identical crash ``` ## What the log says just before the crash ``` 14:03:51 frame presented ... frame=2048 draws=11380 drawn=11380 dispatches=1674 14:04:05 11.6 fps, 86.2 ms/frame (8.7 preparing ... 43.4 on the GPU), 11 draws/frame 14:05:14 0.4 fps, 2776.9 ms/frame (421.8 preparing: copies 224.0 ms 178.0 MB, textures 9.8 ms 5.9 MB; 2132.4 on the GPU; 26.7 copying back 2.1 MB), 57 draws/frame, dropped 506 without a host pipeline (0 being made) and 700 indirect 14:05:14 host textures: 3983 (9673 MB, 2298 MB of them used by lists), ... depth twin copies 0.8/frame 14:05:26 host pipeline library saved ... loaded=1079 -> 0xc0000005 write 0x0 at +0x23cf683 ``` Other lines from the same run: - **137** x `host pipeline refused error=参数错误 (0x80070057)` with `shaders=[compute ...]` - `WARN victory_gpu::resource: dropping unordered access: the host cannot use this format as a typed UAV format=27` - `WARN victory_gpu::resource: the host refuses castable formats: ... desc format: 115 ... 2560x1440 ... flags: 1` - a separate run of the same build died earlier with a Rust allocation panic instead: `memory allocation of 1435801620 bytes failed` at `frame=3378` (2 GB page file, 33.9 GB commit limit) ## Hypothesis / what would help 1. If `0x4D8BD421` is an engine-side fatal code, what does it mean? 2. Is `dropped 506 without a host pipeline` expected at world entry? If the title later reads back those targets, or builds a table from them, a dropped set could explain a null dereference. 3. The last frame spends 2132 ms on the GPU with 57 draws: is there a world-entry watchdog that asserts on a long frame? ## Secondary observation: `--console series-s` presents black Same build, `--console series-s`: presents 1920x1080 at a steady 30 fps with `host textures: 1522 (2599 MB)`, 11 draws/frame, but every presented frame is a uniform colour (diagnostics capture writes a 1586-byte PNG) and the draw count never advances past 11, so the account picker never appears. Series X reaches it at 21 draws. Looks like a distinct output-path problem rather than a slow load.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:06:58 +00:00
Author
Owner

@⁠nnkmn on GitHub · 2026-11-25 14:23 UTC · original

run-1-trap-err.log

run-2-zero-err.log

**@⁠nnkmn** on GitHub · 2026-11-25 14:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7165209669) [run-1-trap-err.log](https://github.com/user-attachments/files/35416455/run-1-trap-err.log) [run-2-zero-err.log](https://github.com/user-attachments/files/35416457/run-2-zero-err.log)
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 17:08 UTC · original

The fault is the title's own watchdog killing itself, not a stray null-write — the stack gives it away: #3 KERNEL32!BaseThreadInitThunk → #2 +0x2215eca → #1 +0x2215c35 → #0 +0x23cf683. +0x2215c35 is the watchdog thread decoded in #2469 (thegl0w's analysis: it fires when the main thread doesn't signal in time), and +0x23cf683 is the mov [0], const self-kill stub already on the crash-site map in #630 — the dword is a per-site tag for their crash pipeline, not a pointer.

Your run-2 log shows the cause directly:

  • 14:05:06 — slow host submission ms=31724 (one 31.7-second GPU submission),
  • 14:05:14 — 0.4 fps (2776 ms/frame), then the kill ~10 s later.

That matches the ~30 s watchdog window seen in #630 (a kill 31 s after the trigger). During world entry the main thread produces multi-second frames — 178–838 MB of title-memory copies plus hundreds of first bind pipeline creates per frame — and the watchdog treats that stall as a hang. Both your runs die at the same instruction because the watchdog thread's stack is deterministic.

So this is a performance wall, not a correctness bug: on the console the same world-entry work finishes inside the window; on a host that hasn't warmed the world yet it doesn't. Things that shrink the stall are already in flight (#2427's dstorage/drive work cut cold launch 2.3×; the hoisted indirect clamps in #2472 target exactly the 700–1562 indirect calls/frame in your logs).

One experiment that would prove the mechanism end to end: VICTORY_POKE the watchdog byte thegl0w documented (+0x71b6330, diag build) — if the kill disappears or moves much later, the watchdog window is confirmed as the whole story and the remaining work is purely "make world entry faster".

**@⁠kotekompotek** on GitHub · 2026-11-25 17:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7169053584) The fault is the title's own watchdog killing itself, not a stray null-write — the stack gives it away: `#3 KERNEL32!BaseThreadInitThunk → #2 +0x2215eca → #1 +0x2215c35 → #0 +0x23cf683`. `+0x2215c35` is the watchdog thread decoded in #2469 (thegl0w's analysis: it fires when the main thread doesn't signal in time), and `+0x23cf683` is the `mov [0], const` self-kill stub already on the crash-site map in #630 — the dword is a per-site tag for their crash pipeline, not a pointer. Your run-2 log shows the cause directly: - `14:05:06` — `slow host submission ms=31724` (one 31.7-second GPU submission), - `14:05:14` — `0.4 fps` (2776 ms/frame), then the kill ~10 s later. That matches the ~30 s watchdog window seen in #630 (a kill 31 s after the trigger). During world entry the main thread produces multi-second frames — 178–838 MB of title-memory copies plus hundreds of `first bind` pipeline creates per frame — and the watchdog treats that stall as a hang. Both your runs die at the same instruction because the watchdog thread's stack is deterministic. So this is a **performance wall, not a correctness bug**: on the console the same world-entry work finishes inside the window; on a host that hasn't warmed the world yet it doesn't. Things that shrink the stall are already in flight (#2427's dstorage/drive work cut cold launch 2.3×; the hoisted indirect clamps in #2472 target exactly the 700–1562 indirect calls/frame in your logs). One experiment that would prove the mechanism end to end: `VICTORY_POKE` the watchdog byte thegl0w documented (`+0x71b6330`, diag build) — if the kill disappears or moves much later, the watchdog window is confirmed as the whole story and the remaining work is purely "make world entry faster".
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:50 UTC · original

Automated triage for the maintainers.

Please do not post the title's code bytes or disassembly here, even a few instructions. Offsets and log lines are enough.

The fault is the title's own deliberate exit when progress stops. Its thread runs through +0x2215c35, and #630 has the crash-site map for both addresses. #2351 ends at the same sibling site while entering the world. Your log points the same way: one host submission of about 31.7 s, then frames of about 2.8 s.

This machine is well below what the world needs:

  • The README requires a Direct3D 12 GPU with mesh shaders for the world. A GTX 1060 has no mesh shaders and no feature level 12_2.
  • The README gives about 10 GB of video memory for a world run, against 3 GB here.
  • It gives about 33 GB of commit. The separate allocation panic came at a 33.9 GB limit with a 2 GB paging file.

So the world is not expected to run on this card. The dropped draws without a host pipeline and the 137 refused compute pipelines follow from that, and from the partial pipeline library.

For the record, this ran on a branch with cherry-picked PRs (bbe8770), not on main. The black --console series-s picture is a known gap (README, Series S mode).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 18:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7171477890) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T17:08:00Z at=2026-11-25T19:03:00Z --> Automated triage for the maintainers. Please do not post the title's code bytes or disassembly here, even a few instructions. Offsets and log lines are enough. The fault is the title's own deliberate exit when progress stops. Its thread runs through `+0x2215c35`, and #630 has the crash-site map for both addresses. #2351 ends at the same sibling site while entering the world. Your log points the same way: one host submission of about 31.7 s, then frames of about 2.8 s. This machine is well below what the world needs: - The README requires a Direct3D 12 GPU with mesh shaders for the world. A GTX 1060 has no mesh shaders and no feature level 12_2. - The README gives about 10 GB of video memory for a world run, against 3 GB here. - It gives about 33 GB of commit. The separate allocation panic came at a 33.9 GB limit with a 2 GB paging file. So the world is not expected to run on this card. The dropped draws without a host pipeline and the 137 refused compute pipelines follow from that, and from the partial pipeline library. For the record, this ran on a branch with cherry-picked PRs (`bbe8770`), not on main. The black `--console series-s` picture is a known gap (README, Series S mode). --- _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#2477
No description provided.