Retail title 1.0.2.1 (Linux, RTX 3060 Ti 8 GB): past the end of story loading, then title assert 0x80000003 at +0x4da6315 #1164
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#1164
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?
@alvarro71 on GitHub · 2026-11-24 12:44 UTC · original
Linux / NVIDIA 8 GB: one run got past the end of story loading (the cross-queue Wait64 stall from #662 / #675) and ran the world for about 170 s with a black screen. It then ended on the title's own assert
0x80000003atgame+0x4da6315, which no other issue reports. This is the setup and the local changes that got it that far.Setup
experimental-11.0-20261112, vkd3d-proton 3.1 with the #257 patch, DXVK DXGI, DXC 1.9.2609.5. xcl.exe is cross-built forx86_64-pc-windows-msvc(release). Retail title 1.0.2.1, Series X profile, no network (XCL_NETWORK=0).main6bac4b4+ #905 + #684 + #533 + #267 + #708. On top of that, three small local changes:wait_gate.rs: a reached Wait64 gate opens after 2 s if its memory condition is still unmet (XCL_GATE_TIMEOUT_MS), like the bounded CPU waits. Without this, one gate on a compute queue waited for ever at about 416 s, every queue then queued up behind it, and the run ended in0x887a0005.list_x.rs(CpuCycleBreak): the value released on the CPU is also written to the title's memory (fetch_max, outside sparse windows). This lets the title and the gates see the counter move.XCL_GPU_WAIT_RELEASE_MS(the idea of #1046) makes the 5 squeue.Waitwatchdog configurable. With 20000 the watchdog stops releasing waits whose producer is still coming.XCL_PSO_WAIT_MS=1 XCL_COMPUTE_PSO_WAIT_MS=1 XCL_COHERENT_MB=512 XCL_GPU_WAIT_RELEASE_MS=20000 VKD3D_CONFIG=ignore_shared_fence.What happened (1 run)
+0x23cf683).0xff000000. GameInput saw button presses.236295 draws (6761 skipped), 84669 dispatches (524288 skipped). Most of the skipped dispatches have a pipeline still building, which matches #1096 (NVIDIA compiling large compute shaders for minutes).The log just before it says
title textures: 131072 uploads left out so far.A second run of the same tree ended at the end of loading in
0x887a0005(deferred 64-bit write ... did not complete). It is not deterministic, so 1 of 2 runs got into the world.Also seen on NVIDIA/Linux: at each of these stalls the kernel logs thousands of
NVRM: _threadNodeCheckTimeout ... Timeout was set to: 30000 msecs, with no Xid. They begin when the hung process is torn down, so they look like a consequence and not the cause.Not tested: Windows, AMD, the unit tests (the crate is built on Linux and not run there), the
scripts/smoke.ps1regression pair, and a run without the 1 ms PSO limits past loading. The three local changes are not a PR; I can open them as one if they look useful.AI use: Claude Code (Claude Opus 5.5) made the local changes, ran the title on this machine, read the logs and wrote this report. No game files are attached.
@Ali-AbdulHadii on GitHub · 2026-11-24 13:10 UTC · original
Linux / NVIDIA runs of the same title that answer your open point: no PSO limits at all, so nothing is skipped. The screen stays black, and the run then ends on the title's watchdog after long compile stalls.
Setup: CachyOS, RTX 5080 16 GB, NVIDIA 620.73.04, Ryzen 5 5600X, 31 GB RAM + zram, proton-cachyos-slr Wine, vkd3d-proton master
30b0eb9+scripts/linux/vkd3d-proton-xcl.patch, DXVK DXGI, DXC 1.9.2609.5. XCL: a local branch ofmain47efa2e+ #640, #765, #172, #1055, #1102, #1063, #549 (not pushed).XCL_PSO_WAIT_MS=0,XCL_COMPUTE_WAIT_MSunset,XCL_EAGER_COMPUTE=1,XCL_GPU_WAIT_TIMEOUT_MS=60000(a local knob for the 5 s release, like your change 3),XCL_PAGE_BUDGET_MB=2048, no network.Two runs (wd1, wd2):
22188 draws (0 skipped) … 8192 dispatches (0 skipped)and36641 draws (0 skipped) … 8192 dispatches (0 skipped). 0 bridgedWait64waits released, 0 DirectStorage failures (#549 merged).+0x4da6315did not come up in these runs. It did in our earlier runs that skipped dispatches.The watchdog has two stages.
+0x23cf683ismov dword ptr [0], 0x4d8bd421followed byadd rsp, 0x48; ret. I stepped over just that instruction with a local switch, and the title went on. But 2 ms later a separate thread (entry+0x2215eca) ended it at+0x2215c35(mov dword ptr [0], 0thenint3). That thread loops over 64 slots, compares(now − stamp) × scalewith a limit, and only does so when a lookup of hash0x89aee1d6returns true. So stepping over+0x23cf683alone does not keep the title alive. The stall has to stay under the limit.What the stalls were, from thread dumps and the build log:
xcl-psoworker logged a build after 13 s. At the end, 5 of the 8 were waiting inreal::Slots::acquirefor theBIG_COMPILESslot (one big driver compile at a time) behind the one compiling. So eager compute builds had stopped for the rest of the run. Locally, a worker that waits for that slot now gets a stand-in worker for the time it waits. That is ~80 lines with a test, which fails without the change.About
title textures: N uploads left out so far: it counts uploads that were skipped because the texture's memory held the same bytes as at its last upload (#504). We see it in every run (8 192 – 32 768). I don't think it is related to the assert.Not tested: Windows, AMD, an 8 GB card, the two local pool/DXC changes in a full run.
AI use: Claude Code (Claude Opus 5.5) made the local changes, ran the title, read the logs and thread dumps, and wrote this text. The user approved posting it.
@komglebissarov on GitHub · 2026-11-24 13:50 UTC · original
Windows / AMD RDNA4, plain
main47efa2e: the same assert attitle+0x4da6315withXCL_PSO_WAIT_MS=50; without it the run ends on the watchdog (+0x23cf683)A second machine for this assert, on Windows and with no local changes. Two runs of the same retail title (package 1.0.2.1), one without and one with
XCL_PSO_WAIT_MS=50.Tested
System32\xgameruntime.dllon this machine (Gaming Services not installed).main47efa2e, no local changes,cargo build --release --workspace.xcl run <game folder>withXCL_NETWORK=0 XCL_ACTIVITY=1; run 2 addsXCL_PSO_WAIT_MS=50. Menus passed by hand. One run each.XCL_PSO_WAIT_MS=50)#1010xc0000005attitle+0x23cf683(write at 0x0)0x80000003attitle+0x4da6315#101Wait64BitValueXtimeouts (2000 ms)0x89240009Run 2 in more detail:
#101, so under 1 fps. No device removal in either run.E_ACCESS_VIOLATION) come during loading: 2 069 in the 2 s window ending at 78 s and 3 at about 100 s. The first skipped draw or dispatch is logged at 112 s, so the failures come before any skipping.The first frame (
+0x4da62b9) is the same as in the report above; the callers differ.XCL_NETWORK=0refused it (WinHttpConnect fails (no network)).Not tested
scripts/smoke.ps1were not run on this machine.mainafter47efa2e, NVIDIA / Intel GPUs, a machine with Gaming Services installed.0x89240009failures (I did not check them).Logs are not attached; I can post excerpts of
xcl.logfrom either run.AI use: Claude Code (Claude Fable 5.2) built
main, started the runs, read the twoxcl.logfiles and wrote this report. A person passed the menus. All numbers are from the logs of these two runs.@Ali-AbdulHadii on GitHub · 2026-11-24 14:12 UTC · original
@komglebissarov about your open point on the
0x89240009failures: #549 (open) covers that case. A destination page array the title fills afterEnqueueRequestreaches the DirectStorage worker before the title'sSubmit, and the request fails withE_ACCESS_VIOLATION. Yours look the same: ~2 000 at once during loading, and the run continues afterwards.On Linux / RTX 5080 we had 128 to over 2 048 of them in each of 11 runs. With #549 merged: 0 in every run since (10 runs, counted over all 2 s activity windows). Details on #549: https://github.com/ivall/xcl/pull/549#issuecomment-7131509269
Not tested: Windows, AMD, your title setup.
AI use: Claude Code (Claude Opus 5.5) wrote this from our run logs; the user approved posting it.
@alvarro71 on GitHub · 2026-11-24 15:06 UTC · original
Follow-up, same machine and tree plus #751 (local merge), about 15 runs in total today:
+0x23cf683watchdog or0x887a0005. The two runs that got in logged nowould close a GPU cycle, noqueue.Wait ... released on CPUand no gate timeout at all. In every failed run those appear 10-30 s before the stall. So whether the title gets through depends on the order the queues happen to run in, not on a value XCL has to supply later.XCL_GPU_WAIT_RELEASE_MSat 12 s or 20 s, the waits are released, the gates open, and submits stay at 0 until the title's 30 s watchdog fires.XCL_COMPUTE_PSO_WAIT_MS=4000(graphics still 1 ms) made no difference in 3 runs.video memory 6438 MB local, 9827 MB non-local; target pages 9424 MB).xcl.exeatmemmove←tiling::Chain::detile_level←title_textures::subresources←real::res_release, which #751 should cover. It is merged here now.AI use: Claude Code (Claude Opus 5.5) ran the runs and wrote this comment.
@BTekV4 on GitHub · 2026-11-24 15:51 UTC · original
Linux / NVIDIA wave32 data point: reproduced the title assert
0x80000003atgame+0x4da6315, and what comes before/after it on this machine.Setup: CachyOS (Arch), RTX 5070 Ti 16 GB (wave32 only), NVIDIA 620.73.04, 62 GB RAM; Wine = UMU-Proton 11.0-2e, vkd3d-proton 3.1 with the scripts/linux patch (#257), DXC win64 from XCL's tools; retail 1.0.2.1,
XCL_NETWORK=0.Tree:
main930e8b4+ local merges: revert ofb8b1f49(#1307), #688, #759 (+757/#758), #820, #751, #549, #1278, #1288, #1315/#1316 (XCL_COMPACT_CSauto), #1284.XCL_BIG_COMPILES=4, warm DXIL/vkd3d caches, noXCL_PSO_WAIT_MS.ListX #101at ~95–97 s.+0x4da6315, same register shape as reported here (rdx/rdi= a float0x4926d2b6424999f0,rax=0x1).+0x23cf683(~95 s), one got further and died on a read of0xffffffffffffffff(the -1-pointer family, #911 — see my comment there). No queue-order log lines (would close a GPU cycle,released on CPU) before any of the three endings.So three runs, three different endings — matching alvarro71's reading that which one you get depends on the order the queues run in. The assert itself reproduces identically when it comes.
@alvarro71 on GitHub · 2026-11-24 16:10 UTC · original
The end-of-loading stall recovers on its own once the title's stall watchdog is stopped. Same Linux / RTX 3060 Ti 8 GB tree as above (local merges + #751), one run so far.
How the watchdog stops (static reading of the 1.0.2.1 exe, entry
+0x56a1ec8; no file changes):+0x2215a60) runs a 1 s loop. It kills the title when the heartbeat at+0x71b6338(QPC, written by+0x22159f0) has not moved for 30 loops. The 30 is an immediate (0x1e), not a tunable.+0x23cf683(stage 1) is the report callback the thread calls just before it kills.+0x2215c35/+0x2215db4are the kill points.+0x71b6340(its shutdown flag) is 1.0x89aee1d6lookup @Ali-AbdulHadii mentioned is a bool tunable (+0x9d3e70→ table at singleton+0x71fa218+0x90, type tag 2). It only gates the 64-slot "scope" path, which needs the counter at+0x71b6334> 0, and it defaults to false. On this run's path (counter 0) the 30 s heartbeat check alone decides. So the tunable is not what kills us here.Run with the flag held at 1 (a local
XCL_NO_TITLE_WATCHDOG=1that stores 1 there every 2 s, only for this image):46657 dispatches (262144 skipped), pipelines still building with the 1 ms limits.video memory 6.5 GB local, 8.8 GB non-local; target pages 8.9 GB; sparse pools 2.9 GB, and fell to 0 fps.So at least on this machine, the stall that ends most runs at
+0x23cf683is a long but finite one, not a deadlock.Not tested: more than one run, Windows, AMD, a machine with more RAM.
AI use: Claude Code (Claude Opus 5.5) read the disassembly, wrote the local switch, ran the title and wrote this comment.
@certified-retart on GitHub · 2026-11-24 17:00 UTC · original
Static reading of
+0x4da6315(1.0.2.1 exe, entry+0x56a1ec8; no game files modified or attached) connects this assert directly to the stale DirectStorage page-list corruption in #1405 — and points to an unreportedAutoSubmitDisabledbug incrates/xcl/src/hle/dstorage.rs:What
+0x4da6315is:+0x4da62d0(rcx = resource_map, rdx = ptr)reads the two byte chunk counts at[rcx]and[rcx + 1], scanscount0 + count124-byte chunk entries{ src_base, dst_base, size }starting atrcx + 0x10, and returnsdst_base - src_basewhensrc_base <= rdx < src_base + size. If no chunk containsrdx, it traps onint3at+0x4da6315.+0x4da63ccin the OP,+0x4e641ddin @komglebissarov's run) enter+0x4da62a0 -> +0x4da62d0during resource pointer fixup on the active TLS resource map after confirming (+0x4db8d90) that the field address (rsi) lies inside the resource's mapped destination range.0x50000000..0x50060000/0x600a0000..0x600aa700), whilerdx(0x4222d522f5328744,0xa1e5e36a071007b0,0x4926d2b6424999f0) is non-pointer data sitting in the destination page — even on @BTekV4's run with #549 merged and 0 failed DirectStorage requests. That matches #1405 (a reused page-list slot holding stale non-zero page numbers atEnqueueRequest, which #549's0-entry check misses).Related bug in
crates/xcl/src/hle/dstorage.rs(AutoSubmitDisabled):factory_create_queue1(slot 10,IDStorageFactoryX2::CreateQueue1) logsu64 @0x18 = 1fromDSTORAGE_QUEUE_DESC1and discards it.dstorage_xs.hdocs, offset0x18ofDSTORAGE_QUEUE_DESC1isDSTORAGE_QUEUE_OPTIONS Options, where bit 0 (0x1) isAutoSubmitDisabled.enqueue/enqueue_numberedstill unconditionally auto-submit atcapacity / 2, XCL can dispatch requests to the worker insideEnqueueRequestbefore the title finishes updating its page-list slot and callsSubmit(). HonoringAutoSubmitDisabledcloses the auto-submit race for both zero (#549) and stale non-zero (#1405) page-list slots.Not tested: live retail run with #1405 +
AutoSubmitDisabled(static analysis of the 1.0.2.1 executable anddstorage.rsonly).AI use: Antigravity (
gemini-4-neon) read the disassembly around+0x4da6315, checkeddstorage.rsand Microsoft's GDK DirectStorage docs, and drafted this note; reviewed before posting.@oz-stanislav-zhukov on GitHub · 2026-11-24 17:40 UTC · original
Windows / NVIDIA data point for this assert: RTX 5060 Ti 16 GB (driver 621.24), i7-14700KF, Windows 10 22H2. Tree:
main9e3831e+ #751, #688, #1123, #488, #789, #1195, #1428, #1323,XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50.0x80000003at+0x4da6315at 161 s, withrdx=0xaaaaaaaa. The destination page heldaaaaaaaa-high qwords, and the resource map was normal (0x50000000 → 0x8823f0000). Onb7aa9f3the same stack also died at+0x50705fc,+0x540abf5and+0x4fdbe43on garbage pointers.unhandled exceptionin two runs, of 427 s and 253 s. Both reached the world with the HUD drawn; I stopped them when the driver's pipeline compiles took the commit past 55–70 GB.Details and the table are on #1405: https://github.com/ivall/xcl/pull/1405#issuecomment-7139524663. Two runs only, so not proof.
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this; posted at the request of the person running the tests.
@crosettiremi on GitHub · 2026-11-24 19:07 UTC · original
Additional Windows/RX 7900 XT retail result on a local XCL integration. A cold run with a 4095 MB coherent window reached the “Vice City, two years ago” card. At ~284 s the external observer recorded a second-chance guest breakpoint at +0x4da6315, exit 0x80000003. The snapshot context for that exact guest thread has RIP 0x144da6315 and RDX 0x239b59999ff68dde. No D3D12 removal was reported. The last three activity samples still recorded 1, 2, 1 presents. This is distinct from the earlier presentation stalls we sampled during CPU-side sparse texture preparation. We have not traced the origin of that RDX value or validated a DirectStorage routing change in this case.
@Krashgamer on GitHub · 2026-11-24 22:35 UTC · original
Three more on Windows / NVIDIA (RTX 3080 10 GB, driver 610.88), all without #1405: the same
int3at+0x4da6315, at 162.8 s, 178.8 s and 186.4 s, on three trees (main4178e88,c4d37beand1d027e5, each with a few open PRs,XCL_DIRECT_DXIL=1 XCL_PSO_WAIT_MS=50). The same+0x4da62b9←+0x4da63ccframes each time, a different invalid pointer each time, and the field was at offset 8 of a page-aligned block above0x8_0000_0000each time. The title's crash context said its physical pool was 95.7 % used, with 1,369 streaming requests in flight. Testing #1405 on the same trees next.AI use: Claude Code (Claude Opus 5.5).
@denverquane on GitHub · 2026-11-24 23:00 UTC · original
Native Windows data point for this assert, 1 of 8 runs: RTX 5070 12 GB (621.24), Windows 10 22H2,
9e3831e+ #1638 + #684,XCL_PSO_WAIT_MS=50 XCL_DXC_PROCESS=1, cold DXIL cache. 98 s into the world load:0x80000003 in game_scarlett_master.exe+0x4da6315,rax=0x2. The stack starts with+0x4da62b9,+0x2eaf04,+0x4da63cc(the first and third match yours). Commit was 31.5 GB, video memory 15.0 GB local. The other seven runs ended at+0x23cf683.AI use: Claude Code (Claude Opus 5.5) drafted this from my run.
@deepdev237 on GitHub · 2026-11-25 08:40 UTC · original
Another route to this assert, from a different layer: a resource whose DirectStorage decode failed because the game copy has zero-filled regions. Zeroing the failed destination makes it go away.
This is not XCL. It is a VIctory / victory-fork build (
fxceless/victory-forkmain310c6ebplus about 130 of its open PRs). The title code and the assert are the same:0x80000003at+0x4da6315, called through+0x4da62b9←+0x4da63cc. It fits @certified-retart's static reading above: the fixup routine traps when a pointer field lies in no chunk of the resource map. The bytes it reads are whatever the destination held before.What happened here. This copy of the game has zero-filled regions in 11 archives. One of them is in
navmeshes.rpf, at[0x2caa7000, 0x2daa4000). With victory-fork'sVICTORY_WALLS_TRACE=1, each DirectStorage request logs its source file. Three zlib requests fromnavmeshes.rpfthat land in that region fail (hr=0x8007000d, plain memory destinations,options=0x1). 0.9 s later the title traps:With the destination zeroed on a failed decode (victory-fork PR fxceless/victory-fork#816, an opt-in switch), the same three requests fail at the same point and are zeroed, and there is no assert. The title ran 6 min 12 s further, into the first gameplay scene with the player walking in the cell, until an unrelated GPU device removal at 900 s. In that run 68 failed requests were zeroed: 65 in TTDB texture archives, 3 navmesh.
What this may mean for the reports here (an inference, not checked on XCL):
Full setup
x86_64-pc-windows-msvc, victory-forkdiagprofile withdiagnostics.levels.rpf(12),audio.rpf(3),pack/story000/story000.rpf(3),navmeshes.rpf(1),data/ttdb/maps/ttdb_maps_2_7.ttpf,ttdb_peds_1_3.ttpf,ttdb_terrain_3_7/4_7/5_7.ttpfandttdb_terrain_image_based_1_1.ttpf.728DC6EE66335E33CBEF4C94082B4B567753AB4F04D62817C6D3D77C5A242F4D. Run 4 (no assert):C418BF2CB28A4632C4466B7F08A16EDFA3776F3D0A9FF13DFAAFD885629EB5D7, the same code plus the zeroing switch and a shader-cache key change.VICTORY_NO_WATCHDOG=1 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_BAKE_TEXTURES_MS=0 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_RAGE_DEBUGINFO=30 VICTORY_WALLS_TRACE=1, three pipelines skipped (c1eee35dbc50a9ef,f16876929fa64f9f,39f0e9aeb156a61c), shaders and pipelines prebuilt.title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1337