main @0338ec6 crashes 49 s into the intro: 0xC0000005 write 0x0 inside the title image (Frame 4284) #1900

Closed
opened 2026-11-29 02:06:33 +00:00 by github-bot · 3 comments
Owner

@⁠wzl271 on GitHub · 2026-11-29 02:01 UTC · original

Summary

main at 0338ec6 (built from source today, 2026-11-29 01:38Z) runs the title for 49 seconds and then dies with an access violation inside the translated game image. The release v2026.11.28.03 runs the same scene for hours on this machine, and v2026.11.28.03 + a38716d (your #1496 fix cherry-picked, nothing else) runs for as long as I tested it (13+ min, see the comment I am adding to #1496). So this looks like a regression in the commits between the release tag and main, not the machine.

What is in the log

2026-11-29T01:38:21  console=series-x build=release ... (64 switches: defaults + VICTORY_HOST_RDNA=2,
   VICTORY_RDNA_FLOAT=1, VICTORY_HELPER_OWN=1, VICTORY_FIRSTLANE_OWN=1, VICTORY_WAVE_WIDE=1,
   VICTORY_FULLSCREEN=1; 2560x1440, frames uncapped, DLSS off)
2026-11-29T01:38:23  host shader model model=6.8 runtime=Some("...\\D3D12\\D3D12Core.dll")  host D3D12 device ready
... 1:39:43  last lines are "shader translated stage=compute hash=b3077d23eaff71b8"
... 1:40:04  (20 s of nothing) title: BacktraceBreakpad: ... Added file 'crashcontext.log'
             ... Payload size: 33330623

crashes.log:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x23cf683 (write 0x0: nothing mapped there)
  rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0x20017ff978 rdi 0x84a73b6ea4 rsp 0x20017ff900 rbp 0x0
  #0  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x23cf683
  #1  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2215eca
  #3  KERNEL32.DLL+0x17374
  #4  ntdll.dll+0x4cc91

crashcontext.log: Game Running Time: 0h:0m:49s, Frame: 4284, Streaming Requests: 4918, TileHeap: used (2962Mb) - total (6236Mb), Version: 930.048.020-vb_sub_story, camera <-1738.900024, -4257.681152, 2.991511>, GFX Queue: 143b9230, Unsignaled CrossQueueBarrier: f8dcd913.

So: a title worker thread (#3 is BaseThreadInitThunk) writes through a null pointer, three frames deep inside game code — no runner-side panic, no device removal, no VICTORY_... message before it. Frame 4284 is still the intro/loading stretch of the game (the same place where the release build just keeps loading).

Commit window

git log --oneline v2026.11.28.03..0338ec6 | wc -l → 391 commits, of which the ones that touch shader output are the obvious candidates:

0338ec6 Play: the reflection estimate is off by default
31a46c4 Revert "Shaders: a quad read in divergent flow is a wave read of its lane"
4c16422 Shaders: a quad read in divergent flow is a wave read of its lane
9bba2a2 Shaders: a wave64 program no other form lowers on a 32-lane host takes the wave-wide form
9f628a0 LDS last resort off by default; WHAT LIMITS FPS says the limit and what to try
c4cc545 Shaders: a quad read in divergent flow takes its own value where the lane it reads is not running
24556e2 Trees: the instance culling given the wave-wide form
3302735 Shaders: a wave64 program the LDS analysis refuses falls back to the write-only shortcut (#1435)

Machine

  • Windows 10 19045, RX 7900 GRE 16 GB (RDNA3), Ryzen 5 5600, 48 GB RAM, Adrenalin 32.0.32029.2010
  • GNU build: rustc 1.100.1 stable-x86_64-pc-windows-gnu + MinGW-W64 gcc 16.2.0 (no MSVC on this PC) — target/x86_64-pc-windows-gnu/release/victory.exe, 86.8 MB
  • The build needed a one-line fix to apps/victory/build.rs to export D3D12SDKVersion/D3D12SDKPath on GNU (otherwise every start asks for SM 6.5) — I have opened that as a separate issue, so it should not be the cause here, and the game does start and render with it.
  • Logs: %LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-013821-12896.log (10163 lines), %LOCALAPPDATA%\victory\data\7952987A\crashes.log, ...\temp\victory-20261129-094004-12896.crash.log

If it helps I can bisect the window on this machine (0338ec6 → a38716d, roughly 20 builds of the GPU/shader crates), or test a build with the four shader commits above left out. Which do you want first?

**@⁠wzl271** on GitHub · 2026-11-29 02:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1900) ### Summary `main` at `0338ec6` (built from source today, 2026-11-29 01:38Z) runs the title for **49 seconds** and then dies with an access violation inside the translated game image. The release `v2026.11.28.03` runs the same scene for hours on this machine, and `v2026.11.28.03` + `a38716d` (your #1496 fix cherry-picked, nothing else) runs for as long as I tested it (13+ min, see the comment I am adding to #1496). So this looks like a regression in the commits between the release tag and `main`, not the machine. ### What is in the log ``` 2026-11-29T01:38:21 console=series-x build=release ... (64 switches: defaults + VICTORY_HOST_RDNA=2, VICTORY_RDNA_FLOAT=1, VICTORY_HELPER_OWN=1, VICTORY_FIRSTLANE_OWN=1, VICTORY_WAVE_WIDE=1, VICTORY_FULLSCREEN=1; 2560x1440, frames uncapped, DLSS off) 2026-11-29T01:38:23 host shader model model=6.8 runtime=Some("...\\D3D12\\D3D12Core.dll") host D3D12 device ready ... 1:39:43 last lines are "shader translated stage=compute hash=b3077d23eaff71b8" ... 1:40:04 (20 s of nothing) title: BacktraceBreakpad: ... Added file 'crashcontext.log' ... Payload size: 33330623 ``` `crashes.log`: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0x20017ff978 rdi 0x84a73b6ea4 rsp 0x20017ff900 rbp 0x0 #0 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x2215eca #3 KERNEL32.DLL+0x17374 #4 ntdll.dll+0x4cc91 ``` `crashcontext.log`: `Game Running Time: 0h:0m:49s`, `Frame: 4284`, `Streaming Requests: 4918`, `TileHeap: used (2962Mb) - total (6236Mb)`, `Version: 930.048.020-vb_sub_story`, camera `<-1738.900024, -4257.681152, 2.991511>`, `GFX Queue: 143b9230`, `Unsignaled CrossQueueBarrier: f8dcd913`. So: a title worker thread (`#3` is `BaseThreadInitThunk`) writes through a null pointer, three frames deep inside game code — no runner-side panic, no device removal, no `VICTORY_...` message before it. Frame 4284 is still the intro/loading stretch of the game (the same place where the release build just keeps loading). ### Commit window `git log --oneline v2026.11.28.03..0338ec6 | wc -l` → **391** commits, of which the ones that touch shader output are the obvious candidates: ``` 0338ec6 Play: the reflection estimate is off by default 31a46c4 Revert "Shaders: a quad read in divergent flow is a wave read of its lane" 4c16422 Shaders: a quad read in divergent flow is a wave read of its lane 9bba2a2 Shaders: a wave64 program no other form lowers on a 32-lane host takes the wave-wide form 9f628a0 LDS last resort off by default; WHAT LIMITS FPS says the limit and what to try c4cc545 Shaders: a quad read in divergent flow takes its own value where the lane it reads is not running 24556e2 Trees: the instance culling given the wave-wide form 3302735 Shaders: a wave64 program the LDS analysis refuses falls back to the write-only shortcut (#1435) ``` ### Machine - Windows 10 19045, RX 7900 GRE 16 GB (RDNA3), Ryzen 5 5600, 48 GB RAM, Adrenalin 32.0.32029.2010 - **GNU build**: `rustc 1.100.1 stable-x86_64-pc-windows-gnu` + MinGW-W64 gcc 16.2.0 (no MSVC on this PC) — `target/x86_64-pc-windows-gnu/release/victory.exe`, 86.8 MB - The build needed a one-line fix to `apps/victory/build.rs` to export `D3D12SDKVersion`/`D3D12SDKPath` on GNU (otherwise every start asks for SM 6.5) — I have opened that as a separate issue, so it should not be the cause here, and the game does start and render with it. - Logs: `%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-013821-12896.log` (10163 lines), `%LOCALAPPDATA%\victory\data\7952987A\crashes.log`, `...\temp\victory-20261129-094004-12896.crash.log` If it helps I can bisect the window on this machine (`0338ec6` → `a38716d`, roughly 20 builds of the GPU/shader crates), or test a build with the four shader commits above left out. Which do you want first?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 02:06:33 +00:00
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-29 02:06 UTC · original

This looks like the title's own hang watchdog, not a new null write in translated code: write 0x0 at +0x23cf683, +0x2215c35, +0x2215eca, with rax/rbx/rbp 0 and rdx 1, is the stack and register pattern reported in #1654, #846, #1428 and #628. As #628 and #1428 worked out, a title thread deliberately writes to address 0 when the game's heartbeat hasn't moved for about 30 seconds, so the question is what stalled the title for 30 s at frame 4284. Your log's 20 s of silence before the crash fits that, though I can't prove it from the log alone.

  • On main, VICTORY_POKE=71b6340:1 (from #1428, sets the watchdog's quit flag) should be the switch that applies. It needs a build with --features diagnostics; a plain release build ignores it. As far as I can tell, #1609 (quit flag set by default, VICTORY_TITLE_WATCHDOG=1 to turn it back on) is still open and not in current main (d1486134), so that switch isn't there yet.
  • The poke hides a stall rather than fixing it (#1428), so it would only show whether the load finishes on its own. On a fresh build, #1654 also mentions a preload (victory play --preload) and VICTORY_PIPELINE_COMPUTE_WAIT=0.

Whether your regression between the release tag and main is what makes the load stall is a separate question; a bisect as you offer would answer that, and the watchdog crash would just be how it shows up.

This was written with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-29 02:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1900#issuecomment-7249216792) This looks like the title's own hang watchdog, not a new null write in translated code: `write 0x0 at +0x23cf683`, `+0x2215c35`, `+0x2215eca`, with `rax/rbx/rbp 0` and `rdx 1`, is the stack and register pattern reported in #1654, #846, #1428 and #628. As #628 and #1428 worked out, a title thread deliberately writes to address 0 when the game's heartbeat hasn't moved for about 30 seconds, so the question is what stalled the title for 30 s at frame 4284. Your log's 20 s of silence before the crash fits that, though I can't prove it from the log alone. - On `main`, `VICTORY_POKE=71b6340:1` (from #1428, sets the watchdog's quit flag) should be the switch that applies. It needs a build with `--features diagnostics`; a plain release build ignores it. As far as I can tell, #1609 (quit flag set by default, `VICTORY_TITLE_WATCHDOG=1` to turn it back on) is still open and not in current `main` (d1486134), so that switch isn't there yet. - The poke hides a stall rather than fixing it (#1428), so it would only show whether the load finishes on its own. On a fresh build, #1654 also mentions a preload (`victory play --preload`) and `VICTORY_PIPELINE_COMPUTE_WAIT=0`. Whether your regression between the release tag and `main` is what makes the load stall is a separate question; a bisect as you offer would answer that, and the watchdog crash would just be how it shows up. This was written with AI assistance (Claude Code).
Author
Owner

@⁠P1ayer-1 on GitHub · 2026-11-29 02:09 UTC · original

A second data point for "a source build crashes inside the title image, the release does not" — with one difference worth knowing: it happens before the first frame, not at frame 4284, and at a different offset.

Machine and build

  • RTX 3060 Ti 8 GB, Ryzen 5 3600X, 48 GB, Windows 11 build 26300
  • Source build at d4b5d51 (not 0338ec6), cargo build --release -p victory, rustc 1.98.1-x86_64-pc-windows-msvc from rust-toolchain.toml, MSVC 14.44.35207. Artifact 12,212,736 bytes, [optimized + debuginfo]
  • Same machine, same game dump, the released v2026.11.28.03 runs: it reaches the game and holds 18-30 fps at 2560x1440 (Series X, DLSS Quality). So the dump and the machine are not the variable.

What the crash is

exit code -1073741819 (0xC0000005), ExceptionInformation = write, address 0x0
faulting bytes at victory-image-b99f876b74d4a77f.dll+0x2215C35:
    C7 04 25 00 00 00 00 00     mov dword ptr [0], 0

Preceding bytes are 48 8B 05 … (load a global), 48 85 C0 (test), 74 02 (jz), FF D0 (call rax) — so the fault is the compiler's inline for *(int*)0 = 0 immediately after a null-guarded indirect call through a global. The thread is title-created (entry victory-image+0x2215A60 → BaseThreadInitThunk), and no layer Rust frame is on its stack. The game's own crash log says Game Running Time: 0h:0m:0s, Game State: System Init, Frame: 0. Last layer line before it is dstorage: file opened path="G:\script.rpf"; the run dies 34-71 s in, never having presented a frame.

Reproducibility, and why this is not the mouse and keyboard feature

build VICTORY_MNK result
release v2026.11.28.03 off runs, in game
release v2026.11.28.03 on crashed once (this is what #1180 reports)
source d4b5d51 on crashed 2/2
source d4b5d51 off crashed 1/1

Since the source build dies with mouse and keyboard off as well, MnK is not the cause here — which is worth saying in #1180 too. Whatever this is, it is present in a source build at d4b5d51.

Difference from your report, which may matter for the bisect

  • offset +0x2215C35 here vs +0x23cf683 there (the latter also appears in #1031 and #1654) — possibly a different site of the same "write 0x0 into the title image" family, possibly the same one reached differently;
  • Frame: 0 / System Init here vs frame 4284 there.

d4b5d51 is 121 commits behind f9dfb76, so it predates 0338ec6. If the regression window is "between the release tag and main", d4b5d51 is inside it and already fails, which may narrow it.

One thing I cannot rule out from here: my build carries debuginfo while the shipped victory.exe is ~600 KB smaller, and I have no way to tell whether the crash depends on build flags rather than commits. If someone can build d4b5d51 the way the release is built and see whether it still crashes, that would separate the two.

I kept the minidumps (19,293,161 and 19,240,606 bytes) and the two play logs on the machine if either is wanted.

**@⁠P1ayer-1** on GitHub · 2026-11-29 02:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1900#issuecomment-7249242255) A second data point for "a source build crashes inside the title image, the release does not" — with one difference worth knowing: it happens **before the first frame**, not at frame 4284, and at a different offset. **Machine and build** - RTX 3060 Ti 8 GB, Ryzen 5 3600X, 48 GB, Windows 11 build 26300 - Source build at `d4b5d51` (not `0338ec6`), `cargo build --release -p victory`, rustc 1.98.1-x86_64-pc-windows-msvc from `rust-toolchain.toml`, MSVC 14.44.35207. Artifact 12,212,736 bytes, `[optimized + debuginfo]` - Same machine, same game dump, the released `v2026.11.28.03` runs: it reaches the game and holds 18-30 fps at 2560x1440 (Series X, DLSS Quality). So the dump and the machine are not the variable. **What the crash is** ``` exit code -1073741819 (0xC0000005), ExceptionInformation = write, address 0x0 faulting bytes at victory-image-b99f876b74d4a77f.dll+0x2215C35: C7 04 25 00 00 00 00 00 mov dword ptr [0], 0 ``` Preceding bytes are `48 8B 05 …` (load a global), `48 85 C0` (test), `74 02` (jz), `FF D0` (call rax) — so the fault is the compiler's inline for `*(int*)0 = 0` immediately after a null-guarded indirect call through a global. The thread is title-created (entry `victory-image+0x2215A60` → `BaseThreadInitThunk`), and no layer Rust frame is on its stack. The game's own crash log says `Game Running Time: 0h:0m:0s`, `Game State: System Init`, `Frame: 0`. Last layer line before it is `dstorage: file opened path="G:\script.rpf"`; the run dies 34-71 s in, never having presented a frame. **Reproducibility, and why this is not the mouse and keyboard feature** | build | VICTORY_MNK | result | | --- | --- | --- | | release `v2026.11.28.03` | off | runs, in game | | release `v2026.11.28.03` | on | crashed once (this is what #1180 reports) | | source `d4b5d51` | on | crashed 2/2 | | source `d4b5d51` | **off** | **crashed 1/1** | Since the source build dies with mouse and keyboard *off* as well, MnK is not the cause here — which is worth saying in #1180 too. Whatever this is, it is present in a source build at `d4b5d51`. **Difference from your report, which may matter for the bisect** - offset `+0x2215C35` here vs `+0x23cf683` there (the latter also appears in #1031 and #1654) — possibly a different site of the same "write 0x0 into the title image" family, possibly the same one reached differently; - `Frame: 0 / System Init` here vs frame 4284 there. `d4b5d51` is 121 commits behind `f9dfb76`, so it predates `0338ec6`. If the regression window is "between the release tag and `main`", `d4b5d51` is inside it and already fails, which may narrow it. One thing I cannot rule out from here: my build carries `debuginfo` while the shipped `victory.exe` is ~600 KB smaller, and I have no way to tell whether the crash depends on build flags rather than commits. If someone can build `d4b5d51` the way the release is built and see whether it still crashes, that would separate the two. I kept the minidumps (`19,293,161` and `19,240,606` bytes) and the two play logs on the machine if either is wanted.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:39 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1900#issuecomment-7283364404) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
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/trustno1-coder--VIctory-NVIDIA#1900
No description provided.