[Crash] 0x887A0004 on world load due to unsupported descriptor-as-data and unknown-stride buffers #816

Closed
opened 2026-11-26 04:14:00 +00:00 by github-bot · 2 comments
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 11:33 UTC · original

System Information:

OS: Windows 11

CPU: AMD Ryzen 5 5600X

GPU: NVIDIA RTX 3070 Ti

RAM: 32 GB DDR4

Describe the bug:
The game crashes with a GPU hang (DXGI_ERROR_DEVICE_REMOVED / 0x887A0004) when loading into the 3D game world (after the intro). This happens consistently both on a physical NVIDIA GPU and in WARP (software) mode, which proves the issue is in the emulator's shader translation pipeline, not the host GPU driver.

Root Cause Analysis:
The attached full log (INFO victory_gpu.txt) shows the crash occurs because the emulator fails to translate a massive amount of compute shaders right before the world loads. The specific errors are:

GFX10 code at 0x...: a descriptor read only as data is not supported

GFX10 code at 0x...: a structured buffer of unknown stride is not supported

Because victory-shader cannot translate these, it drops the shaders (draws are dropped). When the game subsequently submits a batch of 25 command lists, the missing pipeline bindings/resource states cause the GPU to hang.

Proposed Architectural Solution:
Instead of dropping the shader on unsupported patterns, we should implement safe fallbacks to prevent the GPU hang:

For "Descriptor read as data": Pack the descriptor DWORDs into Root Constants (or a small Constant Buffer) on the host side and load them in the translated shader. If unmapped, fallback to 0u.

For "Structured buffer of unknown stride": Do not guess a stride. Instead, lower these to ByteAddressBuffer / RWByteAddressBuffer and perform explicit byte-offset reads (Load/Store).

I have attached a conceptual Rust implementation (use stdcollectionsBTreeMap;.txt) generated via AI architectural analysis. It outlines how to structure ShaderEmulationMetadata, handle the ValueExpr lowering, and emit the HLSL expressions for these fallbacks within the victory-shader crate.

use stdcollectionsBTreeMap;.txt
Log.txt

**@⁠CaptureLance35** on GitHub · 2026-11-24 11:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/816) System Information: OS: Windows 11 CPU: AMD Ryzen 5 5600X GPU: NVIDIA RTX 3070 Ti RAM: 32 GB DDR4 Describe the bug: The game crashes with a GPU hang (DXGI_ERROR_DEVICE_REMOVED / 0x887A0004) when loading into the 3D game world (after the intro). This happens consistently both on a physical NVIDIA GPU and in WARP (software) mode, which proves the issue is in the emulator's shader translation pipeline, not the host GPU driver. Root Cause Analysis: The attached full log (INFO victory_gpu.txt) shows the crash occurs because the emulator fails to translate a massive amount of compute shaders right before the world loads. The specific errors are: GFX10 code at 0x...: a descriptor read only as data is not supported GFX10 code at 0x...: a structured buffer of unknown stride is not supported Because victory-shader cannot translate these, it drops the shaders (draws are dropped). When the game subsequently submits a batch of 25 command lists, the missing pipeline bindings/resource states cause the GPU to hang. Proposed Architectural Solution: Instead of dropping the shader on unsupported patterns, we should implement safe fallbacks to prevent the GPU hang: For "Descriptor read as data": Pack the descriptor DWORDs into Root Constants (or a small Constant Buffer) on the host side and load them in the translated shader. If unmapped, fallback to 0u. For "Structured buffer of unknown stride": Do not guess a stride. Instead, lower these to ByteAddressBuffer / RWByteAddressBuffer and perform explicit byte-offset reads (Load/Store). I have attached a conceptual Rust implementation (use stdcollectionsBTreeMap;.txt) generated via AI architectural analysis. It outlines how to structure ShaderEmulationMetadata, handle the ValueExpr lowering, and emit the HLSL expressions for these fallbacks within the victory-shader crate. [use stdcollectionsBTreeMap;.txt](https://github.com/user-attachments/files/35328620/use.stdcollectionsBTreeMap.txt) [Log.txt](https://github.com/user-attachments/files/35328621/Log.txt)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:00 +00:00
Author
Owner

@⁠Sunkiller-qc on GitHub · 2026-11-24 13:13 UTC · original

This is the NVIDIA world-load hang tracked in #71 (and #653 for the WARP side). For the two refusal classes in your log:

  • "a structured buffer of unknown stride" is what #704 (with #193) addresses. On #698, Sil3ntGam3r had zero unknown-stride refusals left with it, and an 11+ min run without the title stopping.
  • "a descriptor read only as data" is #798's class (879 programs on 1.0.2.1). There's no PR for it yet.

If you have a diag build, the DRED line from crashes.log would help on #71. Otherwise I think this can be closed in favour of #71.

**@⁠Sunkiller-qc** on GitHub · 2026-11-24 13:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/816#issuecomment-7132523592) This is the NVIDIA world-load hang tracked in #71 (and #653 for the WARP side). For the two refusal classes in your log: - "a structured buffer of unknown stride" is what #704 (with #193) addresses. On #698, Sil3ntGam3r had zero unknown-stride refusals left with it, and an 11+ min run without the title stopping. - "a descriptor read only as data" is #798's class (879 programs on 1.0.2.1). There's no PR for it yet. If you have a diag build, the DRED line from crashes.log would help on #71. Otherwise I think this can be closed in favour of #71.
Author
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 15:18 UTC · original

Thanks, makes sense. My log shows both refusal classes you listed: the unknown-stride one is covered by #704, and the descriptor-dword-as-s_load-address one is #798. I'll close this as a duplicate of #71 and follow it there. I'll rebuild with a diag build and attach the DRED line from crashes.log to #71.

**@⁠CaptureLance35** on GitHub · 2026-11-24 15:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/816#issuecomment-7135802456) Thanks, makes sense. My log shows both refusal classes you listed: the unknown-stride one is covered by #704, and the descriptor-dword-as-s_load-address one is #798. I'll close this as a duplicate of #71 and follow it there. I'll rebuild with a diag build and attach the DRED line from crashes.log to #71.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#816
No description provided.