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

Closed
opened 2026-11-24 11:33:16 +00:00 by CaptureLance35 · 2 comments
CaptureLance35 commented 2026-11-24 11:33:16 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by CaptureLance35 on 2026-11-24T11:33:16Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:issue:6580825653 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/816). Originally posted by [CaptureLance35](https://github.com/CaptureLance35) on 2026-11-24T11:33:16Z. --- 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)
Sunkiller-qc commented 2026-11-24 14:04:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Sunkiller-qc on 2026-11-24T13:13:28Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132523592 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/816#issuecomment-7132523592). Originally posted by [Sunkiller-qc](https://github.com/Sunkiller-qc) on 2026-11-24T13:13:28Z. --- 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.
CaptureLance35 commented 2026-11-24 16:05:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by CaptureLance35 on 2026-11-24T15:18:24Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135802456 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/816#issuecomment-7135802456). Originally posted by [CaptureLance35](https://github.com/CaptureLance35) on 2026-11-24T15:18:24Z. --- 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.
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#816
No description provided.