Regression after the frame-generation merge: pipeline library load fails with 0x80070057, then device removed (0x887A0006) at boot #187

Closed
opened 2026-11-27 07:18:30 +00:00 by github-bot · 2 comments
Owner

@⁠HabibUrRehmanBhattii on GitHub · 2026-11-27 07:16 UTC · original

Summary

After the frame-generation merge (b088755) and everything since, the layer fails to start on this machine: it cannot build or load the host pipeline library, then the GPU device is removed. a84244d runs fine on the same hardware and config.

Environment

  • GPU: NVIDIA GeForce RTX 4070 12 GB (driver 616.92)
  • CPU: i7-14700F, 31.8 GB RAM, Windows 11 build 26200
  • Title: Xbox Series build 7952987a (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)
  • Launch: -Console series-s -Build diag -Windowed -Machine 4070
  • Switches: VICTORY_WAVE_WIDE=1 VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6 VICTORY_CARD_BUFFERS_MIN_KB=1 VICTORY_READBACK_POOL=1 VICTORY_RAM_FLOOR_MB=2048 VICTORY_WINDOWS_BAR_PERCENT=95 VICTORY_RAM_KEEP_ALIVE=1

What happens

Boot reaches ~1,900 frames / a few hundred draws, then:

INFO  victory_gpu::pipeline::library: no host pipeline library yet; starting an empty one
load it: The parameter is incorrect. (0x80070057)
ERROR victory_gpu::host: host GPU device removed after 1927 frames;
      the first uncompleted is command index 0 (op 46) of "";
      device removed: The GPU will not respond to more commands ...
      (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command
VIctory: host GPU failure: texture readback pool cannot retire after device removal

The 0x80070057 repeats many times before the device goes.

Bisect

Commit Result
a84244d ✅ runs, 22-23 fps / 42-45 ms at ~4,400 draws, no crash over a 12-minute run
0c352c9 (main 93f3b5f merged) ❌ device removed at boot
4a5458f (main, incl. #166/#169/#171) ❌ device removed at boot
4a5458f + #175 ❌ device removed at boot
6594538 (latest main tested) ❌ device removed at boot

So the regression arrived somewhere between a84244d and 93f3b5f — i.e. with the frame-generation merge b088755 and/or the batch after it.

Things already ruled out

  • Not the shader/pipeline cache: deleting cache-vice4070/{pipelines,shaders,ngx} (785 MB, 11,327 files) does not help. It fails while starting an empty library.
  • Not VICTORY_READBACK_POOL: reproduces with it unset.
  • Not #175: reproduces without it.
  • Not cache version drift: reproduced after a clean re-translation.
  • Library bypass switches do not avoid it: VICTORY_LIBRARY_MAP=0, VICTORY_LIBRARY_HANDLE=0 — same 0x80070057.

Guess at the cause

Something in crates/victory-gpu/src/pipeline/library.rs between a84244d and b088755. host.rs notes that "without [the mesh shader] the pipeline library refuses to load a stored [library]", so a mesh-shader/pipeline-description change around the frame-generation work is worth checking — an incompatible library description would surface exactly as E_INVALIDARG on load.

  • #174 — crash during Game Init after "pipeline creation method not implemented slot=0x1c8", same title build 7952987a, RTX 3080. Also a pipeline-path crash at boot; that one ends in a 0x80000003 breakpoint at victory-image+0x1dac734.
  • #44 — "Banding over the whole picture from a cached host pipeline library".

Happy to run any diagnostic build or specific commit the maintainer wants (e.g. VICTORY_D3D12_DEBUG=1, or a bisect between a84244d and b088755) — the machine reproduces it every run.

**@⁠HabibUrRehmanBhattii** on GitHub · 2026-11-27 07:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/187) ## Summary After the frame-generation merge (`b088755`) and everything since, the layer fails to start on this machine: it cannot build or load the host pipeline library, then the GPU device is removed. `a84244d` runs fine on the same hardware and config. ## Environment - GPU: NVIDIA GeForce RTX 4070 12 GB (driver 616.92) - CPU: i7-14700F, 31.8 GB RAM, Windows 11 build 26200 - Title: Xbox Series build `7952987a` (`b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`) - Launch: `-Console series-s -Build diag -Windowed -Machine 4070` - Switches: `VICTORY_WAVE_WIDE=1 VICTORY_OUTPUT=1280x720 VICTORY_UPSCALER=6 VICTORY_CARD_BUFFERS_MIN_KB=1 VICTORY_READBACK_POOL=1 VICTORY_RAM_FLOOR_MB=2048 VICTORY_WINDOWS_BAR_PERCENT=95 VICTORY_RAM_KEEP_ALIVE=1` ## What happens Boot reaches ~1,900 frames / a few hundred draws, then: ``` INFO victory_gpu::pipeline::library: no host pipeline library yet; starting an empty one load it: The parameter is incorrect. (0x80070057) ERROR victory_gpu::host: host GPU device removed after 1927 frames; the first uncompleted is command index 0 (op 46) of ""; device removed: The GPU will not respond to more commands ... (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command VIctory: host GPU failure: texture readback pool cannot retire after device removal ``` The `0x80070057` repeats many times before the device goes. ## Bisect | Commit | Result | |---|---| | `a84244d` | ✅ runs, 22-23 fps / 42-45 ms at ~4,400 draws, no crash over a 12-minute run | | `0c352c9` (main `93f3b5f` merged) | ❌ device removed at boot | | `4a5458f` (main, incl. #166/#169/#171) | ❌ device removed at boot | | `4a5458f` + #175 | ❌ device removed at boot | | `6594538` (latest main tested) | ❌ device removed at boot | So the regression arrived somewhere between `a84244d` and `93f3b5f` — i.e. with the frame-generation merge `b088755` and/or the batch after it. ## Things already ruled out - Not the shader/pipeline cache: deleting `cache-vice4070/{pipelines,shaders,ngx}` (785 MB, 11,327 files) does not help. It fails while starting an **empty** library. - Not `VICTORY_READBACK_POOL`: reproduces with it unset. - Not #175: reproduces without it. - Not cache version drift: reproduced after a clean re-translation. - Library bypass switches do not avoid it: `VICTORY_LIBRARY_MAP=0`, `VICTORY_LIBRARY_HANDLE=0` — same `0x80070057`. ## Guess at the cause Something in `crates/victory-gpu/src/pipeline/library.rs` between `a84244d` and `b088755`. `host.rs` notes that "without [the mesh shader] the pipeline library refuses to load a stored [library]", so a mesh-shader/pipeline-description change around the frame-generation work is worth checking — an incompatible library description would surface exactly as `E_INVALIDARG` on load. ## Possibly related - #174 — crash during Game Init after "pipeline creation method not implemented slot=0x1c8", same title build `7952987a`, RTX 3080. Also a pipeline-path crash at boot; that one ends in a `0x80000003` breakpoint at `victory-image+0x1dac734`. - #44 — "Banding over the whole picture from a cached host pipeline library". Happy to run any diagnostic build or specific commit the maintainer wants (e.g. `VICTORY_D3D12_DEBUG=1`, or a bisect between `a84244d` and `b088755`) — the machine reproduces it every run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 07:18:30 +00:00
Author
Owner

@⁠mint17 on GitHub · 2026-11-27 11:29 UTC · original

We traced this through the commit range in your bisect (84244d -> 93f3b5f):

  1. The load it: The parameter is incorrect. (0x80070057) lines are a red herring: ID3D12PipelineLibrary::Load*Pipeline normally returns E_INVALIDARG (␀x80070057) for every cold cache miss in an empty library. library.rs records that string in the host::trail ring buffer, which is only printed after a GPU device removal.
  2. Likely cause of the ␀x887A0006 hang: Commit ␀367bf9 (merged in 93f3b5f / PR #161) removed $settings.VICTORY_WAVE_WIDE_ONLY from scripts/play.ps1 after moving the 4 verified hashes into DEFAULT_WAVE_WIDE_HASHES. Because your launch still passes VICTORY_WAVE_WIDE=1 without VICTORY_WAVE_WIDE_ONLY, emit/mod.rs now treats that as unrestricted wave-wide barriers on every wave64 compute shader, which can deadlock 32-lane NVIDIA warps and trigger DXGI_ERROR_DEVICE_HUNG (␀x887A0006).

Could you try launching on latest main without VICTORY_WAVE_WIDE=1 (the 4 safe shaders are now enabled by default when VICTORY_WAVE_WIDE is unset)? Opened #236 to clarify the empty-library E_INVALIDARG trail message and warn in play.ps1 when VICTORY_WAVE_WIDE=1 is passed without VICTORY_WAVE_WIDE_ONLY on NVIDIA.

**@⁠mint17** on GitHub · 2026-11-27 11:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/187#issuecomment-7217139004) We traced this through the commit range in your bisect (84244d -> 93f3b5f): 1. **The load it: The parameter is incorrect. (0x80070057) lines are a red herring:** ID3D12PipelineLibrary::Load*Pipeline normally returns E_INVALIDARG (␀x80070057) for every cold cache miss in an empty library. library.rs records that string in the host::trail ring buffer, which is only printed after a GPU device removal. 2. **Likely cause of the ␀x887A0006 hang:** Commit ␀367bf9 (merged in 93f3b5f / PR #161) removed $settings.VICTORY_WAVE_WIDE_ONLY from scripts/play.ps1 after moving the 4 verified hashes into DEFAULT_WAVE_WIDE_HASHES. Because your launch still passes VICTORY_WAVE_WIDE=1 without VICTORY_WAVE_WIDE_ONLY, emit/mod.rs now treats that as **unrestricted wave-wide barriers on every wave64 compute shader**, which can deadlock 32-lane NVIDIA warps and trigger DXGI_ERROR_DEVICE_HUNG (␀x887A0006). Could you try launching on latest main **without VICTORY_WAVE_WIDE=1** (the 4 safe shaders are now enabled by default when VICTORY_WAVE_WIDE is unset)? Opened #236 to clarify the empty-library E_INVALIDARG trail message and warn in play.ps1 when VICTORY_WAVE_WIDE=1 is passed without VICTORY_WAVE_WIDE_ONLY on NVIDIA.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 11:42 UTC · original

@⁠mint17 The built-in allow-list covers the tested shaders when the legacy override is removed. That gives us one useful check on the bisect with the rest of the launch settings held fixed. The cold-library lookup and later device status should stay separate in #236.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:42 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/187#issuecomment-7217377095) @⁠mint17 The built-in allow-list covers the tested shaders when the legacy override is removed. That gives us one useful check on the bisect with the rest of the launch settings held fixed. The cold-library lookup and later device status should stay separate in #236.
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/TaynanGT--Vice-Tay#187
No description provided.