[crash] 0xc0000005 null write in game code at menu→world transition (RTX 4080 Super, wave32) #1401

Open
opened 2026-11-26 04:52:52 +00:00 by github-bot · 5 comments
Owner

@⁠nullerror13 on GitHub · 2026-11-24 15:38 UTC · original

Game and package version

The retail title – 1.0.2.1

What happens

Boots to the main menu and runs stably: 3191 frames presented, no GPU device removal, keyboard input works, audio works (43271 XAPU packets, 95.6% non-zero samples).

When advancing past the menu (the fade transition into the world), it crashes deterministically:

[ERROR] unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)
rax=0x0 rbx=0x0 rcx=0x8023c348 rdx=0x1 rsi=0x7505fa08 rdi=0x4b5bebd27b7 rbp=0x0
on the stack: game_scarlett_master.exe+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca

Expected: the fade into the world.

Attached frame dumps: frame 1620 = main menu, frame 3156 = dark transition right before the crash.
Only keyboard input was mapped in this run (gamepad not tested).
Note: same deterministic null-write (address 0x0) as reported in #159 on AMD — here it is on NVIDIA wave32.

Happy to provide a minidump, the full 50-frame dump set, or rerun with any flag.

XCL version

930e8b4

GPU and driver version

NVIDIA GeForce RTX 4080 SUPER 16 GB, 610.88

Windows version

Windows 11 24H2 (build 26200)

report.json and xcl.log

Paths scrubbed. Highlights from report.json:

  • presents / frame_boundaries: 3191 / 3191 — stable run, no device removal
  • last_frame_dump: 3840x2160, 518400/518400 sampled px non-dark (real pixels, not black)
  • shaders: 19211 unique (19101 xbox-native), 274780 submitted, 0 errors
  • pipelines: translated 55, failed 0; 40 mesh pipelines "refused" (MS in AS slot)
  • audio: 43271 XAPU packets, 41.3M frames, 95.6% non-zero samples
  • "waves of 32-32 lanes" active (expected on wave32), DXC 1.8.2502.11
  • UMA: 512 MB, ~117 MB used

report.json
xcl.log

Console output

[    0.000][30336][INFO ] XCL 0.1.0 – host for '<package id>'
[    0.000][30336][INFO ] game: <game folder>\game_scarlett_master.exe (read-only folder: <game folder>)
[    0.000][30336][INFO ] XCL data: C:\Users\user1\AppData\Local\XCL\<package id>
...
[  185.308][37224][ERROR] unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x8023c348 rdx=0x1 rsi=0x7505fa08 rdi=0x4b5bebd27b7 rbp=0x0 r8=0x874c8c40 r9=0x874c8e20 r10=0x874c8ad8 r11=0x874c8c40 r12=0x4b59893f257 r13=0x146845c28 r14=0x7ffe3987b220 r15=0x4b5ad5de974 rsp=0x7505f990; on the stack: game_scarlett_master.exe+0x4e4ba89, game_scarlett_master.exe+0x2215c35, game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca
    thread 29812 '': ntdll.dll+0x166464 < KERNELBASE.dll+0x1427f < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_master.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < KERNEL32.DLL+0x2dda7 < ntdll.dll+0xc9c5c
**@⁠nullerror13** on GitHub · 2026-11-24 15:38 UTC · [original](https://github.com/xcl-dev/xcl/issues/1401) ### Game and package version The retail title – <package id> 1.0.2.1 ### What happens Boots to the main menu and runs stably: 3191 frames presented, no GPU device removal, keyboard input works, audio works (43271 XAPU packets, 95.6% non-zero samples). When advancing past the menu (the fade transition into the world), it crashes deterministically: [ERROR] unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x8023c348 rdx=0x1 rsi=0x7505fa08 rdi=0x4b5bebd27b7 rbp=0x0 on the stack: game_scarlett_master.exe+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca Expected: the fade into the world. Attached frame dumps: frame 1620 = main menu, frame 3156 = dark transition right before the crash. Only keyboard input was mapped in this run (gamepad not tested). Note: same deterministic null-write (address 0x0) as reported in #159 on AMD — here it is on NVIDIA wave32. Happy to provide a minidump, the full 50-frame dump set, or rerun with any flag. ### XCL version 930e8b4 ### GPU and driver version NVIDIA GeForce RTX 4080 SUPER 16 GB, 610.88 ### Windows version Windows 11 24H2 (build 26200) ### report.json and xcl.log Paths scrubbed. Highlights from report.json: - presents / frame_boundaries: 3191 / 3191 — stable run, no device removal - last_frame_dump: 3840x2160, 518400/518400 sampled px non-dark (real pixels, not black) - shaders: 19211 unique (19101 xbox-native), 274780 submitted, 0 errors - pipelines: translated 55, failed 0; 40 mesh pipelines "refused" (MS in AS slot) - audio: 43271 XAPU packets, 41.3M frames, 95.6% non-zero samples - "waves of 32-32 lanes" active (expected on wave32), DXC 1.8.2502.11 - UMA: 512 MB, ~117 MB used [report.json](https://github.com/user-attachments/files/35348077/report.json) [xcl.log](https://github.com/user-attachments/files/35348076/xcl.log) ### Console output ```text [ 0.000][30336][INFO ] XCL 0.1.0 – host for '<package id>' [ 0.000][30336][INFO ] game: <game folder>\game_scarlett_master.exe (read-only folder: <game folder>) [ 0.000][30336][INFO ] XCL data: C:\Users\user1\AppData\Local\XCL\<package id> ... [ 185.308][37224][ERROR] unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x8023c348 rdx=0x1 rsi=0x7505fa08 rdi=0x4b5bebd27b7 rbp=0x0 r8=0x874c8c40 r9=0x874c8e20 r10=0x874c8ad8 r11=0x874c8c40 r12=0x4b59893f257 r13=0x146845c28 r14=0x7ffe3987b220 r15=0x4b5ad5de974 rsp=0x7505f990; on the stack: game_scarlett_master.exe+0x4e4ba89, game_scarlett_master.exe+0x2215c35, game_scarlett_master.exe+0x71b9a20, game_scarlett_master.exe+0x2215eca thread 29812 '': ntdll.dll+0x166464 < KERNELBASE.dll+0x1427f < game_scarlett_master.exe+0x22511f < game_scarlett_master.exe+0x25782e2 < game_scarlett_master.exe+0x2578607 < game_scarlett_master.exe+0x2215eca < KERNEL32.DLL+0x2dda7 < ntdll.dll+0xc9c5c ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:52:52 +00:00
Author
Owner

@⁠throny on GitHub · 2026-11-24 15:39 UTC · original

This is the known stop, and there is a switch for it on the commit you ran. Same location and the same four frames on the stack as in my runs on an RTX 4080 (driver 610.88), which end at 107 – 118 s on main without it.

  • What it is: the title's own watchdog ending the process when a thread stops checking in, here while a title thread waits for a big compute pipeline to be built during the world load. The maintainer's summary is in #846 (comment of 2026-11-24 10:06 UTC).
  • What to try: XCL_PSO_WAIT_MS=50 (on main since #891, so in 930e8b4). A bind then waits at most 50 ms for a pipeline that is still building; the dispatches skipped meanwhile leave their outputs unwritten, which is why it is opt-in.
  • What to expect on this class of card, from my two runs with it on main 384f7f7: the old stop is gone, the title goes about a minute further with a few presents, then XCL's GPU waits start timing out and the watchdog ends it at about 170 s (numbers in my comment on #846). So it moves the stop; it does not get into the world yet. The compile-time work behind that is in #1269.

If your run with the variable ends somewhere else than those two places, that would be new and worth adding to #846.

AI use: Claude Code (Claude Fable 5.2) wrote this from my own runs; no game data.

**@⁠throny** on GitHub · 2026-11-24 15:39 UTC · [original](https://github.com/xcl-dev/xcl/issues/1401#issuecomment-7136402769) This is the known stop, and there is a switch for it on the commit you ran. Same location and the same four frames on the stack as in my runs on an RTX 4080 (driver 610.88), which end at 107 – 118 s on `main` without it. - What it is: the title's own watchdog ending the process when a thread stops checking in, here while a title thread waits for a big compute pipeline to be built during the world load. The maintainer's summary is in #846 (comment of 2026-11-24 10:06 UTC). - What to try: `XCL_PSO_WAIT_MS=50` (on `main` since #891, so in `930e8b4`). A bind then waits at most 50 ms for a pipeline that is still building; the dispatches skipped meanwhile leave their outputs unwritten, which is why it is opt-in. - What to expect on this class of card, from my two runs with it on `main` `384f7f7`: the old stop is gone, the title goes about a minute further with a few presents, then XCL's GPU waits start timing out and the watchdog ends it at about 170 s (numbers in my comment on #846). So it moves the stop; it does not get into the world yet. The compile-time work behind that is in #1269. If your run with the variable ends somewhere else than those two places, that would be new and worth adding to #846. AI use: Claude Code (Claude Fable 5.2) wrote this from my own runs; no game data.
Author
Owner

@⁠nullerror13 on GitHub · 2026-11-24 15:49 UTC · original

This is the known stop, and there is a switch for it on the commit you ran. Same location and the same four frames on the stack as in my runs on an RTX 4080 (driver 610.88), which end at 107 – 118 s on main without it.

If your run with the variable ends somewhere else than those two places, that would be new and worth adding to #846.

AI use: Claude Code (Claude Fable 5.2) wrote this from my own runs; no game data.

Thanks! Will test with XCL_PSO_WAIT_MS=50 and report back.

**@⁠nullerror13** on GitHub · 2026-11-24 15:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/1401#issuecomment-7136684522) > This is the known stop, and there is a switch for it on the commit you ran. Same location and the same four frames on the stack as in my runs on an RTX 4080 (driver 610.88), which end at 107 – 118 s on `main` without it. > > * What it is: the title's own watchdog ending the process when a thread stops checking in, here while a title thread waits for a big compute pipeline to be built during the world load. The maintainer's summary is in [GTA VI 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846](https://github.com/ivall/xcl/issues/846) (comment of 2026-11-24 10:06 UTC). > * What to try: `XCL_PSO_WAIT_MS=50` (on `main` since [D3D12.X: XCL_PSO_WAIT_MS bounds how long a bind waits for a pipeline being built (retail world renders) #891](https://github.com/ivall/xcl/pull/891), so in `930e8b4`). A bind then waits at most 50 ms for a pipeline that is still building; the dispatches skipped meanwhile leave their outputs unwritten, which is why it is opt-in. > * What to expect on this class of card, from my two runs with it on `main` `384f7f7`: the old stop is gone, the title goes about a minute further with a few presents, then XCL's GPU waits start timing out and the watchdog ends it at about 170 s (numbers in my comment on [GTA VI 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846](https://github.com/ivall/xcl/issues/846)). So it moves the stop; it does not get into the world yet. The compile-time work behind that is in [[OFFICIAL] Looking for PRs with shaders optimization #1269](https://github.com/ivall/xcl/issues/1269). > > If your run with the variable ends somewhere else than those two places, that would be new and worth adding to [#846](https://github.com/ivall/xcl/issues/846). > > AI use: Claude Code (Claude Fable 5.2) wrote this from my own runs; no game data. Thanks! Will test with XCL_PSO_WAIT_MS=50 and report back.
Author
Owner

@⁠nullerror13 on GitHub · 2026-11-24 16:25 UTC · original

This is the known stop, and there is a switch for it on the commit you ran. Same location and the same four frames on the stack as in my runs on an RTX 4080 (driver 610.88), which end at 107 – 118 s on main without it.

If your run with the variable ends somewhere else than those two places, that would be new and worth adding to #846.

AI use: Claude Code (Claude Fable 5.2) wrote this from my own runs; no game data.

Tested with XCL_PSO_WAIT_MS=50 (same setup as the issue: XCL 0.1.0, RTX 4080 SUPER 16 GB, driver 610.88, Win11 26200).

What changed:

Got past the menu→world stop: loading screen and opening cutscene render (very laggy), audio decodes fine (47k Opus packets, 0 errors). The run now reaches t≈177 s (the original run died at ~30 s in the menu→world transition).
What happened after:

"a pipeline still being built after 50 ms" warnings start at t=37 s and the counter climbs to 1025+ by t=103 s. By t=147 s the stats line reads: 18666 draws with translated pipelines (12613 skipped, 1383 with PC pipelines), 16384 dispatches (18780 skipped).
t=115.85 s: first "D3D12.X: GPU queue.Wait ... did not complete within 5000 ms" (fence 0x6d1), auto-released on CPU.
t≈122 s: sparse upload queue stalls at fence 44065 — first 5 s warning at t=127.1 s (target already at 44069), repeating every 5 s until the crash (last at t=177.2 s).
t=177.582 s: same crash as the original issue — 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at 0x0), same stack.
So the switch clears the first stop, but the run then dies on a second GPU fence stall (sparse upload queue), at the same offset.

Note: this run was cold (shader cache empty), so pipeline building dominated the first minute; the cache is warm now, so the next run should be faster and get further. Happy to test a larger budget (e.g. 200/500) if that would help.

xcl-psowait50.log

report-psowait50.json

**@⁠nullerror13** on GitHub · 2026-11-24 16:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/1401#issuecomment-7137640916) > This is the known stop, and there is a switch for it on the commit you ran. Same location and the same four frames on the stack as in my runs on an RTX 4080 (driver 610.88), which end at 107 – 118 s on `main` without it. > > * What it is: the title's own watchdog ending the process when a thread stops checking in, here while a title thread waits for a big compute pipeline to be built during the world load. The maintainer's summary is in [GTA VI 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846](https://github.com/ivall/xcl/issues/846) (comment of 2026-11-24 10:06 UTC). > * What to try: `XCL_PSO_WAIT_MS=50` (on `main` since [D3D12.X: XCL_PSO_WAIT_MS bounds how long a bind waits for a pipeline being built (retail world renders) #891](https://github.com/ivall/xcl/pull/891), so in `930e8b4`). A bind then waits at most 50 ms for a pipeline that is still building; the dispatches skipped meanwhile leave their outputs unwritten, which is why it is opt-in. > * What to expect on this class of card, from my two runs with it on `main` `384f7f7`: the old stop is gone, the title goes about a minute further with a few presents, then XCL's GPU waits start timing out and the watchdog ends it at about 170 s (numbers in my comment on [GTA VI 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846](https://github.com/ivall/xcl/issues/846)). So it moves the stop; it does not get into the world yet. The compile-time work behind that is in [[OFFICIAL] Looking for PRs with shaders optimization #1269](https://github.com/ivall/xcl/issues/1269). > > If your run with the variable ends somewhere else than those two places, that would be new and worth adding to [#846](https://github.com/ivall/xcl/issues/846). > > AI use: Claude Code (Claude Fable 5.2) wrote this from my own runs; no game data. Tested with XCL_PSO_WAIT_MS=50 (same setup as the issue: XCL 0.1.0, RTX 4080 SUPER 16 GB, driver 610.88, Win11 26200). What changed: Got past the menu→world stop: loading screen and opening cutscene render (very laggy), audio decodes fine (47k Opus packets, 0 errors). The run now reaches t≈177 s (the original run died at ~30 s in the menu→world transition). What happened after: "a pipeline still being built after 50 ms" warnings start at t=37 s and the counter climbs to 1025+ by t=103 s. By t=147 s the stats line reads: 18666 draws with translated pipelines (12613 skipped, 1383 with PC pipelines), 16384 dispatches (18780 skipped). t=115.85 s: first "D3D12.X: GPU queue.Wait ... did not complete within 5000 ms" (fence 0x6d1), auto-released on CPU. t≈122 s: sparse upload queue stalls at fence 44065 — first 5 s warning at t=127.1 s (target already at 44069), repeating every 5 s until the crash (last at t=177.2 s). t=177.582 s: same crash as the original issue — 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at 0x0), same stack. So the switch clears the first stop, but the run then dies on a second GPU fence stall (sparse upload queue), at the same offset. Note: this run was cold (shader cache empty), so pipeline building dominated the first minute; the cache is warm now, so the next run should be faster and get further. Happy to test a larger budget (e.g. 200/500) if that would help. [xcl-psowait50.log](https://github.com/user-attachments/files/35356888/xcl-psowait50.log) [report-psowait50.json](https://github.com/user-attachments/files/35356895/report-psowait50.json)
Author
Owner

@⁠r17v1 on GitHub · 2026-11-24 19:28 UTC · original

RTX 5090 Laptop (24 GB), driver 621.40, Win11 25H2, 32 GB RAM — RTX 5090 Laptop data point (new: black screen + working audio)

xcl 0.1.0 built from main (snapshot 2026-11-24), Rust 1.100.0, DXC 1.9.2609.5 bundled. Retail 1.0.2.1.

Without the switch: same deterministic stop as this issue at t≈104.9 s (1447 presents, 12161 translated draws, UMA 4095/4095 MB).
With XCL_PSO_WAIT_MS=50: two runs, stops at t≈170.7 s (2092 presents, 2486/246 DXIL hits/misses) and t≈220.2 s (2272 presents, 2684/177 — warm cache helped). Both end with the identical crash: 0xc0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683, same four frames.
New observation: on this card the world never renders — black screen the whole time, but audio is fully working (Bink cutscene threads active, 16–18k Opus packets, 0 errors), i.e. the intro cutscene plays aurally but is visually black.
Root cause visible in the logs: compute PSO builds of 180–260 KB DXIL taking 40–100 s each in nvgpucomp64.dll (max 99.3 s), GPU queue.Wait ... did not complete within 5000 ms ... released on CPU to prevent GPU hang (12× at t≈174 s), sparse queue stalled at fence 48442.
Same two stops as described here; the black-screen + audio state is what I see instead of the cutscene rendering. Happy to rerun with any flag (e.g. a larger XCL_PSO_WAIT_MS) if useful.

**@⁠r17v1** on GitHub · 2026-11-24 19:28 UTC · [original](https://github.com/xcl-dev/xcl/issues/1401#issuecomment-7142159389) RTX 5090 Laptop (24 GB), driver 621.40, Win11 25H2, 32 GB RAM — RTX 5090 Laptop data point (new: black screen + working audio) xcl 0.1.0 built from main (snapshot 2026-11-24), Rust 1.100.0, DXC 1.9.2609.5 bundled. Retail 1.0.2.1. Without the switch: same deterministic stop as this issue at t≈104.9 s (1447 presents, 12161 translated draws, UMA 4095/4095 MB). With XCL_PSO_WAIT_MS=50: two runs, stops at t≈170.7 s (2092 presents, 2486/246 DXIL hits/misses) and t≈220.2 s (2272 presents, 2684/177 — warm cache helped). Both end with the identical crash: 0xc0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683, same four frames. New observation: on this card the world never renders — black screen the whole time, but audio is fully working (Bink cutscene threads active, 16–18k Opus packets, 0 errors), i.e. the intro cutscene plays aurally but is visually black. Root cause visible in the logs: compute PSO builds of 180–260 KB DXIL taking 40–100 s each in nvgpucomp64.dll (max 99.3 s), GPU queue.Wait ... did not complete within 5000 ms ... released on CPU to prevent GPU hang (12× at t≈174 s), sparse queue stalled at fence 48442. Same two stops as described here; the black-screen + audio state is what I see instead of the cutscene rendering. Happy to rerun with any flag (e.g. a larger XCL_PSO_WAIT_MS) if useful.
Author
Owner

@⁠bredune62 on GitHub · 2026-11-24 19:36 UTC · original

Same crash on NVIDIA GeForce RTX 4060 8GB (driver 621.24), Windows 11, main (commit c160d86, release build), title 1.0.2.1.

  • Without XCL_PSO_WAIT_MS: Reaches ~9,900 presented frames (~27–30 FPS), hits [STUB] d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 (not on PC) and several compute PSO builds, then crashes with 0xc0000005 (write at 0x0) at game_scarlett_master.exe+0x23cf683 with the same 4 stack frames (+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca).
  • With XCL_PSO_WAIT_MS=50: Advances further through compute PSO compilations (some 178–257 KB DXIL taking ~42–67 s), hits GPU queue.Wait 5,000 ms timeouts and sparse queue fence waits, and still ends at the exact same 0xc0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683.
**@⁠bredune62** on GitHub · 2026-11-24 19:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/1401#issuecomment-7142336578) Same crash on **NVIDIA GeForce RTX 4060 8GB** (driver `621.24`), Windows 11, `main` (commit `c160d86`, release build), title `1.0.2.1`. * **Without `XCL_PSO_WAIT_MS`:** Reaches ~9,900 presented frames (~27–30 FPS), hits `[STUB] d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 (not on PC)` and several compute PSO builds, then crashes with `0xc0000005` (write at `0x0`) at `game_scarlett_master.exe+0x23cf683` with the same 4 stack frames (`+0x4e4ba89`, `+0x2215c35`, `+0x71b9a20`, `+0x2215eca`). * **With `XCL_PSO_WAIT_MS=50`:** Advances further through compute PSO compilations (some 178–257 KB DXIL taking ~42–67 s), hits `GPU queue.Wait` 5,000 ms timeouts and sparse queue fence waits, and still ends at the exact same `0xc0000005` write at `0x0` in `game_scarlett_master.exe+0x23cf683`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.