RTX 3080: DXGI_ERROR_INVALID_CALL (0x887A0001) entering world due to title slot past host descriptor heap #2550

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

@⁠demetresharaba1313-cpu on GitHub · 2026-11-25 15:39 UTC · original

Summary

Entering the world crashes immediately with DXGI_ERROR_INVALID_CALL (0x887A0001) on an NVIDIA RTX 3080 (commit 940d32f).

The diagnostics log shows the title indexing descriptor slots around 1240801+, exceeding NVIDIA's D3D12 shader-visible descriptor heap limit (count=934464), immediately before host GPU device removed.

System Specs

  • GPU: NVIDIA GeForce RTX 3080 (max 1M shader-visible CBV/SRV/UAV descriptors)
  • CPU: Intel Xeon E5-2687W v4 @ 3.00GHz
  • OS: Windows 11 (Build 26200)
  • Commit: 940d32f

Relevant Log Output

WARN victory_gpu::descriptor::host: title slot past the host heap index=1240801 count=934464 for_draw=false
...
WARN victory_gpu::descriptor::host: title slot past the host heap index=1240860 count=934464 for_draw=false
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect. (0x887A0001)
**@⁠demetresharaba1313-cpu** on GitHub · 2026-11-25 15:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/2550) ### Summary Entering the world crashes immediately with `DXGI_ERROR_INVALID_CALL` (`0x887A0001`) on an NVIDIA RTX 3080 (commit `940d32f`). The diagnostics log shows the title indexing descriptor slots around `1240801+`, exceeding NVIDIA's D3D12 shader-visible descriptor heap limit (`count=934464`), immediately before `host GPU device removed`. ### System Specs - **GPU:** NVIDIA GeForce RTX 3080 (max 1M shader-visible CBV/SRV/UAV descriptors) - **CPU:** Intel Xeon E5-2687W v4 @ 3.00GHz - **OS:** Windows 11 (Build 26200) - **Commit:** `940d32f` ### Relevant Log Output ```text WARN victory_gpu::descriptor::host: title slot past the host heap index=1240801 count=934464 for_draw=false ... WARN victory_gpu::descriptor::host: title slot past the host heap index=1240860 count=934464 for_draw=false ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect. (0x887A0001) ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:08:58 +00:00
Author
Owner

@⁠guanaco0403 on GitHub · 2026-11-25 15:43 UTC · original · edited 2026-11-25 15:46 UTC

same issue here with rtx3050 and commit da82e44

**@⁠guanaco0403** on GitHub · 2026-11-25 15:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/2550#issuecomment-7167272208) · edited 2026-11-25 15:46 UTC same issue here with rtx3050 and commit da82e44
Author
Owner

@⁠Venom2054 on GitHub · 2026-11-25 15:55 UTC · original

On an RTX 5070 Ti (driver 621.01, Windows 11), I compared stock da82e44 with the same revision plus only 93c4e181, the typed-UAV format check from #1926. Each run started from its own copy of the same save and cache, with the same scripted input.

Build D3D12 debug layer Observed result
Stock Off Device removal with reason DXGI_ERROR_INVALID_CALL at 8.9 s, before the first world frame.
Stock On Same reason at 8.0 s. The layer reported an unsupported B5G5R5A1_UNORM typed UAV at CreateUnorderedAccessView (message 342), immediately followed by RemoveDevice (232). It also reported a separate B4G4R4A4_UNORM render-target error.
Stock + format check On Reached the planned 50 s cutoff. The build dropped unordered-access permission for format 86. No message 342 or removal was logged.
Stock + format check Off First world-frame marker at 105.4 s. The captured world frames were dark. A later removal at 209.5 s reported DXGI_ERROR_DEVICE_HUNG (0x887A0006).

Both debug-layer runs logged exactly the same 310,720 out-of-range descriptor indices, 934,464 through 1,245,183, all with for_draw=false. Those warnings persisted even when the early removal stopped. On another card showing 0x887A0001, the debug-layer message immediately preceding removal would help distinguish these cases. The cause of the later hang on my card is still open.

Tested locally with OpenAI Codex assistance.

**@⁠Venom2054** on GitHub · 2026-11-25 15:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/2550#issuecomment-7167436321) On an RTX 5070 Ti (driver 621.01, Windows 11), I compared stock `da82e44` with the same revision plus only `93c4e181`, the typed-UAV format check from #1926. Each run started from its own copy of the same save and cache, with the same scripted input. | Build | D3D12 debug layer | Observed result | | --- | --- | --- | | Stock | Off | Device removal with reason `DXGI_ERROR_INVALID_CALL` at 8.9 s, before the first world frame. | | Stock | On | Same reason at 8.0 s. The layer reported an unsupported `B5G5R5A1_UNORM` typed UAV at `CreateUnorderedAccessView` (message 342), immediately followed by `RemoveDevice` (232). It also reported a separate `B4G4R4A4_UNORM` render-target error. | | Stock + format check | On | Reached the planned 50 s cutoff. The build dropped unordered-access permission for format 86. No message 342 or removal was logged. | | Stock + format check | Off | First world-frame marker at 105.4 s. The captured world frames were dark. A later removal at 209.5 s reported `DXGI_ERROR_DEVICE_HUNG` (`0x887A0006`). | Both debug-layer runs logged exactly the same 310,720 out-of-range descriptor indices, 934,464 through 1,245,183, all with `for_draw=false`. Those warnings persisted even when the early removal stopped. On another card showing `0x887A0001`, the debug-layer message immediately preceding removal would help distinguish these cases. The cause of the later hang on my card is still open. Tested locally with OpenAI Codex assistance.
Author
Owner

@⁠Olliee96 on GitHub · 2026-11-25 15:58 UTC · original

A correção que impede o erro está no código do worktree atual, em crates/victory-gpu/src/descriptor/host.rs:1502-1513.

Causa: o jogo pede vistas de escrita (UAV) em texturas de formatos de 16 bits como B5G5R5A1, que é o caso do issue #1753, e B4G4R4A4. Essas vistas são tipadas, ou seja, o shader grava direto naquele formato. Nas placas NVIDIA, o hardware não grava nesses formatos. Criar a vista mesmo assim fazia o driver remover o dispositivo com DXGI_ERROR_INVALID_CALL (0x887A0001), poucos segundos depois de o jogo abrir.

Solução: antes de criar cada UAV, o VIctory pergunta à placa, com CheckFormatSupport, se ela grava naquele formato (typed_store, linha 1390).

Se grava, cria a vista normalmente.
Se não grava, põe uma vista vazia no lugar e registra uma vez no log: "an unordered view in a format the host cannot store".
Mesmo quando o jogo pede para ver a textura em outro formato, a regra da linha 1362 recusa o formato de vista que a placa não grava.

**@⁠Olliee96** on GitHub · 2026-11-25 15:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/2550#issuecomment-7167473619) A correção que impede o erro está no código do worktree atual, em crates/victory-gpu/src/descriptor/host.rs:1502-1513. Causa: o jogo pede vistas de escrita (UAV) em texturas de formatos de 16 bits como B5G5R5A1, que é o caso do issue #1753, e B4G4R4A4. Essas vistas são tipadas, ou seja, o shader grava direto naquele formato. Nas placas NVIDIA, o hardware não grava nesses formatos. Criar a vista mesmo assim fazia o driver remover o dispositivo com DXGI_ERROR_INVALID_CALL (0x887A0001), poucos segundos depois de o jogo abrir. Solução: antes de criar cada UAV, o VIctory pergunta à placa, com CheckFormatSupport, se ela grava naquele formato (typed_store, linha 1390). Se grava, cria a vista normalmente. Se não grava, põe uma vista vazia no lugar e registra uma vez no log: "an unordered view in a format the host cannot store". Mesmo quando o jogo pede para ver a textura em outro formato, a regra da linha 1362 recusa o formato de vista que a placa não grava.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:44 UTC · original

Automated triage for the maintainers.

Run report: NVIDIA (RTX 3080, RTX 3050, RTX 5070 Ti in the comments), device removed with DXGI_ERROR_INVALID_CALL (0x887A0001) on the way into the world. Thanks for the details.

  • The title slot past the host heap warnings are a diagnostic in crates/victory-gpu/src/descriptor/host.rs (HostHeap::mirror): slots past the NVIDIA view-heap cap are skipped, not the removal itself. As the 5070 Ti comparison shows, they persist even when the removal stops.
  • The removal matches #1753 (typed UAV on B5G5R5A1_UNORM, which NVIDIA cannot store). In main, typed_store in the same file is only checked for a cast view of another format family (in fits), so a UAV in the texture's own 16-bit format is still made. #1753 is where the cause is tracked. Open PRs #1763 and #1926 address it; neither is merged.
  • The later DXGI_ERROR_DEVICE_HUNG seen with the format check applied is a separate failure. A debug-layer log of that run would help if it persists after the fix lands.

Please retry current main once one of those PRs is merged.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 18:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/2550#issuecomment-7171323693) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T15:58:08Z at=2026-11-25T18:50:00Z --> Automated triage for the maintainers. Run report: NVIDIA (RTX 3080, RTX 3050, RTX 5070 Ti in the comments), device removed with `DXGI_ERROR_INVALID_CALL` (0x887A0001) on the way into the world. Thanks for the details. - The `title slot past the host heap` warnings are a diagnostic in `crates/victory-gpu/src/descriptor/host.rs` (`HostHeap::mirror`): slots past the NVIDIA view-heap cap are skipped, not the removal itself. As the 5070 Ti comparison shows, they persist even when the removal stops. - The removal matches #1753 (typed UAV on `B5G5R5A1_UNORM`, which NVIDIA cannot store). In main, `typed_store` in the same file is only checked for a cast view of another format family (in `fits`), so a UAV in the texture's own 16-bit format is still made. #1753 is where the cause is tracked. Open PRs #1763 and #1926 address it; neither is merged. - The later `DXGI_ERROR_DEVICE_HUNG` seen with the format check applied is a separate failure. A debug-layer log of that run would help if it persists after the fix lands. Please retry current main once one of those PRs is merged. --- _Generated by [Claude Code](https://claude.ai/code)_
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#2550
No description provided.