Host GPU failure: a host command list did not close (0x80070057): a command recorded into it was invalid #4593

Open
opened 2026-11-30 23:30:33 +00:00 by github-bot · 4 comments
Owner

@⁠SteeredSoap4369 on GitHub · 2026-11-30 23:30 UTC · original

The game window closed without a message during active firefights in the Tourist Trap mission. The same error appears in both attached play logs: after ~20 min 22 sec (first run) and ~14 min 30 sec (second run).

GPU and driver: RTX 4090 24 GB, driver 621.40, HAGS on
CPU, RAM and Windows: i9-9900KF, 32 GB DDR4-4000, Windows 11 25H2 build 26200.9974, pagefile 64 GB fixed

Settings: Series X 1440p RT OFF, DLSS DLAA, frame generation 3x (MFG Unlocker), preload shaders

victory-nvidia-play-20261130-220123-17776.log
victory-nvidia-play-20261130-222543-10032.log

**@⁠SteeredSoap4369** on GitHub · 2026-11-30 23:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4592) The game window closed without a message during active firefights in the Tourist Trap mission. The same error appears in both attached play logs: after ~20 min 22 sec (first run) and ~14 min 30 sec (second run). GPU and driver: RTX 4090 24 GB, driver 621.40, HAGS on CPU, RAM and Windows: i9-9900KF, 32 GB DDR4-4000, Windows 11 25H2 build 26200.9974, pagefile 64 GB fixed Settings: Series X 1440p RT OFF, DLSS DLAA, frame generation 3x (MFG Unlocker), preload shaders [victory-nvidia-play-20261130-220123-17776.log](https://github.com/user-attachments/files/35647745/victory-nvidia-play-20261130-220123-17776.log) [victory-nvidia-play-20261130-222543-10032.log](https://github.com/user-attachments/files/35647746/victory-nvidia-play-20261130-222543-10032.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 23:30:33 +00:00
Author
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 23:41 UTC · original

The two logs confirm the same failure at Close on driver 621.40. The final local memory samples were 18,712 / 22,703 MiB and 18,515 / 22,786 MiB, and both starts had VICTORY_UAV_FOLD=1. That adds a repeatable case on the driver where the author of #4454 could no longer reproduce it. The release excerpts do not identify the invalid command, and other reports reproduce this HRESULT with the fold disabled.

If you can replay the same firefight, a single-variable comparison is victory.exe play --set VICTORY_UAV_FOLD=0 with the same save and settings. The most useful diagnostic would be the command-recording error immediately before Close in a diag build with VICTORY_D3D12_DEBUG=1; that would separate a placed texture copy (e.g. #4522) from a different recorded command. #4574 improves which D3D12 error gets quoted.

**@⁠tyr0nsur** on GitHub · 2026-11-30 23:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4592#issuecomment-7295424930) The two logs confirm the same failure at `Close` on driver 621.40. The final local memory samples were 18,712 / 22,703 MiB and 18,515 / 22,786 MiB, and both starts had `VICTORY_UAV_FOLD=1`. That adds a repeatable case on the driver where the author of #4454 could no longer reproduce it. The release excerpts do not identify the invalid command, and other reports reproduce this HRESULT with the fold disabled. If you can replay the same firefight, a single-variable comparison is `victory.exe play --set VICTORY_UAV_FOLD=0` with the same save and settings. The most useful diagnostic would be the command-recording error immediately before `Close` in a `diag` build with `VICTORY_D3D12_DEBUG=1`; that would separate a placed texture copy (e.g. #4522) from a different recorded command. #4574 improves which D3D12 error gets quoted.
Author
Owner

@⁠tyr0nsur on GitHub · 2026-12-01 00:17 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-12-01 00:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4592#issuecomment-7296156940) 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.
Author
Owner

@⁠Kadthicu on GitHub · 2026-12-01 14:19 UTC · original

Additional report on v2026.11.30.03: Series X profile, Windows 11, RTX 3060 12 GB, Ryzen 5 1600, 32 GB RAM. Shader and pipeline warm-up completed before play. The game exited after completing the first airplane mission. Observed once.

At 2026-12-01 14:14:39.091 UTC, the log reports a host command list did not close (0x80070057). One Bink movie closed about 4.4 seconds earlier. The log does not identify the rejected command. Frame generation was off at startup, and its state at the crash is unconfirmed.

Across the session, the log recorded three compute pipeline waits of roughly 3 seconds and no 0x8007000E errors. The last memory sample showed 10,721 MB dedicated out of an 11,083 MB budget, 6,154 MB shared, and 29,117 MB committed.

**@⁠Kadthicu** on GitHub · 2026-12-01 14:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4592#issuecomment-7314058187) Additional report on v2026.11.30.03: Series X profile, Windows 11, RTX 3060 12 GB, Ryzen 5 1600, 32 GB RAM. Shader and pipeline warm-up completed before play. The game exited after completing the first airplane mission. Observed once. At 2026-12-01 14:14:39.091 UTC, the log reports a host command list did not close (0x80070057). One Bink movie closed about 4.4 seconds earlier. The log does not identify the rejected command. Frame generation was off at startup, and its state at the crash is unconfirmed. Across the session, the log recorded three compute pipeline waits of roughly 3 seconds and no 0x8007000E errors. The last memory sample showed 10,721 MB dedicated out of an 11,083 MB budget, 6,154 MB shared, and 29,117 MB committed.
Author
Owner

@⁠SteeredSoap4369 on GitHub · 2026-12-01 16:59 UTC · original · edited 2026-12-01 17:19 UTC

The two logs confirm the same failure at Close on driver 621.40. The final local memory samples were 18,712 / 22,703 MiB and 18,515 / 22,786 MiB, and both starts had VICTORY_UAV_FOLD=1. That adds a repeatable case on the driver where the author of #4454 could no longer reproduce it. The release excerpts do not identify the invalid command, and other reports reproduce this HRESULT with the fold disabled.

If you can replay the same firefight, a single-variable comparison is victory.exe play --set VICTORY_UAV_FOLD=0 with the same save and settings. The most useful diagnostic would be the command-recording error immediately before Close in a diag build with VICTORY_D3D12_DEBUG=1; that would separate a placed texture copy (e.g. #4522) from a different recorded command. #4574 improves which D3D12 error gets quoted.

All test runs were performed using the same diagnostic (diag) build with VICTORY_D3D12_DEBUG=1 enabled. The game files, save data, and in-game settings remained unchanged throughout testing.
To keep the results as consistent as possible, I replayed the same section of the Tourist Trap mission from the same save, following the same route, character movement and combat sequence. In runs without a crash, I continued beyond the cafeteria firefight, proceeded through the boat escape sequence, and reached open water.

VICTORY_UAV_FOLD VICTORY_PLACED_COPIED Runs Result
0 unset 2 The first run crashed after ~18m 59s. The second run completed successfully without a crash for ~20m 23s.
0 0 1 Completed successfully without a crash for ~21m 28s.
1 0 2 Both runs completed successfully without crashes (~18m 14s and ~20m 20s).

The only crash occurred with VICTORY_UAV_FOLD=0 and VICTORY_PLACED_COPIED unset. The D3D12 debug layer reported that ID3D12CommandList::CopyTextureRegion attempted to copy between incompatible formats, from BC3_TYPELESS to BC7_TYPELESS. The host command list then failed to close with 0x80070057.

There were no crashes in the three available runs with VICTORY_PLACED_COPIED=0, with both tested values of VICTORY_UAV_FOLD. This is consistent with the placed-twin copy path being involved and VICTORY_PLACED_COPIED=0 serving as a workaround.

AI-assisted with OpenAI Codex.
SHA-256 checksums:

  • uav fold 0 debug 1.zip — F573552C0E79DC89EAD2B051C0AC44E02A8EE459485580A74B4726CB959FD35D
  • uav fold 0 placed 0 debug 1.zip — D475BFD45B4108826494EDE57D6DE0254A7943DD2026758B83EF061EF2AAD422
  • uav fold 1 copied 0 debug 1.zip — 755896B38F9D2808CFD05B48285A24DF2EC30B2C039055B1ABFDDDDC9695BECA

uav fold 0 debug 1.zip
uav fold 0 placed 0 debug 1.zip
uav fold 1 copied 0 debug 1.zip

**@⁠SteeredSoap4369** on GitHub · 2026-12-01 16:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4592#issuecomment-7318562335) · edited 2026-12-01 17:19 UTC > The two logs confirm the same failure at `Close` on driver 621.40. The final local memory samples were 18,712 / 22,703 MiB and 18,515 / 22,786 MiB, and both starts had `VICTORY_UAV_FOLD=1`. That adds a repeatable case on the driver where the author of [#4454](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4454) could no longer reproduce it. The release excerpts do not identify the invalid command, and other reports reproduce this HRESULT with the fold disabled. > > If you can replay the same firefight, a single-variable comparison is `victory.exe play --set VICTORY_UAV_FOLD=0` with the same save and settings. The most useful diagnostic would be the command-recording error immediately before `Close` in a `diag` build with `VICTORY_D3D12_DEBUG=1`; that would separate a placed texture copy (e.g. [#4522](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4522)) from a different recorded command. [#4574](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4574) improves which D3D12 error gets quoted. All test runs were performed using the same diagnostic (diag) build with VICTORY_D3D12_DEBUG=1 enabled. The game files, save data, and in-game settings remained unchanged throughout testing. To keep the results as consistent as possible, I replayed the same section of the Tourist Trap mission from the same save, following the same route, character movement and combat sequence. In runs without a crash, I continued beyond the cafeteria firefight, proceeded through the boat escape sequence, and reached open water. | `VICTORY_UAV_FOLD` | `VICTORY_PLACED_COPIED` | Runs | Result | |---|---|---:|---| | `0` | unset | 2 | The first run crashed after ~18m 59s. The second run completed successfully without a crash for ~20m 23s. | | `0` | `0` | 1 | Completed successfully without a crash for ~21m 28s. | | `1` | `0` | 2 | Both runs completed successfully without crashes (~18m 14s and ~20m 20s). | The only crash occurred with `VICTORY_UAV_FOLD=0` and `VICTORY_PLACED_COPIED` unset. The D3D12 debug layer reported that `ID3D12CommandList::CopyTextureRegion` attempted to copy between incompatible formats, from `BC3_TYPELESS` to `BC7_TYPELESS`. The host command list then failed to close with `0x80070057`. There were no crashes in the three available runs with `VICTORY_PLACED_COPIED=0`, with both tested values of `VICTORY_UAV_FOLD`. This is consistent with the placed-twin copy path being involved and `VICTORY_PLACED_COPIED=0` serving as a workaround. AI-assisted with OpenAI Codex. SHA-256 checksums: - `uav fold 0 debug 1.zip` — `F573552C0E79DC89EAD2B051C0AC44E02A8EE459485580A74B4726CB959FD35D` - `uav fold 0 placed 0 debug 1.zip` — `D475BFD45B4108826494EDE57D6DE0254A7943DD2026758B83EF061EF2AAD422` - `uav fold 1 copied 0 debug 1.zip` — `755896B38F9D2808CFD05B48285A24DF2EC30B2C039055B1ABFDDDDC9695BECA` [uav fold 0 debug 1.zip](https://github.com/user-attachments/files/35694474/uav.fold.0.debug.1.zip) [uav fold 0 placed 0 debug 1.zip](https://github.com/user-attachments/files/35694512/uav.fold.0.placed.0.debug.1.zip) [uav fold 1 copied 0 debug 1.zip](https://github.com/user-attachments/files/35694557/uav.fold.1.copied.0.debug.1.zip)
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#4593
No description provided.