VIctory GPU Crash Investigation — Technical Summary and Diagnostic Findings #445
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#445
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?
@cmyk-ux on GitHub · 2026-11-24 03:30 UTC · original
<html>1. System Configuration
The following hardware and software configuration was used during the investigation:
2. Investigation Overview
The investigation focuses on a GPU device removal/crash occurring while running the game through VIctory.
The failure originates in the host GPU execution path, specifically during D3D12 command submission.
The initial logs showed that VIctory successfully initialized its graphics pipeline, compiled or loaded a substantial number of pipelines, and began submitting GPU workloads. However, the GPU eventually stopped accepting commands, causing the host GPU device to be removed.
The objective is to identify the exact invalid GPU operation, determine why it occurs, and establish whether the underlying problem is in VIctory's resource-state tracking, command scheduling, shader translation, or another component of the graphics backend.
3. Initial GPU Failure
The original log contained the following relevant messages:
This indicates that at least one compute shader could not be translated successfully.
The affected shader's pipelines were consequently dropped.
This is an important compatibility finding, but it is not yet established as the direct cause of the eventual device removal.
Pipeline creation also reported:
Shortly afterward, VIctory reported:
The submission took approximately 21.9 seconds, involving 32 command lists.
Finally, the host GPU device was removed:
The relevant HRESULT codes indicate:
0x887A0004: DXGI_ERROR_UNSUPPORTED.0x887A0006: DXGI_ERROR_DEVICE_HUNG.At this stage, the original log established that GPU execution was failing, but did not identify the exact invalid command responsible.
4. Enabling D3D12 Diagnostics
To obtain more precise information, we rebuilt VIctory using its diagnostics feature.
The command executed successfully:
Build output:
This produced a diagnostics-enabled build capable of exposing additional D3D12 validation information.
This step was essential because the initial device-removal message did not identify which GPU command violated the API requirements.
5. Critical Finding: Invalid D3D12 Resource State Transition
The diagnostics-enabled execution finally exposed the actual API validation error:
This is the most important finding from the entire investigation.
What happened?
VIctory attempted to use a GPU resource as a vertex buffer through:
However, that resource was still in the following D3D12 state:
A vertex buffer must be in a state that permits vertex-buffer access:
The resource therefore had an incompatible state when the graphics command list attempted to consume it.
In practical terms, the GPU resource was being used for two different purposes:
Unordered access (UAV), allowing shader-side read/write operations.
Vertex-buffer access, allowing the input assembler to consume vertex data.
Before switching between these uses, the backend must correctly manage resource transitions and synchronization.
The diagnostics indicate that this requirement was not satisfied.
Why this matters
This is no longer merely a generic GPU crash or an unexplained driver failure.
We have concrete evidence of a D3D12 resource-state validation violation.
The immediate failure involves a specific resource:
And a specific invalid operation:
The resource was still marked as UAV when VIctory attempted to bind it as a vertex buffer.
This strongly points toward a resource-state management or synchronization problem in the graphics backend.
However, we still need to determine whether the original mistake is:
A missing UAV-to-vertex-buffer transition.
A transition recorded on the wrong command list.
Incorrect resource-state tracking across command lists.
A missing or incorrectly placed synchronization barrier.
A resource aliasing or lifetime-management issue.
An incorrect assumption about the resource's state after a GPU operation.
The diagnostic message identifies the violation, but not necessarily the exact code location where the incorrect state was introduced.
6. Additional Evidence from the Command Lists
The diagnostics output also provides valuable information about the workload immediately surrounding the failure.
One particularly relevant section reports:
The associated compute pipeline references several resources, including:
This is followed by the device-removal diagnostic.
Earlier command-list entries also show substantial rendering and texture-processing activity, including:
Mesh pipeline execution.
Vertex and pixel shader execution.
Multiple compute dispatches.
Texture uploads.
Resolution-dependent processing at 160x90, 320x180, 640x360, 1280x720 and 2560x1440.
These entries demonstrate that the backend was handling a complex mixture of graphics and compute workloads.
The presence of UAV resources in these workloads is particularly relevant to investigating resource-state transitions.
However, the available log does not establish that the
df11dcd012cd7382compute dispatch directly modified the failing title buffer. That relationship must be verified through resource tracking and command-list inspection.7. Shader Translation Issue: A Separate Investigation Track
Another issue remains worth investigating:
The translator encountered a DXIL descriptor access pattern it could not handle for the reported GFX10 target.
This may result in missing compute functionality or dropped rendering operations.
It is important not to conflate this issue with the confirmed D3D12 resource-state violation.
At present, we have two distinct findings:
Finding A — Confirmed D3D12 validation violation
A resource in
UNORDERED_ACCESSstate was bound as a vertex buffer.Finding B — Confirmed shader translation limitation
A compute shader containing an unsupported descriptor access pattern could not be translated, and its associated draws were dropped.
Finding A explains the immediate API validation failure. Finding B may independently affect rendering correctness or execution behavior and deserves a separate investigation.
There is currently insufficient evidence to conclude that Finding B caused Finding A.
8. Current Technical Assessment
The investigation has progressed from a generic GPU device-removal event to a specific D3D12 API violation.
The strongest current hypothesis is an issue in VIctory's GPU resource-state management.
The most promising investigation areas are:
Resource-state tracking for buffers that transition between UAV and vertex-buffer usage.
Barrier generation and placement.
State tracking across multiple command lists.
Synchronization between compute and graphics workloads.
Resource aliasing, reuse, and lifetime management.
Whether the backend correctly handles resources shared between different pipeline stages.
The resource identified in the diagnostic should be treated as the primary investigation target.
We should avoid immediately applying a broad workaround, such as globally changing resource states or disabling validation. That could hide the underlying bug and introduce additional synchronization problems.
The correct approach is to trace the resource's creation, every relevant UAV binding, its state transitions, and the exact command list that eventually binds it through
IASetVertexBuffers.9. Recommended Next Steps
Priority 1 — Trace the failing resource
Search the VIctory source code for:
Determine how the resource corresponding to:
is created, tracked, and consumed.
The address is a runtime GPU allocation identifier, not necessarily a stable source-level resource identifier.
Priority 2 — Audit resource-state transitions
Inspect the code responsible for:
UAV barriers.
Transition barriers.
Resource-state tracking.
Command-list recording.
Command-list submission.
Cross-queue synchronization, if applicable.
Verify that a resource written through UAV access is transitioned into a valid vertex-buffer state before being consumed by the input assembler.
Also verify that the transition is recorded and synchronized correctly relative to the actual GPU execution order.
Priority 3 — Reproduce with diagnostics
After identifying the relevant code path, reproduce the failure using the diagnostics-enabled build.
The goal is to establish whether the same resource and command sequence consistently trigger the validation error.
Priority 4 — Investigate shader translation separately
Analyze the compute shader with hash:
Identify the unsupported descriptor access pattern and determine whether the translator can support it correctly.
Do not introduce unrelated shader changes into the initial resource-state fix.
Priority 5 — Validate the fix
After implementing a targeted correction:
Rebuild VIctory.
Repeat the same game launch procedure.
Confirm that the D3D12 debug layer no longer reports the invalid resource state.
Check for subsequent resource-state violations.
Verify that rendering and compute workloads execute correctly.
Confirm that the original device-removal event no longer occurs.
10. Final Summary
The investigation has identified a concrete graphics-backend problem.
The GPU device removal is associated with an invalid D3D12 resource-state usage:
VIctory attempts to bind a resource as a vertex buffer while that resource remains in
D3D12_RESOURCE_STATE_UNORDERED_ACCESS.The D3D12 diagnostics explicitly identify the offending operation, the resource, the actual state, and the expected state.
This makes resource-state tracking, barrier management, and compute-to-graphics synchronization the primary areas to investigate.
The separate DXIL descriptor translation failure is also confirmed, but its relationship to the device-removal event remains unproven.
The next objective is not to randomly change graphics settings or blame the NVIDIA driver. It is to trace the failing resource through VIctory's GPU backend and identify exactly where the required state transition or synchronization is missing.
Current status: Root API violation identified; underlying source-level defect not yet isolated; fix not yet implemented or verified.
</html>@colehammond65 on GitHub · 2026-11-24 06:58 UTC · original
RTX 4080 follow-up. The world device removal remains with PR #334 applied. Across four DRED runs there was no page fault or freed allocation; the stopped command was indirect execution or mesh dispatch. The debug layer is unavailable on this Windows build, so I could not measure the resource-state validation errors discussed here. Full report: #334
AI-assisted test report.
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original
Automated triage for the maintainers.
Thanks for the run report (RTX 3070, Windows 11 26200). The debug-layer error here (174 MiB
title buffer …+0xae00000inUNORDERED_ACCESSatIASetVertexBuffers, followed by0x887A0006) is the same failure as #199, the oldest complete report. Please follow it there. Other reports of it: #264, #548, #1442.On
main, host copies of title buffers (crates/victory-gpu/src/shadow.rs, created byHost::shared_buffer) still have no per-use state tracking. Open PR #334 ("transition host copies of title memory between shader writes and reads") addresses this, but it has not been merged yet.The separate
a descriptor read only as data is not supportedrefusal (compute6c86597c4a6c9c5a) still exists onmain, incrates/victory-shader/src/emit/lower.rs. #979 covers the same kind of refusal.Two things are missing that would make this report useful as a data point:
git rev-parse --short HEAD);If you can, also retry with PR #334 applied and say whether the debug-layer error and the hang go away.
Generated by Claude Code