World load: black after loading, and every BCPack request fills zero bytes #878

Open
opened 2026-11-26 04:35:28 +00:00 by github-bot · 7 comments
Owner

@⁠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

GPU NVIDIA GeForce RTX 4060 Ti, 7949 MiB
OS Windows 11 Pro 26200
DXC 1.9.2602.17 from Windows Kits 10.0.26100.0
Game Xbox Series 1.0.2.1, 108 files, game_scarlett_master.exe

What works

XCL - the retail title | 17.3 FPS | compiling shaders: 0 running, 18 done, 57813 pipelines queued
D3D12.X: 600 frames presented, 16.8 fps over the last 300
D3D12.X: console code so far: 7341 draws with translated pipelines (0 skipped, 0 with PC pipelines),
         512 dispatches (0 skipped)

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

Format Requests Destination bytes Filled
BC1 2096 149 528 576 0
BC7 193 25 194 496 0
BC5 110 7 274 496 0
BC3 2 81 920 0
BC6H 1 1 048 576 0

184 MB of texture data requested, none of it produced:

DirectStorage: BCPack BC1: mode 1 unsupported (src=39541, intermediate=0, dst=65536, swizzle=0);
               the request fails with E_DECOMPRESSION
DirectStorage: a request failed (0x89240030): 65536 bytes from ...
title textures: 4096 uploads left out so far - the texture's memory held what it held at its last upload

If the world's textures are in that 184 MB, a black scene follows directly.

Console slots called that are not on the PC

Stub Calls First caller
ID3D12CommandAllocator::#9 1848 exe+0x188501
ID3D12GraphicsCommandList10::#126 1775 exe+0x3263e
ID3D12GraphicsCommandList10::#142 1775 exe+0x329e9
ID3D12GraphicsCommandList10::#75 (console extension) 1775 exe+0x32820
ID3D12CommandQueue::#31 (newer layout) 366 0x0

How it ends

The process exits with 3221225477 after the screen goes black. The faulting instruction is the
title's own deliberate trap, reached when a flag it checks is not 1:

023CF66B  cmp   byte ptr [rsp+0x34], 1
023CF670  jne   0x23cf683
023CF683  mov   dword ptr [0], 0x4d8bd421

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

target\release\xcl.exe run <game dir>
# report: %LOCALAPPDATA%\XCL\<package id>\logs\report.json
**@⁠rocobalt1** on GitHub · 2026-11-24 07:17 UTC · [original](https://github.com/xcl-dev/xcl/issues/878) # 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 | | | |---|---| | GPU | NVIDIA GeForce RTX 4060 Ti, 7949 MiB | | OS | Windows 11 Pro 26200 | | DXC | 1.9.2602.17 from Windows Kits 10.0.26100.0 | | Game | Xbox Series 1.0.2.1, 108 files, `game_scarlett_master.exe` | ## What works ``` XCL - the retail title | 17.3 FPS | compiling shaders: 0 running, 18 done, 57813 pipelines queued D3D12.X: 600 frames presented, 16.8 fps over the last 300 D3D12.X: console code so far: 7341 draws with translated pipelines (0 skipped, 0 with PC pipelines), 512 dispatches (0 skipped) ``` 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 | Format | Requests | Destination bytes | Filled | |---|---|---|---| | BC1 | 2096 | 149 528 576 | **0** | | BC7 | 193 | 25 194 496 | **0** | | BC5 | 110 | 7 274 496 | **0** | | BC3 | 2 | 81 920 | **0** | | BC6H | 1 | 1 048 576 | **0** | 184 MB of texture data requested, none of it produced: ``` DirectStorage: BCPack BC1: mode 1 unsupported (src=39541, intermediate=0, dst=65536, swizzle=0); the request fails with E_DECOMPRESSION DirectStorage: a request failed (0x89240030): 65536 bytes from ... title textures: 4096 uploads left out so far - the texture's memory held what it held at its last upload ``` If the world's textures are in that 184 MB, a black scene follows directly. ## Console slots called that are not on the PC | Stub | Calls | First caller | |---|---|---| | `ID3D12CommandAllocator::#9` | 1848 | exe+0x188501 | | `ID3D12GraphicsCommandList10::#126` | 1775 | exe+0x3263e | | `ID3D12GraphicsCommandList10::#142` | 1775 | exe+0x329e9 | | `ID3D12GraphicsCommandList10::#75` (console extension) | 1775 | exe+0x32820 | | `ID3D12CommandQueue::#31` (newer layout) | 366 | 0x0 | ## How it ends The process exits with `3221225477` after the screen goes black. The faulting instruction is the title's own deliberate trap, reached when a flag it checks is not `1`: ```asm 023CF66B cmp byte ptr [rsp+0x34], 1 023CF670 jne 0x23cf683 023CF683 mov dword ptr [0], 0x4d8bd421 ``` 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 ```powershell target\release\xcl.exe run <game dir> # report: %LOCALAPPDATA%\XCL\<package id>\logs\report.json ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:35:28 +00:00
Author
Owner

@⁠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 main beaa245, XCL_NETWORK=0, retail 1.0.2.1 package, 4095 MB coherent window. One run, report.json from it:

  • Same stubbed console slots with the same first callers as in the table above: 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, +0x2478bc5 and +0x2478cba) and #132 (4 + 1, +0x2478c99 and +0x2478ba4). The #131 / #132 ones are the slots in #616.
  • BCPack refused, nothing filled (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 with filled_bytes 0 in every row (this run has BC7 at 211 requests, the report above has 193).
  • Shaders: 19209 unique, 274768 submitted.
  • The ending is the same: the presents stop (about 112 s here), nothing is submitted for about 29 s, then unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) at 141.4 s. That is the mov dword ptr [0], 0x4d8bd421 after cmp byte ptr [rsp+0x34], 1 that 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.json and wrote this comment. No game data.

**@⁠milas6669** on GitHub · 2026-11-24 07:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7125010155) 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 `main` beaa245, `XCL_NETWORK=0`, retail 1.0.2.1 package, 4095 MB coherent window. One run, `report.json` from it: - **Same stubbed console slots with the same first callers** as in the table above: `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, `+0x2478bc5` and `+0x2478cba`) and `#132` (4 + 1, `+0x2478c99` and `+0x2478ba4`). The `#131` / `#132` ones are the slots in #616. - **BCPack refused, nothing filled** (`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 with `filled_bytes` 0 in every row (this run has BC7 at 211 requests, the report above has 193). - **Shaders:** 19209 unique, 274768 submitted. - **The ending is the same:** the presents stop (about 112 s here), nothing is submitted for about 29 s, then `unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)` at 141.4 s. That is the `mov dword ptr [0], 0x4d8bd421` after `cmp byte ptr [rsp+0x34], 1` that 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.json` and wrote this comment. No game data.
Author
Owner

@⁠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.ttpf lists all textures with codec info, and --decode N -o out.png exports 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 07:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7125369610) For anyone debugging BCPack decode failures: [forge9](https://github.com/nineforge0/forge9) can list and decode BCPack BC1 textures from TTPF stores independently of the runtime. `forge9 texture store.ttpf` lists all textures with codec info, and `--decode N -o out.png` exports 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.
Author
Owner

@⁠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.

**@⁠nineforge0** on GitHub · 2026-11-24 08:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7125892882) 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.
Author
Owner

@⁠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 0x50 bytes from the crash handler's CONTEXT.Rsp on a local build (patch reverted afterwards), RTX 4060 Ti, retail 1.0.2.1:

stack@rsp+0x20: 0x0000000000000000 0x1b5d6844174b453b 0x00000001ff65664f 0x0000000000000000 ...

[rsp+0x30] = 0x00000001ff65664f, so the byte at rsp+0x34 is 0x01. The jne 0x23cf683 at +0x23CF670 is therefore not taken, and what runs is the fall-through:

023CF666  call 0x2215950          ; (rsp+0x35, eax)
023CF66B  cmp  byte ptr [rsp+0x34], 1
023CF670  jne  0x23cf683
023CF672  mov  rax, -0xc          ; zero the 12 bytes at rsp+0x35
023CF679  mov  byte ptr [rsp+rax+0x41], 0
023CF67E  inc  rax
023CF681  jne  0x23cf679
023CF683  mov  dword ptr [0], 0x4d8bd421
023CF68E  add  rsp, 0x48
023CF692  ret

That mov dword ptr [0], ... is compiler-emitted unreachable code after a call it treats as noreturn. Because 0x2215950 returned, execution falls into it.

The 12 bytes at [rsp+0x35] decode to "GPU Loc Sig" - constants 0x1b5d6844174b453b and 0xff65664f, 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:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7125940135) Answering the open question about `[rsp+0x34]`: it is already **1** at the fault. I dumped `0x50` bytes from the crash handler's `CONTEXT.Rsp` on a local build (patch reverted afterwards), RTX 4060 Ti, retail 1.0.2.1: ``` stack@rsp+0x20: 0x0000000000000000 0x1b5d6844174b453b 0x00000001ff65664f 0x0000000000000000 ... ``` `[rsp+0x30] = 0x00000001ff65664f`, so the byte at `rsp+0x34` is `0x01`. The `jne 0x23cf683` at `+0x23CF670` is therefore **not taken**, and what runs is the fall-through: ``` 023CF666 call 0x2215950 ; (rsp+0x35, eax) 023CF66B cmp byte ptr [rsp+0x34], 1 023CF670 jne 0x23cf683 023CF672 mov rax, -0xc ; zero the 12 bytes at rsp+0x35 023CF679 mov byte ptr [rsp+rax+0x41], 0 023CF67E inc rax 023CF681 jne 0x23cf679 023CF683 mov dword ptr [0], 0x4d8bd421 023CF68E add rsp, 0x48 023CF692 ret ``` That `mov dword ptr [0], ...` is compiler-emitted unreachable code after a call it treats as noreturn. Because `0x2215950` returned, execution falls into it. The 12 bytes at `[rsp+0x35]` decode to **`"GPU Loc Sig"`** - constants `0x1b5d6844174b453b` and `0xff65664f`, 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.
Author
Owner

@⁠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_refused after the run:

Format Requests Destination Filled
BC5 108 7 143 424 0
BC6H 1 1 048 576 0
BC7 193 25 145 344 0

BC1 is not in the table at all, where the same run on unmodified main reported 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:

main main + #273
draws with translated pipelines 7 341 14 821
dispatches 512 8 192
skipped 0 0

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

**@⁠rocobalt1** on GitHub · 2026-11-24 08:22 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7126046980) · 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_refused` after the run: | Format | Requests | Destination | Filled | |---|---|---|---| | BC5 | 108 | 7 143 424 | 0 | | BC6H | 1 | 1 048 576 | 0 | | BC7 | 193 | 25 145 344 | 0 | BC1 is **not in the table at all**, where the same run on unmodified `main` reported 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: | | `main` | `main` + #273 | |---|---|---| | draws with translated pipelines | 7 341 | **14 821** | | dispatches | 512 | **8 192** | | skipped | 0 | 0 | **The 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.
Author
Owner

@⁠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.

**@⁠ivall** on GitHub · 2026-11-24 10:39 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7129081585) 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.
Author
Owner

@⁠safesearch77 on GitHub · 2026-11-25 16:30 UTC · original

The BCPack half of this report (2,402 BC1/BC3/BC5/BC6H/BC7 requests refused with 0x89240030 E_DECOMPRESSION and 0 bytes filled) is fixed on main:

  • This run was on a1672ef (before #905 / 8cad517 landed in 67a3735), when XCL had no BCPack decoder and XCL_DSTORAGE_BCPACK_FILL was off.
  • #905 (8cad517) added hle::bcpack for BC1, BC3, BC4, BC5, BC6H and BC7, and #2007 (00cf258) fixed BC7 dictionary entry 0's indices; #1337 confirmed on the same 1.0.2.1 package that BCPack refusals dropped to 0 (bcpack_refused empty, loading art intact).
  • The remaining pieces noted in this report are tracked separately under goal:world-load: ID3D12CommandQueue::#31 (newer layout) (CopyPageMappingsBatchX leaving 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 open goal:world-load issues; reviewed by me.

**@⁠safesearch77** on GitHub · 2026-11-25 16:30 UTC · [original](https://github.com/xcl-dev/xcl/issues/878#issuecomment-7168094345) The BCPack half of this report (`2,402` BC1/BC3/BC5/BC6H/BC7 requests refused with `0x89240030` `E_DECOMPRESSION` and `0` bytes filled) is fixed on `main`: - This run was on `a1672ef` (before `#905` / `8cad517` landed in `67a3735`), when XCL had no BCPack decoder and `XCL_DSTORAGE_BCPACK_FILL` was off. - `#905` (`8cad517`) added `hle::bcpack` for BC1, BC3, BC4, BC5, BC6H and BC7, and `#2007` (`00cf258`) fixed BC7 dictionary entry 0's indices; `#1337` confirmed on the same 1.0.2.1 package that BCPack refusals dropped to `0` (`bcpack_refused` empty, loading art intact). - The remaining pieces noted in this report are tracked separately under `goal:world-load`: `ID3D12CommandQueue::#31 (newer layout)` (`CopyPageMappingsBatchX` leaving 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 open `goal:world-load` issues; reviewed by me.
This discussion has been locked. Commenting is limited to contributors.
No description provided.