[Intel Arc B580] Repeated DXGI_ERROR_DEVICE_HUNG (0x887A0006) with D3D12 buffer-state errors across card-buffer and indirect-batch A/B runs #4643
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#4643
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?
@gilmarcs on GitHub · 2026-12-01 00:29 UTC · original
<html>Summary
VIctory-NVIDIA repeatedly loses the D3D12 device on an Intel Arc B580 while rendering the opening sequence or loading into the world. The final removal reason is
DXGI_ERROR_DEVICE_HUNG(0x887A0006). It reproduces with relay both enabled and disabled.The D3D12 debug layer consistently found a buffer-state defect. With card-buffer copies active, root SRVs read buffers tracked as
COPY_DEST. WithVICTORY_CARD_BUFFERS=0, those warnings disappeared, butCopyBufferRegionstill read two buffers tracked asCOPY_DEST, and the device still hung. Disabling indirect batch reuse also failed to prevent the hang. These results identify concrete state errors worth fixing. Whether either error caused any given device removal is still open.Environment and reproduction
32.0.101.9175.26300.9974.84bd61e2, with additional local instrumentation and a typedResourceHeapfallback in the later captures. The exact executable revision of the two relay excerpts is unavailable from those excerpts.Build the diagnostics executable and launch with the following settings as a starting point for the DRED comparisons. Use an existing data directory and cache.
For the state-validation comparison, add
--set VICTORY_D3D12_DEBUG=1, leave GPU-based validation off, and setVICTORY_CARD_ALL=0. Compare with--set VICTORY_CARD_BUFFERS=0, then repeat that variant with--set VICTORY_INDIRECT_BATCH=0. The scripted Enter reached GameInput in several captures, but input delivery alone does not establish that the title advanced.Validation and DRED results
Times in the first column are local time in São Paulo (UTC−3), on Nov 30, 2026.
The submitting thread was preparing a new lot in both snapshots. The diagnostic phrase
nothing of ours was running on the carddescribes that thread’s phase, while the separate relay counters and fence show prior submissions without recorded completion. Neither excerpt contains a DRED breadcrumb tying the two PSOs under creation to GPU execution.The pipeline library was unmapped in both excerpts. In the second excerpt, 62 library lookups returned
0x80070057and were followed by successful pipeline creation. A library save finished about 23 seconds before removal. The same two PSOs were being created at both failures, but the second failure occurred without either creation having run for a second.Memory, related issues, and remaining questions
Kernel_141event for one DRED failure. Two earlier0x119triage dumps showedVidSchiSubmitPagingCommandon the video scheduler stack. Those dumps did not identify the failing paging packet or connect it to a particular resource.CopyTextureRegionrejected byClose()with0x80070057. Here the library returned0x80070057during PSO lookup, and device loss later reported0x887A0006while waiting for a fence. A separateVICTORY_PLACED_COPIED=0comparison could test whether that texture path contributes. I have no matching placed-twin copy in the affected lists yet. PR #4080 · Issue #3901ExecuteIndirectbreadcrumbs. That is consistent with some of these captures. This set also includes incomplete direct mesh dispatches and reproducible buffer-state validation messages. Arc report in victory-fork · VIctory-NVIDIA Arc reportCan we trace the last
CopyBufferRegionwrite, the barrier actually emitted, and the first read of the same hostID3D12Resourceacross the lists in oneExecuteCommandListscall? The most useful comparison would show whetherVICTORY_COPIES_IN_PLACE=0eliminates the remainingCOPY_DEST→COPY_SOURCEvalidation messages. A DRED-only repeat on the same save could then test whether eliminating those messages also changes the device-loss signature.Attachment:
</html>victory-arc-b580-device-loss-evidence.log
device-loss-notes.md
@gilmarcs on GitHub · 2026-12-01 00:34 UTC · original · edited 2026-12-01 00:49 UTC
This happens in the first cutscenes, right after Lucia says "Just water", but if I skip it, when made Lucia turns back it have the same device hung error
@gilmarcs on GitHub · 2026-12-01 09:09 UTC · original
D3D12 device-loss investigation summary
We have not identified or fixed the root cause yet. The evidence now points more strongly to one recurring mesh workload, while still leaving open whether DRED identifies the operation that actually triggers the fault.
@gilmarcs on GitHub · 2026-12-01 15:53 UTC · original
I excluded the three candidate mesh shaders—7972997d15fd9e69, f0c7efd2aceb2aaa, and 9b330a4c15bc3e97—from being sent to the GPU. The log confirmed that all three were identified by the filter.
No device hang for 30+ minutes, passed all the prison cutscenes and Lucia`s failed heist, but still happening, this time in the ocean with the ExecuteIndirect of the mesh shader: 5d54808fb5099d57
@gilmarcs on GitHub · 2026-12-01 16:49 UTC · original
Next one is: 3ce73e45a9c34935. The five are 128-thread mesh shaders, all with triangle topology, and each one calls setMeshOutputCounts twice.
I managed to triangulate the issue. What these five have in common is the type of pass, rather than a bug in a specific shader. When one of them is skipped, the failure migrates to the next shader of the same type.
1. All of them draw only to the depth buffer, with no color render target.
79729f14(writes toSV_Depth)f0c77d85(writes toSV_Depth)5d543ce79b33targets [], a single register with no specified format2. The failure shifts to a different shader depending on which one you skip. Based on the capture data:
f0c7causes the failure to occur in7972(viaExecuteIndirect)—observed in 5 captures.7972causes the failure to occur inf0c7(viaDispatchMesh)—observed in 2 captures.7972andf0c7simultaneously resulted in no crashes over a 13-minute period. - Skipping7972,f0c7, and9b33(captures from 12:14 and 12:54), it hung again—this time inExecuteIndirect, near5d54and3ce7.This points to "any depth pass using a mesh shader that happens to be running at that moment," rather than a specific faulty shader.
3. It is not an infinite loop within the shader. I counted the back-edges in the translated DXIL:
7972,f0c7,5d54, and3ce7contain no loops at all. Only9b33has one (10 back-edges).4. Shared data:
f0c7and3ce7both read from the same structured buffer (1024 elements × 64 bytes = 64 KiB) via slot 0 of theu8table.5d54and9b33both read from the same 998,400-bytePlacedbuffer.Commonalities among the five (based on a comparison with 726 saved mesh shaders, located at
%LOCALAPPDATA%\VIctory\shaders-save): all use 128 threads, triangle topology, wave64 emulation, a fixed output size of (128,128),ResourceHeapindexing, and reads via a root SRV. Of the 726 shaders, 684 utilize root SRV reads, and 535 share the same meshlet-decoding prologue.Inference: The likely cause is related to the mesh-shader-based depth pass on the Arc architecture (rasterizing mesh output solely for depth—including in R16 format and using
SV_Depth), the buffers shared by these passes, or the platform's behavior under this specific type of workload. Analysis limitation: markers containing target and format information are only recorded near the point of failure. Consequently, I cannot determine what fraction of total mesh passes are "depth-only." Without this baseline, while "depth-only" passes appear significant in the data, they have not been definitively proven as the root cause.