D3D12 crash on RTX 5070 Ti – Invalid host command list (0x80070057) #4301

Open
opened 2026-11-30 18:28:34 +00:00 by github-bot · 2 comments
Owner

@⁠userdsp on GitHub · 2026-11-30 18:27 UTC · original

I'm experiencing a crash with VIctory-NVIDIA during gameplay.

System specifications

  • CPU: AMD Ryzen 9 9950X3D
  • GPU: NVIDIA RTX 5070 Ti 16 GB
  • Driver: NVIDIA 621.24
  • OS: Windows 11 Insider Build 26200.9457

Crash log

WARN victory_gpu::draw: a texture picked by index changed after its upload with nothing to tell of it: uploaded again

INFO victory_gpu::draw: a first host texture was admitted just over the room line (black face fix) so_far=4250

ERROR victory_gpu::host: a host command list did not close (The parameter is incorrect. (0x80070057)): a command recorded into it was invalid

VIctory: host GPU failure

VIctory-NVIDIA exit code: -2005270523

Shader and pipeline preload has already been completed. I also tried setting VICTORY_D3D12_DEBUG=1, but it didn't provide any additional useful diagnostic information.

The crash is preceded by multiple texture reuploads, stale texture views and black face fix messages.

I found a potentially related issue here:
https://github.com/Belobug/VIctory-Belobug-AMD/issues/13

Could this be the same resource state transition issue, or is it related to texture residency?

Is there a fix available for the NVIDIA build?

Thanks!

**@⁠userdsp** on GitHub · 2026-11-30 18:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4300) I'm experiencing a crash with VIctory-NVIDIA during gameplay. ### System specifications - CPU: AMD Ryzen 9 9950X3D - GPU: NVIDIA RTX 5070 Ti 16 GB - Driver: NVIDIA 621.24 - OS: Windows 11 Insider Build 26200.9457 ### Crash log ``` WARN victory_gpu::draw: a texture picked by index changed after its upload with nothing to tell of it: uploaded again INFO victory_gpu::draw: a first host texture was admitted just over the room line (black face fix) so_far=4250 ERROR victory_gpu::host: a host command list did not close (The parameter is incorrect. (0x80070057)): a command recorded into it was invalid VIctory: host GPU failure VIctory-NVIDIA exit code: -2005270523 ``` Shader and pipeline preload has already been completed. I also tried setting `VICTORY_D3D12_DEBUG=1`, but it didn't provide any additional useful diagnostic information. The crash is preceded by multiple texture reuploads, stale texture views and black face fix messages. I found a potentially related issue here: https://github.com/Belobug/VIctory-Belobug-AMD/issues/13 Could this be the same resource state transition issue, or is it related to texture residency? Is there a fix available for the NVIDIA build? Thanks!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:28:34 +00:00
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 18:36 UTC · original

The exit status -2005270523 is the value the layer gives every fatal host-GPU error. The per-call failure here is E_INVALIDARG from command-list Close(). The D3D12 message could identify which of the recorded commands it rejected. Exit handling

What build and launch command did you use for the debug run? The release executable compiles out the debug-layer switch. In the source launcher it can be enabled with -Build diag -More VICTORY_D3D12_DEBUG=1. If you already used that build, the full log (including any earlier D3D12 lines or no D3D12 debug layer) would help. #4246 has the same Close HRESULT on an RTX 4060 and is also waiting for the failing command. Debug-layer setup

**@⁠tyr0nsur** on GitHub · 2026-11-30 18:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4300#issuecomment-7288090833) The exit status `-2005270523` is the value the layer gives every fatal host-GPU error. The per-call failure here is `E_INVALIDARG` from command-list `Close()`. The D3D12 message could identify which of the recorded commands it rejected. [Exit handling](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/e1251c3199465565147711887351d80359162bb0/crates/victory-hle/src/modules/d3d12x.rs#L134-L142) What build and launch command did you use for the debug run? The release executable compiles out the debug-layer switch. In the source launcher it can be enabled with `-Build diag -More VICTORY_D3D12_DEBUG=1`. If you already used that build, the full log (including any earlier D3D12 lines or `no D3D12 debug layer`) would help. #4246 has the same Close HRESULT on an RTX 4060 and is also waiting for the failing command. [Debug-layer setup](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/e1251c3199465565147711887351d80359162bb0/crates/victory-gpu/src/host.rs#L1646-L1652)
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 19:29 UTC · original

A likely cause, now reproduced in isolation on an RTX 4060: #3901 traced this exact Close() failure to the placed-twin copy in list.rs (copy_texture_region). placed_twins pairs twins by block size only, so a BC3 texture can be copied into a BC7 twin, and D3D12 refuses that copy across format families when the list closes (0x80070057). The fix is #4080 (the copy goes through a buffer). Its unit test fails Close() the same way on an RTX 4060 and passes with the fix (results).

Until it is merged, a run with the placed-twin copies off should avoid the crash, if this is the cause: victory.exe play --set VICTORY_PLACED_COPIED=0 (or -More VICTORY_PLACED_COPIED=0 on the script launcher). It is the behaviour from before those copies were ported, so a few textures that share memory may be stale. If the crash still happens with it, the debug-layer message is still the way to name the command, as asked above.

AI-assisted with Claude Code.

**@⁠tyr0nsur** on GitHub · 2026-11-30 19:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4300#issuecomment-7289484582) A likely cause, now reproduced in isolation on an RTX 4060: #3901 traced this exact `Close()` failure to the placed-twin copy in `list.rs` (`copy_texture_region`). `placed_twins` pairs twins by block size only, so a BC3 texture can be copied into a BC7 twin, and D3D12 refuses that copy across format families when the list closes (`0x80070057`). The fix is #4080 (the copy goes through a buffer). Its unit test fails `Close()` the same way on an RTX 4060 and passes with the fix ([results](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4080)). Until it is merged, a run with the placed-twin copies off should avoid the crash, if this is the cause: `victory.exe play --set VICTORY_PLACED_COPIED=0` (or `-More VICTORY_PLACED_COPIED=0` on the script launcher). It is the behaviour from before those copies were ported, so a few textures that share memory may be stale. If the crash still happens with it, the debug-layer message is still the way to name the command, as asked above. AI-assisted with Claude 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/trustno1-coder--VIctory-NVIDIA#4301
No description provided.