xcl: 0xC0000005 read at 0x3e0 on the world-load path, in translated_mesh_stream, and the process never exits #1968
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#1968
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?
@tugasky on GitHub · 2026-11-25 00:04 UTC · original
### What happened
Retail title 1.0.2.1, release build, on the way into the world. Two separate problems in one run, and the second is the reason a player would see "loading forever".
Build and machine:
main@930e8b4plus local changes (not a commit anyone can rebuild — the changes are an enforced commit cap, an allocation census, a crash reporter and work in the D3D12.X layer). AMD Ryzen 7 9700X, 32 GB RAM, page file 73 728 MB, AMD Radeon RX 9070 XT (16 191 MiB VRAM), driver 32.0.32029.2010, Windows 11 Pro build 26300. Run settings:XCL_TITLE_COMMIT_CAP_MB=32768, guard limit 52 GB, thread dumps at 200 s and 290 s,XCL_RUN_SECONDS=300, no scripted input — a person pressed A at 244.023 s.mesh pipeline with its MS … in the AS slot – refused— the deliberate AS-slot fallback (real.rs:4407–4415), which answersE_INVALIDARGGameInput: gamepad buttons 0x4 pressed for the first time— the person's A[SHADER] <stage> <hash>: … format xbox-nativelines — console shader containers being parsed (gpu/shader.rs:295), 1 695 of them in the last five seconds (~340 a second), on five worker threads (tids 19876, 24072, 31820, 42616, 47868)unhandled exception 0xc0000005 in ntdll.dll+0x1ff2a (read at address 0x3e0) rax=0x0 rbx=0x3 rcx=0x0[SHADER]lines from those same five threads: the fault took one thread, the pool ran on for 83 msThe frames
stack_callersscans the stack for module pointers, so several entries are data. Symbolised against the matchingxcl.pdb:xcl.exe+0x1aa2b6=xcl::hle::d3d12x::real::translated_mesh_stream,real.rs:4468— the only scanned entry that is code, and the offset is inside the function's last line, so the line tables give the closing brace and nothing finer.xcl.exe+0x6192e4andxcl.exe+0x6cd28cresolve to_tls_end+…and__dyn_tls_init_callback: data, false positives from the scan.So the faulting path is XCL's own streaming code — and note that the same function is where the 40 AS-slot refusals above come from: that refusal is on purpose (translating those console pipelines as mesh shaders gave a black screen every run), so it is context for where the title is, not the cause of the fault.
Why this is not a duplicate of #1505, #333 or #1401
It looks like the memory-ceiling reports at first glance, and I would rather say why it is not than have it closed as one:
0xC0000005, read at0x3e00x80000003(int3) withrax=0x8007000e0xC0000005ntdll.dll+0x1ff2a, stack scan resolves an XCL frame:translated_mesh_streamgame_scarlett_master.exe+0x193e00f(#1505) /+0x10e0ec(#333), asserting onE_OUTOFMEMORYit was handed0x8007000Ein the logThe difference that matters to a reader: in #1505 and #333 the title is handed an
E_OUTOFMEMORYand chooses toint3on it — the fix is on the budget or the refusal path. Here nothing is refused, the log has no0x8007000Eat all, and the process reads through a null pointer inside XCL and then never exits. That is a bug in XCL's streaming code, not a memory ceiling.For the record the other two do belong together, and #333's comment gets the
Closecaller for them.It is not the commit cap
Commit at death was 22 481 MB of a 32 768 MB cap, the guard's 52 GB limit was untouched, and the log contains no
0x8007000Eanywhere. The cap was reached earlier in the same run — 32 767 MB at 27 s — and the title folded itself back down to 19 443 MB by 135 s; all 130 census lines in the run read0 refused (0). Reached, never enforced into a refusal. So nothing on the memory side is being refused at the moment this crashes.The second problem: it never exits
The
0xc0000005line is not the end of the log: 30 more[SHADER]lines follow over 83 ms, all from the five translation threads, so the fault took one thread and the pool carried on. Then the log stops, and nothing follows at all. The process still existed 20 minutes later with 125 threads, 0 ms of CPU over 0.8 s, commit frozen, andXCL_RUN_SECONDS=300never fired — onlyStop-Processended it. A crashed title that never exits is not a stall the watchdog or a player can wait out, and it is worth its own fix even after the crash itself is gone.Hypothesis, and what would settle it
rcx=0with the read at0x3e0is what a null buffer pointer looks like when the D3D12 layer walks a structure field, and the faulting function is a mesh-stream path — so a stream buffer that came back null and was used without a check is the shape I would look for. Two things would settle it in one run and I have neither:ntdll.dll+0x1ff2a— that needs the symbolizer reachable frommodules::describe_address, which #1811 does for thread dumps only;0xC0000409(XCL's own allocation abort, since fixed) on another attempt and anE_OUTOFMEMORYassert in a third, so the failure mode at this point in the load is not stable across runs.Related: #1833 is the goal this blocks, #1268 is the closest open work on streamed title resources at world load (a cost, not this crash).
Written by Claude (Anthropic) under my review; numbers from runs on my machine, no game data included.
@JJAutoCompare on GitHub · 2026-11-25 00:30 UTC · original
I checked the shutdown path against the reported base
930e8b4and the later checkout80f4819.Verified in source
report.json, flushes the log, and only then invokes the title’s registered filter. The report writer bounds its own lock acquisitions, but the report build can block on subsystem locks. The exception line alone leaves both report completion and entry into the title filter unverified.end_titlestarts its 15-second fallback. Even the fallback callsTerminateProcessthrough XCL’s termination hook, which does diagnostics before calling the real function. Open #967 adds a post-exception deadline that bypasses this hook.Hypotheses for this run
ntdllAV at 290.069 s coincides with the scheduled 290 s dump. The dump code resumes a target thread before unwinding its live stack, a race addressed by open #253. The scannedtranslated_mesh_streamaddress is insufficient to identify the faulting caller. The exception log’s thread ID and a symbolizedntdllframe from the same Windows build would help establish whether the dumper faulted.report.jsonwas updated and whether a title minidump appeared, would help distinguish an XCL reporting wait from the title’s minidump or termination hook.#1942 persists the translated compute and mesh PSOs. #1936 and #1937 address stream fields and topology, and #630 addresses console MS slot numbering. Those are relevant to mesh-stream triage. None of the evidence in this run ties those changes to the exit hang.
Source and existing PRs reviewed. No local code changes, tests, or retail-title reproduction. AI use: Codex (gpt-6.2-sol) traced the source and drafted this comment.
@JJAutoCompare on GitHub · 2026-11-25 00:30 UTC · original · edited 2026-11-25 00:32 UTC
One code-level follow-up to the investigation above about #967. At
c997205,hk_nt_terminate_processsetsENDINGbefore dumping threads and flushing. The deadline exits when that flag is set. If the hook stalls during diagnostics, the deadline can disarm before the real Windows call. The fallback itself also logs and flushes through a blocking logger before attempting termination. I verified this ordering from source without reproducing the retail hang. Deadline and hook · Assisted by Codex (gpt-6.2-sol).