[Bug]: compute f16876929fa64f9f hangs the AMD compiler for 17 min → TDR 0x887A0006; VICTORY_COMPILER_GUARD doesn't interrupt it #49

Open
opened 2026-11-30 18:58:19 +00:00 by github-bot · 0 comments
Owner

@⁠teratotolili-coder on GitHub · 2026-11-30 18:57 UTC · original

Hardware & OS

| GPU | AMD Radeon RX 9070 XT (RDNA4, 16 GB), current Adrenalin | | CPU / RAM | Ryzen 5 5600, 32 GB, pagefile on SSD | | OS | Windows 11 x64

Launch Profile / Preset

RAZDA4A XEN.bat — Balanced (Default)

Frame Generation & Launch Count

Frame Gen OFF (Native) — 2nd+ launch (warm cache)

Issue Category

Out of Memory (0x8007000E) / Device Removed

What happened?

Summary

The host device is removed with 0x887A0006 (DEVICE_HUNG) after 12–20 minutes of play. The cause is a single compute shader (f16876929fa64f9f) that hangs the AMD compiler for 17 minutes, and VICTORY_COMPILER_GUARD=0 does not interrupt it. Windows TDR then kills the device.

Reproduced on 3 different builds (.2, .3, .5) and across different in-game scenes. The shader hash and pipeline key are identical every time.

Environment

Fork eikkapine/victory-amd (tested on v2026.11.30.2, .3, .5)
GPU AMD Radeon RX 9070 XT (RDNA4, 16 GB), current Adrenalin
CPU / RAM Ryzen 5 5600, 32 GB, pagefile on SSD
OS Windows 11 x64
Settings 1080p Series S, Medium, FSR 4 + FG, Locked 30, borderless
Runtime before crash 12 min (.2), 20 min (.5)

The shader

compute f16876929fa64f9f
pipeline key: 0629334fc89d66f8cd24f4f5d4b88871
library id: ba4ecbf65561380fc40d67a226acd10b

The last line before every crash:
pipeline library: make of ba4ecbf65561380fc40d67a226acd10b
[compute f16876929fa64f9f] running for 1034680.4 ms on thread 11448

  • v.2: 138 907 ms (2 min 19 s)
  • v.5: 1 034 680 ms (17 min 14 s)

VICTORY_COMPILER_GUARD=0 is logged as (VICTORY_COMPILER_GUARD=0: not) — the guard is disabled, so the layer waits for the compiler instead of timing it out.

Right after this, 0x887A0006 arrives. The submitter is idle (the submitting thread was between submissions (nothing of ours was running on the card)), so this is not a hung GPU command — it's TDR killing the device because shader compilation never returned.

Evidence it's the same shader every time

Run Build Crash after Shader Compile time
1 .2 ~12 min f16876929fa64f9f 138 s
2 .2 ~9 min f16876929fa64f9f (same, 138 s)
3 .5 ~20 min f16876929fa64f9f 1034 s

Different streets, different textures, different scenes — the same compute shader. So it's not scene content; it's this specific pipeline.

Bumping VICTORY_SCRATCH_SPARE_MB / VICTORY_SEND_SPARE_MB from 8/24 to 128/128 in v.5 pushed the crash from 12 to 20 minutes, but did not remove it. That confirms the shader is the trigger, not memory pressure (pressure only affects when the game reaches it).

Secondary issue: pipeline library never loads

Every new pipeline this run:
pipeline library: made [mesh ...] in 0.2 ms
(the library did not load it: Параметр задан неверно. (0x80070057))

  • saved 412592 bytes at one point — so the file is written.
  • But new entries are never read back (0x80070057 = E_INVALIDARG).
  • VICTORY_SKIP_PIPELINES is the only workaround that survives a restart.

Effect: Warm Shaders only recompiles what was already known; new pipelines are retried every launch, and the bad shader is retried every launch until it kills the device.

Suggested fixes (in order of impact)

  1. Time-box CreateComputePipelineState (e.g. 30–60 s). On timeout, mark the pipeline as bad and return instead of waiting for TDR. This alone would have prevented all three crashes.
  2. Make VICTORY_COMPILER_GUARD=1 actually interrupt a hang, not just a process crash. Right now it does nothing for a stuck compiler.
  3. Add 0629334fc89d66f8cd24f4f5d4b88871 to a default deny-list or ship it in the release's VICTORY_SKIP_PIPELINES. Workaround not yet confirmed by user
  4. Fix library load (0x80070057). It defeats Warm Shaders and makes the bad shader recur every launch.

Workaround for other users (until fixed)

In ps1 file
VICTORY_SKIP_PIPELINES = '240cb516c1af0bc3;0629334fc89d66f8cd24f4f5d4b88871' # RDNA4 hair-shadow + our bad compute shader
VICTORY_COMPILER_GUARD=1(not sure)

This skips the bad pipeline and asks the layer to guard the compiler. The pipeline won't render (it already didn't), but the crash goes away.

  • #31 — CPU-side 0xc0000005 under VRAM pressure on 12 GB. Different symptom, same subsystem under load. Our logs also show emergency GPU/commit reclaim ... commit_before_mb=2065 commit_after_mb=2065 and objects let go ... 1 145 040 028, so memory pressure is present, but the crash here is deterministic on one shader, not on pressure alone.

Attached

  • run-*.log from the v.5 crash (contains the full device-removal dump, the 1034 s compile line, and the 0x80070057 library lines).
  • settings-*.txt from the same launch.

run-20261130-231029.log
settings-20261130-231029.txt

Logs (collect_logs.bat output or last ~100 lines of logs\last_run.log)


**@⁠teratotolili-coder** on GitHub · 2026-11-30 18:57 UTC · [original](https://github.com/eikkapine/victory-amd/issues/49) ### Hardware & OS | GPU | AMD Radeon RX 9070 XT (RDNA4, 16 GB), current Adrenalin | | CPU / RAM | Ryzen 5 5600, 32 GB, pagefile on SSD | | OS | Windows 11 x64 ### Launch Profile / Preset RAZDA4A XEN.bat — Balanced (Default) ### Frame Generation & Launch Count Frame Gen OFF (Native) — 2nd+ launch (warm cache) ### Issue Category Out of Memory (0x8007000E) / Device Removed ### What happened? ## Summary The host device is removed with `0x887A0006` (DEVICE_HUNG) after 12–20 minutes of play. The cause is a **single compute shader** (`f16876929fa64f9f`) that hangs the AMD compiler for **17 minutes**, and `VICTORY_COMPILER_GUARD=0` does not interrupt it. Windows TDR then kills the device. Reproduced on 3 different builds (.2, .3, .5) and across different in-game scenes. The shader hash and pipeline key are identical every time. ## Environment | | | |---|---| | Fork | `eikkapine/victory-amd` (tested on v2026.11.30.2, .3, .5) | | GPU | AMD Radeon RX 9070 XT (RDNA4, 16 GB), current Adrenalin | | CPU / RAM | Ryzen 5 5600, 32 GB, pagefile on SSD | | OS | Windows 11 x64 | | Settings | 1080p Series S, Medium, FSR 4 + FG, Locked 30, borderless | | Runtime before crash | 12 min (.2), 20 min (.5) | ## The shader compute f16876929fa64f9f pipeline key: 0629334fc89d66f8cd24f4f5d4b88871 library id: ba4ecbf65561380fc40d67a226acd10b The last line before every crash: pipeline library: make of ba4ecbf65561380fc40d67a226acd10b [compute f16876929fa64f9f] running for 1034680.4 ms on thread 11448 - v.2: **138 907 ms** (2 min 19 s) - v.5: **1 034 680 ms** (17 min 14 s) `VICTORY_COMPILER_GUARD=0` is logged as `(VICTORY_COMPILER_GUARD=0: not)` — the guard is disabled, so the layer waits for the compiler instead of timing it out. Right after this, `0x887A0006` arrives. The submitter is idle (`the submitting thread was between submissions (nothing of ours was running on the card)`), so this is **not a hung GPU command** — it's TDR killing the device because shader compilation never returned. ## Evidence it's the same shader every time | Run | Build | Crash after | Shader | Compile time | |---|---|---|---|---| | 1 | .2 | ~12 min | `f16876929fa64f9f` | 138 s | | 2 | .2 | ~9 min | `f16876929fa64f9f` | (same, 138 s) | | 3 | .5 | ~20 min | `f16876929fa64f9f` | 1034 s | Different streets, different textures, different scenes — the same compute shader. So it's not scene content; it's this specific pipeline. Bumping `VICTORY_SCRATCH_SPARE_MB` / `VICTORY_SEND_SPARE_MB` from 8/24 to 128/128 in v.5 pushed the crash from 12 to 20 minutes, but did not remove it. That confirms the shader is the trigger, not memory pressure (pressure only affects *when* the game reaches it). ## Secondary issue: pipeline library never loads Every new pipeline this run: pipeline library: made [mesh ...] in 0.2 ms (the library did not load it: Параметр задан неверно. (0x80070057)) - `saved 412592 bytes` at one point — so the file is written. - But new entries are never read back (`0x80070057` = `E_INVALIDARG`). - `VICTORY_SKIP_PIPELINES` is the only workaround that survives a restart. Effect: Warm Shaders only recompiles what was already known; new pipelines are retried every launch, and the bad shader is retried every launch until it kills the device. ## Suggested fixes (in order of impact) 1. **Time-box `CreateComputePipelineState`** (e.g. 30–60 s). On timeout, mark the pipeline as `bad` and return instead of waiting for TDR. This alone would have prevented all three crashes. 2. **Make `VICTORY_COMPILER_GUARD=1` actually interrupt a hang**, not just a process crash. Right now it does nothing for a stuck compiler. 3. **Add `0629334fc89d66f8cd24f4f5d4b88871` to a default deny-list** or ship it in the release's `VICTORY_SKIP_PIPELINES`. Workaround not yet confirmed by user 4. **Fix library load (`0x80070057`).** It defeats Warm Shaders and makes the bad shader recur every launch. ## Workaround for other users (until fixed) In ps1 file VICTORY_SKIP_PIPELINES = '240cb516c1af0bc3;0629334fc89d66f8cd24f4f5d4b88871' # RDNA4 hair-shadow + our bad compute shader VICTORY_COMPILER_GUARD=1(not sure) This skips the bad pipeline and asks the layer to guard the compiler. The pipeline won't render (it already didn't), but the crash goes away. ## Related - #31 — CPU-side `0xc0000005` under VRAM pressure on 12 GB. Different symptom, same subsystem under load. Our logs also show `emergency GPU/commit reclaim ... commit_before_mb=2065 commit_after_mb=2065` and `objects let go ... 1 145 040 028`, so memory pressure is present, but the crash here is deterministic on one shader, not on pressure alone. ## Attached - `run-*.log` from the v.5 crash (contains the full device-removal dump, the 1034 s compile line, and the `0x80070057` library lines). - `settings-*.txt` from the same launch. [run-20261130-231029.log](https://github.com/user-attachments/files/35634993/run-20261130-231029.log) [settings-20261130-231029.txt](https://github.com/user-attachments/files/35634992/settings-20261130-231029.txt) ### Logs (`collect_logs.bat` output or last ~100 lines of `logs\last_run.log`) ```text ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:58:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.