0xc0000005 in ucrtbase.dll+0x171eb #477
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#477
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?
@jvyden on GitHub · 2026-11-24 00:52 UTC · original
Game and package version
The retail title - 1.0.2.1
What happens
Game gets past the loading screen successfully, but crashes while initializing world graphics just after creating raytracing shaders.
xcl: unhandled exception 0xc0000005 in ucrtbase.dll+0x171eb (read at address 0x9400016000) rax=0x9400016000 rbx=0x80 rcx=0x9acebad1c0 rdx=0x9400016000
rsi=0x9400016000 rdi=0x9acebad1c0 rbp=0x80 r8=0x0 r9=0x0 r10=0x0 r11=0x0 r12=0x9a26a3b0f0 r13=0x10 r14=0x0 r15=0x16000 rsp=0x95ca5af998; on the stack:
xcl.exe+0xbea33, game_scarlett_master.exe+0x6380, xcl.exe+0xcad82, game_scarlett_master.exe+0x75e0e98, game_scarlett_master.exe+0x4daa2c8, xcl.exe+0x39
cf0e
XCL version
2997c9aca6GPU and driver version
NVIDIA GeForce RTX 2080 Rev. A 615.78.8.0 (2580775424)
Windows version
Arch Linux x86_64
report.json and xcl.log
xcl.log
report.json
report.prev.json
xcl.prev.log
Console output
@jvyden on GitHub · 2026-11-24 01:38 UTC · original
#214 seems to fix this crash. I might be hitting the same crash as #534 but my computer exploded as I was trying to obtain the logs :trollface:
@jvyden on GitHub · 2026-11-24 01:44 UTC · original
This crash seems to happen inconsistently actually, It happened again after retesting.
@shdann on GitHub · 2026-11-24 01:56 UTC · original
Findings from reading the crash in this report (no fix yet).
Where it crashes. We rebuilt
2997c9awith rustc 1.100.0 forx86_64-pc-windows-gnu(mingw/UCRT). The return addresses then match with a single shift of -0x170:xcl.exe+0xbea33is thememcpyingpu::tiling::Chain::detile_levelxcl.exe+0xcad82ishle::xg::copy_from(XGTextureAddressComputer CopyFromSubresource)game+0x6380,game+0x4daa2c8andxcl.exe+0x39cf0eare stale stack values.What it reads. The preserved registers decode to the first element of mip 0 of a 512-wide, 16 B/block BC texture in a 4 KB swizzle mode: level offset 0x16000, pitch 128 elements, mip 0 = 0x40000 bytes, slice base 0x9400000000.
a request failed (0x89240009): 262144 bytes from ttdb_graphics.ttpf.execute()returns when the destination is neither committed nor a lazy page.Leading hypothesis.
kernelx::lazy::commitremoves the page fromLAZYbeforeVirtualAlloc(MEM_COMMIT)and ignores a failure;ensureignores it too. One failed commit then leaves a permanent hole, which fits both symptoms.vm.max_map_count/VMA limit is a guess, possibly made worse by write-watch splitting.texture_memorysized from a PC desc that differs from the console's). Not proven.It doesn't reproduce on Windows. A 600 s idle run of the same title (17,622 frames) never reaches world loading.
What would settle it, if you can run it again:
XCL_TRACE_MEM=100000vm.max_map_countVirtualQueryregions, andcopy_from's subresource, layout and page state):diagnostic patch (temporary, not for merging)
asked by shdann via Coder
@oz-stanislav-zhukov on GitHub · 2026-11-24 02:15 UTC · original
Repro on native Windows (no Wine): the same crash happens when the title actually gets into the world, not just idling in menus.
Setup
RockstarGamesInc.28872443D20A71.0.2.1 (unpacked retail)XCL_D3D12_DIR(inbox Win10 D3D12Core stops at SM 6.5), DXC 1.8.2502 from the Windows SDK508a0c7(2026-11-24; includes #516, #486, #332, …)What happens
Boots, menus, enters world loading, presents ~2400 frames at 6–8 fps (shaders still compiling, 57k pipelines queued), then after ~5.5 min:
Same signature as the original report: 0x80-byte read at window offset 0x16000, same game frames
+0x6380/+0x4daa2c8. (Our UMA base differs, hence the different high bits.)Matching precursor, per the analysis above – a DirectStorage request that failed with E_ACCESS_VIOLATION earlier in the run:
~100 s later the XG copy reads the same hole and faults. So the "failed commit leaves a permanent hole" hypothesis holds on native Windows too, at least for this run.
Other observations from the same run:
[STUB] ID3D12GraphicsCommandList12::#101first called fromgame_scarlett_master.exe+0x50a6657(12 calls total) shortly before the crash – same site as #505.CreateShaderResourceView(RAYTRACING_ACCELERATION_STRUCTURE) … not in unified memory – writing empty BVH descriptorwarnings right before the faulting call.Happy to provide the full
xcl.log/report.jsonif useful.@jvyden on GitHub · 2026-11-24 02:54 UTC · original
@shdann #214 needs a rebase onto the latest main in order to apply so I've excluded it for now. I've applied 488 and your patch, I'm using wine-11.22 staging on Arch Linux x86_64. My
vm.max_map_countis 1,048,576 which seems to be a large number, though I can try maxing it out. Here are the results (ran withXCL_TRACE_MEM=100000 XCL_NETWORK=0 WINEPREFIX=/home/jvyden/.winegta6/ WINEDEBUG=-all VKD3D_CONFIG=ignore_shared_fenceon Linux):xcl.log
report.json
xcl.prev.log
report.prev.json
Still the same crash, looks like.
@jvyden on GitHub · 2026-11-24 03:16 UTC · original
I also tried switching the device type to
lockhart(Series S), but that causes a crash way sooner. I also tried bumping my max map count to2147483642and I seem to get a little farther! So a very high maximum map count may be required on Linux. Unsure why it happens on Windows, perhaps NT has a similar limit?I progress to a D3D12 device being removed:
and a GPU fault:
which is what #496 seems to be trying to fix.
@jvyden on GitHub · 2026-11-24 03:30 UTC · original
False alarm looks like, still back to the ucrtbase crash. @ddm-j mentioned a couple
xgcommits in #539 that could be relevant to this PR, so I cherry-picked7d1c466bffand9c4c3e62e9ontomainand tried that, and indeed, I get much much farther! I got a black screen for a few seconds after loading before a crash, but the engine seemed to be running in the world for a few moments!