DXGI_ERROR_DEVICE_HUNG (0x887A0006) at world load on 9070xt; many compute shaders fail to translate #597

Open
opened 2026-11-26 04:09:34 +00:00 by github-bot · 19 comments
Owner

@⁠TheOnlyTGKK on GitHub · 2026-11-24 05:18 UTC · original

Environment

  • Windows [10/11, build], GPU: [name], driver: [version]
  • Commit: [run git rev-parse --short HEAD]
  • Command: victory.exe run --execute (release build, default console mode)

What works
Boot, first-boot screens, intro video, profile screen, loading into the world.

What happens
Entering the world, the picture is black and the cutscene runs at ~1 fps. After a few
seconds the host GPU is removed and Windows resets the display driver (screen goes
black briefly).

Log
host GPU device removed after a submission of 26 lists (also seen with 32 lists);
no breadcrumbs ... (0x887A0004); device removed ... (0x887A0006)
Seen at frames ~1074 and ~1108 on separate runs.
With VICTORY_D3D12_DEBUG=1 the debug layer reports DXGI_ERROR_DEVICE_HUNG and no
validation errors. DRED showed indirect mesh draws (indirect kind 10) in flight.

Shader translation warnings just before the hang (examples)

  • hash 3592426e3e9142d8: an address not from a root parameter is not supported
  • hash 476446edcac7d521: a lane mask holding lanes elsewhere read as data is not supported
  • hash f133e35efed2a48a: a select on an untracked mask is not supported
  • hash 7f05ddab771799a9: a structured buffer of unknown stride is not supported

crashes.log

**@⁠TheOnlyTGKK** on GitHub · 2026-11-24 05:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/597) Environment - Windows [10/11, build], GPU: [name], driver: [version] - Commit: [run `git rev-parse --short HEAD`] - Command: victory.exe run <exe> --execute (release build, default console mode) What works Boot, first-boot screens, intro video, profile screen, loading into the world. What happens Entering the world, the picture is black and the cutscene runs at ~1 fps. After a few seconds the host GPU is removed and Windows resets the display driver (screen goes black briefly). Log host GPU device removed after a submission of 26 lists (also seen with 32 lists); no breadcrumbs ... (0x887A0004); device removed ... (0x887A0006) Seen at frames ~1074 and ~1108 on separate runs. With VICTORY_D3D12_DEBUG=1 the debug layer reports DXGI_ERROR_DEVICE_HUNG and no validation errors. DRED showed indirect mesh draws (indirect kind 10) in flight. Shader translation warnings just before the hang (examples) - hash 3592426e3e9142d8: an address not from a root parameter is not supported - hash 476446edcac7d521: a lane mask holding lanes elsewhere read as data is not supported - hash f133e35efed2a48a: a select on an untracked mask is not supported - hash 7f05ddab771799a9: a structured buffer of unknown stride is not supported [crashes.log](https://github.com/user-attachments/files/35312729/crashes.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:09:34 +00:00
Author
Owner

@⁠colehammond65 on GitHub · 2026-11-24 06:58 UTC · original

Cross-vendor RTX 4080 data point. The same world-entry device removal occurs on NVIDIA RTX 4080: all four runs exited with 0x887A0005 and reported 0x887A0006. No run had a page fault; DRED stopped in indirect execution or mesh dispatch. Each run also had 64–106 unique refused shader pipelines before failure, and #334 did not prevent the removal. Full report: #334

AI-assisted test report.

**@⁠colehammond65** on GitHub · 2026-11-24 06:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7124489900) **Cross-vendor RTX 4080 data point.** The same world-entry device removal occurs on NVIDIA RTX 4080: all four runs exited with `0x887A0005` and reported `0x887A0006`. No run had a page fault; DRED stopped in indirect execution or mesh dispatch. Each run also had 64–106 unique refused shader pipelines before failure, and #334 did not prevent the removal. Full report: https://git.gtahub.st/github/Marvisak--VIctory/pulls/334 AI-assisted test report.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 08:48 UTC · original

Both of the shader translation warnings cited in this report:

  • hash 476446edcac7d521: a lane mask holding lanes elsewhere read as data is not supported
  • hash f133e35efed2a48a: a select on an untracked mask is not supported

Have now been diagnosed and fixed in victory-shader:

  1. a select on an untracked mask: Resolved in branch fix/shader-untracked-and-opaque-lane-masks by supporting untracked and constant masks in v_cndmask_b32 and v_add_co_ci_u32.
  2. a lane mask holding lanes elsewhere read as data: Resolved in branch fix/shader-lane-mask-ballots-and-data-reads by resolving constant and boolean masks directly in mask_dword, allowing safe host ballots via waveActiveBallot, and lifting the stage restriction on Atom::Opaque and Atom::Constant.

Details and branches:
#653
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/shader-lane-mask-ballots-and-data-reads

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 08:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7126597481) Both of the shader translation warnings cited in this report: - `hash 476446edcac7d521: a lane mask holding lanes elsewhere read as data is not supported` - `hash f133e35efed2a48a: a select on an untracked mask is not supported` Have now been diagnosed and fixed in `victory-shader`: 1. `a select on an untracked mask`: Resolved in branch `fix/shader-untracked-and-opaque-lane-masks` by supporting untracked and constant masks in `v_cndmask_b32` and `v_add_co_ci_u32`. 2. `a lane mask holding lanes elsewhere read as data`: Resolved in branch `fix/shader-lane-mask-ballots-and-data-reads` by resolving constant and boolean masks directly in `mask_dword`, allowing safe host ballots via `waveActiveBallot`, and lifting the stage restriction on `Atom::Opaque` and `Atom::Constant`. Details and branches: https://git.gtahub.st/github/Marvisak--VIctory/issues/653 https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/shader-lane-mask-ballots-and-data-reads
Author
Owner

@⁠rouges78 on GitHub · 2026-11-24 08:55 UTC · original · edited 2026-11-24 09:07 UTC

Code-reading data point, with two defects reproduced on hardware. No title run behind any of this (I have no dump on this machine yet), so I can't say it changes the device loss.

Setup: RTX 4080, Windows 11, main at 6af0fae.

1. The indirect budget wraps (reproduced). In indirect.rs every record adds its cost to the list's budget word with a plain 32-bit InterlockedAdd, rejected records included. 64 garbage draw records of 2^26 bring the word back to zero and work is let in again. Running the clamp alone over 128 all-ones draw records (kind 0, stride 16) and reading the buffer back: 4 records stay live and the budget word reads 0; the design says 2 and 2^27.

2. A compare-exchange reservation is not the fix (also reproduced). I first replaced the add with a saturating InterlockedCompareExchange loop, still 64 threads per group. It passes the garbage cases, but with 65,536 records of one vertex instance each (all fit) the retries grow with the record count and the device was removed three runs out of three, with three nvlddmkm event 153 entries. Noting it so nobody else takes that route. What works here is one thread walking the records in order with a saturating count: about 27 ms for 65,536 records, 0.4 s for 2^20, so it needs a cap on records per execution (or a count-buffer-aware clamp).

3. A failed dynamic table still runs its draw. In draw.rs, when host.dynamic(n) returns None, tables() continues and bind() passes the title's own table offset, which on a capped heap is past the host's. Exhaustion warns once, but n > DYNAMIC returns None with no warning at all (descriptor/host.rs, top of dynamic()), so a log without "no free dynamic descriptor slots" does not show the fallback was not taken. That may matter for the runs above where the warning was gone and the device was still lost. A root view the title did not set is skipped the same way and the command still runs.

Update: main has since fixed the dynamic-slot part of this (3c81420: a table that gets no dynamic slots, for either reason, now drops its draw). The root view case is unchanged on main.

4. The loop limit does not bound nested loops. On a conditional back edge the limit is folded into the branch condition, so a capped lane leaves by the loop's ordinary exit and keeps running, and the counter restarts at each entry. Two nested loops can still do 2^20 x 2^20 iterations per lane. The comment on LOOP_LIMIT says the lane leaves the program, which is only true for an unconditional back edge.

Branch with three commits: https://github.com/rouges78/VIctory/tree/fix/597-bounded-indirect-and-bindings (the serial clamp with tests that run on the real device, where the wrap test fails on the current shader; dropping draws and dispatches whose table or root view cannot be bound; the comment fix). The second one drops commands that run today on an unset binding, and I have not run the menus with it. Happy to open PRs for whichever of these is wanted, the budget fix first since it stands on its own.

Edit: the budget fix alone, on current main (one commit, CI commands pass locally): https://github.com/rouges78/VIctory/tree/fix/indirect-budget-wrap. Opening a PR is refused for my account right now, so it stays a branch until that changes. #583 and #242 fix the same wrap with a compare-exchange loop and also read the count buffer, which this does not; I tested my own loop, not theirs, and the test records_within_the_budget_all_run on that branch is the case to run against them.

AI-assisted analysis (Claude, cross-checked with Codex); the hardware results above are from real runs on the card.

**@⁠rouges78** on GitHub · 2026-11-24 08:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7126730850) · edited 2026-11-24 09:07 UTC Code-reading data point, with two defects reproduced on hardware. No title run behind any of this (I have no dump on this machine yet), so I can't say it changes the device loss. Setup: RTX 4080, Windows 11, main at 6af0fae. **1. The indirect budget wraps (reproduced).** In `indirect.rs` every record adds its cost to the list's budget word with a plain 32-bit `InterlockedAdd`, rejected records included. 64 garbage draw records of 2^26 bring the word back to zero and work is let in again. Running the clamp alone over 128 all-ones draw records (kind 0, stride 16) and reading the buffer back: 4 records stay live and the budget word reads 0; the design says 2 and 2^27. **2. A compare-exchange reservation is not the fix (also reproduced).** I first replaced the add with a saturating `InterlockedCompareExchange` loop, still 64 threads per group. It passes the garbage cases, but with 65,536 records of one vertex instance each (all fit) the retries grow with the record count and the device was removed three runs out of three, with three nvlddmkm event 153 entries. Noting it so nobody else takes that route. What works here is one thread walking the records in order with a saturating count: about 27 ms for 65,536 records, 0.4 s for 2^20, so it needs a cap on records per execution (or a count-buffer-aware clamp). **3. A failed dynamic table still runs its draw.** In `draw.rs`, when `host.dynamic(n)` returns `None`, `tables()` continues and `bind()` passes the title's own table offset, which on a capped heap is past the host's. Exhaustion warns once, but `n > DYNAMIC` returns `None` with no warning at all (`descriptor/host.rs`, top of `dynamic()`), so a log without "no free dynamic descriptor slots" does not show the fallback was not taken. That may matter for the runs above where the warning was gone and the device was still lost. A root view the title did not set is skipped the same way and the command still runs. **Update:** main has since fixed the dynamic-slot part of this (3c81420: a table that gets no dynamic slots, for either reason, now drops its draw). The root view case is unchanged on main. **4. The loop limit does not bound nested loops.** On a conditional back edge the limit is folded into the branch condition, so a capped lane leaves by the loop's ordinary exit and keeps running, and the counter restarts at each entry. Two nested loops can still do 2^20 x 2^20 iterations per lane. The comment on `LOOP_LIMIT` says the lane leaves the program, which is only true for an unconditional back edge. Branch with three commits: https://github.com/rouges78/VIctory/tree/fix/597-bounded-indirect-and-bindings (the serial clamp with tests that run on the real device, where the wrap test fails on the current shader; dropping draws and dispatches whose table or root view cannot be bound; the comment fix). The second one drops commands that run today on an unset binding, and I have not run the menus with it. Happy to open PRs for whichever of these is wanted, the budget fix first since it stands on its own. **Edit:** the budget fix alone, on current main (one commit, CI commands pass locally): https://github.com/rouges78/VIctory/tree/fix/indirect-budget-wrap. Opening a PR is refused for my account right now, so it stays a branch until that changes. #583 and #242 fix the same wrap with a compare-exchange loop and also read the count buffer, which this does not; I tested my own loop, not theirs, and the test `records_within_the_budget_all_run` on that branch is the case to run against them. AI-assisted analysis (Claude, cross-checked with Codex); the hardware results above are from real runs on the card.
Author
Owner

@⁠rouges78 on GitHub · 2026-11-24 11:33 UTC · original

@⁠rpmaster2 your "page fault ... inside freed texture" runs match a lifetime gap I found reading current main (ffe310e). It is untested against the title (I have no dump here), so I would be glad if you could A/B it with your 480 s procedure.

What I think happens. Translated shaders index the host descriptor heaps directly, and lists hold only the textures they transition, so a texture read only through a heap slot is kept alive by that slot alone (HostHeap::kept). Host::execute waits for the GPU holding only its own lock; meanwhile other title threads keep recording, and mirror nulls the slot of a released texture (or remakes a changed one) and drops its last reference. The running submission may already have read the old descriptor, so it reads freed memory. The a title texture was released while a list not yet reset names its host copy line is the protected case (a list holds the copy), not the fault itself.

A second, related gap: the title's descriptor heap owns its host heap outright, and lists keep only the ID3D12DescriptorHeap. If the title releases a heap before submitting a list that binds it, the references its slots held go with it.

Branch: https://github.com/rouges78/VIctory/tree/fix/heap-slot-lifetime (two commits on ffe310e, CI commands pass locally, a test for each on an RTX 4080):

  1. a slot's previous resource lives until the next submission starts;
  2. lists hold the host heaps they bind until reset.

To try it:

git fetch https://github.com/rouges78/VIctory fix/heap-slot-lifetime
git switch --detach FETCH_HEAD
cargo build --profile diag -p victory --features diagnostics

What would settle it: 5 runs of main and 5 of the branch, diag build, VICTORY_D3D12_DRED=1. Diagnostics builds of the branch log two counters:

  • a heap slot let go of a resource while a submission ran (fix 1's case);
  • a descriptor heap was released while a list not yet reset names it (fix 2's case).

If the removals stop and the first counter grows, this was it. If the counters stay at zero and the removals stay, this rules the idea out.

Not covered: rewriting a descriptor that a running submission may read is still outside D3D12's rules (this only keeps the memory valid), and aliasing and UAV barriers still name resources without holding them.

AI-assisted analysis (Claude, cross-checked with Codex); the tests ran on real hardware, the title did not.

**@⁠rouges78** on GitHub · 2026-11-24 11:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7130253405) @⁠rpmaster2 your "page fault ... inside freed texture" runs match a lifetime gap I found reading current `main` (ffe310e). It is untested against the title (I have no dump here), so I would be glad if you could A/B it with your 480 s procedure. **What I think happens.** Translated shaders index the host descriptor heaps directly, and lists hold only the textures they transition, so a texture read only through a heap slot is kept alive by that slot alone (`HostHeap::kept`). `Host::execute` waits for the GPU holding only its own lock; meanwhile other title threads keep recording, and `mirror` nulls the slot of a released texture (or remakes a changed one) and drops its last reference. The running submission may already have read the old descriptor, so it reads freed memory. The `a title texture was released while a list not yet reset names its host copy` line is the protected case (a list holds the copy), not the fault itself. A second, related gap: the title's descriptor heap owns its host heap outright, and lists keep only the `ID3D12DescriptorHeap`. If the title releases a heap before submitting a list that binds it, the references its slots held go with it. **Branch:** https://github.com/rouges78/VIctory/tree/fix/heap-slot-lifetime (two commits on ffe310e, CI commands pass locally, a test for each on an RTX 4080): 1. a slot's previous resource lives until the next submission starts; 2. lists hold the host heaps they bind until reset. To try it: ``` git fetch https://github.com/rouges78/VIctory fix/heap-slot-lifetime git switch --detach FETCH_HEAD cargo build --profile diag -p victory --features diagnostics ``` **What would settle it:** 5 runs of `main` and 5 of the branch, diag build, `VICTORY_D3D12_DRED=1`. Diagnostics builds of the branch log two counters: - `a heap slot let go of a resource while a submission ran` (fix 1's case); - `a descriptor heap was released while a list not yet reset names it` (fix 2's case). If the removals stop and the first counter grows, this was it. If the counters stay at zero and the removals stay, this rules the idea out. Not covered: rewriting a descriptor that a running submission may read is still outside D3D12's rules (this only keeps the memory valid), and aliasing and UAV barriers still name resources without holding them. AI-assisted analysis (Claude, cross-checked with Codex); the tests ran on real hardware, the title did not.
Author
Owner

@⁠capobrrr00-afk on GitHub · 2026-11-24 12:13 UTC · original

Follow-up with breadcrumbs (diag build, VICTORY_D3D12_DRED=1, Windows 10 + RTX 3060, #175 merged onto main @ ffe310e):

  1. The world-entry hang stops at list 20, command 689 of 1471:
    "indirect kind 10 max 1 ... [mesh 26d1667415d4754b, pixel 8e9b3db8a3eeba51]"
    -> DEVICE_HUNG (0x887A0006).

  2. With VICTORY_SKIP_PIPELINES=26d1667415d4754b there is no hang: 80 s in the world
    until I closed the window, 0 device removals.

  3. VICTORY_SHADER_LOOP_LIMIT=4096 takes world frames from ~8.4 s to ~1.5-3.5 s.
    Most of the remaining time is CPU-side "preparing" (~1-1.7 s/frame), GPU 0.2-0.5 s.
    800-1400 draws/frame are still dropped without a host pipeline, so the scene stays dark.

Happy to run more with other skip lists or VICTORY_GPU_TIMING=1.

**@⁠capobrrr00-afk** on GitHub · 2026-11-24 12:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7131135636) Follow-up with breadcrumbs (diag build, VICTORY_D3D12_DRED=1, Windows 10 + RTX 3060, #175 merged onto main @ ffe310e): 1. The world-entry hang stops at list 20, command 689 of 1471: "indirect kind 10 max 1 ... [mesh 26d1667415d4754b, pixel 8e9b3db8a3eeba51]" -> DEVICE_HUNG (0x887A0006). 2. With VICTORY_SKIP_PIPELINES=26d1667415d4754b there is no hang: 80 s in the world until I closed the window, 0 device removals. 3. VICTORY_SHADER_LOOP_LIMIT=4096 takes world frames from ~8.4 s to ~1.5-3.5 s. Most of the remaining time is CPU-side "preparing" (~1-1.7 s/frame), GPU 0.2-0.5 s. 800-1400 draws/frame are still dropped without a host pipeline, so the scene stays dark. Happy to run more with other skip lists or VICTORY_GPU_TIMING=1.
Author
Owner

@⁠acleofe on GitHub · 2026-11-24 12:21 UTC · original

Independent CPU-arithmetic confirmation of the indirect-budget wrap on main ffe310eb2098e52169f4c44db5ffdabf43a72622.

This confirms the arithmetic already reported by @⁠rouges78 above; it is not a new discovery or a GPU/game reproduction.

In indirect.rs, rejected records still increment the uint32 budget through InterlockedAdd. With 128 equal-cost draw records at the clamp's maximum cost (2^26), the counter wraps after 64 records and admits more work:

  • Configured budget: 2^27.
  • Expected maximum accepted records at this cost: 2.
  • Current arithmetic accepts 4 (atomic-order positions 0, 1, 64, 65).
  • Accepted work: 2^28; final counter: 0.

The following Python reproduction was run locally and its assertions passed. It models uint32 arithmetic only. For identical-cost records, atomic ordering changes the surviving record identities, not the admitted count.

budget = 1 << 27
cost = 1 << 26
mask = (1 << 32) - 1
counter = 0
accepted = []
for i in range(128):
    before = counter
    counter = (before + cost) & mask
    if not (before >= budget or ((before + cost) & mask) > budget):
        accepted.append(i)
assert accepted == [0, 1, 64, 65]
assert counter == 0
assert len(accepted) * cost > budget

#242 and #583 already address this area. We have not tested either patch, their contention behavior, or whether this defect causes the reported retail hang.

The other concerns from our source review are also already covered here: the descriptor/resource lifetime hypothesis in this comment, and conditional/nested loop limits in @⁠rouges78's report. Separately, pipeline/make.rs explicitly documents losing one-time work when a pipeline misses its wait budget; that is a rendering-correctness limitation, not proof of the device-removal cause.

Validation limits: no retail game files, crash reproduction, GPU execution of this reproducer, or proposed fix tested in this follow-up. This is supporting evidence for the existing investigation, not a claim that one defect explains every hang.

AI use: Codex (GPT-6 family; exact model variant unavailable) performed the source review and ran the arithmetic check. Community GPU/game results remain attributed to their original reports.

**@⁠acleofe** on GitHub · 2026-11-24 12:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7131334059) Independent CPU-arithmetic confirmation of the indirect-budget wrap on main `ffe310eb2098e52169f4c44db5ffdabf43a72622`. This confirms the arithmetic already reported by @⁠rouges78 [above](https://git.gtahub.st/github/Marvisak--VIctory/issues/597); it is not a new discovery or a GPU/game reproduction. In [`indirect.rs`](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/indirect.rs#L33-L68), rejected records still increment the uint32 budget through `InterlockedAdd`. With 128 equal-cost draw records at the clamp's maximum cost (`2^26`), the counter wraps after 64 records and admits more work: - Configured budget: `2^27`. - Expected maximum accepted records at this cost: 2. - Current arithmetic accepts 4 (atomic-order positions 0, 1, 64, 65). - Accepted work: `2^28`; final counter: 0. The following Python reproduction was run locally and its assertions passed. It models uint32 arithmetic only. For identical-cost records, atomic ordering changes the surviving record identities, not the admitted count. ```python budget = 1 << 27 cost = 1 << 26 mask = (1 << 32) - 1 counter = 0 accepted = [] for i in range(128): before = counter counter = (before + cost) & mask if not (before >= budget or ((before + cost) & mask) > budget): accepted.append(i) assert accepted == [0, 1, 64, 65] assert counter == 0 assert len(accepted) * cost > budget ``` #242 and #583 already address this area. We have not tested either patch, their contention behavior, or whether this defect causes the reported retail hang. The other concerns from our source review are also already covered here: the descriptor/resource lifetime hypothesis in [this comment](https://git.gtahub.st/github/Marvisak--VIctory/issues/597), and conditional/nested loop limits in @⁠rouges78's report. Separately, [`pipeline/make.rs`](https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/src/pipeline/make.rs#L9-L17) explicitly documents losing one-time work when a pipeline misses its wait budget; that is a rendering-correctness limitation, not proof of the device-removal cause. **Validation limits:** no retail game files, crash reproduction, GPU execution of this reproducer, or proposed fix tested in this follow-up. This is supporting evidence for the existing investigation, not a claim that one defect explains every hang. **AI use:** Codex (GPT-6 family; exact model variant unavailable) performed the source review and ran the arithmetic check. Community GPU/game results remain attributed to their original reports.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 08:31 UTC · original · edited 2026-11-24 12:31 UTC

Same GPU/driver family as the report: Radeon RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB RAM, pagefile 32/48 GB.

Build: main at 1f858b0, diag profile, Rust 1.98.1. Run with the retail 1.0.2.1 executable and timed Enter presses.

Observed:

  • menus at 30 fps;
  • world entry around frame 1024;
  • no free dynamic descriptor slots: a table is not made n=133 (also 135 and 178 on other runs);
  • 0.3-2.9 fps, 1000-2400 draws/frame;
  • host device removed with 0x887A0004 / 0x887A0006 before the first cutscene.

DRED on main (VICTORY_D3D12_DRED=1, diag build): page fault; the view heap and sampler heap are reported past their ends; a list stopped at command 179/416; the dispatches include compute 186de5778eb555c8 with Uav s0+24: None. Skipping 186de5778eb555c8,b585907117661f1b,dc20f390c4354fb4 did not prevent the removal.

Fixes tested on the same host:

  • #550 applied: zero past the host heap lines; still no free dynamic descriptor slots n=133 and the same TDR.
  • #562 applied: still no free dynamic descriptor slots n=135 and the same TDR.
  • #584: another RX 9070 XT report says it black-screens before the menu; not applied here.

Diagnostics branch aycow:gpu/descriptor-allocation-demand @⁠82e4aa6 with VICTORY_DESCRIPTOR_DEMAND=1, at the first failed rebuilt table (frame 1096):

  • outcome: LocalNew 13,879 tables / 71,536 slots; LocalReuse 2,906 / 39,215; NoRange 1 / 178; SharedNew and SharedReuse 0 (demand measurement before reuse).
  • widths: 16 -> 8,483 tables / 60,196 slots; 256 -> 167 / 23,064; 1024 -> 25 / 6,450; 4 -> 4,316 / 15,483; 1 -> 3,695 / 3,695; 64 -> 100 / 2,041.
  • composition: Mixed 12,212 tables / 72,250 slots with duplicate_untracked 11,947 / 71,159; CbvOnly 3,710 / 3,725 with duplicate_untracked 3,707 / 3,722; Unresolved 864 / 34,954 with duplicate_untracked 864 / 34,954.
  • then no free dynamic descriptor slots n=178 and device removal.

No game data: counts, shader hashes, driver version and error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 08:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7126246040) · edited 2026-11-24 12:31 UTC Same GPU/driver family as the report: Radeon RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB RAM, pagefile 32/48 GB. Build: `main` at `1f858b0`, diag profile, Rust 1.98.1. Run with the retail 1.0.2.1 executable and timed Enter presses. Observed: - menus at 30 fps; - world entry around frame 1024; - `no free dynamic descriptor slots: a table is not made n=133` (also 135 and 178 on other runs); - 0.3-2.9 fps, 1000-2400 draws/frame; - host device removed with 0x887A0004 / 0x887A0006 before the first cutscene. DRED on `main` (`VICTORY_D3D12_DRED=1`, diag build): page fault; the view heap and sampler heap are reported past their ends; a list stopped at command 179/416; the dispatches include compute `186de5778eb555c8` with `Uav s0+24: None`. Skipping `186de5778eb555c8,b585907117661f1b,dc20f390c4354fb4` did not prevent the removal. Fixes tested on the same host: - #550 applied: zero `past the host heap` lines; still `no free dynamic descriptor slots n=133` and the same TDR. - #562 applied: still `no free dynamic descriptor slots n=135` and the same TDR. - #584: another RX 9070 XT report says it black-screens before the menu; not applied here. Diagnostics branch `aycow:gpu/descriptor-allocation-demand` @⁠82e4aa6 with `VICTORY_DESCRIPTOR_DEMAND=1`, at the first failed rebuilt table (frame 1096): - outcome: `LocalNew` 13,879 tables / 71,536 slots; `LocalReuse` 2,906 / 39,215; `NoRange` 1 / 178; `SharedNew` and `SharedReuse` 0 (demand measurement before reuse). - widths: 16 -> 8,483 tables / 60,196 slots; 256 -> 167 / 23,064; 1024 -> 25 / 6,450; 4 -> 4,316 / 15,483; 1 -> 3,695 / 3,695; 64 -> 100 / 2,041. - composition: `Mixed` 12,212 tables / 72,250 slots with `duplicate_untracked` 11,947 / 71,159; `CbvOnly` 3,710 / 3,725 with `duplicate_untracked` 3,707 / 3,722; `Unresolved` 864 / 34,954 with `duplicate_untracked` 864 / 34,954. - then `no free dynamic descriptor slots n=178` and device removal. No game data: counts, shader hashes, driver version and error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 10:06 UTC · original · edited 2026-11-24 12:31 UTC

Update with a longer window and a controlled A/B; this replaces the "one clean run" reading from my earlier comment.

Host: RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB, main @⁠58fed37, diag build, VICTORY_D3D12_DRED=1.

Runs of 480 s (the earlier 200-240 s runs were simply shorter than the crash window):

build runs crashed
main 5 5
main + #688 2 2
main + #609 2 2

Every crash has the same shape: host GPU device removed after a submission of N lists; page fault at 0x...; inside freed ["texture ... (type 34)"]. Freed textures seen across the runs: 1024x1024 f98/f99/f95/f83, 1024x2048 f98, 2048x2048 f98, 512x512 f29, 256x256 f99. In two runs the stopped list is 7d85c9cab3c80721, with tables from shader f0c7efd2aceb2aaa naming placed SRVs. The log reports a title texture was released while a list not yet reset names its host copy before the removal.

So on RDNA4:

  • the dynamic-slot exhaustion from the original report is gone with main @⁠58fed37 (0 occurrences), i.e. fixed by what is already merged, not by #688;
  • what remains is a read of a released texture while a list still names it, and neither #688 nor #609 removes it (the controlled A/B for #609 is in that PR's thread: it delays the crash from 1m39s to 3m21s and writes one more checkpoint, but the removal stays).

Correction to my earlier comment: the view heap ... past its end text in the DRED line only says where the fault address lies relative to the heaps. A texture address is outside them, so that text always appears and is not evidence of a wrong heap handle.

Separately, the world is still black for a translation reason, not a memory one: across five runs 501 unique shaders refuse translation and their draws are dropped - top causes a select on an untracked mask (463 log lines), a lane mask holding lanes elsewhere read as data (400), a descriptor read only as data (328), a structured buffer of unknown stride (233), an address in an SGPR that is no root parameter (175). Several of those have open PRs (#585, #702, #710, #645).

No game data in this comment: sizes, formats, hashes and counters only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 10:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7128334311) · edited 2026-11-24 12:31 UTC Update with a longer window and a controlled A/B; this replaces the "one clean run" reading from my earlier comment. Host: RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB, `main` @⁠58fed37, diag build, `VICTORY_D3D12_DRED=1`. Runs of 480 s (the earlier 200-240 s runs were simply shorter than the crash window): | build | runs | crashed | | --- | --- | --- | | `main` | 5 | 5 | | `main` + #688 | 2 | 2 | | `main` + #609 | 2 | 2 | Every crash has the same shape: `host GPU device removed after a submission of N lists; page fault at 0x...; inside freed ["texture ... (type 34)"]`. Freed textures seen across the runs: 1024x1024 f98/f99/f95/f83, 1024x2048 f98, 2048x2048 f98, 512x512 f29, 256x256 f99. In two runs the stopped list is `7d85c9cab3c80721`, with tables from shader `f0c7efd2aceb2aaa` naming placed SRVs. The log reports `a title texture was released while a list not yet reset names its host copy` before the removal. So on RDNA4: - the dynamic-slot exhaustion from the original report is gone with `main` @⁠58fed37 (0 occurrences), i.e. fixed by what is already merged, not by #688; - what remains is a read of a released texture while a list still names it, and neither #688 nor #609 removes it (the controlled A/B for #609 is in that PR's thread: it delays the crash from 1m39s to 3m21s and writes one more checkpoint, but the removal stays). Correction to my earlier comment: the `view heap ... past its end` text in the DRED line only says where the fault address lies relative to the heaps. A texture address is outside them, so that text always appears and is not evidence of a wrong heap handle. Separately, the world is still black for a translation reason, not a memory one: across five runs 501 unique shaders refuse translation and their draws are dropped - top causes `a select on an untracked mask` (463 log lines), `a lane mask holding lanes elsewhere read as data` (400), `a descriptor read only as data` (328), `a structured buffer of unknown stride` (233), `an address in an SGPR that is no root parameter` (175). Several of those have open PRs (#585, #702, #710, #645). No game data in this comment: sizes, formats, hashes and counters only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 12:14 UTC · original · edited 2026-11-24 12:31 UTC

Two behaviours worth recording, both seen on screen and confirmed in the log.

Frames alternate between black and drawn. Over 8 minutes at 0.6 fps in the world: 30 a black frame after a frame that was not and 15 levels after the black frame. Between them the frame is drawn (44-163 draws) and, for 5-10 s at a time, part of the scene is correct on screen - not just UI. So on this host the world pass does reach the screen intermittently; it is not that nothing renders. Whatever produces the black frame removes the drawn one rather than never drawing it.

Subtitles pile up at low frame rate and are correct once fps rises. During the cutscene at 0.5-1 fps several lines are produced per rendered frame and all of them land on the UI layer (the text becomes unreadable, then clears when the scene changes). On a later screen at ~30 fps one line per frame and no overlap. That fits the wall-clock timeline vs per-frame rendering: it is a symptom of the frame rate, not a separate UI defect, unless the UI target is supposed to be cleared per produced line.

On the removal itself, the picture is unchanged and now has a little more detail. With diagnostic logging of every host texture creation and release (my local build, main @⁠58fed37, no other change): 2 of 3 runs still lose the device with the same page fault ... inside freed ["texture 1024x1024 f98 ..."]; the third survived 480 s. In the run that failed, a burst of 1024x1024 f98/f99/f83 creations happens 40-60 ms before the fault, i.e. the fault coincides with the title making textures of the same shape rather than with a quiet period.

Note for anyone doing the same: ID3D12Resource::GetGPUVirtualAddress() returns 0 for every host texture on this device (D3D12.X device 0x20004), so address matching does not work here; DRED's own freed-allocation names do. I am now giving each host texture a unique number in its D3D12 name so DRED names the exact instance and the log gives its lifetime.

No game data: counts, formats, hashes and error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 12:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7131161024) · edited 2026-11-24 12:31 UTC Two behaviours worth recording, both seen on screen and confirmed in the log. **Frames alternate between black and drawn.** Over 8 minutes at 0.6 fps in the world: 30 `a black frame after a frame that was not` and 15 `levels after the black frame`. Between them the frame is drawn (44-163 draws) and, for 5-10 s at a time, part of the scene is correct on screen - not just UI. So on this host the world pass does reach the screen intermittently; it is not that nothing renders. Whatever produces the black frame removes the drawn one rather than never drawing it. **Subtitles pile up at low frame rate and are correct once fps rises.** During the cutscene at 0.5-1 fps several lines are produced per rendered frame and all of them land on the UI layer (the text becomes unreadable, then clears when the scene changes). On a later screen at ~30 fps one line per frame and no overlap. That fits the wall-clock timeline vs per-frame rendering: it is a symptom of the frame rate, not a separate UI defect, unless the UI target is supposed to be cleared per produced line. On the removal itself, the picture is unchanged and now has a little more detail. With diagnostic logging of every host texture creation and release (my local build, `main` @⁠58fed37, no other change): 2 of 3 runs still lose the device with the same `page fault ... inside freed ["texture 1024x1024 f98 ..."]`; the third survived 480 s. In the run that failed, a burst of 1024x1024 f98/f99/f83 creations happens 40-60 ms before the fault, i.e. the fault coincides with the title making textures of the same shape rather than with a quiet period. Note for anyone doing the same: `ID3D12Resource::GetGPUVirtualAddress()` returns 0 for every host texture on this device (D3D12.X device 0x20004), so address matching does not work here; DRED's own freed-allocation names do. I am now giving each host texture a unique number in its D3D12 name so DRED names the exact instance and the log gives its lifetime. No game data: counts, formats, hashes and error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 12:19 UTC · original · edited 2026-11-24 12:31 UTC

@⁠rouges78 running your protocol now: 5 runs of main @⁠ffe310e and 5 of fix/heap-slot-lifetime (0df7c54), diag builds, VICTORY_D3D12_DRED=1, 480 s each, the same save restored before every run, interleaved (base, fix, base, fix, ...) so machine drift hits both.

Per run I log: whether the device was removed, the lists in the failing submission, the page-fault address with the freed texture description when there is one, max frame, and your two counters:

  • a heap slot let go of a resource while a submission ran
  • a descriptor heap was released while a list not yet reset names it

Baseline expectation from my earlier runs on this host: main loses the device in essentially every 480 s run (7 of 8 so far, frames 1090-1500), always page fault ... inside freed ["texture 1024x1024 ..."]. I will post the ten results together, including the negative case.

No game data: counters, formats, error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 12:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7131277233) · edited 2026-11-24 12:31 UTC @⁠rouges78 running your protocol now: 5 runs of `main` @⁠ffe310e and 5 of `fix/heap-slot-lifetime` (0df7c54), diag builds, `VICTORY_D3D12_DRED=1`, 480 s each, the same save restored before every run, interleaved (base, fix, base, fix, ...) so machine drift hits both. Per run I log: whether the device was removed, the lists in the failing submission, the page-fault address with the freed texture description when there is one, max frame, and your two counters: - `a heap slot let go of a resource while a submission ran` - `a descriptor heap was released while a list not yet reset names it` Baseline expectation from my earlier runs on this host: `main` loses the device in essentially every 480 s run (7 of 8 so far, frames 1090-1500), always `page fault ... inside freed ["texture 1024x1024 ..."]`. I will post the ten results together, including the negative case. No game data: counters, formats, error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 13:25 UTC · original

@⁠rouges78 I ran your protocol, and the result is a partial negative: the first fix is exercised heavily, the second never fires, and removals continue.

Setup: main @⁠ffe310e vs fix/heap-slot-lifetime (0df7c54), diag builds, VICTORY_D3D12_DRED=1, 480 s per run, the same save restored before every run, interleaved. Same host as before (RX 9070 XT, Adrenalin 26.11.2, Win 11 26300).

run build result slot let go heap released max frame fault
1 main alive 480 s 0 0 3261 -
1 fix alive 480 s 19 0 1360 -
2 main removed 0 0 1183 no freed node, 7 lists
2 fix removed 8 0 1543 freed texture 2048x2048 f98
3 main removed 0 0 1282 freed texture 1024x1024 f99
3 fix removed 15 0 1232 no freed node, 27 lists
4 main exited at System Init 0 0 2 title breakpoint 0x80000003

While fix runs were in flight the slot counter reached n=512 within one run, so fix 1's window is certainly being used - it is not a dead path. Fix 2's counter stayed at 0 in every run, so on this title the heap-release path never happens and it is untested here, not disproved.

What this does not show: any reduction in removals. main lost the device in 3 of 4 valid runs, fix in 2 of 3. Both fault shapes appear on fix: one freed texture (2048x2048 f98) and one with no freed node. The second shape matters for your hypothesis - that fault lands inside a title-memory copy (the message prints the nearest copy below the fault address with a 0x670000 offset), so at least some removals here are not a stale descriptor to a released host texture at all.

The remaining runs were lost: after the third removal the environment degraded (three runs produced no log output at all) and then the machine froze on a driver reset and was rebooted. I have stopped game runs for now. When I resume I will do the same 5+5 again, with VICTORY_D3D12_DEBUG=1 on the fix runs so the stopped list is named for the no-freed-node case.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 13:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7132816724) @⁠rouges78 I ran your protocol, and the result is a partial negative: the first fix is exercised heavily, the second never fires, and removals continue. Setup: `main` @⁠ffe310e vs `fix/heap-slot-lifetime` (0df7c54), diag builds, `VICTORY_D3D12_DRED=1`, 480 s per run, the same save restored before every run, interleaved. Same host as before (RX 9070 XT, Adrenalin 26.11.2, Win 11 26300). | run | build | result | slot let go | heap released | max frame | fault | | --- | --- | --- | --- | --- | --- | --- | | 1 | main | alive 480 s | 0 | 0 | 3261 | - | | 1 | fix | alive 480 s | 19 | 0 | 1360 | - | | 2 | main | removed | 0 | 0 | 1183 | no freed node, 7 lists | | 2 | fix | removed | 8 | 0 | 1543 | freed texture 2048x2048 f98 | | 3 | main | removed | 0 | 0 | 1282 | freed texture 1024x1024 f99 | | 3 | fix | removed | 15 | 0 | 1232 | no freed node, 27 lists | | 4 | main | exited at System Init | 0 | 0 | 2 | title breakpoint 0x80000003 | While `fix` runs were in flight the slot counter reached n=512 within one run, so fix 1's window is certainly being used - it is not a dead path. Fix 2's counter stayed at 0 in every run, so on this title the heap-release path never happens and it is untested here, not disproved. What this does not show: any reduction in removals. main lost the device in 3 of 4 valid runs, fix in 2 of 3. Both fault shapes appear on `fix`: one freed texture (2048x2048 f98) and one with no freed node. The second shape matters for your hypothesis - that fault lands inside a title-memory copy (the message prints the nearest copy below the fault address with a 0x670000 offset), so at least some removals here are not a stale descriptor to a released host texture at all. The remaining runs were lost: after the third removal the environment degraded (three runs produced no log output at all) and then the machine froze on a driver reset and was rebooted. I have stopped game runs for now. When I resume I will do the same 5+5 again, with `VICTORY_D3D12_DEBUG=1` on the `fix` runs so the stopped list is named for the no-freed-node case. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
Author
Owner

@⁠rouges78 on GitHub · 2026-11-24 14:18 UTC · original

@⁠rpmaster2 thank you, that is exactly the test it needed. I read it as a negative for my hypothesis: the slot path is hit on every run and the device is still lost at the same rate, with a freed texture among the faults. So fix/heap-slot-lifetime is not a fix for #597 and I am not proposing it as one. (Seven runs cannot show a small effect either way, but a freed-texture fault on the branch is enough to say the gap I closed is not the one being hit.)

On the fault with no freed node, one thing about how to read the line. shadow::near prints the closest title memory copy starting below the address and never checks that the address is inside it. So "offset 0x670000" means inside only if it is smaller than the +len printed just before it. If the line has no inside [...] list either, the address is in no live allocation and no recently freed one, which is what a read past the end of that copy looks like.

There is a path in main that can produce that. root_view in draw.rs binds root CBVs and SRVs by address alone: it finds the copy holding the first byte and passes its host address to Set*RootShaderResourceView / Set*RootConstantBufferView. D3D12 does no bounds check on root descriptors, so a shader that indexes beyond the end of the copy reads unmapped host memory. On the console the same read lands in whatever title memory follows, so it would be harmless there. I have not confirmed this is what happens; it is a reading of the code.

The log can settle it without another run, if you still have the removal line of fix run 3 (or main run 2):

  1. the full nearest title memory copy below it: START+LEN at host GPU, offset 0x670000 part, with the nearest above part and any inside [...] list;
  2. for the stopped draw or dispatch, the rootN=ADDR host (GPU, LEFT) entries.

If the fault address is one of those GPU values plus something at or beyond its LEFT, it is a root view read past the end of its copy. If the offset is below LEN, the address is inside a live copy and this idea is wrong too.

Small note on the counter: it logs only when the count is a power of two, so the last n printed is the count and the number of lines is not.

No hurry given the driver reset; VICTORY_D3D12_DEBUG=1 on the next round will help for the same reason.

AI-assisted analysis (Claude); read from the code at ffe310e, not tested against the title.

**@⁠rouges78** on GitHub · 2026-11-24 14:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7134174040) @⁠rpmaster2 thank you, that is exactly the test it needed. I read it as a negative for my hypothesis: the slot path is hit on every run and the device is still lost at the same rate, with a freed texture among the faults. So `fix/heap-slot-lifetime` is not a fix for #597 and I am not proposing it as one. (Seven runs cannot show a small effect either way, but a freed-texture fault on the branch is enough to say the gap I closed is not the one being hit.) On the fault with no freed node, one thing about how to read the line. `shadow::near` prints the closest title memory copy starting *below* the address and never checks that the address is inside it. So "offset 0x670000" means inside only if it is smaller than the `+len` printed just before it. If the line has no `inside [...]` list either, the address is in no live allocation and no recently freed one, which is what a read past the end of that copy looks like. There is a path in `main` that can produce that. `root_view` in `draw.rs` binds root CBVs and SRVs by address alone: it finds the copy holding the first byte and passes its host address to `Set*RootShaderResourceView` / `Set*RootConstantBufferView`. D3D12 does no bounds check on root descriptors, so a shader that indexes beyond the end of the copy reads unmapped host memory. On the console the same read lands in whatever title memory follows, so it would be harmless there. I have not confirmed this is what happens; it is a reading of the code. The log can settle it without another run, if you still have the removal line of fix run 3 (or main run 2): 1. the full `nearest title memory copy below it: START+LEN at host GPU, offset 0x670000` part, with the `nearest above` part and any `inside [...]` list; 2. for the stopped draw or dispatch, the `rootN=ADDR host (GPU, LEFT)` entries. If the fault address is one of those `GPU` values plus something at or beyond its `LEFT`, it is a root view read past the end of its copy. If the offset is below `LEN`, the address is inside a live copy and this idea is wrong too. Small note on the counter: it logs only when the count is a power of two, so the last `n` printed is the count and the number of lines is not. No hurry given the driver reset; `VICTORY_D3D12_DEBUG=1` on the next round will help for the same reason. AI-assisted analysis (Claude); read from the code at ffe310e, not tested against the title.
Author
Owner

@⁠bunbeans2-arch on GitHub · 2026-11-24 07:30 UTC · original · edited 2026-11-24 14:21 UTC

Same card here, with numbers from a few runs on it in case they help.

Setup: AMD Radeon RX 9070 XT, driver 32.0.32015.7029; Intel Core i9-9900K; 31.9 GB RAM; Windows 11 Pro build 22631. Diagnostics build (--profile diag --features diagnostics) of main d2a4bae plus the PRs named per run and a local input change of mine (keys pressed from a file; diagnostics only), title 1.0.2.1, VICTORY_D3D12_DRED=1, one cache dir shared by all runs. After the first run's first-time setup, every run had the same input: Enter at the account screen and at the start artwork.

main d2a4bae: host GPU device removed 241 s after start, 23.4 s after the one-time warning no free dynamic descriptor slots: a table is not made. #336 is for that case (its code comment names world runs on an RX 9070 XT, #59), and with it (through #493) that warning did not appear in any run below. It may be what you hit too.

With #493 (it carries #336's two commits) and more on top, all from the opening cutscene:

run build (on d2a4bae) ended by after
v3 #493 + #454 host GPU device removed 19.3 min
v10 #493 + #454 + #346 + #435 the title's own int3 (below) 18.2 min
v11 as v10 + a local patch of that int3 host GPU device removed 3.8 min
v12 as v11 + #483 (merged by hand: it conflicts with #493's dynamic-slot sizing in descriptor/host.rs) host GPU device removed 27.8 min
v13 as v12 + #459, VICTORY_SHADER_LOOP_LIMIT=65536 no removal; I stopped it 30 min

No page fault at in any of these removals (main's either), and the work in flight differs each time. In v11 and v12 one list was in flight, stopped at command 92 of 111 (a compute dispatch) and at command 376 of 668. With one run per build I can't say any of these PRs changes how long it lasts, and v13 is one run too (see the loop-limit section below; per #71 a lower limit does not stop the world hang on NVIDIA, so I make no claim about the world hang from it).

  • #346: in v3, indirect kind 0: prepare failed (the rectangle-list refusal in execute_indirect) dropped 256.0/frame; with #346 there were no such lines in v10, v11 or v12. The picture behind the cutscene still stays black or a flat fill.
  • Frame time in the world (fps lines over 1000 ms/frame): v3 mean 3971.7 ms/frame, 2738.7 ms of it preparing copies; v12 mean 4540.2 ms/frame, 1822.8 ms copies.
  • Untranslated shaders, v12 (477 warnings): top reasons are "a select on an untracked mask" 104, "a lane mask holding lanes elsewhere read as data" 99, "a descriptor read only as data" 50, "an address in an SGPR that is no root parameter" 35, "a structured buffer of unknown stride" 35.

The title's own int3 after many minutes at these frame rates (18.2 min in v10). Two runs stopped with 0x80000003 in title code, at +0x5149aec (a #493-only run) and +0x63966f (v10). At +0x63966f the code is a pool allocator taking a slot from a free list: when the list head is 0x1fffe (empty), it jumps to the int3, and the code after it returns null, the same null the function's own early-out returns. +0x5149aec has the same instructions around its int3 (an inlined copy, it seems), and rax ends in 1fffe there too. I take it the title's pools run empty because frames take seconds here and slots come back too slowly. That is a guess I have not tested. Turning the int3 at +0x63966f into a NOP locally (v11, v12) just continues to that null return. I have no log of whether that path was taken, so I'm not proposing it.

A story save made in a run breaks the next start. In v3 the title wrote a story save 15.8 min after start. Every later start then lost the device 1.7 to 2.1 min after start, during the loading artwork: 5 runs on 4 builds, including the #493 + #454 build that had run 19.3 min in v3. With that save moved out of the save folder, the same build ran until my 5-minute stop. If someone else sees early losses after a long first run, that may be why. More on the cause below.

Update: that save-load loss goes away when one loop in one pixel shader stops sooner (24 more runs, same saved state each time). Builds: v12's, then with #459 added (it did not change the result), then with local diagnostics-only changes of mine on top.

  • Which draw: skipping the draws of the pipeline that pairs mesh shader 04b9be3756e8f41c with pixel shader 1af4a50c7fb40c97 avoided the loss (2 runs); skipping another candidate shader did not. The mesh shader has no backward branch; the pixel shader has 9.
  • The loop limit: with VICTORY_SHADER_LOOP_LIMIT at 4096 or 65536, 4 of 4 runs got past the load and ran until my stop. A local change that lowers the limit for 1af4a50c7fb40c97 only did the same (1 run), and so did lowering it for just one of that shader's seven counted loops (2 runs). Lowering the other loops without that one did not help (3 runs covering 5 of the other 6).
  • Default limit: every run where that pipeline drew, that loop had the default limit and the every-view read below was off lost the device, 13 of 13, 16 to 69 s after that pixel pipeline was created (and so did the 4 later test runs below).
  • What the loop does (my reading of the translated code, not tested beyond the runs above): it steps a uniform index and goes on while count - 1 > index, compared unsigned, where count is a dword read from a small structured buffer (2044-byte stride) through an SRV table. If the GPU reads 0 there, the bound wraps to the largest unsigned value and the loop only ends at the limit, which at the default would take far too long on every lane.
  • The title writes 5 there: reading that dword from title memory as each draw was recorded gave 5 in 200 of 200 reads, and 5 in the buffer the hang report named.
  • The host copy did not always match: a local check after each submission-time refresh, comparing the host copy of that dword with title memory, found it different three times in one run: once [0, 0, 0, 0] with the range not marked busy, twice [1, 0, 0, 1] with it marked busy (title memory held [5, 5, ...] each time). In another run, once [0, 0, 300, 0], not busy. All of these were in the same large heap copy, and I could not tie one to the draw that hung.
  • Fixing the copy did not help: re-copying the 4 KiB around each checked address when not busy made 0 of 50 checks differ, and the device was still lost 28 s after the pipeline was created. Also copying the 16 bytes from title memory when busy (2 runs): every one of the 100 logged busy copies already held [5, 5, ...] before it, and both runs lost the device (22 s and 48 s after the pipeline). So at refresh the copy of that dword was right in every case I logged.
  • The ranges marked busy: the only shader writes over that dword in a logged run were four compute shaders (0c0380d9ec648626, 54bcc8478432ba15, 738350c1a01b713a, a83a0864ccef9b67), each through one byte-address UAV over the whole 174 MB heap copy, so every record in that heap counts as busy while they are in a list. Skipping those four pipelines did not help either (lost 41 s after the pipeline, 1 run).
  • Instrumentation hides it: reading those title dwords for every placed view on every draw made both such runs clean; narrowing the read to views of that 2044-byte stride brought the loss back. That looks like timing within a submission to me, but I have not shown it.

Update 2: the cause of that save-load loss is a refused host view; a raw view there fixes it, as in #206 (5 more runs, same saved state).

  • What happens: buffer_srv in descriptor/host.rs makes the host view from the title's own description, and when the buffer's start in its host copy is not a multiple of the view's element size it makes none, so the slot reads zeros. With a local log of those views, every logged view of that 2044-byte buffer was structured with one 2044-byte element, and every one was refused: 243 of 243 in one run. They sat at 95 different offsets in the 174 MB heap copy, none a multiple of 2044 and all multiples of 16. So count reads 0 there and the loop only ends at the limit, as described above.
  • Why the log does not show it: buffer view not on an element of its host copy is a one-time warning, and in these runs it fires first for another buffer. A counter in my log reached 4000 other refused views before the loss in one run, and 34000 by my stop in a run that got past the load. The ones it listed were structured with stride 32 (64 or 96 bytes long), plus a few with stride 304 in another run.
  • Local check: giving only that buffer a raw view of the same bytes when its structured view is refused (the pixel shader reads the slot with a raw load): default loop limit, no device loss, and the run went on to my stop 183 s after the pipeline was created (1 run). The two log-only runs lost the device as before (43 s and 52 s after the pipeline).
  • #206 does this for every such view whose start is 16-byte aligned. With only #206 added to the build that lost the device (head 05981dd, merged cleanly): default limit, no loss, 215 s from the pipeline to my stop (1 run). A build of a public branch that carries it together with other open PRs also got past this load: no loss in 284 s (1 run).

So for this load a raw view in that slot is the fix, and the loop-limit workaround is not needed with it. #206 itself is a draft now: per the reports there, a raw view under a slot the shader declares structured faulted on an NVIDIA card, and its author plans a raw window only for slots declared raw. My local check is that narrower form for this one buffer, and it is enough here. Two things I have not shown: what the other refused views do to the picture, and why the every-view read above hid the hang. (Correction: an earlier version of this comment said my read covered only one record per view; the count is read at a fixed offset from the buffer's start.) Until that lands, VICTORY_SHADER_LOOP_LIMIT=65536 got past the load in my runs (the shader cache keys on the limit, so the first start rebuilds it).

**@⁠bunbeans2-arch** on GitHub · 2026-11-24 07:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7125067600) · edited 2026-11-24 14:21 UTC Same card here, with numbers from a few runs on it in case they help. **Setup:** AMD Radeon RX 9070 XT, driver 32.0.32015.7029; Intel Core i9-9900K; 31.9 GB RAM; Windows 11 Pro build 22631. Diagnostics build (`--profile diag --features diagnostics`) of `main` d2a4bae plus the PRs named per run and a local input change of mine (keys pressed from a file; diagnostics only), title 1.0.2.1, `VICTORY_D3D12_DRED=1`, one cache dir shared by all runs. After the first run's first-time setup, every run had the same input: Enter at the account screen and at the start artwork. **`main` d2a4bae:** host GPU device removed 241 s after start, 23.4 s after the one-time warning `no free dynamic descriptor slots: a table is not made`. #336 is for that case (its code comment names world runs on an RX 9070 XT, #59), and with it (through #493) that warning did not appear in any run below. It may be what you hit too. **With #493 (it carries #336's two commits) and more on top**, all from the opening cutscene: | run | build (on d2a4bae) | ended by | after | |---|---|---|---| | v3 | #493 + #454 | host GPU device removed | 19.3 min | | v10 | #493 + #454 + #346 + #435 | the title's own `int3` (below) | 18.2 min | | v11 | as v10 + a local patch of that `int3` | host GPU device removed | 3.8 min | | v12 | as v11 + #483 (merged by hand: it conflicts with #493's dynamic-slot sizing in `descriptor/host.rs`) | host GPU device removed | 27.8 min | | v13 | as v12 + #459, `VICTORY_SHADER_LOOP_LIMIT=65536` | no removal; I stopped it | 30 min | No `page fault at` in any of these removals (`main`'s either), and the work in flight differs each time. In v11 and v12 one list was in flight, stopped at command 92 of 111 (a compute dispatch) and at command 376 of 668. With one run per build I can't say any of these PRs changes how long it lasts, and v13 is one run too (see the loop-limit section below; per #71 a lower limit does not stop the world hang on NVIDIA, so I make no claim about the world hang from it). - **#346:** in v3, `indirect kind 0: prepare failed` (the rectangle-list refusal in `execute_indirect`) dropped 256.0/frame; with #346 there were no such lines in v10, v11 or v12. The picture behind the cutscene still stays black or a flat fill. - **Frame time in the world** (fps lines over 1000 ms/frame): v3 mean 3971.7 ms/frame, 2738.7 ms of it preparing copies; v12 mean 4540.2 ms/frame, 1822.8 ms copies. - **Untranslated shaders**, v12 (477 warnings): top reasons are "a select on an untracked mask" 104, "a lane mask holding lanes elsewhere read as data" 99, "a descriptor read only as data" 50, "an address in an SGPR that is no root parameter" 35, "a structured buffer of unknown stride" 35. **The title's own `int3` after many minutes at these frame rates** (18.2 min in v10). Two runs stopped with `0x80000003` in title code, at `+0x5149aec` (a #493-only run) and `+0x63966f` (v10). At `+0x63966f` the code is a pool allocator taking a slot from a free list: when the list head is `0x1fffe` (empty), it jumps to the `int3`, and the code after it returns null, the same null the function's own early-out returns. `+0x5149aec` has the same instructions around its `int3` (an inlined copy, it seems), and `rax` ends in `1fffe` there too. I take it the title's pools run empty because frames take seconds here and slots come back too slowly. That is a guess I have not tested. Turning the `int3` at `+0x63966f` into a NOP locally (v11, v12) just continues to that null return. I have no log of whether that path was taken, so I'm not proposing it. **A story save made in a run breaks the next start.** In v3 the title wrote a story save 15.8 min after start. Every later start then lost the device 1.7 to 2.1 min after start, during the loading artwork: 5 runs on 4 builds, including the #493 + #454 build that had run 19.3 min in v3. With that save moved out of the save folder, the same build ran until my 5-minute stop. If someone else sees early losses after a long first run, that may be why. More on the cause below. **Update: that save-load loss goes away when one loop in one pixel shader stops sooner (24 more runs, same saved state each time).** Builds: v12's, then with #459 added (it did not change the result), then with local diagnostics-only changes of mine on top. - **Which draw:** skipping the draws of the pipeline that pairs mesh shader `04b9be3756e8f41c` with pixel shader `1af4a50c7fb40c97` avoided the loss (2 runs); skipping another candidate shader did not. The mesh shader has no backward branch; the pixel shader has 9. - **The loop limit:** with `VICTORY_SHADER_LOOP_LIMIT` at 4096 or 65536, 4 of 4 runs got past the load and ran until my stop. A local change that lowers the limit for `1af4a50c7fb40c97` only did the same (1 run), and so did lowering it for just one of that shader's seven counted loops (2 runs). Lowering the other loops without that one did not help (3 runs covering 5 of the other 6). - **Default limit:** every run where that pipeline drew, that loop had the default limit and the every-view read below was off lost the device, 13 of 13, 16 to 69 s after that pixel pipeline was created (and so did the 4 later test runs below). - **What the loop does (my reading of the translated code, not tested beyond the runs above):** it steps a uniform index and goes on while `count - 1 > index`, compared unsigned, where `count` is a dword read from a small structured buffer (2044-byte stride) through an SRV table. If the GPU reads 0 there, the bound wraps to the largest unsigned value and the loop only ends at the limit, which at the default would take far too long on every lane. - **The title writes 5 there:** reading that dword from title memory as each draw was recorded gave 5 in 200 of 200 reads, and 5 in the buffer the hang report named. - **The host copy did not always match:** a local check after each submission-time refresh, comparing the host copy of that dword with title memory, found it different three times in one run: once `[0, 0, 0, 0]` with the range not marked busy, twice `[1, 0, 0, 1]` with it marked busy (title memory held `[5, 5, ...]` each time). In another run, once `[0, 0, 300, 0]`, not busy. All of these were in the same large heap copy, and I could not tie one to the draw that hung. - **Fixing the copy did not help:** re-copying the 4 KiB around each checked address when not busy made 0 of 50 checks differ, and the device was still lost 28 s after the pipeline was created. Also copying the 16 bytes from title memory when busy (2 runs): every one of the 100 logged busy copies already held `[5, 5, ...]` before it, and both runs lost the device (22 s and 48 s after the pipeline). So at refresh the copy of that dword was right in every case I logged. - **The ranges marked busy:** the only shader writes over that dword in a logged run were four compute shaders (`0c0380d9ec648626`, `54bcc8478432ba15`, `738350c1a01b713a`, `a83a0864ccef9b67`), each through one byte-address UAV over the whole 174 MB heap copy, so every record in that heap counts as busy while they are in a list. Skipping those four pipelines did not help either (lost 41 s after the pipeline, 1 run). - **Instrumentation hides it:** reading those title dwords for every placed view on every draw made both such runs clean; narrowing the read to views of that 2044-byte stride brought the loss back. That looks like timing within a submission to me, but I have not shown it. **Update 2: the cause of that save-load loss is a refused host view; a raw view there fixes it, as in #206 (5 more runs, same saved state).** - **What happens:** `buffer_srv` in `descriptor/host.rs` makes the host view from the title's own description, and when the buffer's start in its host copy is not a multiple of the view's element size it makes none, so the slot reads zeros. With a local log of those views, every logged view of that 2044-byte buffer was structured with one 2044-byte element, and every one was refused: 243 of 243 in one run. They sat at 95 different offsets in the 174 MB heap copy, none a multiple of 2044 and all multiples of 16. So `count` reads 0 there and the loop only ends at the limit, as described above. - **Why the log does not show it:** `buffer view not on an element of its host copy` is a one-time warning, and in these runs it fires first for another buffer. A counter in my log reached 4000 other refused views before the loss in one run, and 34000 by my stop in a run that got past the load. The ones it listed were structured with stride 32 (64 or 96 bytes long), plus a few with stride 304 in another run. - **Local check:** giving only that buffer a raw view of the same bytes when its structured view is refused (the pixel shader reads the slot with a raw load): default loop limit, no device loss, and the run went on to my stop 183 s after the pipeline was created (1 run). The two log-only runs lost the device as before (43 s and 52 s after the pipeline). - **#206** does this for every such view whose start is 16-byte aligned. With only #206 added to the build that lost the device (head 05981dd, merged cleanly): default limit, no loss, 215 s from the pipeline to my stop (1 run). A build of a public branch that carries it together with other open PRs also got past this load: no loss in 284 s (1 run). So for this load a raw view in that slot is the fix, and the loop-limit workaround is not needed with it. #206 itself is a draft now: per the reports there, a raw view under a slot the shader declares structured faulted on an NVIDIA card, and its author plans a raw window only for slots declared raw. My local check is that narrower form for this one buffer, and it is enough here. Two things I have not shown: what the other refused views do to the picture, and why the every-view read above hid the hang. (Correction: an earlier version of this comment said my read covered only one record per view; the count is read at a fixed offset from the buffer's start.) Until that lands, `VICTORY_SHADER_LOOP_LIMIT=65536` got past the load in my runs (the shader cache keys on the limit, so the first start rebuilds it).
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 14:36 UTC · original

@⁠rouges78 agreed, and thanks for taking it as the negative it is. For the record the branch did exercise what it claims: the slot counter fired on every fix run (19, 8, 15, and up to 512 within one run), the heap counter never fired. It simply does not touch the fault.

One detail that may matter to whoever picks this up next: of the removals I have on main, more than half print a freed node (inside freed ["texture 1024x1024 f98 ..."]), but two print none at all and the fault lands inside a title-memory copy instead. So there may be two faults to chase, and the freed-node one may not be the one that ends most runs.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 14:36 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7134644652) @⁠rouges78 agreed, and thanks for taking it as the negative it is. For the record the branch did exercise what it claims: the slot counter fired on every `fix` run (19, 8, 15, and up to 512 within one run), the heap counter never fired. It simply does not touch the fault. One detail that may matter to whoever picks this up next: of the removals I have on `main`, more than half print a freed node (`inside freed ["texture 1024x1024 f98 ..."]`), but two print none at all and the fault lands inside a title-memory copy instead. So there may be two faults to chase, and the freed-node one may not be the one that ends most runs. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Author
Owner

@⁠rouges78 on GitHub · 2026-11-24 18:39 UTC · original

@⁠rpmaster2 for the removals with no freed node: #951 measured that fault on NVIDIA (Aftermath, RTX 3080): mesh shaders read through root SRVs megabytes past the end of their title-memory copy. The fix is on a fork branch (gangg111/VIctory, gpu-189), and jamesn-xt backported it with a synthetic test on an RTX 4080. It would be the one to A/B with your 480 s procedure. AI-assisted (Claude); I have not run it.

**@⁠rouges78** on GitHub · 2026-11-24 18:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7140945059) @⁠rpmaster2 for the removals with no freed node: #951 measured that fault on NVIDIA (Aftermath, RTX 3080): mesh shaders read through root SRVs megabytes past the end of their title-memory copy. The fix is on a fork branch (`gangg111/VIctory`, `gpu-189`), and jamesn-xt backported it with a synthetic test on an RTX 4080. It would be the one to A/B with your 480 s procedure. AI-assisted (Claude); I have not run it.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 19:43 UTC · original

@⁠rouges78 thanks - #951 is exactly the shape of the fault that ends my long runs now, and your note on reading shadow::near is useful: our latest one prints no title memory copy below it; the nearest above: 0x6fbd80000+0x71ac0, so by that rule the address is in no live and no recently freed allocation.

What it looks like here, in case it changes where you would point: a 900 s run on a stack of open PRs (189/211/282/493/587 on ffe310e, --console series-s) survived 13 minutes, reached the credits and then the "Prologue" cutscene (up to 5,959 draws/frame), and ended with that no-freed-node fault. Every earlier removal on this host died at 3-5 minutes with inside freed ["texture ..."], so the fault you point at is the one that matters once the game gets further.

I fetched gangg111/VIctory gpu-189 and the two root-SRV commits (a3a8fe7, 94908df) cherry-pick cleanly onto ffe310e on their own, so tomorrow I will A/B exactly those two against main with the 480 s procedure and report both the fault shape and how far the run gets, not only whether it removes the device.

One caveat on the A/B: on this host the removal is not deterministic (main survived some 300-480 s runs and died in others), so I will run five per side and report the distribution, as with your branch.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7142499405) @⁠rouges78 thanks - #951 is exactly the shape of the fault that ends my long runs now, and your note on reading `shadow::near` is useful: our latest one prints `no title memory copy below it; the nearest above: 0x6fbd80000+0x71ac0`, so by that rule the address is in no live and no recently freed allocation. What it looks like here, in case it changes where you would point: a 900 s run on a stack of open PRs (189/211/282/493/587 on `ffe310e`, `--console series-s`) survived **13 minutes**, reached the credits and then the "Prologue" cutscene (up to 5,959 draws/frame), and ended with that no-freed-node fault. Every earlier removal on this host died at 3-5 minutes with `inside freed ["texture ..."]`, so the fault you point at is the one that matters once the game gets further. I fetched `gangg111/VIctory gpu-189` and the two root-SRV commits (`a3a8fe7`, `94908df`) cherry-pick cleanly onto `ffe310e` on their own, so tomorrow I will A/B exactly those two against `main` with the 480 s procedure and report both the fault shape and how far the run gets, not only whether it removes the device. One caveat on the A/B: on this host the removal is not deterministic (main survived some 300-480 s runs and died in others), so I will run five per side and report the distribution, as with your branch. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 20:12 UTC · original

@⁠rouges78 A/B of the #951 root-SRV commits on the stack that reaches the prologue, and it is a positive on this host.

Setup: main @⁠ffe310e + #189 + #211 + #282 + #493 + #587 (the stack from #1317), --console series-s, diag build, DRED on, 42 Enter presses over 1.83-7.31 s, RX 9070 XT / Adrenalin 26.11.2, 900 s cap.

build outcome max draws/frame max frame black frames
baseline device removed at 506 s (submission of 32 lists) 4,814 1,381 17
+ a3a8fe7 94908df no removal in 896 s (hit the cap) 5,175 13,027 15

So with the root-SRV copy in place the run lasted the full window instead of dying at 8.4 minutes, and it kept running long enough to reach frame 13,027 - ten times the baseline's last frame.

Caveats, because one pair is not proof:

  1. One run per side, and this host is not deterministic: the same baseline has survived 300-480 s in other runs today. I will repeat the pair before calling it settled.
  2. The baseline fault shape here was after a submission of 32 lists with no inside freed [...] list and no no title memory copy phrase either, so I cannot say from this run alone that the fix removed the exact shape you described - only that the removal did not happen with it.
  3. My merge is not the author's branch: a3a8fe7 conflicted in draw.rs with #493's tabled root-SRV path, and I resolved it by keeping the tabled branch, using the value binding, and keeping gpu-189's VICTORY_ROOT_LOG diagnostic; 94908df then applied as a no-op. If the repeat holds, I will rebuild from gangg111/VIctory gpu-189 directly to rule my resolution out.

I will also try #1388 as you suggested for the no-freed-node shape on the baseline, since the two may be the same defect seen from different sides.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 20:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7143202386) @⁠rouges78 A/B of the #951 root-SRV commits on the stack that reaches the prologue, and it is a positive on this host. Setup: `main` @⁠ffe310e + #189 + #211 + #282 + #493 + #587 (the stack from #1317), `--console series-s`, diag build, DRED on, 42 `Enter` presses over 1.83-7.31 s, RX 9070 XT / Adrenalin 26.11.2, 900 s cap. | build | outcome | max draws/frame | max frame | black frames | | --- | --- | --- | --- | --- | | baseline | device removed at **506 s** (submission of 32 lists) | 4,814 | 1,381 | 17 | | + `a3a8fe7` `94908df` | **no removal in 896 s** (hit the cap) | 5,175 | **13,027** | 15 | So with the root-SRV copy in place the run lasted the full window instead of dying at 8.4 minutes, and it kept running long enough to reach frame 13,027 - ten times the baseline's last frame. Caveats, because one pair is not proof: 1. One run per side, and this host is not deterministic: the same baseline has survived 300-480 s in other runs today. I will repeat the pair before calling it settled. 2. The baseline fault shape here was `after a submission of 32 lists` with no `inside freed [...]` list and no `no title memory copy` phrase either, so I cannot say from this run alone that the fix removed the exact shape you described - only that the removal did not happen with it. 3. My merge is not the author's branch: `a3a8fe7` conflicted in `draw.rs` with #493's tabled root-SRV path, and I resolved it by keeping the tabled branch, using the value binding, and keeping gpu-189's `VICTORY_ROOT_LOG` diagnostic; `94908df` then applied as a no-op. If the repeat holds, I will rebuild from `gangg111/VIctory gpu-189` directly to rule my resolution out. I will also try #1388 as you suggested for the no-freed-node shape on the baseline, since the two may be the same defect seen from different sides. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Author
Owner

@⁠rpmaster2 on GitHub · 2026-11-24 20:17 UTC · original

A scope correction to my previous comment, before anyone reads the 896 vs 506 s as an improvement.

Both runs in that pair ended in the credits cutscene, not in the prologue: the only run today that reached the prologue is the 13-minute one described in #1317. Since the two builds were showing different amounts of the same credits sequence at different times, the survival difference can be scene content rather than the fix - a longer run may simply have had more left to draw.

So the honest reading of that pair is: with the root-SRV commits the run did not lose the device in 896 s, but I cannot yet separate the fix from the content. What would separate them is either (a) the same scene reached in both, or (b) a repeat pair with the frame schedule that reliably reaches the prologue, counting how far each gets, not only whether it dies.

I will run the repeat that way. Until then, treat the number as "no removal in 15 minutes on the branch", not as "the fix removed the fault".

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

**@⁠rpmaster2** on GitHub · 2026-11-24 20:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7143310728) A scope correction to my previous comment, before anyone reads the 896 vs 506 s as an improvement. Both runs in that pair ended in the **credits cutscene**, not in the prologue: the only run today that reached the prologue is the 13-minute one described in #1317. Since the two builds were showing different amounts of the same credits sequence at different times, the survival difference can be scene content rather than the fix - a longer run may simply have had more left to draw. So the honest reading of that pair is: with the root-SRV commits the run did not lose the device in 896 s, but I cannot yet separate the fix from the content. What would separate them is either (a) the same scene reached in both, or (b) a repeat pair with the frame schedule that reliably reaches the prologue, counting how far each gets, not only whether it dies. I will run the repeat that way. Until then, treat the number as "no removal in 15 minutes on the branch", not as "the fix removed the fault". AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:49 UTC · original

Automated triage for the maintainers.

@⁠TheOnlyTGKK, the environment lines in the report are still template placeholders. Please fill in:

  • the Windows build,
  • the GPU driver version,
  • the VIctory commit (git rev-parse --short HEAD).

Several fixes for what this thread found have landed since the report, so a run on current main (diag build, VICTORY_D3D12_DRED=1) with the complete host GPU device removed ... line would tell us which failure is left:

  • Dynamic descriptor slots running out: merged in #336. Since 3c81420, a draw whose table gets no slots is dropped (crates/victory-gpu/src/draw.rs).
  • Indirect budget wrap (rouges78, acleofe): fixed on main. The clamp in crates/victory-gpu/src/indirect.rs now has one group charge the records in order (since 256d7b9). The fork branch fix/indirect-budget-wrap is therefore superseded.
  • Root SRV/UAV reads past the end of their title-memory copy (the no-freed-node shape, #951): d71c388 reads root views through bounded views of the host copy, so reads past the copy give 0.

The remaining inside freed ["texture ..."] removals on the RX 9070 XT are tracked in #557.

The untranslated-shader warnings are separate rendering gaps, with several open PRs. The fork branches for them mentioned above (LAKSHYA-cmd-tech's mask branches) are not PRs yet. Pull requests are open to everyone, so please open them as PRs to get them reviewed.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/597#issuecomment-7149996534) <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-24T20:17:21Z at=2026-11-25T01:49:14Z --> Automated triage for the maintainers. @⁠TheOnlyTGKK, the environment lines in the report are still template placeholders. Please fill in: - the Windows build, - the GPU driver version, - the VIctory commit (`git rev-parse --short HEAD`). Several fixes for what this thread found have landed since the report, so a run on current `main` (diag build, `VICTORY_D3D12_DRED=1`) with the complete `host GPU device removed ...` line would tell us which failure is left: - **Dynamic descriptor slots running out:** merged in #336. Since 3c81420, a draw whose table gets no slots is dropped (`crates/victory-gpu/src/draw.rs`). - **Indirect budget wrap** (rouges78, acleofe): fixed on `main`. The clamp in `crates/victory-gpu/src/indirect.rs` now has one group charge the records in order (since 256d7b9). The fork branch `fix/indirect-budget-wrap` is therefore superseded. - **Root SRV/UAV reads past the end of their title-memory copy** (the no-freed-node shape, #951): d71c388 reads root views through bounded views of the host copy, so reads past the copy give 0. The remaining `inside freed ["texture ..."]` removals on the RX 9070 XT are tracked in #557. The untranslated-shader warnings are separate rendering gaps, with several open PRs. The fork branches for them mentioned above (LAKSHYA-cmd-tech's mask branches) are not PRs yet. Pull requests are open to everyone, so please open them as PRs to get them reviewed. --- _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#597
No description provided.