Skip to content

xcl: 0xC0000005 read at 0x3e0 on the world-load path, in translated_mesh_stream, and the process never exits #1968

Backlog

Description

@tugasky

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@930e8b4 plus 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.

t event
10.5–12.3 s 40 × mesh pipeline with its MS … in the AS slot – refused — the deliberate AS-slot fallback (real.rs:4407–4415), which answers E_INVALIDARG
200.076 s thread dump, 125 threads
244.023 s GameInput: gamepad buttons 0x4 pressed for the first time — the person's A
244.8–289.6 s video memory 6 402 → 7 491 MB (7 491 from 268.2 s), target pages 3 603 → 4 576 MB: the world load
261–290 s 6 449 [SHADER] <stage> <hash>: … format xbox-native lines — 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)
290.069 s unhandled exception 0xc0000005 in ntdll.dll+0x1ff2a (read at address 0x3e0) rax=0x0 rbx=0x3 rcx=0x0
290.069–290.152 s 30 more [SHADER] lines from those same five threads: the fault took one thread, the pool ran on for 83 ms
then nothing: no exception report, no further activity, commit frozen at 22 481 MB

The frames

stack_callers scans the stack for module pointers, so several entries are data. Symbolised against the matching xcl.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+0x6192e4 and xcl.exe+0x6cd28c resolve 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:

this report #1505, #333 #1401, #1374
exception 0xC0000005, read at 0x3e0 0x80000003 (int3) with rax=0x8007000e 0xC0000005
where ntdll.dll+0x1ff2a, stack scan resolves an XCL frame: translated_mesh_stream the title's game_scarlett_master.exe+0x193e00f (#1505) / +0x10e0ec (#333), asserting on E_OUTOFMEMORY it was handed the title's own code
memory at the time 22 481 MB of a 32 768 MB cap — not at the cap, no 0x8007000E in the log at the ceiling the machine has not established
phase the world load, after the menu the EULA/account screens (#1505, 24 GB RAM, no cap mentioned) and the world load with a cap (#333) menu and load

The difference that matters to a reader: in #1505 and #333 the title is handed an E_OUTOFMEMORY and chooses to int3 on it — the fix is on the budget or the refusal path. Here nothing is refused, the log has no 0x8007000E at 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 Close caller 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 0x8007000E anywhere. 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 read 0 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 0xc0000005 line 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, and XCL_RUN_SECONDS=300 never fired — only Stop-Process ended 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=0 with the read at 0x3e0 is 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:

  • the exception line with a function name rather than ntdll.dll+0x1ff2a — that needs the symbolizer reachable from modules::describe_address, which xcl run: thread dumps name XCL's own functions from xcl.pdb #1811 does for thread dumps only;
  • a second occurrence. This is one run: the same press path at 32 768 MB produced a 0xC0000409 (XCL's own allocation abort, since fixed) on another attempt and an E_OUTOFMEMORY assert 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.

Activity

  1. JJAutoCompare commented on Nov 25, 2026

    @JJAutoCompare

    I checked the shutdown path against the reported base 930e8b4 and the later checkout 80f4819.

    Verified in source

    Hypotheses for this run

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

  2. JJAutoCompare commented on Nov 25, 2026

    @JJAutoCompare

    One code-level follow-up to the investigation above about #967. At c997205, hk_nt_terminate_process sets ENDING before 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions