File I/O: UE5 pak async read completes without reading (The Matrix Awakens, LZ4 UncompressMemory failed) #2493

Open
opened 2026-11-26 05:32:04 +00:00 by github-bot · 0 comments
Owner

@⁠Diskuss on GitHub · 2026-11-25 20:15 UTC · original

Game and package version

The Matrix Awakens: An Unreal Engine 5 Experience, Xbox Series GDK build 1.20.1831.3754 (Frosty-XSX-Shipping.exe).

XCL version

main 2898511 + 5fe5b41 (draft PR #1887) cherry-picked. Without it the title dies earlier at CreateCommandSignature(...DispatchIndirectMeshCommandSignature...) E_INVALIDARG (indirect argument type 107); #1984 mapped the command-list DispatchMesh slot, not this one.

GPU and driver version

AMD Radeon RX 9070 XT, 32.0.32015.7029. Not AMD-specific as far as known.

Windows version

Windows 11 (26300.9974)

What happens

Three FCompression::UncompressMemory failed (885/1382) (LZ4) lines, then an access violation in game code at frosty-xsx-shipping.exe+0x57a3d48 (read of 0x70, null object) about 6 s in. No window, no frames.

Findings

  • The failing block is shader #1362 (compute, shader map 85) in ShaderArchive-Global-SF_XSX_SM6.ushaderbytecode, stored uncompressed inside Frosty-XSX.pak at offset 0x38983b. Decoding that shader (and the first 4000) from the file with an independent LZ4 decoder succeeds, so the pak data is fine.
  • The decompress source buffer is all zeros.
  • With ReadFile and every DirectStorage call traced, the pak range of this shader (0xb22454..0xb24d35) is never read. No DirectStorage request is enqueued or submitted (2 DStorage queues created; global.ucas and Frosty-XSX.ucas opened). No failed ReadFile. No memory-mapped I/O (not imported).
  • Forcing all overlapped reads to complete synchronously changes nothing.
  • Under cdb with a breakpoint in FShaderCodeArchive::CreateShader (frosty+0x2ea1960), the first call for shader 0x552 already finds a preloaded Code pointer. So the preload (FileCache ReadData -> pak async read) completed or was skipped without any I/O reaching XCL. The access violation is a consequence.
  • Unrelated warnings: GDKContext creation failed -1994173944 (0x89235208, believed E_XBL_NOT_INITIALIZED, unconfirmed); LoadLibrary(AudioHALWrapper.dll) returns NULL; report.json lists XGameRuntime "XGame: missing".

Hypothesis (unproven)

The UE pak async-read path (IAsyncReadFileHandle / precacher) signals completion without issuing a read, for example an event/wait or task-queue primitive behaving differently under XCL, or a pak-chunk/XPackage availability query answering "available".

Next step

Break on FFileCacheHandle::ReadData (synchronous call site frosty+0x2ea1b45) to see which IAsyncReadFileHandle completes the request and how.

Repro

  1. Build main 2898511 and cherry-pick 5fe5b41 (PR #1887).
  2. xcl run the unpacked title from <Mount>.
  3. The log shows the three UncompressMemory failures, then the crash after ~6 s.

Logs and dumps available on request (not attached: no game data in them, but large). report.json / xcl.log are in %LOCALAPPDATA%\XCL\<title>\logs\.

AI use: Claude Code (Claude Opus 5.5) analysis, Claude Code (Claude Sonnet 5.5) wrote this issue; from real runs on this machine.

**@⁠Diskuss** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/xcl-dev/xcl/issues/2493) ### Game and package version The Matrix Awakens: An Unreal Engine 5 Experience, Xbox Series GDK build 1.20.1831.3754 (`Frosty-XSX-Shipping.exe`). ### XCL version main 2898511 + 5fe5b41 (draft PR #1887) cherry-picked. Without it the title dies earlier at `CreateCommandSignature(...DispatchIndirectMeshCommandSignature...)` E_INVALIDARG (indirect argument type 107); #1984 mapped the command-list DispatchMesh slot, not this one. ### GPU and driver version AMD Radeon RX 9070 XT, 32.0.32015.7029. Not AMD-specific as far as known. ### Windows version Windows 11 (26300.9974) ### What happens Three `FCompression::UncompressMemory failed (885/1382)` (LZ4) lines, then an access violation in game code at `frosty-xsx-shipping.exe+0x57a3d48` (read of 0x70, null object) about 6 s in. No window, no frames. ### Findings - The failing block is shader #1362 (compute, shader map 85) in `ShaderArchive-Global-SF_XSX_SM6.ushaderbytecode`, stored uncompressed inside `Frosty-XSX.pak` at offset 0x38983b. Decoding that shader (and the first 4000) from the file with an independent LZ4 decoder succeeds, so the pak data is fine. - The decompress source buffer is all zeros. - With ReadFile and every DirectStorage call traced, the pak range of this shader (0xb22454..0xb24d35) is never read. No DirectStorage request is enqueued or submitted (2 DStorage queues created; `global.ucas` and `Frosty-XSX.ucas` opened). No failed ReadFile. No memory-mapped I/O (not imported). - Forcing all overlapped reads to complete synchronously changes nothing. - Under cdb with a breakpoint in `FShaderCodeArchive::CreateShader` (frosty+0x2ea1960), the first call for shader 0x552 already finds a preloaded Code pointer. So the preload (FileCache ReadData -> pak async read) completed or was skipped without any I/O reaching XCL. The access violation is a consequence. - Unrelated warnings: `GDKContext creation failed -1994173944` (0x89235208, believed E_XBL_NOT_INITIALIZED, unconfirmed); LoadLibrary(`AudioHALWrapper.dll`) returns NULL; `report.json` lists XGameRuntime "XGame: missing". ### Hypothesis (unproven) The UE pak async-read path (`IAsyncReadFileHandle` / precacher) signals completion without issuing a read, for example an event/wait or task-queue primitive behaving differently under XCL, or a pak-chunk/XPackage availability query answering "available". ### Next step Break on `FFileCacheHandle::ReadData` (synchronous call site frosty+0x2ea1b45) to see which `IAsyncReadFileHandle` completes the request and how. ### Repro 1. Build main 2898511 and cherry-pick 5fe5b41 (PR #1887). 2. `xcl run` the unpacked title from `<Mount>`. 3. The log shows the three UncompressMemory failures, then the crash after ~6 s. Logs and dumps available on request (not attached: no game data in them, but large). `report.json` / `xcl.log` are in `%LOCALAPPDATA%\XCL\<title>\logs\`. AI use: Claude Code (Claude Opus 5.5) analysis, Claude Code (Claude Sonnet 5.5) wrote this issue; from real runs on this machine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:32:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.