Host GPU device removed on NVIDIA (D3D12): 22 crashes in ~42 h — invalid 16-bit texture formats, DEVICE_HUNG in compute/mesh dispatches, descriptor heap capped at 1M, wave64 pipelines refused #3237
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#3237
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?
@mikebigboots-web on GitHub · 2026-11-26 14:08 UTC · original
Running title
7952987A(Xbox Series X mode) on an NVIDIA GPU, the host D3D12 device is removed repeatedly. Between 2026-11-24 19:43 UTC and 2026-11-26 14:04 UTC I collected 22 crashes, all reportinghost GPU failure: host GPU device removed. They fall into three groups with different causes; two verbose logs (one per type) are attached. The host also hits two related limits (descriptor heap size, wave size) that cause dropped work and black frames before any crash.Environment
Series 1.0.2.1 (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)Crash summary (
crashes_1.log)0x887A0001INVALID_CALL0x887A0006DEVICE_HUNGop 42, mesh 4; 1× stops atop 6, dispatch 16x16x16(see §2)0x887A0004→0x887A0005VICTORY_D3D12_DEBUG=1)1. Invalid 16-bit packed formats (group A)
Debug-layer output of the 8 diagnosed crashes:
GetResourceAllocationInfo— texture withALLOW_UNORDERED_ACCESSandB5G5R5A1_UNORM(id=599);CreateUnorderedAccessViewreports the format cannot be used with a typed UAV, the implementation does not support it (id=342).CreateCommittedResource3—ALLOW_RENDER_TARGETwithD3D12_CLEAR_VALUE::Format = B4G4R4A4_UNORM(id=817).In the verbose log (
log_nvidia_trimmed.txt, crash at 2026-11-25 18:46:01 UTC) the sequence is:DXGI_FORMAT 115(B4G4R4A4_UNORM) render target fails host texture creation:the host refuses castable formats … (0x80070057), thenno host texture … (0x80070057).ALLOW_RENDER_TARGETand that format, which the debug layer rejects.RemoveDeviceis triggered (DXGI_ERROR_INVALID_CALL, id=232).Suggested fix: check
D3D12_FEATURE_FORMAT_SUPPORTfor these formats and substitute a supported format (with conversion) when RTV/UAV usage is unsupported; a failed host texture creation should not fall through to creating an invalid resource.2. GPU hangs (group B)
op 42: mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97], the same pair every time.command 8 of 12 (op 6): dispatch 16x16x16 [compute 00167d58cc5a78d7]. Running list 13 alone also removes the device; its first command is anotherdispatch 16x16x16([compute 5bb23d336331db1d]). Submissions of 2.9–3.0 s with 28–33 lists appear shortly before (slow host submission), close to the Windows TDR limit.log_nvidia_1_trimmed.txt) lasted ~84 s and reached frame 1024 (4393 draws, 511 dispatches in that frame).3. Descriptor heap and wave size limits (all runs)
count=934464(no room for the null buffer views … total=1000000), and 310,720title slot past the host heapwarnings follow (indices 934464…1245183), so those slots are dropped.Shader wants wave lane count of 64 but maximum wave lane count for device is 32(id=622) and 102 compute pipelines refused (host pipeline refused … (0x80070057)), 110 draws/dispatches dropped withno host pipeline, and 521black framewarnings. In the samples I checked the refused pipelines coincide with the wave64 warnings; I haven't verified this for all of them.Other warnings
SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor … SAMPLER_HEAP_DIRECTLY_INDEXED(id=1419); 2×method not implementedondevice; pixel shader writing 3 components to an R16G16B16A16_FLOAT target (id=974).Expected behavior
No device removal: unsupported formats handled via fallback, wave64 shaders handled (or reported clearly), and no hang in the dispatches/draws above.
Steps to reproduce
<fill in: scene/settings, whether deterministic, time until crash>
Attachments
crashes_1.log(22 entries)log_nvidia_trimmed.txt(verbose run ending in the 0x887A0001 crash; ANSI stripped, repeated heap warnings collapsed)log_nvidia_1_trimmed.txt(verbose run ending in the 0x887A0006 hang; also DEBUG lines omitted)crashes.log
@potatoe0100 on GitHub · 2026-11-26 14:14 UTC · original
Where each group stands on current
main(63bcca4). The crashes span 24-26 Nov, so most were probably on an older build:B5G5R5A1_UNORMwith unordered access (6): fixed onmainby #2462 (ea488a9, refuses the typed view) and #2286 (bac1364, theGetResourceAllocationInfoquery uses the host texture's own description). #1753 was closed after a debug-layer run on an RTX 5080 at63bcca4with no removal.B4G4R4A4_UNORMrender target (2): still refused onmain. Open PRs: #2936 (widens 16-bit packed colour to BGRA8 inpc_format, rebased on63bcca4), #89 and #2767. #3065 doesn't cover this, since it only drops clear values on textures that are neither render targets nor depth.op 42mesh04b9be3756e8f41c(3): the wave64 mesh hang in #778, with #1922 (rebase of #578) open.dispatch 16x16x16 [compute 00167d58cc5a78d7](1): program "W" in #1968, still open onmain(umbrella #71).e53474c).A rerun on
63bcca4withVICTORY_D3D12_DEBUG=1would show which of these are left, and give group C a cause.AI-assisted (Claude)
@potatoe0100 on GitHub · 2026-11-26 14:51 UTC · original
On the 10 crashes I couldn't place before (6 in group A with no debug output, and the 4 in group C):
0x887A0001), and they come right before the first debug-layer run (25 Nov 01:42 to 03:33 UTC). On an RTX 4060 (driver 621.14) a typedB5G5R5A1_UNORMunordered view removes the device with0x887A0001even without the debug layer, while a refused texture creation only fails the call. So these are most likely the typed-view removal that #2462 fixed onmain. All 22 crashes predate that merge (25 Nov 21:57 UTC).0x887A0004is not the cause. It is whatGetAutoBreadcrumbsOutputreturns when breadcrumbs are off (VICTORY_D3D12_DREDunset). #2559 fixes that wording. The real reason is0x887A0005with no other data, and in the last one the debug layer was on and logged no error, so it was not an API misuse. It needs a run on currentmainwith a diagnostics build,VICTORY_D3D12_DRED=1andVICTORY_D3D12_DEBUG=1.GetResourceAllocationInfo(599) andCreateCommittedResource3(817) lines in the report were only the first debug error, not what removed the device. #3260 makes the report name the call just beforeRemoveDevice.AI-assisted (Claude)