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

Open
opened 2026-11-25 14:21:18 +00:00 by nnkmn · 7 comments
nnkmn commented 2026-11-25 14:21:18 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by nnkmn on 2026-11-25T14:21:18Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6606633272 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477). Originally posted by [nnkmn](https://github.com/nnkmn) on 2026-11-25T14:21:18Z. --- ## 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.
nnkmn commented 2026-11-25 15:04:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by nnkmn on 2026-11-25T14:23:40Z.


run-1-trap-err.log

run-2-zero-err.log

<!-- greyfinch-sync:Marvisak/VIctory:comment:7165209669 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7165209669). Originally posted by [nnkmn](https://github.com/nnkmn) on 2026-11-25T14:23:40Z. --- [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)
kotekompotek commented 2026-11-25 18:02:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T17:08:00Z.


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".

<!-- greyfinch-sync:Marvisak/VIctory:comment:7169053584 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7169053584). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T17:08:00Z. --- 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".
Marvisak commented 2026-11-25 19:06:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:50:36Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7171477890 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7171477890). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T18:50:36Z. --- <!-- 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)_
lukinhasnojento commented 2026-11-27 04:41:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T04:41:37Z.


Reproduced the same crash on a different machine, and the image answers the open
question in the report: the fault is not a wild pointer and not an engine assert
reached from game data — it is a per-thread callback that was never installed.

Environment where it reproduces

  • Windows 10 19045, Ryzen 5 5500, NVIDIA RTX 4060 8 GB, driver 32.0.16.2101
  • Agility SDK 1.620.2 beside the executable, TdrDelay/TdrDdiDelay = 60 s
  • Tree: fxceless/victory-fork at f85101b + the stellarr-studio/kelvaroq
    patch series (so not main), but the RVAs below are the title image's, which
    is the same build (b99f876b…), so they should apply to your tree too
  • Pipeline library 154 MB, loaded=2385 made=0; the world runs at 3,258
    draws/frame for 2 m 11 s with Game State: Game Running, frame 1031, then
    this crash

The stack is a worker thread, not a call chain

From the dump: RtlUserThreadStart → BaseThreadInitThunk → +0x2215eca →
+0x2215c35 → +0x23cf683.

Consumer: a global function pointer, null

+0x2215c27  mov   rax, [0x71b6348]
+0x2215c2e  test  rax, rax
+0x2215c31  je    +0x2215c35        ; null -> here
+0x2215c33  call  rax
+0x2215c35  mov   dword ptr [0], 0  ; the trap frame #1 in your report

Producer: the only writer, and its gate

A linear scan of .text finds exactly one instruction that writes
[0x71b6348]:

+0x22161f0  mov   rax, gs:[0x58]        ; TEB->ThreadLocalStoragePointer
+0x22161f9  mov   rax, [rax]            ; the thread's TLS block
+0x22161fc  test  byte ptr [rax+0x12d8], 1
+0x2216203  je    +0x2216214            ; flag clear -> the pointer is NOT installed
+0x2216205  mov   rax, [0x71b6348]      ; previous value
+0x221620c  mov   [0x71b6348], rcx      ; installed only when the flag is set
+0x2216213  ret

So in this process the byte at [tls]+0x12d8 never has bit 0 set, the worker
thread finds the pointer null, and lands in the fatal stub. +0x23cf683 is
that stub (mov dword ptr [0], 0x4d8bd421): it is jumped to from
+0x23cf670 after cmp byte ptr [rsp+0x34], 1; jne, i.e. it is the
failure branch of a helper that has just built a 13-byte string, which is what
a fatal-error helper looks like here, not an assertion on title data.

The question this leaves

What sets bit 0 of [tls]+0x12d8? On this image I can only bound it: a byte
scan of .text finds just two single-bit ORs at that displacement
(+0x9924c0 or byte [rsi+0x12d8], 0x20 and +0x13fb59b or byte [rsi+0x12d8], 2),
so bit 0 is written by a plain register store, and the displacement alone is too
common (981 instructions touch it) to xref reliably without a real database.

If someone can breakpoint +0x221620c (or watch [tls]+0x12d8), the caller
that should have run names the platform service that is missing — which is the
same family as the mount-time assert at +0x1ce6e13 ("service registration's
sink lookup fails"), i.e. an initialisation step, not a rendering defect.

What is already ruled out here

  • Not a GPU/device issue: device removed count is 0 for the whole run.
  • Not pipeline compilation: made=0, the library serves everything.
  • Not the wave64 gap: VICTORY_WAVE_WIDE=1 VICTORY_WAVE64_PAIRED=1 and the
    refused compute pipelines go from 4 to 0, and this crash is unchanged.
  • Not shader cache: 1,751 containers warmed from the run's own log, all
    cached=true.

Happy to dump anything else from this image (RVA-level, no game content) if it
helps narrow which init path is skipped.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7210017284 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7210017284). Originally posted by [lukinhasnojento](https://github.com/lukinhasnojento) on 2026-11-27T04:41:37Z. --- Reproduced the same crash on a different machine, and the image answers the open question in the report: the fault is not a wild pointer and not an engine assert reached from game data — it is a **per-thread callback that was never installed**. ## Environment where it reproduces - Windows 10 19045, Ryzen 5 5500, NVIDIA RTX 4060 8 GB, driver 32.0.16.2101 - Agility SDK 1.620.2 beside the executable, `TdrDelay`/`TdrDdiDelay` = 60 s - Tree: `fxceless/victory-fork` at `f85101b` + the `stellarr-studio/kelvaroq` patch series (so not `main`), but the RVAs below are the title image's, which is the same build (`b99f876b…`), so they should apply to your tree too - Pipeline library 154 MB, `loaded=2385 made=0`; the world runs at 3,258 draws/frame for 2 m 11 s with `Game State: Game Running`, frame 1031, then this crash ## The stack is a worker thread, not a call chain From the dump: `RtlUserThreadStart` → `BaseThreadInitThunk` → `+0x2215eca` → `+0x2215c35` → `+0x23cf683`. ## Consumer: a global function pointer, null ``` +0x2215c27 mov rax, [0x71b6348] +0x2215c2e test rax, rax +0x2215c31 je +0x2215c35 ; null -> here +0x2215c33 call rax +0x2215c35 mov dword ptr [0], 0 ; the trap frame #1 in your report ``` ## Producer: the only writer, and its gate A linear scan of `.text` finds exactly one instruction that writes `[0x71b6348]`: ``` +0x22161f0 mov rax, gs:[0x58] ; TEB->ThreadLocalStoragePointer +0x22161f9 mov rax, [rax] ; the thread's TLS block +0x22161fc test byte ptr [rax+0x12d8], 1 +0x2216203 je +0x2216214 ; flag clear -> the pointer is NOT installed +0x2216205 mov rax, [0x71b6348] ; previous value +0x221620c mov [0x71b6348], rcx ; installed only when the flag is set +0x2216213 ret ``` So in this process the byte at `[tls]+0x12d8` never has bit 0 set, the worker thread finds the pointer null, and lands in the fatal stub. `+0x23cf683` is that stub (`mov dword ptr [0], 0x4d8bd421`): it is jumped to from `+0x23cf670` after `cmp byte ptr [rsp+0x34], 1; jne`, i.e. it is the failure branch of a helper that has just built a 13-byte string, which is what a fatal-error helper looks like here, not an assertion on title data. ## The question this leaves What sets bit 0 of `[tls]+0x12d8`? On this image I can only bound it: a byte scan of `.text` finds just two single-bit ORs at that displacement (`+0x9924c0 or byte [rsi+0x12d8], 0x20` and `+0x13fb59b or byte [rsi+0x12d8], 2`), so bit 0 is written by a plain register store, and the displacement alone is too common (981 instructions touch it) to xref reliably without a real database. If someone can breakpoint `+0x221620c` (or watch `[tls]+0x12d8`), the caller that should have run names the platform service that is missing — which is the same family as the mount-time assert at `+0x1ce6e13` ("service registration's sink lookup fails"), i.e. an initialisation step, not a rendering defect. ## What is already ruled out here - Not a GPU/device issue: `device removed` count is 0 for the whole run. - Not pipeline compilation: `made=0`, the library serves everything. - Not the wave64 gap: `VICTORY_WAVE_WIDE=1 VICTORY_WAVE64_PAIRED=1` and the refused compute pipelines go from 4 to 0, and this crash is unchanged. - Not shader cache: 1,751 containers warmed from the run's own log, all `cached=true`. Happy to dump anything else from this image (RVA-level, no game content) if it helps narrow which init path is skipped.
lukinhasnojento commented 2026-11-27 04:42:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T04:42:14Z.


One more detail from the same run, in case it saves a step: immediately before
the fault the title creates unordered access views of depth textures and two
compute pipelines (wave_lanes=[32, 32], on this 32-lane host), then the
pipeline library saves (made=34 loaded=2385), and the worker thread faults
within the next second:

unordered access view of a depth texture   (several, in the last 400 ms)
compute 74930ddd74e36464  wave_lanes=[32, 32]
compute a0a074e2d868e618  wave_lanes=[32, 32]
host pipeline library saved bytes=226378046 made=34 loaded=2385
VIctory: first-chance exception 0xc0000005 at +0x23cf683 (write 0x0)

So the thread that calls the null pointer is woken by that depth-UAV/compute
work, which narrows the initialisation that should have set [tls]+0x12d8 bit 0
to whatever precedes it. No conclusions drawn from it — just the ordering.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7210025507 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7210025507). Originally posted by [lukinhasnojento](https://github.com/lukinhasnojento) on 2026-11-27T04:42:14Z. --- One more detail from the same run, in case it saves a step: immediately before the fault the title creates **unordered access views of depth textures** and two compute pipelines (`wave_lanes=[32, 32]`, on this 32-lane host), then the pipeline library saves (`made=34 loaded=2385`), and the worker thread faults within the next second: ``` unordered access view of a depth texture (several, in the last 400 ms) compute 74930ddd74e36464 wave_lanes=[32, 32] compute a0a074e2d868e618 wave_lanes=[32, 32] host pipeline library saved bytes=226378046 made=34 loaded=2385 VIctory: first-chance exception 0xc0000005 at +0x23cf683 (write 0x0) ``` So the thread that calls the null pointer is woken by that depth-UAV/compute work, which narrows the initialisation that should have set `[tls]+0x12d8` bit 0 to whatever precedes it. No conclusions drawn from it — just the ordering.
lukinhasnojento commented 2026-11-27 04:56:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T04:56:27Z.


One negative result that may save someone the same detour: the flag is not
initialised by the TLS template. The image's TLS directory points at a 5,248-byte
template (RVA 0x14af3d000, file offset 0x7170800) and the dword at
template+0x12d8 is 0x00000000, so every thread legitimately starts with the
bit clear and the title itself has to set it during init. The loader copying the
template correctly is therefore necessary but not the answer.

For anyone with a debugger, two addresses bound the search:

  • +0x2215c27 (a worker thread reads the pointer) and +0x221620c (the only
    write to it, behind test byte [tls+0x12d8], 1) - a breakpoint on the second
    shows whether it is ever reached and with which rcx;
  • the setter of the bit is one of 66 dword stores at [reg+0x12d8] (16 of them
    in functions that also read gs:[0x58]), none of them a single-bit OR with
    an immediate, so or dword ptr [rX+0x12d8], 1 never appears literally.

We also ruled out the pipeline library save as the trigger here: with
VICTORY_PIPELINE_WARMUP=0 (no recipes saved at all) the crash is unchanged,
2 m 48 s in, 2,483 draws.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7210217318 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7210217318). Originally posted by [lukinhasnojento](https://github.com/lukinhasnojento) on 2026-11-27T04:56:27Z. --- One negative result that may save someone the same detour: the flag is **not** initialised by the TLS template. The image's TLS directory points at a 5,248-byte template (RVA 0x14af3d000, file offset 0x7170800) and the dword at `template+0x12d8` is `0x00000000`, so every thread legitimately starts with the bit clear and the title itself has to set it during init. The loader copying the template correctly is therefore necessary but not the answer. For anyone with a debugger, two addresses bound the search: - `+0x2215c27` (a worker thread reads the pointer) and `+0x221620c` (the only write to it, behind `test byte [tls+0x12d8], 1`) - a breakpoint on the second shows whether it is ever reached and with which `rcx`; - the setter of the bit is one of 66 dword stores at `[reg+0x12d8]` (16 of them in functions that also read `gs:[0x58]`), none of them a single-bit OR with an immediate, so `or dword ptr [rX+0x12d8], 1` never appears literally. We also ruled out the pipeline library save as the trigger here: with `VICTORY_PIPELINE_WARMUP=0` (no recipes saved at all) the crash is unchanged, 2 m 48 s in, 2,483 draws.
lukinhasnojento commented 2026-11-27 05:23:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T05:23:10Z.


A correction to my own earlier comments here, after reading the caller path end to end.

The slot is not a callback that is missing; it is a fatal handler

+0x2215c27 is inside the branch the code takes after it has decided to die:

+0x2215c16  call  +0x4e4ba80        ; the reporting half
+0x2215c27  mov   rax, [0x71b6348]  ; the "terminate" hook
+0x2215c2e  test  rax, rax
+0x2215c31  je    +0x2215c35
+0x2215c33  call  rax
+0x2215c35  mov   dword ptr [0], 0  ; reached if the hook is null OR if it returns

So both cases produce the same report line, and rax = 0 in the exception context proves
nothing, because the stub clobbers it. My "per-thread callback that was never installed"
reading was one of two possibilities, and the wider evidence now points at the other: the
code is on an error path that calls a hook which is expected not to return, and the hook
is null at that moment.

The message is encoded in the stub, and it decodes

+0x23cf623 builds a 13-byte buffer and adds (12 - i) to byte i. Decoding the bytes it
writes (3b 45 4b 17 44 68 5d 1b 4f 66 65 ff 01) gives:

47 50 55 20 4c 6f 63 20 53 69 67 00   ->   "GPU Loc Sig"

so this stub is the engine's GPU-location-signature watchdog abort, not a generic assert.

The watchdog it belongs to

The body that reaches it (thread trampoline +0x2215ea0, which calls the body through
call qword ptr [rsi]; the return address in the trap's stack is +0x2215eca) is a loop
over a table at rva 0x6844a20, 64 groups of 0x48 bytes, with a count at +4 and up to
eight 64-bit timestamps at +8. Two float thresholds are read from .rdata:
2.0 at rva 0x6159bd4 (renew) and 300.0 at rva 0x6159e20 (die), and the timestamps
are scaled by a float at rva 0x9e4f5c0 that the title writes at runtime.

On this machine, measured from a live process: that multiplier reads 0.0 and every group
count reads 0, so the deadline comparison cannot be what fires here; the branch reached
is still the fatal-hook call above. That is the remaining question, and it is narrower than
the original one: what reaches +0x2215c27 when the table is empty and the scale is zero.

Correction to my earlier claim about the TLS flag

The install path is real (+0x22161f0: test byte ptr [tls+0x12d8], 1 then
mov [0x71b6348], rcx), but the flag is set on this machine: reading [tls]+0x12d8 of
each thread through NtQueryInformationThread + ReadProcessMemory (the title's static TLS
index is logged as index=10), one thread shows bit 0 set while most do not. So the hook is
sometimes installed and sometimes null, rather than never installed. At the moment of the
crash the slot read 0.

If anyone has seen a non-null value in 0x71b6348, or knows which engine step installs the
terminate hook and on which thread class, that would close this: the watchdog is now fully
mapped, and only its arming path is unknown.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7210590429 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2477#issuecomment-7210590429). Originally posted by [lukinhasnojento](https://github.com/lukinhasnojento) on 2026-11-27T05:23:10Z. --- A correction to my own earlier comments here, after reading the caller path end to end. ## The slot is not a callback that is missing; it is a fatal handler `+0x2215c27` is inside the branch the code takes **after** it has decided to die: ``` +0x2215c16 call +0x4e4ba80 ; the reporting half +0x2215c27 mov rax, [0x71b6348] ; the "terminate" hook +0x2215c2e test rax, rax +0x2215c31 je +0x2215c35 +0x2215c33 call rax +0x2215c35 mov dword ptr [0], 0 ; reached if the hook is null OR if it returns ``` So both cases produce the same report line, and `rax = 0` in the exception context proves nothing, because the stub clobbers it. My "per-thread callback that was never installed" reading was one of two possibilities, and the wider evidence now points at the other: the code is on an error path that calls a hook which is expected **not to return**, and the hook is null at that moment. ## The message is encoded in the stub, and it decodes `+0x23cf623` builds a 13-byte buffer and adds `(12 - i)` to byte i. Decoding the bytes it writes (`3b 45 4b 17 44 68 5d 1b 4f 66 65 ff 01`) gives: ``` 47 50 55 20 4c 6f 63 20 53 69 67 00 -> "GPU Loc Sig" ``` so this stub is the engine's GPU-location-signature watchdog abort, not a generic assert. ## The watchdog it belongs to The body that reaches it (thread trampoline `+0x2215ea0`, which calls the body through `call qword ptr [rsi]`; the return address in the trap's stack is `+0x2215eca`) is a loop over a table at rva `0x6844a20`, 64 groups of `0x48` bytes, with a count at `+4` and up to eight 64-bit timestamps at `+8`. Two float thresholds are read from `.rdata`: `2.0` at rva `0x6159bd4` (renew) and `300.0` at rva `0x6159e20` (die), and the timestamps are scaled by a float at rva `0x9e4f5c0` that the title writes at runtime. On this machine, measured from a live process: that multiplier reads `0.0` and every group count reads `0`, so the deadline comparison cannot be what fires here; the branch reached is still the fatal-hook call above. That is the remaining question, and it is narrower than the original one: what reaches `+0x2215c27` when the table is empty and the scale is zero. ## Correction to my earlier claim about the TLS flag The install path is real (`+0x22161f0`: `test byte ptr [tls+0x12d8], 1` then `mov [0x71b6348], rcx`), but the flag **is** set on this machine: reading `[tls]+0x12d8` of each thread through `NtQueryInformationThread` + `ReadProcessMemory` (the title's static TLS index is logged as `index=10`), one thread shows bit 0 set while most do not. So the hook is sometimes installed and sometimes null, rather than never installed. At the moment of the crash the slot read `0`. If anyone has seen a non-null value in `0x71b6348`, or knows which engine step installs the terminate hook and on which thread class, that would close this: the watchdog is now fully mapped, and only its arming path is unknown.
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#2475
No description provided.