[crash] 0xc0000005 null write in game code at menu→world transition (RTX 4080 Super, wave32) #1401
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1401
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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:
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
930e8b4GPU 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:
report.json
xcl.log
Console output
@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
mainwithout it.XCL_PSO_WAIT_MS=50(onmainsince #891, so in930e8b4). 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.main384f7f7: 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.
@nullerror13 on GitHub · 2026-11-24 15:49 UTC · original
Thanks! Will test with XCL_PSO_WAIT_MS=50 and report back.
@nullerror13 on GitHub · 2026-11-24 16:25 UTC · original
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
@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.
@bredune62 on GitHub · 2026-11-24 19:36 UTC · original
Same crash on NVIDIA GeForce RTX 4060 8GB (driver
621.24), Windows 11,main(commitc160d86, release build), title1.0.2.1.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 with0xc0000005(write at0x0) atgame_scarlett_master.exe+0x23cf683with the same 4 stack frames (+0x4e4ba89,+0x2215c35,+0x71b9a20,+0x2215eca).XCL_PSO_WAIT_MS=50: Advances further through compute PSO compilations (some 178–257 KB DXIL taking ~42–67 s), hitsGPU queue.Wait5,000 ms timeouts and sparse queue fence waits, and still ends at the exact same0xc0000005write at0x0ingame_scarlett_master.exe+0x23cf683.