Repository navigation
Description
Setup
- GPU: NVIDIA GeForce RTX 5070 (12 GB), Windows 11, 32 GB RAM, Ryzen 7 7800X3D (16 threads)
- XCL 0.1.0 (current main), DXC from Windows SDK 10.0.26100
- Title: retail Series X|S RAGE title (Scarlett build), run with
device_type = "lockhart"(anaconda ran out of commit),XCL_NETWORK=0
Main issue: graphics PSOs never get built on NVIDIA
The title reaches its first frame (~13 s), loads the offline user, then the screen stays black. The window title stays at
compiling shaders: 0 running, 131 done, 2428 pipelines queued for 10+ minutes.
Thread dumps (XCL_THREAD_DUMP_AT) show every xcl-pso-N worker and the D3D Background Threads inside nvgpucomp64.dll, waiting in the ntdll heap lock:
'xcl-pso-0': ntdll+0x16a054 < ntdll+0x1a61d < ntdll+0x1bd1f < ntdll+0x1cf92 < ntdll+0x9633d < ntdll+0x5572d < ntdll+0x31cfb < nvgpucomp64.dll+0x627e34 < nvgpucomp64.dll+0x1588d19 < ...
'xcl-pso-2': ntdll+0x16a054 < ntdll+0x1a61d < ntdll+0x1bd1f < ntdll+0x1cf92 < ntdll+0x5455e < ntdll+0x27850 < nvgpucomp64.dll+0x627dd0 < nvgpucomp64.dll+0x802d04 < ...
'D3D Background Thread 0': (same heap wait) < nvgpucomp64.dll+0x627dd0 < ...
It is not just contention between workers:
XCL_DXC_THREADS |
result |
|---|---|
| default (15) | last PSO at 238 s, nothing more until the window was closed at 656 s |
| 4 | PSOs nearly stop after ~130 s; all 4 workers in nvgpucomp at 240 s and 290 s |
| 1 | only 7 PSOs between 60 s and 150 s; then PSO stream rejected (0x80070057), the fallback version too and the title hits a breakpoint (0x80000003 at title+0xcc2834) |
Translated DXIL is large (many 100–500 KB compute programs, the biggest ~800 KB), so I suspect the wave64-on-wave32 translation produces programs NVIDIA's compiler handles extremely slowly. Early on there are also graphics PSO rejected (0x8007000e), the fallback version too.
Happy to run more tests (logs, other drivers, env switches).
Fix 1: chad.dll (XDsp) stubs make the title assert
chad.dll!XDspConnectWithMaximumStreamLimit returned E_NOTIMPL (stub DB), and 1 ms later the title hit an assert (0x80000003, its caller's address in rdx). From the call site the arguments are Connect(u64, u32, u32 streams, 0x80, 1, &handle). The handle is pointer-sized and later passed to XDspActivate(handle, …). Every result is checked against 0.
Routing chad.dll to acphal and implementing the five functions like the rest of the audio processor (Connect hands out a zeroed page as handle; Activate/SubmitCommand/Deactivate/Disconnect return S_OK) gets past it: chad: XDsp connected (…, 30, 0x80, 0x1) → handle ….
Fix 2: XMemMapPhysicalPagesScatter is quadratic and trips the title's watchdog
A single call with 6720 pages ran > 23 s and the title's hang watchdog fired (mov dword [0], 0 at title+0x2215c35). Cause: every page goes through unmap_away → sparse::decommitted → decommit_tiles, which runs to_zero.retain(…) over the whole to_zero list. to_zero only drains at the next submit, so during loading it keeps growing.
Fix:
XMemMapPhysicalPagesScattercollects the sparse commits/decommits of the whole call (SparseBatch) and reports them at the end as runs of adjacent pages (decommits first).- New
sparse::decommitted_manydoes one tile-mapping update per window and one fence signal. - Stale
to_zeroentries are dropped where the list is taken (take_to_zero), not on every decommit.
After the fix: Scatter #0: 6720 pages … copy 123 ms, unmap 416 ms. Diffs available if useful.
Side note
Without XCL_NETWORK=0 the title's crash reporter uploaded a ~34 MB minidump of the XCL process (Windows user name, PC name, paths) on each crash. Maybe worth making offline the default, or at least warning about it.
Activity
Kalmarv commentedon Nov 23, 2026
I am investigating a bounded synthetic reproduction on Windows / RTX 5070 Ti, independently of the lazy-PSO and DXC-memory changes in #162/#139. I noted your 15/4/1-worker measurements: a single worker also stalls, so I am not treating concurrency as an established cause or proposing a cap without new evidence.
Initial scope is CPU/DXC preparation plus small, separately scheduled driver-compilation checks using synthetic shaders. No retail run, no global driver-cache changes, and no implementation claim beyond the investigation yet. I will report the exact head, shader characteristics, timings and limits if it reproduces, including a negative result if it does not. AI-assisted; no game files.
Kalmarv commentedon Nov 23, 2026
These are driver numbers from a synthetic probe on an RTX 5070 Ti with driver 610.74 on Windows 11. The probe uses compute pipelines only, so it stands in for the graphics stalls here and does not reproduce them.
On this card and driver:
0x80070057/0x8007000e), no hangs and no timeouts.What this does not cover:
Each size was measured with one or two programs.
Setup: main
956a476plus a local ignored bench, not pushed. The bench builds synthetic programs through XCL's recompiler, DXC andCreateComputePipelineStatefrom one thread. "First creation" means programs the driver had never seen; its cache was not cleared. No game data. AI-assisted.mariuslozo-boop commentedon Nov 23, 2026
Retail driver numbers for this issue, measured on an RTX 5070 Ti (16 GB), driver 616.92, Windows 11 26300, DXC from SDK 10.0.26100. I compared
mainat956a476with #187 at8c0346d. The shaders are records from the retailshaders.rpf(1.0.2.1) passed in throughXCL_SAMPLE_RPF; no game files are attached.Method: a local ignored bench test, not pushed (code available if useful). It translates records the way the runtime does, through
pso::console_to_dxil_for/pso::console_meshwith the split wave64 form and 4 memory windows, compiles them with DXC, and times only theCreatePipelineState/CreateComputePipelineStatecall on its own device. It uses one thread, and the driver has never seen these programs on this machine before. A pixel shader is paired with the pass-through MS thatconsole_meshmakes for it. "MS" below is the compute pass of the two-pass mesh pipeline.Driver time per pipeline
main: DXIL, driverMS_VS_Transform*,PropFoliage…Fire)PS_Textured_Eight*,PS_PedTextured_Eight_Decals*, …)*:CS_RaytracingResolve_ae7b7f3c(5)rtdirectionalshadows:CS_RTShadowTrace32TemporalHQ_OneOver8RPP_Tiled0x8007000E)cascadeshadows_rendering:CS_ShadowRenderTiledCascadesCBPPPCrtdirectionalshadows:CS_RTShadowTrace32{TemporalHQ_OneOver2RPP,TemporalHQ,HQ}_TiledOn this card:
switchmatters a lot on retail programs. Memory windows from the descriptor heap (no per-access switch); NVIDIA OOM fallback; physical-page fixes #187's heap windows cut driver time 2–2.5× on MS / PS and 12–15× on the 1.3 MB ray-tracing resolve CS. That differs from the synthetic probe above, where structure did not change driver time at equal size.A regression in #187 on NVIDIA: 5 pipelines that build on
mainfailWith #187, these fail every time, in under a second, with
E_OUTOFMEMORY(0x8007000E):PS_PedTextured_Eight_Decals_6c7ff3fe,_52f61330,_70522ddbPS_MIRROR_PBR_MATERIAL_CLEARCOAT_GLINTS_5f34c83ertdirectionalshadows:CS_RTShadowTrace32TemporalHQ_OneOver8RPP_Tiled_bfd3b062On
mainthe same four PS build in 9.7–17 s. There were 41 GB of commit free, and the D3D12 debug layer reports nothing, so the driver itself rejects them.To narrow it down, I tried variants on the four PS:
ResourceDescriptorHeap[NonUniformResourceIndex(0u + (xcl_w < 4u ? xcl_w : 0u))]NonUniformResourceIndex, in the window accessor only and then everywhereResourceDescriptorHeap[0u](compile test only, wrong results)XCL_HEAP_WINDOWS=0(the switch)So on this driver, a heap index that depends on the window makes these programs fail, and
NonUniformResourceIndexdoes not. One difference I saw but have not proven to be the cause: the failingPS_PedTextured_Eight_Decals_6c7ff3fehas 29[loop] for (;;)against 9 inPS_Textured_Eight_e0305669, which is of similar size and builds. Both contain the same accessor kinds: 5xcl_mStoreand 28xcl_mInterlocked.A possible fix for #187, not implemented or tested yet: when the driver rejects a pipeline built with heap windows, translate that program again in the switch form and retry. The root signature still has
u2..u5and the windows are still bound as root UAVs, so the switch form should work there without other changes. I can try this next if it helps.AI-assisted (Claude Code).
Kalmarv commentedon Nov 23, 2026
A finding from the #174 review that matters here: which DXC builds the shaders changes NVIDIA's driver time a lot (numbers).
The same
mainbinary on an RTX 5070 Ti (NVIDIA 610.74), synthetic translated compute programs, fresh seeds:CreateComputePipelineStatedxcompiler1.7.2308)DXC 1.9 emits DXIL half the size or less, and the driver then compiles it 1.4–2.2× faster. DXC's own time goes up somewhat for a whole compile. The driver times in my earlier table above were taken with the SDK's DXC. Anyone seeing pipelines that never finish on NVIDIA: it's worth checking which
dxcompiler.dllXCL loads and trying 1.9.Not tested: AMD, a retail pack, DXC 1.8.
AI-assisted (Claude Code).
ivall commentedon Nov 23, 2026
Status on main: console pipelines are now created at their first use (
pso_async::lazy, default;XCL_LAZY_PSO=0turns it off), so the driver only builds what a frame binds, big compute pipelines (256 KB+ DXIL) are built in the background one at a time, and DXC uses -O1 from 1 MB of HLSL. The heap-lock contention in your dumps is also what theaustinayers' fork addresses for DXC (a private heap per compile thread, f0928b0 there) - that does not cover nvgpucomp64's own allocations, though. Kalmarv's finding that the DXC build changes NVIDIA's driver time a lot is worth a line in the README once confirmed; #174 / #187 are the larger changes in flight. A fresh run on current main would tell how much of this is left.DXC: log and report the loaded version, note below 1.8, newest DXC am…
MaurycyBartczak commentedon Nov 23, 2026
Fresh retail run on current main
60565c4dxcompiler1.8.2502.11 (not 1.9)XCL_NETWORK=0 XCL_RUN_SECONDS=240 XCL_ACTIVITY=1 xcl run <GTA6 Xbox 1.0.2.1>, default settings (XCL_LAZY_PSOunset, so lazy is on). Nobody touched the controller, so the run stayed at the account prompt the whole time. It ended cleanly at 240 s with exit code 0.Results
background_pipelines= 8 built, 0 failed. The window title readcompiling shaders: 0 running, 0 done, 57815 pipelines queuedin every sample from 195 s, when sampling started, to 240 s.failed_pipelines0,fallback_pipelines0.Compared with the earlier run on
0cd0a530cd0a53(180 s, title)60565c4(240 s)0cd0a53already hadpso_async::lazy(38b05b7). Readingpso_async::counts(), the "queued" number counts every stand-in not built yet, including the lazy ones that were never bound and never went to a worker. On this machine the ~58k number is therefore not a backlog in nvgpucomp64: the title creates ~58k pipelines and binds about 8 of them at the menu. A side effect is that the title says "compiling shaders" for the whole run while nothing compiles. It might help to show the lazy, never-bound pipelines separately from the ones actually sent to the workers.Two earlier manual runs got into world loading (one on
0cd0a53, one on60565c4, see below). At the time of their crashes they also showed only 16 and 14 pipelines built, 0 failed, and 5 and 3 DXC compiles.What this run does not cover: the large compute programs (
CS_RaytracingResolve,CS_RTShadowTrace*, the cascade shadows) were never bound at the account prompt. So it cannot say whether the multi-MB CS stall is gone. To test that, the run has to get into the world, and both runs that did so crashed first. A cold-cache run (empty DXIL cache) would also be needed to measure DXC and driver time.Two crashes while loading (earlier manual runs, for reference, probably not #156)
These came from runs where someone pressed A at the menu. They happened while the world was loading, and they may well be unrelated to pipelines. They might belong in a separate issue.
0cd0a53game_scarlett_master.exe+0x35a4999at an address ending…d000000.rbx= that address − 4+0x35a47bc, writing at 0x50 bytes past the same boundary. DirectStorage request #65536 was logged 42 ms earlier. The stack includes+0x13a78and+0x4dd1f4e.60565c4game_scarlett_master.exe+0x13936(a heap address,rax= a vtable in the exe)+0x4dd1f4e. That frame is shared with the first crash, and+0x13936is close to the first crash's+0x13a78.Both runs were preceded by BCPack refusals, all failing with E_DECOMPRESSION: BC1 "mode N unsupported" 1,030 / 400 times, BC5 107 / 107, BC6H 1 / 1 and BC7 118 / 52. Both also had DirectStorage failures:
0x892400097 / 8 times and0x892400307 / 7 times. In the0cd0a53run, presents nearly stopped after about 72 s, andWait64BitValueXtimed out at 77–84 s. That is probably what d4f17ca fixes.AI-assisted (Claude Code); no game files attached.
Raxstreams commentedon Nov 23, 2026
On an RTX 3080 Ti, XCL sustained 30 presentations/s at the Player1 account prompt after the first launch. The title bar still showed 57,817 pipelines queued. Forcing the first launch’s coherent memory window size on a warm run reproduced a substantial slowdown.
Tested on
7a033c8cd13194900cd49c01ed60a59c6c9559c7, release build, retail Series X profile (1.0.2.1). Windows 11 build 26200, Ryzen 7 5800X, 32 GB RAM, RTX 3080 Ti 12 GB, NVIDIA 617.14, DXC 1.8.2502.11, Rust 1.100.0.For the warm runs I used
xcl run <game-folder>withXCL_NETWORK=0,XCL_ACTIVITY=1,XCL_FRAME_DUMP=180and no input. The automatic run usedXCL_RUN_SECONDS=240and recorded 6,789 PresentX calls. The control usedXCL_COHERENT_MB=512andXCL_RUN_SECONDS=110and recorded 1,032 calls. Rates in the table use deltas over the same elapsed interval. Both final sampled frames showed the account prompt and matched byte for byte. Both runs exited 0 with six background pipelines built, zero failed, and zero frame-event timeouts.The large pending count coexisted with both rates. Coherent window size is worth recording alongside cache state when comparing this scene. World streaming and large compute PSOs were outside this test.
AI-assisted test report and measurements using OpenAI Codex (GPT-6).
D3D12.X: draws wait at most 4 s a frame for pipelines still building
imnicho commentedon Nov 23, 2026
Driver numbers from one more NVIDIA machine, on the two things the tables above leave open: more than one creator thread, and what a running title waits for.
Method. A local ignored test that reads a folder of
.dxil(XCL's DXIL cache afterxcl shaders <pack> --precompile --limit 2650), takes the compute programs and timesCreateComputePipelineStatealone, with the ABI root signature, on N threads. The programs are the compute passes of the mesh programs of a retail pack: 2 262 of them, 228 MB of DXIL, split wave64 form, 128 threads a group, 4 memory windows. The driver had not seen them (its cache files for the test executable were removed between runs). No game files are attached.Driver time against creator threads (disjoint 1-in-20 samples of the 2 262)
Driver time against size (one at a time, 114 programs)
Created a second time in the same process: 5.9 ms median, 69 ms at most.
Memory windows
The same 175 programs (first 300 records) translated with 4 windows and with 1, four pipelines at once, runs interleaved: 21.1 / 22.9 / 20.5 s against 12.7 / 12.2 / 12.3 s (DXIL 6.2 MB against 4.3 MB). That agrees with the retail numbers above for #187, on smaller programs.
What the title waited for on this machine
Not the driver. With the caches cold the title showed 33 frames in 300 s and with them warm 861, and in every thread dump of both runs its main thread was in XCL's illegal-instruction handler: this CPU has no CLZERO, the title zeroes memory with it, and each emulated instruction asked
VirtualQueryabout memory. One compute pipeline was built in the whole cold run; thexcl-psoworkers were idle. I am opening a PR for that part.The timing test is on a local branch (one file, no change to the runtime); I can open it as a PR if it is wanted next to the two benches mentioned above.
AI-assisted: Claude Code with Claude Fable 5.2 wrote the test and this report; every number is from a run on the machine named.
Update, 24 Nov – what the title waits for now, and heap windows on current
mainCopyFromSubresourcefix (XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684), the title gets to its world's graphics set-up on this PC (115 – 170 s into a run), and from there it does wait for the driver: compute pipelines built at their first bind in a title thread, one after another (sizes and times in my comment on D3D12.X: a slow graphics pipeline waits at most 4 s once per build (#232) #267).main: draft Recompiler: memory windows from the descriptor heap (no per-access switch) #680). The first 83 compute programs of the pack's compute section, same executable with and withoutXCL_HEAP_WINDOWS=0, 3 rounds in turn, DXIL cache and driver cache cold in every run, 4 pipelines at once: driver 329.9 / 363.0 / 341.8 s → 41.7 / 40.3 / 40.5 s, DXC 40.0 / 37.2 / 36.9 s → 29.9 / 30.4 / 31.9 s, DXIL 7.6 MB → 5.9 MB (about 5.7 s of each figure is reading the pack).E_OUTOFMEMORYin two runs (2 and 1 of them); they were built in the switch form, as Memory windows from the descriptor heap (no per-access switch); NVIDIA OOM fallback; physical-page fixes #187's fallback does.xcl-psoworker innvgpucomp64, the other 6 and all 7xcl-dxcworkers idle. In 265 s of that run 285 compute pipelines were built that way, 43 of them took 1 s or more (173 s of 202 s in all, the longest 23.4 s, DXC and driver together).Kalmarv commentedon Nov 23, 2026
Synthetic driver numbers on
main60565c4, on two things above that are still open: when DXC 1.9 makes smaller DXIL, and what makes one pipeline take minutes. Compute pipelines only, no game files.1. DXC 1.9 made smaller DXIL only where XCL compiles with -O1 (HLSL over 1 MiB). At the default level both DXCs made the same DXIL, as @nFaktorial saw on straight-line programs. Driver
CreateComputePipelineState, one creator thread, 2 programs per cell, each on a fresh seed:Above 1 MiB, DXC 1.9 took 1.0–2.2× as long as 1.7 on these programs, not the 12–45× @nFaktorial measured on straight-line ones. That difference depends on the program shape too.
2. Four memory windows on memory-dense code made one pipeline take over 2 minutes and about 12 GiB of commit. AD1 and AD4 differ only in the window count:
3. One long build is the driver's compiler working, not waiting for the heap lock.
nvgpucomp64.dllon the stack.RtlAllocateHeap/RtlFreeHeap, running.The lazy pipelines on
mainchange when a pipeline is built, not what one costs. This bench callsCreateComputePipelineStatedirectly.Tested
main60565c4.XCL_DXC_DIR).Not tested
🤖 Claude Opus 5.5
D3D12.X: a draw waits at most 4 s for a pipeline still building
klNuno commentedon Nov 23, 2026
Note
Clanker Claude Opus 5.5 is responding on behalf of meetsu
There is a separate case in the API discussed in Fix 2. When the address array is valid and the page array is null, XMemMapPhysicalPagesScatter returns FALSE with ERROR_INVALID_PARAMETER. That guard is still present on 85bdf21. The internal mapper already handles a null page array by unmapping. A local change on 4017f8f accepts the null array and passes it through for each address.
Tested
Not tested
AI use
Docs: measured compile-time effects of memory windows and DXC version
vladbondarenko97 commentedon Nov 24, 2026
Same wall, different NVIDIA generation, and one data point you don't have: a complete package (every archive present, incl.
audio.rpf) reaches its first present instead of hanging at 0 presents.Setup: Windows 11, RTX 3080 Ti (Ampere, 12 GB), xcl
origin/maindb1ddb2(so it includes theXCL_NETWORK=0whole-process fix), retail 1.0.2.1 Series X package with all archives,XCL_NETWORK=0,XCL_FRAME_DUMP=2,XCL_TRACE_FAULTS=1. Notlockhart— default device type.What we get: the title presents at ~4–6 s —
D3D12.X: PresentX – the title presents its own frames (1 plane(s)), swap chain3840x2160 DXGI_FORMAT(28),present: first game frame shown (3840x2160). Then ~1.5 s later it dies. The dumped frame (frame_1.bmp, quarter-size 960x540) is uniform black — consistent with the numbers right after the present:So it presents a frame it never drew into. Pipeline accounting matches your window title:
Thread dumps line up with yours. Every PSO worker is parked on the same ntdll frame as in your dumps (
ntdll+0x16a054first), e.g.and several threads sit in your watchdog region:
But our death is not your Fix-2 watchdog write. Ours is an
int3, not themov dword [0], 0at+0x2215c35:So on Ampere the stall is there (workers parked, 0/50,561 pipelines) but the failing assert is
title+0x1330a44, withrcx=0xfffffffd,rdx=0x1000,rbp=0x10000— which reads more like a memory/pages path than the watchdog.On your two fixes, from our side:
chad.dllXDsp →acphal): we appear to be past it already — our run logsacphal: APU connected (4096 commands, 4096 messages)andacphal: ApuCreateHeap(...), and our title does not importchad.dllat all (imports_by_sourcelists onlyamd_fidelityfx_loader_xbox,bink2scarlett,libhttpclient.gdk,msvcp140,vcruntime140*,xboxbvhbuilderas game DLLs). So no assert there for us.XMemMapPhysicalPagesScatterquadratic → watchdog): plausible for us too, since four threads sit in the watchdog region, which is why I'd like to test it — if the diff exists as a branch, we'll build it here and report the numbers (RTX 3080 Ti, complete package, bothxcl-smoke-style counts and the pipeline accounting above). If you'd rather keep it, no problem — the diagnosis alone is already useful.Nothing else here needs a reply; the numbers above are the whole point.
AI-assisted (Claude Code CLI via a model proxy; the run and every log line above are xcl's own output).
15 remaining items
Docs: measured compile-time effects of memory windows and DXC version
D3D12.X: bound driver PSO compile concurrency and surface stage progress
kernelx: XMemMapPhysicalPagesScatter with no page array unmaps the ad…
D3D12.X: a draw waits at most 4 s for a pipeline still building
D3D12.X: bound driver PSO compile concurrency and surface stage progress
Shaders: isolate DXC compiler heaps for parallel AOT
MaurycyBartczak commentedon Nov 24, 2026
Follow-up to my earlier comment, now on
mainb7aa9f3, with the same machine (RTX 5070 Ti, driver 621.24, DXC 1.8.2502 from the SDK, 64 GB RAM).XCL_NETWORK=0, release build, A pressed through the menus by hand.What got better since
60565c4:bcpack_refusedis empty.bcpack_unpacked: BC1 2,082 requests, BC5 108, BC6H 1, BC7 208, all withfailed: 0. The earlier runs refused 400–1,030 BC1 requests.game_scarlett_master.exe+0x13936(75–79 s, in both runs on60565c4and63b9930) is gone.background_pipelines773 built, 0 failed.failed_pipelines0.New crash, while loading, at 133 s:
This is a null write:
rax=rbx= 0. The last lines before it are background compute PSOs (12–55 KB of DXIL, 64–328 ms each), with nothing unusual. One stub was new in this run:ID3D12GraphicsCommandList10::#101 (not on PC), 16 calls, first fromgame_scarlett_master.exe+0x50a6657. The others are the same as before: allocator #9, list #75/#126/#142/#131/#132, queue #31.I couldn't find this address in an existing issue. If it belongs in an issue of its own instead of here, I can move it there.
AI-assisted (Claude Code); no game files attached.
MaurycyBartczak commentedon Nov 24, 2026
Follow-up: the
0xc0000005atgame_scarlett_master.exe+0x23cf683("write at address 0x0") during the first load is not a NULL from a failed allocation. It is the title's own hang watchdog. The watchdog fires about 30 s after presenting stops while the title builds compute pipelines. The crash is deterministic.Setup: XCL
b7aa9f3(release build of that commit). RTX 5070 Ti 16 GB, driver 621.24. Ryzen 7 9800X3D, 64 GB RAM. Windows 11 26300, DXC 1.8.2502. All runs usedXCL_NETWORK=0andXCL_RUN_SECONDS=200. Runs 1–5 also usedXCL_ACTIVITY=1andXCL_PRESS_A_AT=15,20,25,30,35,40,45,50,55,60. Those presses take the title from the account prompt through to the loading screen, which starts at about 16 s.XCL_ACTIVITY)XCL_TRACE_MEM=200000XCL_THREAD_DUMP_AT=66,78,86,90XCL_PSO_WAIT_MS=2000Every run has the same crash line:
rax=0x0 rbx=0x0and stack+0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca.ID3D12GraphicsCommandList10::#101is called 14–18 times in each run, first from +0x50a6657.bcpack_refusedis empty in every run. No nvlddmkm or 4101 events appeared in the System log.What the crash is: the frames in the crash line (+0x2215c35 / +0x2215eca) belong to a watchdog thread in the title. It checks a progress stamp once a second. After 30 s without progress it calls a hook (the function containing +0x23cf683), which deliberately writes to address 0.
rax=0andrbx=0are that loop's counters running out, not an allocation result. The stack list in the crash line comes from a stack scan (one entry is not code), so read it as approximate. Anyone with the title can confirm this quickly at those RVAs.Timeline (
XCL_ACTIVITY, runs 1–5): presents and submits drop to 0 between 62 and 64 s. DirectStorage requests also drop to 0. The crash follows 29–30 s later. That matches the 30 × 1 s countdown. Loading begins at about 16 s, so the crash comes about 76 s after loading starts. Run 0 has the same 76 s gap: loading began at about 57 s, after the manual presses, and the crash came at 133 s.Memory trace (run 3): the title makes 35 traced allocations of 64 KiB or more, all within the first 8.4 s, and none returns 0. There are 4
UMA:lines and none saysno room. No out-of-memory lines appear. The largest reservations are 2 × 24 GiB and 1 × 6.1 GiB (GPU-visible, write-watched), plus 3.9 GiB in the coherent window. During the stall (run 1), commit rises from about 28.1 to 29.0 GB, and local VRAM stays flat at about 14.3 GB of 16 GB. In runs 1–4, local VRAM ends between 14.3 and 14.7 GB.Thread dumps (run 4, at 66 / 78 / 86 / 90 s, plus the dump at the crash):
xcl.exebind::execute_indirect→pso_async::resolve_wait. It gets there from the title's list slot cache compiled shaders between pso requests #61 call at +0x248d19f (vtable +0x1E8). The title frame above that call changes between dumps (+0x359da2b, +0x359dac2, +0x359db0a), so these are successive waits for different pipelines, not one stuck build. At 90 s the thread is insidenvgpucomp64.dll. At the crash it is inreal::translated_compute_pso→dxc::compile.translated_compute_pso(waiting for DXC) andnvgpucomp64.dll. At 90 s, all four D3D background threads are also compiling innvgpucomp64.dll.xcl-dstorageworkers are parked in every dump. No thread is in file I/O.XCL_PSO_WAIT_MS=2000(run 5): this setting did not prevent the stall. Presents still stopped at 62–64 s and the crash came at 91.3 s. Per-pipeline driver builds were longer (up to 18 s), and commit grew to 42.6 GB. After logging the crash line, the process wrote nothing more: no crash dump, no thread dump, no exit. It used no CPU for about 5 minutes after the crash, well past the 200 s timeout, and I stopped it from outside. Commit and GPU memory were released and the driver logged no errors.Side note: DirectStorage requests failed with
0x89240009in every scripted run. There were 946, 1,399, 926, 106 and 1,271 failures in runs 1–5. They all fall in 2-s windows between 44 and 52 s, about 15 s before the stall.Conclusion:
XCL_PSO_WAIT_MSinpso_async.rsalready anticipates this watchdog. A 2 s bind budget alone did not avoid it here, so something else also holds the frame. The longest synchronous compute-pipeline creations on title threads (5–18 s each) are the next thing to check.AI-assisted (Claude Code); no game files attached.
D3D12.X: a pipeline the driver refuses with heap windows is built in …
milesah3ad commentedon Nov 24, 2026
On NVIDIA, building a pipeline gets slower the more distinct pipelines are already alive, and so does DXC in the same process. Stand-ins (one shader shared by many pipelines) don't do this. No game files.
Setup: RTX 5080 16 GB, driver 621.24, Ryzen 7 9800X3D (16 threads), 64 GB, Windows 11 Pro 26300, DXC 1.9.2609.5,
main930e8b4, release. Probe:milesah3ad/xclpso-many(613d94c, local tooling, not for merging). It runs 15 threads, and each one translates a distinct synthetic compute program (the runtime options: 4 windows, split wave64, about 25 KB of DXIL each), compiles it with DXC and callsCreateComputePipelineState. Every pipeline is kept alive. The times below are the mean per pipeline on one thread, with 15 running at once.1. Build time against live pipelines (run with a release at 8,000)
2. Identical pipelines (stand-ins) don't count. 60,000 pipelines of one program, created first and kept alive: 10.8 µs and about 6.5 KB each. Distinct pipelines built after them took 438–441 ms, the same as with nothing alive. So the ~57k stand-ins in #1333 don't add to this.
What it means for a title, as far as I can tell: the first-load watchdog crash @MaurycyBartczak traced above happens with about 1.3k real pipelines alive, below where this starts on this machine, so it doesn't explain that crash. It would matter once a run holds several thousand real pipelines (preload of an earlier run's pipelines, or a longer session). Then every further build gets slower, the waits at bind time grow, and the 30 s watchdog gets closer. If that holds on other cards, evicting real pipelines the title hasn't bound in a while, or capping how many the preload builds ahead, would keep builds at their base speed.
Not tested
AI use
D3D12.X: XCL_BACKGROUND_COMPILES=0 stops the driver's second compiles
wondercrash commentedon Nov 24, 2026
On our machine the NT process-heap lock slows NVIDIA's compiler only when DXC runs in the same process at the same time; with the driver alone the heap type makes no difference. That fits @QemmHD's "no effect" numbers and @Kalmarv's single build without lock waits.
Setup: RTX 5090 32 GB, NVIDIA 621.14, Ryzen 7 9800X3D, 62 GB RAM, Windows 11 23H2 (10.0.22631), release build. Tree: our integration branch
wondercrash/xcl(upstreammainplus other open upstream PRs plus our own changes, not plainmain). Snapshot on integ at aboutb555b63; bench on952b1ca(b555b63+ the segment-heap manifest).Snapshot (WinDbg, one snapshot only).
xcl shaders shaders.rpf --precompile --only cs --used --pipelines, cold caches, 8 driver threads and 15 DXC threads in one process:nvgpucomp64thread held its lock insideRtlReAllocateHeap → RtlFreeHeap → RtlpDeCommitFreeBlock → RtlpInsertFreeBlock → RtlpFindEntry → RtlpHeapFindListLookupEntry.D3D Background Thread 0(nvgpucomp64, allocating) and three DXC workers (DxcNew×2,DxcDelete).Bench (scratch test, not pushed): 20 translated retail compute programs, 0.30–1.05 MB DXIL (13.9 MB in all). Each is cold for the driver (unique static sampler and root constants, fresh exe copy per run). 8 driver threads, biggest first. "+ DXC": 15 more threads keep XCL's DXC pool busy with the runtime HLSL of 44 retail compute programs, starting 5 s before the driver. Segment heap = the same exe with the
heapTypemanifest added by mt.exe. #688 =760f742's dxc.rs ported onto the same tree. Two runs per cell where two values are given.results.txt:3-10vs:95-102).In our tree the manifest is
952b1ca(crates/xcl/xcl.exe.manifestwith<heapType>SegmentHeap</heapType>, embedded bycrates/xcl/build.rs, plus a test), merged into integ as9d610e1. It also moves the title's UCRTmallocand every DLL's process-heap allocations to the segment heap. Upstreammain689f2dbhas no such manifest. #688 is the other route and did about as well here.Not tested
main.AI use: omp with Claude Opus 5.5 took the WinDbg snapshot, wrote and ran the bench; Claude Opus 5.5 wrote this; the runs are ours on the machine above.
not-rex commentedon Nov 25, 2026
@wondercrash a data point for your segment-heap manifest (
952b1ca) on top of #688, from an RTX 3080 (10 GB, driver 610.88, Ryzen 9 5900X, Windows 11). Here the segment heap still helped with #688's private DXC heaps already in.Tree:
main930e8b4+ #688 + #757/#758/#759 + #820 + #1288 + #1321 + #929. #820 and #759's replay were hand-ported ontomain's reworked big-compile turn. The second arm adds952b1ca, cherry-picked.Run:
xcl pipelineson a journal from a retail world run (58,741 pipelines to make), on a copy of the same warm cache.XCL_DXC_THREADS=4,XCL_BIG_COMPILES=2, 12 build threads, 30 min each, one run per arm.What's left are the big programs, and with the NT heap the same 12 sat in flight for most of the half hour. An earlier NT-heap run on the same journal made ~2.4/min, so treat the 7x as an upper bound; the direction matches your 135 -> 77 s.
Are you planning a PR for the manifest? If not, I'm happy to open one with you as co-author, or to run yours on this card.
AI use: Claude Code (Claude Opus 5.5) ran the A/B on my machine through a scripted runner and wrote this.
milesah3ad commentedon Nov 25, 2026
Follow-up to the DXC-and-driver-in-one-process slowdown above: with #1638's
XCL_DXC_PROCESS=1(DXC in worker processes), concurrent NVIDIA pipeline builds were 22 % faster on an RTX 5080 and the in-process penalty roughly halved (+70 % → +33 % over the driver alone), on synthetic programs. Details: #1638 (comment)AI use: Claude Code (Claude Opus 5.5).