Host GPU device removed (D3D12) on NVIDIA: B4G4R4A4/B5G5R5A1 resources cause DXGI_ERROR_INVALID_CALL; shader-visible descriptor heap capped at 1M; wave64 compute shaders refused #2725

Open
opened 2026-11-26 05:12:48 +00:00 by github-bot · 4 comments
Owner

@⁠mikebigboots-web on GitHub · 2026-11-25 18:51 UTC · original

Summary
The host GPU device is removed repeatedly while running title 7952987A (Xbox Series X mode). I collected 20 crashes in ~24 h (2026-11-24 19:43 UTC → 2026-11-25 18:46 UTC). 14 of them are DXGI_ERROR_INVALID_CALL (0x887A0001), and the attached verbose log reproduces one of them ~13 s after launch. The log also shows two other host-side limitations that probably matter on this GPU (descriptor heap size, wave size).

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; debug layer messages are present in the log

1. Crash: invalid 16-bit packed formats (14/20 crashes, 0x887A0001)

The verbose log ends with this sequence:

  1. A 2560x1440 render-target texture with DXGI_FORMAT 115 (B4G4R4A4_UNORM, flags=1) fails host creation twice: the host refuses castable formats … (0x80070057), then no host texture … (0x80070057).
  2. The code still goes on to create a committed resource with ALLOW_RENDER_TARGET and B4G4R4A4_UNORM. The debug layer reports CreateCommittedResource3: D3D12_CLEAR_VALUE::Format must be valid to be used as a render target (id=817) and CreateCommittedResource (id=599).
  3. A texture with B5G5R5A1_UNORM + ALLOW_UNORDERED_ACCESS hits GetResourceAllocationInfo (id=599) and CreateUnorderedAccessView: format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed UAV … implementation does not support this Format (id=342).
  4. ID3D12Device::RemoveDevice is triggered (DXGI_ERROR_INVALID_CALL, id=232), then host GPU device removed.

Proposed fix: query CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT) for these formats and, when RTV/UAV usage is unsupported, substitute a supported format (e.g. R8G8B8A8_UNORM / R16_UINT, with a conversion path). The failed host texture creation should not fall through to creating an invalid resource.

2. Descriptor heap capped at 1,000,000 (all runs)

  • The title requests shader-visible heaps of 2,097,152 and 1,310,720 descriptors. The debug layer warns NumDescriptors … but the limit for shader visible view heaps is 1000000 (id=645).
  • The host heap ends up with count=934464 (also no room for the null buffer views … total=1000000).
  • 310,720 warnings title slot past the host heap follow, with indices 934464 … 1,245,183 (for_draw=false in all of them). Those slots are dropped.
  • This is likely a candidate for the 0x887A0006 hang (group B in the previous comment/log), since the title reads descriptors beyond the host heap. I haven't confirmed that link.

3. Wave size and refused compute pipelines

  • CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32 (3×, id=622).
  • 3 compute pipelines are then refused: host pipeline refused … (0x80070057) for shaders b68f0931f1f47e61, 88994c3496045f51, 13dfdd3b1136e407.
  • The title expects wave64 (Xbox); this host reports max 32.

Other notes

  • SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor … SAMPLER_HEAP_DIRECTLY_INDEXED (2×, id=1419).
  • Two method not implemented on device (slots 0x218 and 0x1c8).
  • A black frame at frame 1, and 7 black frames overall before the crash.
  • Many ID3D12PipelineLibrary::Load*Pipeline: not stored warnings (id=971): expected on a cold shader cache.

Other crash types in the earlier log (crashes.log)

  • 3× 0x887A0006 (DEVICE_HUNG), always stopping at op 42, mesh 4, same mesh/pixel shader pair, ~4 min apart.
  • 3× 0x887A0004 followed by 0x887A0005 (feature level/interface not supported), no breadcrumbs.

Steps to reproduce

<fill in: scene/settings, whether it's deterministic, how long until it crashes>

Attachments

  • log_nvidia_trimmed.txt (ANSI stripped; the 310,720 repeated "slot past the host heap" lines collapsed to 3 examples + a summary)
  • crashes.log (20 crash entries)

log_nvidia_trimmed.txt

crashes.log

**@⁠mikebigboots-web** on GitHub · 2026-11-25 18:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/2725) Summary The host GPU device is removed repeatedly while running title `7952987A` (Xbox Series X mode). I collected 20 crashes in ~24 h (2026-11-24 19:43 UTC → 2026-11-25 18:46 UTC). 14 of them are `DXGI_ERROR_INVALID_CALL (0x887A0001)`, and the attached verbose log reproduces one of them ~13 s after launch. The log also shows two other host-side limitations that probably matter on this GPU (descriptor heap size, wave size). ## 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; debug layer messages are present in the log ## 1. Crash: invalid 16-bit packed formats (14/20 crashes, 0x887A0001) The verbose log ends with this sequence: 1. A 2560x1440 render-target texture with `DXGI_FORMAT 115` (`B4G4R4A4_UNORM`, flags=1) fails host creation twice: `the host refuses castable formats … (0x80070057)`, then `no host texture … (0x80070057)`. 2. The code still goes on to create a committed resource with `ALLOW_RENDER_TARGET` and `B4G4R4A4_UNORM`. The debug layer reports `CreateCommittedResource3: D3D12_CLEAR_VALUE::Format must be valid to be used as a render target` (id=817) and `CreateCommittedResource` (id=599). 3. A texture with `B5G5R5A1_UNORM` + `ALLOW_UNORDERED_ACCESS` hits `GetResourceAllocationInfo` (id=599) and `CreateUnorderedAccessView: format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed UAV … implementation does not support this Format` (id=342). 4. `ID3D12Device::RemoveDevice` is triggered (DXGI_ERROR_INVALID_CALL, id=232), then `host GPU device removed`. Proposed fix: query `CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)` for these formats and, when RTV/UAV usage is unsupported, substitute a supported format (e.g. R8G8B8A8_UNORM / R16_UINT, with a conversion path). The failed host texture creation should not fall through to creating an invalid resource. ## 2. Descriptor heap capped at 1,000,000 (all runs) - The title requests shader-visible heaps of 2,097,152 and 1,310,720 descriptors. The debug layer warns `NumDescriptors … but the limit for shader visible view heaps is 1000000` (id=645). - The host heap ends up with `count=934464` (also `no room for the null buffer views … total=1000000`). - 310,720 warnings `title slot past the host heap` follow, with indices 934464 … 1,245,183 (`for_draw=false` in all of them). Those slots are dropped. - This is likely a candidate for the `0x887A0006` hang (group B in the previous comment/log), since the title reads descriptors beyond the host heap. I haven't confirmed that link. ## 3. Wave size and refused compute pipelines - `CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32` (3×, id=622). - 3 compute pipelines are then refused: `host pipeline refused … (0x80070057)` for shaders `b68f0931f1f47e61`, `88994c3496045f51`, `13dfdd3b1136e407`. - The title expects wave64 (Xbox); this host reports max 32. ## Other notes - `SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor … SAMPLER_HEAP_DIRECTLY_INDEXED` (2×, id=1419). - Two `method not implemented` on `device` (slots 0x218 and 0x1c8). - A black frame at frame 1, and 7 black frames overall before the crash. - Many `ID3D12PipelineLibrary::Load*Pipeline: not stored` warnings (id=971): expected on a cold shader cache. ## Other crash types in the earlier log (`crashes.log`) - 3× `0x887A0006` (DEVICE_HUNG), always stopping at `op 42, mesh 4`, same mesh/pixel shader pair, ~4 min apart. - 3× `0x887A0004` followed by `0x887A0005` (feature level/interface not supported), no breadcrumbs. ## Steps to reproduce <fill in: scene/settings, whether it's deterministic, how long until it crashes> ## Attachments - `log_nvidia_trimmed.txt` (ANSI stripped; the 310,720 repeated "slot past the host heap" lines collapsed to 3 examples + a summary) - `crashes.log` (20 crash entries) [log_nvidia_trimmed.txt](https://github.com/user-attachments/files/35427109/log_nvidia_trimmed.txt) [crashes.log](https://github.com/user-attachments/files/35427114/crashes.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:12:48 +00:00
Author
Owner

@⁠KainanP on GitHub · 2026-11-25 20:18 UTC · original

The B5G5R5A1 typed-UAV and B4G4R4A4 render-target halves of this are the bug tracked in #1753. I compared the 17 open PRs for it on an RTX 4060 Laptop, an Intel UHD iGPU and WARP: #1753 (comment). Only #2626 fixes both halves, with real stand-in views, so writes still land. The recommended combination there is #2626 + #1763. If you can run #2626 on this card, that result would help it land.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-25 20:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/2725#issuecomment-7173486669) The B5G5R5A1 typed-UAV and B4G4R4A4 render-target halves of this are the bug tracked in #1753. I compared the 17 open PRs for it on an RTX 4060 Laptop, an Intel UHD iGPU and WARP: [#1753 (comment)](https://git.gtahub.st/github/Marvisak--VIctory/issues/1753). Only #2626 fixes both halves, with real stand-in views, so writes still land. The recommended combination there is #2626 + #1763. If you can run #2626 on this card, that result would help it land. _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 21:45 UTC · original

Automated triage for the maintainers.

Thanks, the log excerpts are clear. One essential detail is missing: the VIctory commit (git rev-parse --short HEAD). The "Build" line is the title's version, not VIctory's. Please add the commit and say whether it was a release or diag build. A rerun on current main (61bfc77) would help, because #1273 merged after this report.

All three findings are known failures, still present on main except where noted:

  1. B4G4R4A4 render target and B5G5R5A1 with unordered access. The typed-UAV part is tracked in #1753 and the render-target part in #797. #1273 (merged today) makes fits in crates/victory-gpu/src/descriptor/host.rs refuse an unordered view in a format the host cannot store, which covers the CreateUnorderedAccessView (id 342) step. host_desc and pc_format in crates/victory-gpu/src/resource.rs still keep the UAV flag on B5G5R5A1 and pass B4G4R4A4 through, so the creation errors (ids 599 and 817) remain. Open PR #2773 was written for this report and drops the uses a format cannot take before creation. #2319, #1832 and #89 address parts of the same problem. A run of #2773 on this card would help it land.
  2. View heap capped at 1,000,000. This is tracked in #1760. The capped heap keeps 934,464 title slots and drops the rest (HostHeap in crates/victory-gpu/src/descriptor/host.rs). Open PRs: #2121 and #1779.
  3. Wave64 compute pipelines refused on a 32-lane host. This is tracked in #71 (and #817). Open PRs: #1960 and #189.

The mesh-draw DEVICE_HUNG is also tracked in #71. The unfilled device slots 0x1c8 / 0x218 are already noted in #1216.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 21:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/2725#issuecomment-7175509578) <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-25T20:18:56Z at=2026-11-25T21:47:00Z --> Automated triage for the maintainers. Thanks, the log excerpts are clear. One essential detail is missing: the VIctory commit (`git rev-parse --short HEAD`). The "Build" line is the title's version, not VIctory's. Please add the commit and say whether it was a release or `diag` build. A rerun on current `main` (`61bfc77`) would help, because #1273 merged after this report. All three findings are known failures, still present on `main` except where noted: 1. **B4G4R4A4 render target and B5G5R5A1 with unordered access.** The typed-UAV part is tracked in #1753 and the render-target part in #797. #1273 (merged today) makes `fits` in `crates/victory-gpu/src/descriptor/host.rs` refuse an unordered view in a format the host cannot store, which covers the `CreateUnorderedAccessView` (id 342) step. `host_desc` and `pc_format` in `crates/victory-gpu/src/resource.rs` still keep the UAV flag on B5G5R5A1 and pass B4G4R4A4 through, so the creation errors (ids 599 and 817) remain. Open PR #2773 was written for this report and drops the uses a format cannot take before creation. #2319, #1832 and #89 address parts of the same problem. A run of #2773 on this card would help it land. 2. **View heap capped at 1,000,000.** This is tracked in #1760. The capped heap keeps 934,464 title slots and drops the rest (`HostHeap` in `crates/victory-gpu/src/descriptor/host.rs`). Open PRs: #2121 and #1779. 3. **Wave64 compute pipelines refused on a 32-lane host.** This is tracked in #71 (and #817). Open PRs: #1960 and #189. The mesh-draw `DEVICE_HUNG` is also tracked in #71. The unfilled device slots `0x1c8` / `0x218` are already noted in #1216. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-26 07:31 UTC · original

I ran your log through victory-doctor to match each failure with where it's already tracked:

  1. Device removed (0x887A0001), B4G4R4A4 render target / B5G5R5A1 typed UAV: this is #1753 (9 reports). The open fixes are #2936, #1763 and fxceless/victory-fork#201. The comparison in #1753 recommends #2626 + #1763. A run with #2626 on your 5070 Ti would help it land.
  2. Shader-visible heap capped at 1,000,000 (title slot past the host heap, count=934464): #1760 has the measurements, and #1808 and #2550 are the same failure. #2898 only rate-limits the warning, it doesn't fix the cap.
  3. Wave64 compute refused (3 pipelines): #468 and fxceless/victory-fork#891 cover it on other NVIDIA cards.
  4. The Load*Pipeline: not stored warnings are expected on a cold shader cache, as you noted.

Nothing in this log is new; all three crash causes already have open fixes. To check your own runs:

python victory_doctor.py scan victory.log
**@⁠shawshanker18** on GitHub · 2026-11-26 07:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/2725#issuecomment-7185549616) I ran your log through [victory-doctor](https://github.com/shawshanker18/victory-doctor) to match each failure with where it's already tracked: 1. **Device removed (0x887A0001), B4G4R4A4 render target / B5G5R5A1 typed UAV:** this is #1753 (9 reports). The open fixes are #2936, #1763 and fxceless/victory-fork#201. The comparison in #1753 recommends #2626 + #1763. A run with #2626 on your 5070 Ti would help it land. 2. **Shader-visible heap capped at 1,000,000 (`title slot past the host heap`, count=934464):** #1760 has the measurements, and #1808 and #2550 are the same failure. #2898 only rate-limits the warning, it doesn't fix the cap. 3. **Wave64 compute refused (3 pipelines):** #468 and fxceless/victory-fork#891 cover it on other NVIDIA cards. 4. The `Load*Pipeline: not stored` warnings are expected on a cold shader cache, as you noted. Nothing in this log is new; all three crash causes already have open fixes. To check your own runs: ``` python victory_doctor.py scan victory.log ```
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-26 14:12 UTC · original

An update on where this stands on current main (63bcca4). The B5G5R5A1_UNORM unordered access removal is fixed. #2462 (ea488a9) refuses the typed view, and #2286 (bac1364) stops the GetResourceAllocationInfo query from using the title's description. #1753, which tracked that part, was closed after a debug-layer run on an RTX 5080.

The B4G4R4A4_UNORM (format 115) render target still has no stand-in on main; #89 and #2767 are the open PRs for it. A rerun on 63bcca4 would show whether anything fatal is left.

AI-assisted (Claude)

**@⁠potatoe0100** on GitHub · 2026-11-26 14:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/2725#issuecomment-7194428710) An update on where this stands on current `main` (`63bcca4`). The `B5G5R5A1_UNORM` unordered access removal is fixed. #2462 (ea488a9) refuses the typed view, and #2286 (bac1364) stops the `GetResourceAllocationInfo` query from using the title's description. #1753, which tracked that part, was closed after a debug-layer run on an RTX 5080. The `B4G4R4A4_UNORM` (format 115) render target still has no stand-in on `main`; #89 and #2767 are the open PRs for it. A rerun on `63bcca4` would show whether anything fatal is left. 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#2725
No description provided.