World load: black after loading, and every BCPack request fills zero bytes #878
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#878
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?
@rocobalt1 on GitHub · 2026-11-24 07:17 UTC · original
World load: black after loading, and every BCPack request fills zero bytes
One run on a retail 1.0.2.1 package, XCL
a1672ef,cargo build --release --workspace.Report kept at
%LOCALAPPDATA%\XCL\<package id>\logs\report.json.Environment
game_scarlett_master.exeWhat works
Shaders: 19 210 unique, 274 775 submitted, 0 rejected, 0 undecoded dwords, 0 hardware-stage
errors, 37.8 M RDNA2 instructions decoded.
The black frame: decompression refusals with nothing filled
184 MB of texture data requested, none of it produced:
If the world's textures are in that 184 MB, a black scene follows directly.
Console slots called that are not on the PC
ID3D12CommandAllocator::#9ID3D12GraphicsCommandList10::#126ID3D12GraphicsCommandList10::#142ID3D12GraphicsCommandList10::#75(console extension)ID3D12CommandQueue::#31(newer layout)How it ends
The process exits with
3221225477after the screen goes black. The faulting instruction is thetitle's own deliberate trap, reached when a flag it checks is not
1:That is a precondition the runtime does not satisfy, not a memory error in XCL; the address it
writes through is null on purpose.
Reproduce
@milas6669 on GitHub · 2026-11-24 07:27 UTC · original
Same picture on a second machine, so the report above is not specific to the 4060 Ti.
Setup: RTX 3070 8 GB, i9-10900KF, Windows 11 Pro 10.0.26200, release build of unmodified
mainbeaa245,XCL_NETWORK=0, retail 1.0.2.1 package, 4095 MB coherent window. One run,report.jsonfrom it:CommandAllocator::#9(2295 calls,exe+0x188501),CommandList10::#126(2223,+0x3263e),#142(2223,+0x329e9),#75(2223,+0x32820),CommandQueue::#31(320, caller 0x0). Also called, fewer times:CommandList10::#101(14,+0x50a6657),#131(4 + 4,+0x2478bc5and+0x2478cba) and#132(4 + 1,+0x2478c99and+0x2478ba4). The#131/#132ones are the slots in #616.dstorage.bcpack_refused): BC1 2080 requests / 147.9 MB, BC5 108 / 7.1 MB, BC6H 1 / 1.0 MB, BC7 211 / 33.0 MB, so 189.1 MB in total withfilled_bytes0 in every row (this run has BC7 at 211 requests, the report above has 193).unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)at 141.4 s. That is themov dword ptr [0], 0x4d8bd421aftercmp byte ptr [rsp+0x34], 1that you decoded.I have not traced where the flag at
[rsp+0x34]is set, so I cannot say whether the stubbed slots (which return 0) or the zero-filled textures decide it. That trace is the open question; the counts above only show that the stubs and the empty BCPack requests are present in every run I did.Not tested: AMD, any BCPack PR (#273, #340, #438, #856) or the AS-slot PRs (#541, #630) on top of this.
AI use: Claude Code, Claude Sonnet 5.5, read the run's
report.jsonand wrote this comment. No game data.@nineforge0 on GitHub · 2026-11-24 07:47 UTC · original
For anyone debugging BCPack decode failures: forge9 can list and decode BCPack BC1 textures from TTPF stores independently of the runtime.
forge9 texture store.ttpflists all textures with codec info, and--decode N -o out.pngexports individual BC1 textures to PNG for visual comparison. It uses the bcpack-rs rANS decoder under the hood.This might help isolate whether the zero-byte fills are a decode issue or a submission/upload issue — you can verify what the correct decoded output should look like for any given chunk.
@nineforge0 on GitHub · 2026-11-24 08:14 UTC · original
Correction to my earlier comment: forge9 uses the same bcpack-rs fitted tables that PR #273 ships, so it is not an independent correctness check. The "mode 1" refusal happens because #273 is not on main, not because of a decoder bug. Apologies for the imprecision.
@rocobalt1 on GitHub · 2026-11-24 08:16 UTC · original
Answering the open question about
[rsp+0x34]: it is already 1 at the fault.I dumped
0x50bytes from the crash handler'sCONTEXT.Rspon a local build (patch reverted afterwards), RTX 4060 Ti, retail 1.0.2.1:[rsp+0x30] = 0x00000001ff65664f, so the byte atrsp+0x34is0x01. Thejne 0x23cf683at+0x23CF670is therefore not taken, and what runs is the fall-through:That
mov dword ptr [0], ...is compiler-emitted unreachable code after a call it treats as noreturn. Because0x2215950returned, execution falls into it.The 12 bytes at
[rsp+0x35]decode to"GPU Loc Sig"- constants0x1b5d6844174b453band0xff65664f, each byte raised by a descending counter (12..1), with a terminating 0.So the title is on a fatal path whose handler returned instead of terminating. That moves the question one step back: what is
0x2215950, and why does it return? It is called with(rsp+0x35, eax), where the string is"GPU Loc Sig". If that string names a known subsystem, it names the path.@rocobalt1 on GitHub · 2026-11-24 08:22 UTC · original · edited 2026-11-24 08:28 UTC
Tested #273 merged onto
main(a1672ef+ce8839b, merged locally), RTX 4060 Ti, Windows 11 26200, retail 1.0.2.1, one run into the world.BC1 stops being refused.
dstorage.bcpack_refusedafter the run:BC1 is not in the table at all, where the same run on unmodified
mainreported 2096 requests / 149 528 576 bytes / 0 filled. So the 149 MB of BC1 data now decodes.More of the scene draws, and nothing is skipped either way:
mainmain+ #273The ending is unchanged:
unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0), same registers (rax=0,rdx=1).So on this machine #273 does what it says for BC1, and the trap does not depend on BC1 texture data. BC5, BC6H and BC7 are still refused; I did not test #340, #438 or #856 on top.
Follow-up: #340 (BC3/BC4/BC5) merged on top of #273 changes nothing on this machine. BC5 stays at 108 requests / 7 143 424 bytes / 0 filled, identical to #273 alone, which matches its own 'not yet called'. BC1 stays fixed.
@ivall on GitHub · 2026-11-24 10:39 UTC · original
The BCPack part is fixed by #905 (merged in
67a3735): every BCPack request of the modes in this report is unpacked now (on a 90 s run into the loading screen: none refused, 0 failed). The rest of this issue – black after loading and the stop at+0x23cf683– is not changed by it, so the issue stays open for that.@safesearch77 on GitHub · 2026-11-25 16:30 UTC · original
The BCPack half of this report (
2,402BC1/BC3/BC5/BC6H/BC7 requests refused with0x89240030E_DECOMPRESSIONand0bytes filled) is fixed onmain:a1672ef(before#905/8cad517landed in67a3735), when XCL had no BCPack decoder andXCL_DSTORAGE_BCPACK_FILLwas off.#905(8cad517) addedhle::bcpackfor BC1, BC3, BC4, BC5, BC6H and BC7, and#2007(00cf258) fixed BC7 dictionary entry 0's indices;#1337confirmed on the same 1.0.2.1 package that BCPack refusals dropped to0(bcpack_refusedempty, loading art intact).goal:world-load:ID3D12CommandQueue::#31 (newer layout)(CopyPageMappingsBatchXleaving streamed GPU-view pages unmapped) is #1031, and the+0x23cf683"GPU Loc Sig"watchdog trap is #505 / #1452.AI use: Antigravity (Gemini 4 Carbon) verified the commit ancestry (
a1672ef->67a3735/00cf258) and cross-checked opengoal:world-loadissues; reviewed by me.