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

Open
opened 2026-11-26 14:12:09 +00:00 by github-bot · 2 comments
Owner

@⁠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 reporting host 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

  • Build: Series 1.0.2.1 (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)
  • CPU: AMD Ryzen 5 9600X, 32 GB RAM
  • GPU: NVIDIA RTX 5070 Ti, driver 617.42
  • OS: Windows 10.0.26200 (x64, AtlasOS)
  • Output resolution: 2560x1440; D3D12 feature level 12_2

Crash summary (crashes_1.log)

Group Count HRESULT Notes
A 14 0x887A0001 INVALID_CALL 1 list, no breadcrumbs. 8 have D3D12 debug-layer output (see §1); 6 have none
B 4 0x887A0006 DEVICE_HUNG 3× stop at op 42, mesh 4; 1× stops at op 6, dispatch 16x16x16 (see §2)
C 4 0x887A0004 → 0x887A0005 "device interface or feature level is not supported", then device suspended; no diagnostics (log suggests VICTORY_D3D12_DEBUG=1)

1. Invalid 16-bit packed formats (group A)

Debug-layer output of the 8 diagnosed crashes:

  • 6×: GetResourceAllocationInfo — texture with ALLOW_UNORDERED_ACCESS and B5G5R5A1_UNORM (id=599); CreateUnorderedAccessView reports the format cannot be used with a typed UAV, the implementation does not support it (id=342).
  • 2×: CreateCommittedResource3 — ALLOW_RENDER_TARGET with D3D12_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:

  1. A 2560x1440 DXGI_FORMAT 115 (B4G4R4A4_UNORM) render target fails host texture creation: the host refuses castable formats … (0x80070057), then no host texture … (0x80070057).
  2. The code still creates a committed resource with ALLOW_RENDER_TARGET and that format, which the debug layer rejects.
  3. RemoveDevice is triggered (DXGI_ERROR_INVALID_CALL, id=232).

Suggested fix: check D3D12_FEATURE_FORMAT_SUPPORT for 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)

  • 3 crashes (2026-11-24 19:54–20:01 UTC, 32 lists each) stop at op 42: mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97], the same pair every time.
  • 1 crash (2026-11-26 14:04:09 UTC, 27 lists, host submission 2765 ms) stops at command 8 of 12 (op 6): dispatch 16x16x16 [compute 00167d58cc5a78d7]. Running list 13 alone also removes the device; its first command is another dispatch 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.
  • The hang run (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)

  • The title requests shader-visible heaps of 2,097,152 and 1,310,720 descriptors; the debug layer warns the limit is 1,000,000 (id=645). The host heap ends up at count=934464 (no room for the null buffer views … total=1000000), and 310,720 title slot past the host heap warnings follow (indices 934464…1245183), so those slots are dropped.
  • In the hang run: 103× 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 with no host pipeline, and 521 black frame warnings. In the samples I checked the refused pipelines coincide with the wave64 warnings; I haven't verified this for all of them.
  • I have not confirmed whether the dropped descriptor slots or the missing pipelines relate to the hangs in §2.

Other warnings

SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor … SAMPLER_HEAP_DIRECTLY_INDEXED (id=1419); 2× method not implemented on device; 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

**@⁠mikebigboots-web** on GitHub · 2026-11-26 14:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/3237) 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 reporting `host 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 - Build: `Series 1.0.2.1 (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)` - CPU: AMD Ryzen 5 9600X, 32 GB RAM - GPU: NVIDIA RTX 5070 Ti, driver 617.42 <confirm> - OS: Windows 10.0.26200 (x64, AtlasOS) - Output resolution: 2560x1440; D3D12 feature level 12_2 ## Crash summary (`crashes_1.log`) | Group | Count | HRESULT | Notes | |---|---|---|---| | A | 14 | `0x887A0001` INVALID_CALL | 1 list, no breadcrumbs. 8 have D3D12 debug-layer output (see §1); 6 have none | | B | 4 | `0x887A0006` DEVICE_HUNG | 3× stop at `op 42, mesh 4`; 1× stops at `op 6, dispatch 16x16x16` (see §2) | | C | 4 | `0x887A0004` → `0x887A0005` | "device interface or feature level is not supported", then device suspended; no diagnostics (log suggests `VICTORY_D3D12_DEBUG=1`) | ## 1. Invalid 16-bit packed formats (group A) Debug-layer output of the 8 diagnosed crashes: - 6×: `GetResourceAllocationInfo` — texture with `ALLOW_UNORDERED_ACCESS` and `B5G5R5A1_UNORM` (id=599); `CreateUnorderedAccessView` reports the format cannot be used with a typed UAV, the implementation does not support it (id=342). - 2×: `CreateCommittedResource3` — `ALLOW_RENDER_TARGET` with `D3D12_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: 1. A 2560x1440 `DXGI_FORMAT 115` (B4G4R4A4_UNORM) render target fails host texture creation: `the host refuses castable formats … (0x80070057)`, then `no host texture … (0x80070057)`. 2. The code still creates a committed resource with `ALLOW_RENDER_TARGET` and that format, which the debug layer rejects. 3. `RemoveDevice` is triggered (DXGI_ERROR_INVALID_CALL, id=232). Suggested fix: check `D3D12_FEATURE_FORMAT_SUPPORT` for 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) - 3 crashes (2026-11-24 19:54–20:01 UTC, 32 lists each) stop at `op 42: mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]`, the same pair every time. - 1 crash (2026-11-26 14:04:09 UTC, 27 lists, host submission 2765 ms) stops at `command 8 of 12 (op 6): dispatch 16x16x16 [compute 00167d58cc5a78d7]`. Running list 13 alone also removes the device; its first command is another `dispatch 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. - The hang run (`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) - The title requests shader-visible heaps of 2,097,152 and 1,310,720 descriptors; the debug layer warns the limit is 1,000,000 (id=645). The host heap ends up at `count=934464` (`no room for the null buffer views … total=1000000`), and 310,720 `title slot past the host heap` warnings follow (indices 934464…1245183), so those slots are dropped. - In the hang run: 103× `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 with `no host pipeline`, and 521 `black frame` warnings. In the samples I checked the refused pipelines coincide with the wave64 warnings; I haven't verified this for all of them. - I have not confirmed whether the dropped descriptor slots or the missing pipelines relate to the hangs in §2. ## Other warnings `SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor … SAMPLER_HEAP_DIRECTLY_INDEXED` (id=1419); 2× `method not implemented` on `device`; 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](https://github.com/user-attachments/files/35468037/crashes.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:12:09 +00:00
Author
Owner

@⁠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:

  • A, B5G5R5A1_UNORM with unordered access (6): fixed on main by #2462 (ea488a9, refuses the typed view) and #2286 (bac1364, the GetResourceAllocationInfo query uses the host texture's own description). #1753 was closed after a debug-layer run on an RTX 5080 at 63bcca4 with no removal.
  • A, B4G4R4A4_UNORM render target (2): still refused on main. Open PRs: #2936 (widens 16-bit packed colour to BGRA8 in pc_format, rebased on 63bcca4), #89 and #2767. #3065 doesn't cover this, since it only drops clear values on textures that are neither render targets nor depth.
  • B, op 42 mesh 04b9be3756e8f41c (3): the wave64 mesh hang in #778, with #1922 (rebase of #578) open.
  • B, dispatch 16x16x16 [compute 00167d58cc5a78d7] (1): program "W" in #1968, still open on main (umbrella #71).
  • Heap cap and wave64 refusals: #747, and #189 for wave64 compute. The sampler heap warning (id 1419) is fixed by #1778 (e53474c).
  • A without debug output (6) and C (4): nothing to match them to yet.

A rerun on 63bcca4 with VICTORY_D3D12_DEBUG=1 would show which of these are left, and give group C a cause.

AI-assisted (Claude)

**@⁠potatoe0100** on GitHub · 2026-11-26 14:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/3237#issuecomment-7194477859) Where each group stands on current `main` (`63bcca4`). The crashes span 24-26 Nov, so most were probably on an older build: - **A, `B5G5R5A1_UNORM` with unordered access (6):** fixed on `main` by #2462 (ea488a9, refuses the typed view) and #2286 (bac1364, the `GetResourceAllocationInfo` query uses the host texture's own description). #1753 was closed after a debug-layer run on an RTX 5080 at `63bcca4` with no removal. - **A, `B4G4R4A4_UNORM` render target (2):** still refused on `main`. Open PRs: #2936 (widens 16-bit packed colour to BGRA8 in `pc_format`, rebased on `63bcca4`), #89 and #2767. #3065 doesn't cover this, since it only drops clear values on textures that are neither render targets nor depth. - **B, `op 42` mesh `04b9be3756e8f41c` (3):** the wave64 mesh hang in #778, with #1922 (rebase of #578) open. - **B, `dispatch 16x16x16 [compute 00167d58cc5a78d7]` (1):** program "W" in #1968, still open on `main` (umbrella #71). - **Heap cap and wave64 refusals:** #747, and #189 for wave64 compute. The sampler heap warning (id 1419) is fixed by #1778 (e53474c). - **A without debug output (6) and C (4):** nothing to match them to yet. A rerun on `63bcca4` with `VICTORY_D3D12_DEBUG=1` would show which of these are left, and give group C a cause. AI-assisted (Claude)
Author
Owner

@⁠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):

  • A without debug output (6): same signature as the 8 diagnosed ones (1 list, empty breadcrumbs, 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 typed B5G5R5A1_UNORM unordered view removes the device with 0x887A0001 even 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 on main. All 22 crashes predate that merge (25 Nov 21:57 UTC).
  • C (4): the 0x887A0004 is not the cause. It is what GetAutoBreadcrumbsOutput returns when breadcrumbs are off (VICTORY_D3D12_DRED unset). #2559 fixes that wording. The real reason is 0x887A0005 with 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 current main with a diagnostics build, VICTORY_D3D12_DRED=1 and VICTORY_D3D12_DEBUG=1.
  • The GetResourceAllocationInfo (599) and CreateCommittedResource3 (817) lines in the report were only the first debug error, not what removed the device. #3260 makes the report name the call just before RemoveDevice.

AI-assisted (Claude)

**@⁠potatoe0100** on GitHub · 2026-11-26 14:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/3237#issuecomment-7195428612) On the 10 crashes I couldn't place before (6 in group A with no debug output, and the 4 in group C): - **A without debug output (6):** same signature as the 8 diagnosed ones (1 list, empty breadcrumbs, `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 typed `B5G5R5A1_UNORM` unordered view removes the device with `0x887A0001` even 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 on `main`. All 22 crashes predate that merge (25 Nov 21:57 UTC). - **C (4):** the `0x887A0004` is not the cause. It is what `GetAutoBreadcrumbsOutput` returns when breadcrumbs are off (`VICTORY_D3D12_DRED` unset). #2559 fixes that wording. The real reason is `0x887A0005` with 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 current `main` with a diagnostics build, `VICTORY_D3D12_DRED=1` and `VICTORY_D3D12_DEBUG=1`. - The `GetResourceAllocationInfo` (599) and `CreateCommittedResource3` (817) lines in the report were only the first debug error, not what removed the device. #3260 makes the report name the call just before `RemoveDevice`. AI-assisted (Claude)
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#3237
No description provided.