World load on NVIDIA with no device removal: title breakpoint (0x80000003) after ~6.7 min, INSTANCE_LIST pool full (45000/45000) #698

Open
opened 2026-11-26 04:13:27 +00:00 by github-bot · 31 comments
Owner

@⁠walterwallaceson on GitHub · 2026-11-24 07:00 UTC · original

With the device removal out of the way (#493 + #483), the world load on this machine now ends about 6.5–7 minutes in with the title stopping itself: 0x80000003 on 7 threads at once. In both runs the title's own crash report (written to temp\*.crash.log in the data folder) shows its INSTANCE_LIST pool exactly full.

Setup

What happens

  • Intro, loading screens, the first mission's title card, the opening cutscene's subtitles and the opening credits render; the 3D scene stays black. 0.2–1.8 fps in the world, dynamic descriptor slots run out (draws dropped up to 65536), no device removal.
  • Then the title hits 0x80000003 on 7 threads, all with the same stack; it writes its crash report and tries to upload a minidump, which the network policy blocks.
run 1 run 2
breakpoint +0x5149aec +0x63966f
stack +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca +0x63966f, +0x3e54ad0, +0x257035e, +0x221c29c, +0x2215eca
game running time / frame 6m49s / 1462 6m39s / 1025
INSTANCE_LIST 45000/45000 45000/45000
BUILDING 22084/22500 21961/22500
OBJECT 17108/27500 17891/27500
streaming requests 1116 3645
tile heap used 3290 of 6236 MB 4671 of 6236 MB
SRL state Prestream Prestream
Paused Yes Yes

The breakpoint address differs between the runs but the pool state is the same, so my guess (not verified) is that the title asserts on a pool overflow wherever the next allocation lands, and that the instance lists are not released fast enough at under 1 fps with many draws dropped. That would make this a consequence of the slow, mostly-dropped world rendering rather than a separate bug, but I haven't confirmed which code fills the pool.

No game data in this report (the crash report file itself is not attached; it holds the title's internal IDs).

AI-assisted (Claude Code); everything above was run on my machine.

**@⁠walterwallaceson** on GitHub · 2026-11-24 07:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/698) With the device removal out of the way (#493 + #483), the world load on this machine now ends about 6.5–7 minutes in with the title stopping itself: `0x80000003` on 7 threads at once. In both runs the title's own crash report (written to `temp\*.crash.log` in the data folder) shows its `INSTANCE_LIST` pool exactly full. **Setup** - Windows 10 22H2 (19045.6466), NVIDIA RTX 3070, driver 621.14, Ryzen 5 5600X, 32 GB, release build - `d2a4bae` + #175 (19aec59), #233 + #320 + #439 (f653ea4), #55 (56f1d41), #89 (081afbd), #336 (e8d3b64), #334 (af2aecf), #493 (c48b240), #483 (65a161d); #493/#483 conflict resolved as described on #493 - `victory run --execute`, no diagnostics variables **What happens** - Intro, loading screens, the first mission's title card, the opening cutscene's subtitles and the opening credits render; the 3D scene stays black. 0.2–1.8 fps in the world, dynamic descriptor slots run out (draws dropped up to 65536), no device removal. - Then the title hits `0x80000003` on 7 threads, all with the same stack; it writes its crash report and tries to upload a minidump, which the network policy blocks. | | run 1 | run 2 | |---|---|---| | breakpoint | `+0x5149aec` | `+0x63966f` | | stack | `+0x5149aec`, `+0xa5db22`, `+0x5453ac7`, `+0x23d0f9a`, `+0x23d1211`, `+0x257035e`, `+0x221c29c`, `+0x2215eca` | `+0x63966f`, `+0x3e54ad0`, `+0x257035e`, `+0x221c29c`, `+0x2215eca` | | game running time / frame | 6m49s / 1462 | 6m39s / 1025 | | `INSTANCE_LIST` | **45000/45000** | **45000/45000** | | `BUILDING` | 22084/22500 | 21961/22500 | | `OBJECT` | 17108/27500 | 17891/27500 | | streaming requests | 1116 | 3645 | | tile heap used | 3290 of 6236 MB | 4671 of 6236 MB | | SRL state | Prestream | Prestream | | `Paused` | Yes | Yes | The breakpoint address differs between the runs but the pool state is the same, so my guess (not verified) is that the title asserts on a pool overflow wherever the next allocation lands, and that the instance lists are not released fast enough at under 1 fps with many draws dropped. That would make this a consequence of the slow, mostly-dropped world rendering rather than a separate bug, but I haven't confirmed which code fills the pool. No game data in this report (the crash report file itself is not attached; it holds the title's internal IDs). AI-assisted (Claude Code); everything above was run on my machine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:27 +00:00
Author
Owner

@⁠cj5k9dnkfd-afk on GitHub · 2026-11-24 07:38 UTC · original

Hi anyone have the game Link

**@⁠cj5k9dnkfd-afk** on GitHub · 2026-11-24 07:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7125214159) Hi anyone have the game Link
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 07:46 UTC · original

This pool exhaustion (INSTANCE_LIST: 45000/45000) is directly coupled with the dynamic descriptor exhaustion and dropped draws during world load.

Here is the chain of events:

  1. Instance Culling & Unknown Stride: As identified in PR #704, the title's world geometry and instance-culling compute shaders select structured buffers via runtime heap indices. Previously, unknown-stride structured buffers failed translation or returned zeros on Nvidia due to typed/structured view mismatches, causing instance-culling passes to drop output.
  2. Descriptor Pool Depletion: When dynamic descriptor heaps hit their ceiling (e.g. 65,536 on Nvidia), HostHeap::dynamic drops further draws/dispatches. Unexecuted lists leave their allocated instance lists unconsumed in the guest heap.
  3. Remediation:
    • Applying PR #688 (dynamic-slot-reclaim) allows dynamic descriptor slots of executed command lists to be reclaimed, preventing the dynamic descriptor pool from saturating at 65,536.
    • Applying PR #704 ensures unknown-stride structured buffer reads resolve to raw views with matching byte offsets, allowing the instance culling shaders to complete correctly.
    • Together with PR #653 fixes (lowering untracked/constant masks in v_cndmask_b32 and _co_ci_u32), the instance-culling compute pipelines will no longer abort translation or drop dispatches.
**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 07:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7125363012) This pool exhaustion (`INSTANCE_LIST: 45000/45000`) is directly coupled with the dynamic descriptor exhaustion and dropped draws during world load. Here is the chain of events: 1. **Instance Culling & Unknown Stride**: As identified in PR #704, the title's world geometry and instance-culling compute shaders select structured buffers via runtime heap indices. Previously, unknown-stride structured buffers failed translation or returned zeros on Nvidia due to typed/structured view mismatches, causing instance-culling passes to drop output. 2. **Descriptor Pool Depletion**: When dynamic descriptor heaps hit their ceiling (e.g. 65,536 on Nvidia), `HostHeap::dynamic` drops further draws/dispatches. Unexecuted lists leave their allocated instance lists unconsumed in the guest heap. 3. **Remediation**: - Applying **PR #688** (`dynamic-slot-reclaim`) allows dynamic descriptor slots of executed command lists to be reclaimed, preventing the dynamic descriptor pool from saturating at 65,536. - Applying **PR #704** ensures unknown-stride structured buffer reads resolve to raw views with matching byte offsets, allowing the instance culling shaders to complete correctly. - Together with **PR #653 fixes** (lowering untracked/constant masks in `v_cndmask_b32` and `_co_ci_u32`), the instance-culling compute pipelines will no longer abort translation or drop dispatches.
Author
Owner

@⁠Tanju42 on GitHub · 2026-11-24 08:49 UTC · original

Second NVIDIA machine, same class — but our variant is frame-driven, not pool-driven. Adding the data in case it narrows the trigger.

Setup

  • Windows 11 Insider 26300, NVIDIA RTX 5060 Laptop 8 GB (driver 591.74), 32 GB
  • current main, --profile diag --features diagnostics; victory run --execute
  • the user's dump is served from an SMB share over Wi-Fi (files: virtual drive G on the UNC; loader binds everything, 0 missing)

Two runs: the real GPU and WARP crash at the same frame with the same offset

run 1 (real GPU) run 2 (VICTORY_D3D12_WARP=1)
breakpoint +0x4dcbc9d +0x4dcbc9d
stack +0x4dcbc9d, +0x4e52a83, +0x4e529c4, +0x5ab13ed, +0x21b70b1, +0x1d83996, +0x81afb9, … identical
running time / frame 2m17s / 82 3m06s / 82
TileHeap 271 of 6236 MB 271 of 6236 MB
streaming requests 0 0
Paused No No
device removal none none

Unlike your runs, Paused: No, no pool pressure visible (tile heap barely filled), and the breakpoint is the same offset on the same frame number despite 45% different wall time — so the title seems to stop on a per-frame condition here (frame 82 of the load sequence?), not on a pool overflow. All MEMORYINFO counters read 0/0 in the title's own crash report on both runs.

If a per-frame assert at a fixed load-sequence frame is a second path to the same end, the WARP column may be a cheap repro for it: on the software adapter the whole pre-crash stretch is identical per frame, no driver behavior in the loop at all.

Happy to capture a VICTORY_LOG=victory=trace tail around the stop, or bisect environment differences (local-disk dump vs SMB), on request. No game data in this report. AI-assisted; both runs measured on my machine.

**@⁠Tanju42** on GitHub · 2026-11-24 08:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7126599082) Second NVIDIA machine, same class — but our variant is frame-driven, not pool-driven. Adding the data in case it narrows the trigger. **Setup** - Windows 11 Insider 26300, NVIDIA RTX 5060 Laptop 8 GB (driver 591.74), 32 GB - current `main`, `--profile diag --features diagnostics`; `victory run --execute` - the user's dump is served from an SMB share over Wi-Fi (`files: virtual drive G` on the UNC; loader binds everything, 0 missing) **Two runs: the real GPU and WARP crash at the same frame with the same offset** | | run 1 (real GPU) | run 2 (`VICTORY_D3D12_WARP=1`) | |---|---|---| | breakpoint | `+0x4dcbc9d` | `+0x4dcbc9d` | | stack | `+0x4dcbc9d, +0x4e52a83, +0x4e529c4, +0x5ab13ed, +0x21b70b1, +0x1d83996, +0x81afb9, …` | identical | | running time / frame | 2m17s / **82** | 3m06s / **82** | | TileHeap | 271 of 6236 MB | 271 of 6236 MB | | streaming requests | 0 | 0 | | `Paused` | No | No | | device removal | none | none | Unlike your runs, `Paused: No`, no pool pressure visible (tile heap barely filled), and the breakpoint is the *same offset on the same frame number* despite 45% different wall time — so the title seems to stop on a per-frame condition here (frame 82 of the load sequence?), not on a pool overflow. All MEMORYINFO counters read 0/0 in the title's own crash report on both runs. If a per-frame assert at a fixed load-sequence frame is a second path to the same end, the WARP column may be a cheap repro for it: on the software adapter the whole pre-crash stretch is identical per frame, no driver behavior in the loop at all. Happy to capture a `VICTORY_LOG=victory=trace` tail around the stop, or bisect environment differences (local-disk dump vs SMB), on request. No game data in this report. AI-assisted; both runs measured on my machine.
Author
Owner

@⁠Sil3ntGam3r on GitHub · 2026-11-24 09:25 UTC · original

RTX 3070 8 GB, driver 621.14, Windows 11 (26300); diag build, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1, fresh shader cache.

  • main c7a5f49 + #89 #493 #483 #189 #206 #469 #459 #454: stopped at 6m47s, 0x80000003 at +0x5149aec (same stack as run 1 above); INSTANCE_LIST 45000/45000, BUILDING 22429/22500, Paused: No; 42 shaders refused as a structured buffer of unknown stride.
  • the same on main 8e79c80 plus #704 (with #193) and #688: 11+ minutes, no breakpoint, no device removal. No unknown-stride refusals left; draws dropped without a host pipeline went from about 4,000 to 120–225 per frame; about 1 fps. The scene behind the credit text is still black. The largest remaining refusal reasons (unique shaders): descriptor read only as data 103, v_readfirstlane in divergent control flow 101, select on an untracked mask 97, lane mask holding lanes elsewhere read as data 85.

Merging needed some glue. #483's guard slot has to come after #704's alias slots (guard_slot = alias_base + ALIASES), because shaders reach the aliases through the heap. #704's GPU tests need the guard dword filled. #493's root-SRV slot goes through #688's take_dynamic. All 348 tests pass on the merge. (AI-assisted test run.)

**@⁠Sil3ntGam3r** on GitHub · 2026-11-24 09:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7127404372) RTX 3070 8 GB, driver 621.14, Windows 11 (26300); diag build, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`, fresh shader cache. - main `c7a5f49` + #89 #493 #483 #189 #206 #469 #459 #454: stopped at 6m47s, `0x80000003` at `+0x5149aec` (same stack as run 1 above); `INSTANCE_LIST` 45000/45000, `BUILDING` 22429/22500, `Paused: No`; 42 shaders refused as `a structured buffer of unknown stride`. - the same on main `8e79c80` plus #704 (with #193) and #688: 11+ minutes, no breakpoint, no device removal. No unknown-stride refusals left; draws dropped without a host pipeline went from about 4,000 to 120–225 per frame; about 1 fps. The scene behind the credit text is still black. The largest remaining refusal reasons (unique shaders): descriptor read only as data 103, `v_readfirstlane` in divergent control flow 101, select on an untracked mask 97, lane mask holding lanes elsewhere read as data 85. Merging needed some glue. #483's guard slot has to come after #704's alias slots (`guard_slot = alias_base + ALIASES`), because shaders reach the aliases through the heap. #704's GPU tests need the guard dword filled. #493's root-SRV slot goes through #688's `take_dynamic`. All 348 tests pass on the merge. (AI-assisted test run.)
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 09:56 UTC · original

Regarding the INSTANCE_LIST pool overflow (45,000/45,000) and the 3D scene remaining black:

The root cause is in crates/victory-gpu/src/list.rs:1074 (dispatch_mesh_x). In GTA VI, 3D world geometry instances are dispatched via indirect mesh dispatches (indirect != 0). However, dispatch_mesh_x previously contained:

if indirect != 0 {
    static ONCE: std::sync::Once = std::sync::Once::new();
    ONCE.call_once(|| tracing::warn!("indirect mesh dispatches dropped"));
    return;
}

Because every indirect mesh dispatch was dropped, none of the world geometry instances were drawn or retired. Instance allocations continued to accumulate until the engine hit its 45,000 pool limit and asserted with 0x80000003.

The backend indirect execution infrastructure (State::execute_indirect in draw.rs with kind = 10 (MESH) and stride 12, as well as the argument clamp in indirect.rs) is already fully implemented. We have patched dispatch_mesh_x to execute them:

if indirect != 0 {
    const MESH: u32 = 10;
    const STRIDE: u32 = 12;
    with_state(this, |list, s| {
        s.execute_indirect(list, (MESH, STRIDE, x.max(1)), indirect, None);
    });
    return;
}

The fix and synthetic tests are available in branch:
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-indirect-mesh-dispatch
(PR: https://github.com/LAKSHYA-cmd-tech/VIctory/pull/2)

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 09:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7128092666) Regarding the `INSTANCE_LIST` pool overflow (45,000/45,000) and the 3D scene remaining black: The root cause is in `crates/victory-gpu/src/list.rs:1074` (`dispatch_mesh_x`). In GTA VI, 3D world geometry instances are dispatched via indirect mesh dispatches (`indirect != 0`). However, `dispatch_mesh_x` previously contained: ```rust if indirect != 0 { static ONCE: std::sync::Once = std::sync::Once::new(); ONCE.call_once(|| tracing::warn!("indirect mesh dispatches dropped")); return; } ``` Because every indirect mesh dispatch was dropped, none of the world geometry instances were drawn or retired. Instance allocations continued to accumulate until the engine hit its 45,000 pool limit and asserted with `0x80000003`. The backend indirect execution infrastructure (`State::execute_indirect` in `draw.rs` with `kind = 10` (MESH) and stride 12, as well as the argument clamp in `indirect.rs`) is already fully implemented. We have patched `dispatch_mesh_x` to execute them: ```rust if indirect != 0 { const MESH: u32 = 10; const STRIDE: u32 = 12; with_state(this, |list, s| { s.execute_indirect(list, (MESH, STRIDE, x.max(1)), indirect, None); }); return; } ``` The fix and synthetic tests are available in branch: `https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/gpu-indirect-mesh-dispatch` (PR: https://github.com/LAKSHYA-cmd-tech/VIctory/pull/2)
Author
Owner

@⁠Sil3ntGam3r on GitHub · 2026-11-24 10:55 UTC · original

Follow-up with the build from my comment above (main 8e79c80 + #89 #493 #483 #189 #206 #469 #459 #454 #704 #688, diag build, VICTORY_SHADER_LOOP_LIMIT=32, VICTORY_D3D12_DRED=1), RTX 3070 / 621.14 / Windows 11; a second run with the shader and pipeline caches warm:

  • 20+ minutes with no device removal and no title breakpoint.
  • The opening cutscene plays through (credits, then a few full-screen colour changes), and then the title hands control to the player: the first movement tutorial prompt appears, and holding W on the keyboard stand-in pad dismisses it, so input reaches gameplay. The 3D scene stays black throughout; only the 2D layer (subtitles, prompts) shows.
  • Steady state with warm caches: 0 pipelines being made, about 0.6 fps, 2,000–2,700 draws/frame drawn, about 1,100–1,400 dropped without a host pipeline (refused programs) and about 1,500 indirect dropped. No files opened after the cutscene.

(AI-assisted test run.)

**@⁠Sil3ntGam3r** on GitHub · 2026-11-24 10:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7129417261) Follow-up with the build from my comment above (main `8e79c80` + #89 #493 #483 #189 #206 #469 #459 #454 #704 #688, diag build, `VICTORY_SHADER_LOOP_LIMIT=32`, `VICTORY_D3D12_DRED=1`), RTX 3070 / 621.14 / Windows 11; a second run with the shader and pipeline caches warm: - 20+ minutes with no device removal and no title breakpoint. - The opening cutscene plays through (credits, then a few full-screen colour changes), and then the title hands control to the player: the first movement tutorial prompt appears, and holding W on the keyboard stand-in pad dismisses it, so input reaches gameplay. The 3D scene stays black throughout; only the 2D layer (subtitles, prompts) shows. - Steady state with warm caches: 0 pipelines being made, about 0.6 fps, 2,000–2,700 draws/frame drawn, about 1,100–1,400 dropped without a host pipeline (refused programs) and about 1,500 indirect dropped. No files opened after the cutscene. (AI-assisted test run.)
Author
Owner

@⁠Sunkiller-qc on GitHub · 2026-11-24 13:13 UTC · original

The run 1 stop (int3 at +0x5149aec, same stack) has also been reported outside this issue:

  • #71, WalliceCariasPerussio: +0x5149aec around 6 min into the opening cutscene, in both Series S and X modes, in state Prestream.
  • #597, bunbeans2-arch, on AMD (RX 9070 XT): one run at +0x5149aec and one at +0x63966f, the run 2 address here. They read +0x63966f as a pool allocator hitting an empty free list.

So it's not NVIDIA-specific. Sil3ntGam3r's result above is the best lead so far: with #704 (and #193) plus #688, the unknown-stride refusals went to zero and the run lasted 11+ min with no breakpoint.

**@⁠Sunkiller-qc** on GitHub · 2026-11-24 13:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7132522145) The run 1 stop (`int3` at `+0x5149aec`, same stack) has also been reported outside this issue: - #71, WalliceCariasPerussio: `+0x5149aec` around 6 min into the opening cutscene, in both Series S and X modes, in state `Prestream`. - #597, bunbeans2-arch, on AMD (RX 9070 XT): one run at `+0x5149aec` and one at `+0x63966f`, the run 2 address here. They read `+0x63966f` as a pool allocator hitting an empty free list. So it's not NVIDIA-specific. Sil3ntGam3r's result above is the best lead so far: with #704 (and #193) plus #688, the unknown-stride refusals went to zero and the run lasted 11+ min with no breakpoint.
Author
Owner

@⁠WalliceCariasPerussio on GitHub · 2026-11-24 14:09 UTC · original

RTX 5060 8 GB: the title's int3 at about 6.5 to 7 minutes is its pool allocator running out of slots. An opt-in hook gets past it: 17+ minutes in the world.

Setup: RTX 5060 8 GB (driver 621.14), Xeon E5-2680 v4, 16 GB RAM, Windows 11 26200, title 1.0.2.1, Series S mode, diag builds.

Stack: 8e79c80 plus:

1. A fixed point in the cutscene, not a time-out. Four of my crash contexts stop at title frame 920, 950, 945 and 935. That is 6m09 to 6m49 of game time, at frame rates from 0.3 to 1.3 fps.

  • Every report shows INSTANCE_LIST 45000/45000.
  • The later ones also show BUILDING 22500/22500.
  • So the pools fill at the same place in the opening cutscene. A low frame rate is not what fills them.

2. The int3 sites are copies of one pool allocator.

  • +0x5149aec (inlined) and +0x63966f are the same code.
  • It pops the free list with a 17-bit index: and r32, 0x1ffff, then lock cmpxchg.
  • When the list is empty, it jumps to an int3. The instruction right after that int3 is xor reg, reg, on the way to the function's own null return (as bunbeans2 described in #597).
  • The 1.0.2.1 executable has 5,776 copies of this allocator and 2,205 pool-empty int3 sites of that shape.

3. VICTORY_POOL_NO_ASSERT, an opt-in diagnostic in the style of #454.

  • It checks the build hash and the three bytes at each site, then writes a NOP over the int3 only.
  • With the two known sites, the run passed the old point. It stopped at another copy, +0x5290e65, with BUILDING full.
  • A scan that accepts any register then also caught +0x1fa88e4.
  • With all 2,205 sites: 17+ minutes in the world, no int3 and no device removal. The movement prompt showed. I ended the run by hand.
  • A caller that doesn't expect null could still fault later. None did in this run.

4. Code. The hook and a script that lists the sites from your own copy of the executable: https://gist.github.com/WalliceCariasPerussio/3f344d522a3a4f01c83fa12e02615396. The site list itself is left out because it is derived from the title, so the script builds it locally (pefile and capstone, read-only).

5. Image on the same card. Build: r4tedx's integration/testers at 92bc27b, plus mpDom's d6897fa (VICTORY_PRESENT_1440P), the #876 typeless-view change (5e3c9e2, b7a0a8c), #431 and the hook above. Series X mode.

  • The fallback presents full-screen world geometry: a street with balconies and stairs, shelves, barrels and a car. It is unlit and crossed by many long, stray triangles.
  • 14 minutes in the world with no device removal and no title int3. My own memory guard ended the run at 23.6 GB private (16 GB RAM, 32 GB page file).
  • In Series S mode the world targets are 1280x720, so the fallback needs that size. A one-line change lets VICTORY_PRESENT_1440P=1280x720 choose it. The latest 1280x720 colour target there was black.

Root cause. It is still the culling programs that don't run on 32-lane hosts, which is why the pools fill. The hook only keeps the title alive past that point.

AI-assisted (Claude Code); I ran the title on my own machine.

**@⁠WalliceCariasPerussio** on GitHub · 2026-11-24 14:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7133923123) **RTX 5060 8 GB: the title's int3 at about 6.5 to 7 minutes is its pool allocator running out of slots. An opt-in hook gets past it: 17+ minutes in the world.** **Setup:** RTX 5060 8 GB (driver 621.14), Xeon E5-2680 v4, 16 GB RAM, Windows 11 26200, title 1.0.2.1, Series S mode, diag builds. **Stack:** `8e79c80` plus: - Sil3ntGam3r's set above: #89 #493 #483 #189 #206 #469 #459 #454, #704 at `42538cd`, #688; - #638, #431, #24; - NuraadGit's `7425674`. **1. A fixed point in the cutscene, not a time-out.** Four of my crash contexts stop at title frame 920, 950, 945 and 935. That is 6m09 to 6m49 of game time, at frame rates from 0.3 to 1.3 fps. - Every report shows `INSTANCE_LIST` 45000/45000. - The later ones also show `BUILDING` 22500/22500. - So the pools fill at the same place in the opening cutscene. A low frame rate is not what fills them. **2. The int3 sites are copies of one pool allocator.** - `+0x5149aec` (inlined) and `+0x63966f` are the same code. - It pops the free list with a 17-bit index: `and r32, 0x1ffff`, then `lock cmpxchg`. - When the list is empty, it jumps to an `int3`. The instruction right after that `int3` is `xor reg, reg`, on the way to the function's own null return (as bunbeans2 described in #597). - The 1.0.2.1 executable has 5,776 copies of this allocator and 2,205 pool-empty `int3` sites of that shape. **3. `VICTORY_POOL_NO_ASSERT`, an opt-in diagnostic in the style of #454.** - It checks the build hash and the three bytes at each site, then writes a NOP over the `int3` only. - With the two known sites, the run passed the old point. It stopped at another copy, `+0x5290e65`, with `BUILDING` full. - A scan that accepts any register then also caught `+0x1fa88e4`. - With all 2,205 sites: 17+ minutes in the world, no int3 and no device removal. The movement prompt showed. I ended the run by hand. - A caller that doesn't expect null could still fault later. None did in this run. **4. Code.** The hook and a script that lists the sites from your own copy of the executable: https://gist.github.com/WalliceCariasPerussio/3f344d522a3a4f01c83fa12e02615396. The site list itself is left out because it is derived from the title, so the script builds it locally (`pefile` and `capstone`, read-only). **5. Image on the same card.** Build: r4tedx's `integration/testers` at `92bc27b`, plus mpDom's `d6897fa` (`VICTORY_PRESENT_1440P`), the #876 typeless-view change (`5e3c9e2`, `b7a0a8c`), #431 and the hook above. Series X mode. - The fallback presents full-screen world geometry: a street with balconies and stairs, shelves, barrels and a car. It is unlit and crossed by many long, stray triangles. - 14 minutes in the world with no device removal and no title int3. My own memory guard ended the run at 23.6 GB private (16 GB RAM, 32 GB page file). - In Series S mode the world targets are 1280x720, so the fallback needs that size. A one-line change lets `VICTORY_PRESENT_1440P=1280x720` choose it. The latest 1280x720 colour target there was black. **Root cause.** It is still the culling programs that don't run on 32-lane hosts, which is why the pools fill. The hook only keeps the title alive past that point. AI-assisted (Claude Code); I ran the title on my own machine.
Author
Owner

@⁠VibeClauding on GitHub · 2026-11-24 15:38 UTC · original

RTX 3070 8 GB data point for the pool-full stop, with @⁠Sil3ntGam3r's ten-PR set: on this machine it does not reach the 11+ / 20+ min runs, and stock main plus three of the PRs stops the same way.

Setup: Windows 11 Pro 26200, RTX 3070 8 GB, driver 610.88 (32.0.16.1088), Ryzen 7 5700X3D, 16 GB RAM + 24-48 GB page file. Title 1.0.2.1 (b99f876b…), Series X mode. Diag builds (--profile diag --features diagnostics), VICTORY_D3D12_DRED=1, stock TDR, VICTORY_KEYS Enter every 10 s to 240 s, then no input.

Build Run World How it ended
ffe310e (main) 1 ~50 s, 0.6-0.9 fps, 115 compute pipelines refused (wave64) 0x887A0006, DRED on dispatches of compute d3e44e754b3eb6aa with [heap 340912: null] entries
ffe310e + #493 c48b240 + #189 c047885 + #206 05981dd, loop limit 32 1 ~5 min, 1.3-1.5 fps, 0 refused, 582 not translated 0x80000003 at +0x5149aec (same stack as run 1 above) at 6m07s; INSTANCE_LIST 45000/45000, BUILDING 22329/22500, Paused: No, SRL Prestream, 735 streaming requests
8e79c80 + #89 #493 #483 #189 #206 #469 #459 #454 #704 (with #193) #688, loop limit 32, VICTORY_NO_WATCHDOG=1 1 (cold caches) ~5 min, median 0.9 fps (0.3-2.2), 1 refused (E_OUTOFMEMORY), 575 not translated 0x80000003 at +0x5149aec at 6m13s; INSTANCE_LIST 45000/45000, BUILDING 22308/22500, Paused: No, SRL Prestream, 1197 streaming requests
same 2 (warm caches) ~6m40s, median 1.0 fps (0.6-2.0), 0 refused, 605 not translated no title breakpoint; device removed (0x887A0005) on a 1x1x1 dispatch of compute e30970f1727063fd, empty breadcrumbs, no page fault, no Windows TDR event (4101)

So with the watchdog hooked and the device hang gone, this card still lands on the INSTANCE_LIST stop on a cold start, and the warm run traded it for a different device removal a little later.

It also supports @⁠WalliceCariasPerussio's reading that this is a fixed point in the cutscene, not a time-out. The two pool-full stops (three-PR and ten-PR cold) ran at different frame rates but stopped at the same spot:

  • Title crash logs: same camera position (-488.25, -5413.33, 3.03 vs -488.35, -5413.65, 3.03), game clock 11:50 in both, same AnimScene 0xe9f5cf99, same SRL in Prestream.
  • Frame: 1396 and 1524, which is 284 and 292 frames after Current Mission Name [F:1112] / [F:1232].
  • Series X mode here, so the absolute frame numbers differ from the 920-950 range above (Series S).

Differences from @⁠Sil3ntGam3r's build that may matter: driver 610.88 here vs 621.14; #189 at c047885, which still defaulted 32-lane hosts to Wave32 (54b333f, pushed after these runs, makes Emulate the default, so these runs are on the path with the divergent-lane issues discussed on #189); #459 is closed; 16 GB of RAM. I also had to resolve conflicts locally, which may not match theirs:

  • #89 vs 8e79c80 (list.rs): kept both checks (skip_mixed_packed_copy first, then title_written upload); prepare_footprint_upload uses defer_fill as main does.
  • #493 vs #483: as described on #493 (DYNAMIC/MIN_DYNAMIC plus one guard slot).
  • #704 vs #483: #704's alias slots go between the dynamic range and the guard. The guard has to be the last slot, because #483 sends any computed index at or past it to the guard (with the guard before the aliases, #704's unknown_stride_reads_reach_the_bytes_of_the_view_in_the_slot read all zeros). So alias_base = count + dynamic, guard_slot() = alias_base + ALIASES.
  • #704 vs #206 (buffer_srv/buffer_uav): #704's NumElements clamp applies to the element-aligned branch; #206's raw-window branch is unchanged.
  • Test harnesses from #189, #459 and #704 that predate #483 needed its guard dword filled (host::guard, as draw.rs does) and the new stride_table/options/track arguments. With that, cargo test -p victory-gpu -p victory-shader -- --test-threads=1 passes (64 + 152).

One run per row. Hashes, addresses, counts and crash-log fields only; no game data.

AI-assisted (Claude Code); everything above was run on my machine.

**@⁠VibeClauding** on GitHub · 2026-11-24 15:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7136376219) RTX 3070 8 GB data point for the pool-full stop, with @⁠Sil3ntGam3r's ten-PR set: on this machine it does **not** reach the 11+ / 20+ min runs, and stock `main` plus three of the PRs stops the same way. **Setup:** Windows 11 Pro 26200, RTX 3070 8 GB, driver 610.88 (32.0.16.1088), Ryzen 7 5700X3D, 16 GB RAM + 24-48 GB page file. Title 1.0.2.1 (`b99f876b…`), Series X mode. Diag builds (`--profile diag --features diagnostics`), `VICTORY_D3D12_DRED=1`, stock TDR, `VICTORY_KEYS` Enter every 10 s to 240 s, then no input. | Build | Run | World | How it ended | |---|---|---|---| | `ffe310e` (main) | 1 | ~50 s, 0.6-0.9 fps, 115 compute pipelines refused (wave64) | `0x887A0006`, DRED on dispatches of compute `d3e44e754b3eb6aa` with `[heap 340912: null]` entries | | `ffe310e` + #493 `c48b240` + #189 `c047885` + #206 `05981dd`, loop limit 32 | 1 | ~5 min, 1.3-1.5 fps, 0 refused, 582 not translated | `0x80000003` at `+0x5149aec` (same stack as run 1 above) at 6m07s; `INSTANCE_LIST` 45000/45000, `BUILDING` 22329/22500, `Paused: No`, SRL `Prestream`, 735 streaming requests | | `8e79c80` + #89 #493 #483 #189 #206 #469 #459 #454 #704 (with #193) #688, loop limit 32, `VICTORY_NO_WATCHDOG=1` | 1 (cold caches) | ~5 min, median 0.9 fps (0.3-2.2), 1 refused (`E_OUTOFMEMORY`), 575 not translated | `0x80000003` at `+0x5149aec` at 6m13s; `INSTANCE_LIST` 45000/45000, `BUILDING` 22308/22500, `Paused: No`, SRL `Prestream`, 1197 streaming requests | | same | 2 (warm caches) | ~6m40s, median 1.0 fps (0.6-2.0), 0 refused, 605 not translated | no title breakpoint; device removed (`0x887A0005`) on a 1x1x1 dispatch of compute `e30970f1727063fd`, empty breadcrumbs, no page fault, no Windows TDR event (4101) | So with the watchdog hooked and the device hang gone, this card still lands on the `INSTANCE_LIST` stop on a cold start, and the warm run traded it for a different device removal a little later. It also supports @⁠WalliceCariasPerussio's reading that this is a fixed point in the cutscene, not a time-out. The two pool-full stops (three-PR and ten-PR cold) ran at different frame rates but stopped at the same spot: - Title crash logs: same camera position (`-488.25, -5413.33, 3.03` vs `-488.35, -5413.65, 3.03`), game clock `11:50` in both, same AnimScene `0xe9f5cf99`, same SRL in `Prestream`. - `Frame:` 1396 and 1524, which is 284 and 292 frames after `Current Mission Name [F:1112]` / `[F:1232]`. - Series X mode here, so the absolute frame numbers differ from the 920-950 range above (Series S). **Differences from @⁠Sil3ntGam3r's build that may matter:** driver 610.88 here vs 621.14; #189 at `c047885`, which still defaulted 32-lane hosts to `Wave32` (`54b333f`, pushed after these runs, makes `Emulate` the default, so these runs are on the path with the divergent-lane issues discussed on #189); #459 is closed; 16 GB of RAM. I also had to resolve conflicts locally, which may not match theirs: - #89 vs `8e79c80` (`list.rs`): kept both checks (`skip_mixed_packed_copy` first, then `title_written` upload); `prepare_footprint_upload` uses `defer_fill` as `main` does. - #493 vs #483: as described on #493 (`DYNAMIC`/`MIN_DYNAMIC` plus one guard slot). - #704 vs #483: #704's alias slots go between the dynamic range and the guard. The guard has to be the **last** slot, because #483 sends any computed index at or past it to the guard (with the guard before the aliases, #704's `unknown_stride_reads_reach_the_bytes_of_the_view_in_the_slot` read all zeros). So `alias_base = count + dynamic`, `guard_slot() = alias_base + ALIASES`. - #704 vs #206 (`buffer_srv`/`buffer_uav`): #704's `NumElements` clamp applies to the element-aligned branch; #206's raw-window branch is unchanged. - Test harnesses from #189, #459 and #704 that predate #483 needed its guard dword filled (`host::guard`, as `draw.rs` does) and the new `stride_table`/`options`/`track` arguments. With that, `cargo test -p victory-gpu -p victory-shader -- --test-threads=1` passes (64 + 152). One run per row. Hashes, addresses, counts and crash-log fields only; no game data. AI-assisted (Claude Code); everything above was run on my machine.
Author
Owner

@⁠likecrank-dotcom on GitHub · 2026-11-24 08:55 UTC · original · edited 2026-11-24 15:43 UTC

RTX 5060 Ti 8 GB corroboration of the pool-full variant, with an exact match to run 1's stack.

Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, Series X 1.0.2.1. Source 91f1450f200c850b6444182aa9588a60ed47713d at https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views (main ce42e77 + #439 055aef9 + #180 + #493, plus diagnostics; no #193/#704/#185). Diag, loop limit 4096, DRED on. It ended by itself at 515.8 s, exit 0x80000003, +0x5149aec. No GPU device removal logged.

The title's report: INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. Stack: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No dynamic-slot exhaustion line in this run. An Escape/Menu input was attempted before the stop; no visible pause menu confirmed, and the report's Paused Yes alone does not establish its effect.

Final presentation stayed black, although one captured internal f28 target contains a character silhouette and parts of the surroundings. Four runtime culling hashes fail with unknown structured stride (fdd56d97a806bcca, 17af15c4015cb4b6, 55679a0547649d0b, 89d08e561897d4e5). Testing #704 next. Cause of the instance-list pool filling is not established by this run.

Full aggregate context: #493 . No game-derived files or crash-report IDs attached. AI-assisted/OpenAI Codex (exact backend variant not exposed): build/run/analysis; hardware and title are the user's.

Source clarification: this integration has 055aef9 as an ancestor, but the reused merge 24b3bcc removed later #439 deferred-mask handling and other wave64 changes. Its SHA and observations are reproducible, but this is not a test of full latest #439 behavior. A separate corrected stack and its limited offline/runtime results are now documented at #704 .

New corroborating run on a different public stack: mpDom d6897fa (r4tedx integration/testers plus PRESENT_1440P); run source ec83015cbe9d9bef408d5b7bb0de96159f688891 adds diagnostic input-file/on-demand capture only. Fresh data, Series X, loop limit 32, PRESENT_1440P=1, NO_WATCHDOG=1, DRED, same hardware. Self-terminated after 816.7 s: 0x80000003 at +0x5149aec with the same stack through +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No logged GPU removal. Title report: INSTANCE_LIST 45000/45000, BUILDING 22151/22500, streaming requests 3468, SRL Prestream, Paused Yes, game frame 6959. The four culling shaders still refuse unknown structured stride. This repetition does not prove that those shader refusals cause the pool exhaustion. Presented false-colour geometry was observed by the user a couple of times, alternating with black, approximately 1-2 minutes before the crash; no character-control claim. Full run caveats and the earlier manually-ended 860.4 s run: #841 . No game-derived attachments.

**@⁠likecrank-dotcom** on GitHub · 2026-11-24 08:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7126740138) · edited 2026-11-24 15:43 UTC RTX 5060 Ti 8 GB corroboration of the pool-full variant, with an exact match to run 1's stack. Windows 11, Ryzen 5 3600, 32 GB, NVIDIA 621.14, Series X 1.0.2.1. Source 91f1450f200c850b6444182aa9588a60ed47713d at https://github.com/likecrank-dotcom/VIctory/tree/codex/victory-bounded-views (main ce42e77 + #439 055aef9 + #180 + #493, plus diagnostics; no #193/#704/#185). Diag, loop limit 4096, DRED on. It ended by itself at 515.8 s, exit 0x80000003, +0x5149aec. No GPU device removal logged. The title's report: INSTANCE_LIST 45000/45000, BUILDING 22479/22500, streaming requests 1298, TileHeap 3747/6236 MB, SRL Prestream, Paused Yes, game frame 1481. Stack: +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No dynamic-slot exhaustion line in this run. An Escape/Menu input was attempted before the stop; no visible pause menu confirmed, and the report's Paused Yes alone does not establish its effect. Final presentation stayed black, although one captured internal f28 target contains a character silhouette and parts of the surroundings. Four runtime culling hashes fail with unknown structured stride (fdd56d97a806bcca, 17af15c4015cb4b6, 55679a0547649d0b, 89d08e561897d4e5). Testing #704 next. Cause of the instance-list pool filling is not established by this run. Full aggregate context: https://git.gtahub.st/github/Marvisak--VIctory/pulls/493 . No game-derived files or crash-report IDs attached. AI-assisted/OpenAI Codex (exact backend variant not exposed): build/run/analysis; hardware and title are the user's. Source clarification: this integration has 055aef9 as an ancestor, but the reused merge 24b3bcc removed later #439 deferred-mask handling and other wave64 changes. Its SHA and observations are reproducible, but this is not a test of full latest #439 behavior. A separate corrected stack and its limited offline/runtime results are now documented at https://git.gtahub.st/github/Marvisak--VIctory/pulls/704 . New corroborating run on a different public stack: mpDom d6897fa (r4tedx integration/testers plus PRESENT_1440P); run source ec83015cbe9d9bef408d5b7bb0de96159f688891 adds diagnostic input-file/on-demand capture only. Fresh data, Series X, loop limit 32, PRESENT_1440P=1, NO_WATCHDOG=1, DRED, same hardware. Self-terminated after 816.7 s: 0x80000003 at +0x5149aec with the same stack through +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca. No logged GPU removal. Title report: INSTANCE_LIST 45000/45000, BUILDING 22151/22500, streaming requests 3468, SRL Prestream, Paused Yes, game frame 6959. The four culling shaders still refuse unknown structured stride. This repetition does not prove that those shader refusals cause the pool exhaustion. Presented false-colour geometry was observed by the user a couple of times, alternating with black, approximately 1-2 minutes before the crash; no character-control claim. Full run caveats and the earlier manually-ended 860.4 s run: https://git.gtahub.st/github/Marvisak--VIctory/issues/841 . No game-derived attachments.
Author
Owner

@⁠VoidDeficit on GitHub · 2026-11-24 16:46 UTC · original

Linux reproduction of the same breakpoint on the same build (1.0.2.1), so this is not NVIDIA- or Windows-specific.

Setup: CachyOS, kernel 7.3.5, RX 9070 XT (RDNA4, RADV/Mesa 26.3.1), Wine 11.22, vkd3d-proton 3.2 (Proton Experimental), DXVK dxgi. Build: main ffe310e + the proton-fixes branch from #844/#994 + #454 (VICTORY_NO_WATCHDOG=1). Series X and Series S both.

Both profiles reach the menus, loading art and the first mission title card, then stop at the same place:

Series X Series S
breakpoint +0x5149aec +0x5149aec
stack +0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca same
game running time / frame 8m50s / 1462 8m51s / 1576
INSTANCE_LIST 45000/45000 45000/45000
BUILDING 22487/22500 18906/22500
SRL state Prestream Prestream
Paused Yes No

Series X matches your run 1 field for field (frame 1462, same stack). Paused is not required: Series S was not paused and still hit it. Without #454 the title first dies in its stall watchdog at +0x2215c35, i.e. the watchdog hook only moves the wall.

Frame rate in the world: 0.2-0.5 fps (5-30 fps in menus, 1-2 fps while loading); copies of title memory take 1.2-4.5 s per frame (100-500 MB) under Wine. Rendering: 126 distinct shaders do not translate in a world run; the largest classes are "a scalar memory read as data" (#979) and "an address in an SGPR that is no root parameter" (#798). VICTORY_DEBUG_PS=1 renders the 2D front-end art, but the 3D scene stays black, so the missing geometry is in the untranslated mesh/compute programs rather than the pixel stage.

No game data is attached or quoted; the numbers are from the title crash report and our logs.

**@⁠VoidDeficit** on GitHub · 2026-11-24 16:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7138175507) Linux reproduction of the same breakpoint on the same build (1.0.2.1), so this is not NVIDIA- or Windows-specific. Setup: CachyOS, kernel 7.3.5, RX 9070 XT (RDNA4, RADV/Mesa 26.3.1), Wine 11.22, vkd3d-proton 3.2 (Proton Experimental), DXVK dxgi. Build: `main` ffe310e + the proton-fixes branch from #844/#994 + #454 (VICTORY_NO_WATCHDOG=1). Series X and Series S both. Both profiles reach the menus, loading art and the first mission title card, then stop at the same place: | | Series X | Series S | |---|---|---| | breakpoint | `+0x5149aec` | `+0x5149aec` | | stack | `+0x5149aec, +0xa5db22, +0x5453ac7, +0x23d0f9a, +0x23d1211, +0x257035e, +0x221c29c, +0x2215eca` | same | | game running time / frame | 8m50s / 1462 | 8m51s / 1576 | | INSTANCE_LIST | 45000/45000 | 45000/45000 | | BUILDING | 22487/22500 | 18906/22500 | | SRL state | Prestream | Prestream | | `Paused` | Yes | No | Series X matches your run 1 field for field (frame 1462, same stack). `Paused` is not required: Series S was not paused and still hit it. Without #454 the title first dies in its stall watchdog at `+0x2215c35`, i.e. the watchdog hook only moves the wall. Frame rate in the world: 0.2-0.5 fps (5-30 fps in menus, 1-2 fps while loading); copies of title memory take 1.2-4.5 s per frame (100-500 MB) under Wine. Rendering: 126 distinct shaders do not translate in a world run; the largest classes are "a scalar memory read as data" (#979) and "an address in an SGPR that is no root parameter" (#798). `VICTORY_DEBUG_PS=1` renders the 2D front-end art, but the 3D scene stays black, so the missing geometry is in the untranslated mesh/compute programs rather than the pixel stage. No game data is attached or quoted; the numbers are from the title crash report and our logs.
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-24 18:57 UTC · original

Notes on what the title's int3 at +0x5149aec stops on, from the executable and a 15-minute RTX 4070 run that read the pools every frame. No cause found yet; offsets only, no title bytes.

Which pool stops the title. +0x5149aec is in the allocator at +0x5149980, which serves only the Building and Object pools (chosen by type through a function table) and breaks when that pool's free list is empty or its base is null. INSTANCE_LIST is entity type 12, the CEntityBatch pool, with its own allocator (+0x51e6c50). So the pool that runs out at the stop is Building or Object; INSTANCE_LIST being full in the crash reports comes along with it. That fits ThomasHFWright's BUILDING 22479/22500 on #844, and Wallice's later stop with BUILDING full.

Pool pointers, for anyone reading them live: Building [title+0xA9EC938], Object [title+0xABBE2E8], EntityBatch (INSTANCE_LIST) [title+0xA9EC948]; in each pool, +0x0C is the capacity and +0x10 the count in use. The crash report copies those pairs only when it is written.

How entities go back. Only through the CPU removal path: a removal request list per entity type, processed at a frame sync point (+0x336740 → +0x33A790 → deferred deletion at +0x51F20F0; for CEntityBatch the deleter +0x51F2380 decrements the pool's count). Nothing on that path waits on a fence, a query or a GPU result.

Measured (RTX 4070, the stack from #841 plus r4tedx's wave-per-group branch and a local indirect-dispatch patch; 784 s in the world at 0.4 fps, no int3):

  • INSTANCE_LIST in use rises to 18,622 on entering the world, then falls back to about 13,800 and stays there for 13 minutes; Building about 8,000 and Object about 3,900, steady.
  • So no continuous leak over the roughly 300 title frames this run reached. The flood looks tied to a fixed point of the scene (title frames 920–950 in Wallice's reports), which this run did not reach at 0.4 fps.
  • The removal request counts we watched stayed at 0 throughout; either we read the wrong addresses or the lists are emptied within the frame, so that part is inconclusive.

Next step for whoever reaches that point of the scene: read the Building and Object counts per frame there, and catch the allocating stacks at +0x5149980.

**@⁠SantannaCarlos** on GitHub · 2026-11-24 18:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7141383240) Notes on what the title's `int3` at `+0x5149aec` stops on, from the executable and a 15-minute RTX 4070 run that read the pools every frame. No cause found yet; offsets only, no title bytes. **Which pool stops the title.** `+0x5149aec` is in the allocator at `+0x5149980`, which serves only the **Building** and **Object** pools (chosen by type through a function table) and breaks when that pool's free list is empty or its base is null. INSTANCE_LIST is entity type 12, the CEntityBatch pool, with its own allocator (`+0x51e6c50`). So the pool that runs out at the stop is Building or Object; INSTANCE_LIST being full in the crash reports comes along with it. That fits ThomasHFWright's BUILDING 22479/22500 on #844, and Wallice's later stop with BUILDING full. Pool pointers, for anyone reading them live: Building `[title+0xA9EC938]`, Object `[title+0xABBE2E8]`, EntityBatch (INSTANCE_LIST) `[title+0xA9EC948]`; in each pool, `+0x0C` is the capacity and `+0x10` the count in use. The crash report copies those pairs only when it is written. **How entities go back.** Only through the CPU removal path: a removal request list per entity type, processed at a frame sync point (`+0x336740` → `+0x33A790` → deferred deletion at `+0x51F20F0`; for CEntityBatch the deleter `+0x51F2380` decrements the pool's count). Nothing on that path waits on a fence, a query or a GPU result. **Measured** (RTX 4070, the stack from #841 plus r4tedx's wave-per-group branch and a local indirect-dispatch patch; 784 s in the world at 0.4 fps, no `int3`): - INSTANCE_LIST in use rises to 18,622 on entering the world, then falls back to about 13,800 and stays there for 13 minutes; Building about 8,000 and Object about 3,900, steady. - So no continuous leak over the roughly 300 title frames this run reached. The flood looks tied to a fixed point of the scene (title frames 920–950 in Wallice's reports), which this run did not reach at 0.4 fps. - The removal request counts we watched stayed at 0 throughout; either we read the wrong addresses or the lists are emptied within the frame, so that part is inconclusive. Next step for whoever reaches that point of the scene: read the Building and Object counts per frame there, and catch the allocating stacks at `+0x5149980`.
Author
Owner

@⁠VoidDeficit on GitHub · 2026-11-24 19:12 UTC · original

Linux data point for the two stop sites, and the pool counts at each, from the title crash report (build 1.0.2.1, Series X; CachyOS, RX 9070 XT RADV 26.3.1, Wine 11.22, vkd3d-proton 3.2, main + proton-fixes + #454 + six shader PRs).

stop when / frame BUILDING OBJECT INSTANCE_LIST
+0x5149aec 8m50s / 1462 22487/22500 19450/27500 45000/45000
+0x63966f 8m41s / 1589 19061/22500 14815/27500 44575/45000

That fits your reading: at the +0x5149aec allocator the Building pool is out (13 entries left), while the Object pool has room; the +0x63966f stop is a different path with Building not full. INSTANCE_LIST is full in both, but it has its own allocator, so it comes along.

VICTORY_WATCH now accepts *<rva>+<offset> (pointer at title+rva, log the u32 at pointer+offset), so those pairs can be followed live. An 11-minute run that did not reach the stop ended at Building 11625/22500, Object 9930/27500, EntityBatch 35015/45000, still rising. I have not caught the allocating stack at +0x5149980 yet; that needs a run that reaches the stop with the watch on.

Numbers from the crash report and our logs only; no game data.

**@⁠VoidDeficit** on GitHub · 2026-11-24 19:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7141760164) Linux data point for the two stop sites, and the pool counts at each, from the title crash report (build 1.0.2.1, Series X; CachyOS, RX 9070 XT RADV 26.3.1, Wine 11.22, vkd3d-proton 3.2, `main` + proton-fixes + #454 + six shader PRs). | stop | when / frame | BUILDING | OBJECT | INSTANCE_LIST | |---|---|---|---|---| | `+0x5149aec` | 8m50s / 1462 | **22487/22500** | 19450/27500 | 45000/45000 | | `+0x63966f` | 8m41s / 1589 | 19061/22500 | 14815/27500 | 44575/45000 | That fits your reading: at the `+0x5149aec` allocator the Building pool is out (13 entries left), while the Object pool has room; the `+0x63966f` stop is a different path with Building not full. INSTANCE_LIST is full in both, but it has its own allocator, so it comes along. `VICTORY_WATCH` now accepts `*<rva>+<offset>` (pointer at title+rva, log the u32 at pointer+offset), so those pairs can be followed live. An 11-minute run that did not reach the stop ended at Building 11625/22500, Object 9930/27500, EntityBatch 35015/45000, still rising. I have not caught the allocating stack at `+0x5149980` yet; that needs a run that reaches the stop with the watch on. Numbers from the crash report and our logs only; no game data.
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-24 19:21 UTC · original

Linux/RADV data point for the stop sites, from a run with the pipeline journal enabled.

Title 1.0.2.1, Series X dump
OS Linux, Wine 11.22 in a Proton 11.0 prefix, vkd3d-proton from Proton, DXVK dxgi
GPU RX 7600 XT, RADV from Mesa 26.3.1
Tree ffe310e + #994 + #491

With VICTORY_PIPELINE_JOURNAL=1 the run no longer dies in vkCreate*Pipelines. After three refusals (4e296b1885c37b29, 8bb272e763f76148, 02384a60fda6f2d0) it gets further than anything we had before: the intro's title cards render (art and text), then the prologue plays (prison scene, audio and logic), then the pause menu draws at 28 draws/frame and 2 fps, and the photo-studio menu as well. The 3D world stays black while the 2D UI draws; 61 draws, one line per pipeline, are dropped "without a host pipeline".

The only stop left is the title's own fail-fast: 0xc0000005, Current SRL State: Prestream Metadata, around frame 1165. An earlier run recorded the fault at +0x23cf683, but that log was not kept, so treat the address as unverified.

Two questions:

  • Is this the same class as the +0x5149aec / +0x63966f stops (Building/Object/Instance_List pools), or a different one? Here it fires in Prestream Metadata, before the world streams in.
  • Does anyone see the same stop on Windows, or is it Linux-only?

I have not tried VICTORY_DEBUG_PS=1 + VICTORY_NO_WATCHDOG=1 yet - the combination pablogonz12 used in #994 to reach gameplay. That is the next run.

**@⁠YaBulochka** on GitHub · 2026-11-24 19:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7141968305) Linux/RADV data point for the stop sites, from a run with the pipeline journal enabled. | | | |---|---| | Title | `1.0.2.1`, Series X dump | | OS | Linux, Wine 11.22 in a Proton 11.0 prefix, vkd3d-proton from Proton, DXVK `dxgi` | | GPU | RX 7600 XT, RADV from Mesa 26.3.1 | | Tree | `ffe310e` + #994 + #491 | With `VICTORY_PIPELINE_JOURNAL=1` the run no longer dies in `vkCreate*Pipelines`. After three refusals (`4e296b1885c37b29`, `8bb272e763f76148`, `02384a60fda6f2d0`) it gets further than anything we had before: the intro's title cards render (art and text), then the prologue plays (prison scene, audio and logic), then the pause menu draws at 28 draws/frame and 2 fps, and the photo-studio menu as well. The 3D world stays black while the 2D UI draws; 61 draws, one line per pipeline, are dropped "without a host pipeline". The only stop left is the title's own fail-fast: `0xc0000005`, `Current SRL State: Prestream Metadata`, around frame 1165. An earlier run recorded the fault at `+0x23cf683`, but that log was not kept, so treat the address as unverified. Two questions: - Is this the same class as the `+0x5149aec` / `+0x63966f` stops (Building/Object/Instance_List pools), or a different one? Here it fires in `Prestream Metadata`, before the world streams in. - Does anyone see the same stop on Windows, or is it Linux-only? I have not tried `VICTORY_DEBUG_PS=1` + `VICTORY_NO_WATCHDOG=1` yet - the combination pablogonz12 used in #994 to reach gameplay. That is the next run.
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-24 19:22 UTC · original

Linux + NVIDIA RTX 5080 data point for the +0x63966f stop site (confirming it alongside the RADV/Windows reports above):

  • Setup: CachyOS (Linux 7.3.6-1-cachyos), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (driver 620.73.04), GE-Proton11-14 (umu-run, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains), retail 1.0.2.1, --console series-x, diag build of main (ffe310e) + #994 (993dff8) + #177 (b7300eb) + #454 (85c04d1, VICTORY_NO_WATCHDOG=1) + #206 (05981dd).
  • Stop: 0x80000003 at +0x63966f (+0x3e54ad0 → +0x257035e → +0x221c29c → +0x2215eca) hit on 3 worker threads simultaneously, with 0 GPU faults / 0 device removals / 0 kernel Xids.
stop when / frame BUILDING OBJECT INSTANCE_LIST
+0x63966f 9m 36s / 1564 20731/22500 16891/27500 44980/45000

Full run context is in #994. (AI-assisted log summary; own retail copy, no game files or raw logs attached.)

**@⁠BitWuehler** on GitHub · 2026-11-24 19:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7142009631) Linux + NVIDIA RTX 5080 data point for the `+0x63966f` stop site (confirming it alongside the RADV/Windows reports above): - **Setup:** CachyOS (`Linux 7.3.6-1-cachyos`), Ryzen 7 9800X3D, 60 GB RAM, RTX 5080 16 GB (driver `620.73.04`), `GE-Proton11-14` (`umu-run`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`), retail `1.0.2.1`, `--console series-x`, `diag` build of `main` (`ffe310e`) + #994 (`993dff8`) + #177 (`b7300eb`) + #454 (`85c04d1`, `VICTORY_NO_WATCHDOG=1`) + #206 (`05981dd`). - **Stop:** `0x80000003` at `+0x63966f` (`+0x3e54ad0` → `+0x257035e` → `+0x221c29c` → `+0x2215eca`) hit on 3 worker threads simultaneously, with 0 GPU faults / 0 device removals / 0 kernel Xids. | stop | when / frame | BUILDING | OBJECT | INSTANCE_LIST | |---|---|---:|---:|---:| | `+0x63966f` | `9m 36s` / `1564` | `20731/22500` | `16891/27500` | `44980/45000` | Full run context is in #994. *(AI-assisted log summary; own retail copy, no game files or raw logs attached.)*
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-24 20:10 UTC · original

Follow-up from a 43-minute world run on the RTX 4070 (the #841 stack without #1198: main + #493 + #876 + #439 with its stack + #116 + #984 + #949 + #1019; 0.6 fps, no device removal), with the pools read every frame next to the title's own frame counter (u32 at title+0xABBEF44, the crash report's "Frame: %d", counted from boot):

  • The title frame went from 1,960 to 3,340, well past the 920–1,462 where the reports here stop, and there was no stop.
  • All four pools stayed fixed the whole time, to the element: Building 7,991/22,500, Object about 3,918/27,500, EntityBatch (INSTANCE_LIST) 13,775/45,000, and the pool behind the second stop site 7,928/25,000. They moved only on entering the world.
  • On this stack the scene does not advance in the world (the title presents frames, but nothing is created or removed), while on stacks that reach the stop the pools climb as the scene goes on (VoidDeficit's 11-minute run above: Building 11,625, Object 9,930, EntityBatch 35,015).

So the stop follows the scene's progress, not time or frame count: a stack has to play the opening scene forward to reach it.

The second stop site (+0x63966f, in the function at +0x6395d0) allocates from the pool at [title+0x98D79A8] (name hash 0x3F678DCF, 0x100-byte elements, capacity 25,000, one component per entity), which the crash report does not list. At the first site the pool that runs out is Building, as above.

Offsets and counts only; no title bytes.

**@⁠SantannaCarlos** on GitHub · 2026-11-24 20:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7143156055) Follow-up from a 43-minute world run on the RTX 4070 (the #841 stack without #1198: `main` + #493 + #876 + #439 with its stack + #116 + #984 + #949 + #1019; 0.6 fps, no device removal), with the pools read every frame next to the title's own frame counter (u32 at `title+0xABBEF44`, the crash report's "Frame: %d", counted from boot): - The title frame went from 1,960 to 3,340, well past the 920–1,462 where the reports here stop, and there was no stop. - All four pools stayed fixed the whole time, to the element: Building 7,991/22,500, Object about 3,918/27,500, EntityBatch (INSTANCE_LIST) 13,775/45,000, and the pool behind the second stop site 7,928/25,000. They moved only on entering the world. - On this stack the scene does not advance in the world (the title presents frames, but nothing is created or removed), while on stacks that reach the stop the pools climb as the scene goes on (VoidDeficit's 11-minute run above: Building 11,625, Object 9,930, EntityBatch 35,015). So the stop follows the scene's progress, not time or frame count: a stack has to play the opening scene forward to reach it. The second stop site (`+0x63966f`, in the function at `+0x6395d0`) allocates from the pool at `[title+0x98D79A8]` (name hash `0x3F678DCF`, 0x100-byte elements, capacity 25,000, one component per entity), which the crash report does not list. At the first site the pool that runs out is Building, as above. Offsets and counts only; no title bytes.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:48 UTC · original · edited 2026-11-26 00:49 UTC

Automated triage for the maintainers.

This issue stays the place where the title's own breakpoint in the world is tracked. The title stops with 0x80000003 at +0x5149aec or +0x63966f, its crash report shows INSTANCE_LIST at 45000/45000, and the device is not removed. It has been seen on NVIDIA and AMD, on Windows, under Wine, CrossOver and Proton. It also happens on plain main 67e8ae1 (Strix Halo under Proton, in #714) and under stock Wine with #1279 (in #340). New: ThomasHFWright reproduces the 45,000/45,000 stop on an RTX 5090 under GE-Proton 11-14 (commit and driver not given yet).

Where the leads stand:

  • On one fork tree (RTX 3060, details in #886), skipping four compute programs through VICTORY_SKIP_PIPELINES kept the pool at 17856/45000 for over 22 minutes. On another fork line (RTX 3080 Ti under Wine) the same skip did not prevent the stop. So that skip is not the whole explanation: the pools fill as the opening scene's prestream advances.
  • Hypothesis from the Wine runs: every crash report that stopped lists an unsignalled cross-queue barrier, and the one that did not stop lists none. Relevant to that: since 9cc37c5 (in main), crates/victory-gpu/src/hold.rs holds a queue's work until its waits on memory values hold. A crash report from current main (63bcca4) with the barrier lines would test this.
  • Once a run has got past the stop and the title has written a save, later starts load that save, skip the intro and do not reach the trap (with a save, one pool peaked at 10,787 on default sizes). When comparing builds, move the save aside or check what the data folder gained between runs.
  • RTX 2080, Windows 10, 940d32f + #2460 #2461 #2462 #2464: the pools fill only during the opening cutscene and drain afterwards (peak about 28,650 in one pool, then about 7,800 within minutes), so on that stack it looks like a burst rather than an unbounded leak. The reporter's reading is that the instance-culling compute passes that would retire instances early do not run on this 32-lane card, because their WaveSize(64) pipelines are refused. That fits the skip lead above and open PR #1960 (wave64 compute on 32-lane hosts). With three pools made three times larger, the run reached gameplay for 12+ minutes without the breakpoint. Making the breakpoint sites no-ops only moved the crash to the null read at +0x5290e15, as on the CrossOver run.
  • That pool-size change is now shared as a branch on main f3578e3 (VICTORY_POOL_SCALE, only for one retail image, checked before patching), for testing under Proton. Like VICTORY_STEP_OVER, it patches the title's own code; main has neither (crates/victory-loader/src/crash.rs). It hides the stop rather than fixing the cause. If it should be considered, please open it as a pull request so it can be reviewed here.

Disassembly or bytes of the title's executable must not be posted here; please describe such findings by offset only. Requests for the game, or for where to get it, do not belong here either.

A useful new report gives the commit (git rev-parse --short HEAD, preferably plain main), the GPU and driver, the time and title frame of the stop, the pool counts, whether wave64 compute pipelines were refused, and whether a save from an earlier run was present.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7149977174) · edited 2026-11-26 00:49 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T23:25:20Z at=2026-11-26T01:00:00Z --> Automated triage for the maintainers. This issue stays the place where the title's own breakpoint in the world is tracked. The title stops with `0x80000003` at `+0x5149aec` or `+0x63966f`, its crash report shows `INSTANCE_LIST` at 45000/45000, and the device is not removed. It has been seen on NVIDIA and AMD, on Windows, under Wine, CrossOver and Proton. It also happens on plain `main` `67e8ae1` (Strix Halo under Proton, in #714) and under stock Wine with #1279 (in #340). New: ThomasHFWright reproduces the 45,000/45,000 stop on an RTX 5090 under GE-Proton 11-14 (commit and driver not given yet). Where the leads stand: - On one fork tree (RTX 3060, details in #886), skipping four compute programs through `VICTORY_SKIP_PIPELINES` kept the pool at 17856/45000 for over 22 minutes. On another fork line (RTX 3080 Ti under Wine) the same skip did not prevent the stop. So that skip is not the whole explanation: the pools fill as the opening scene's prestream advances. - Hypothesis from the Wine runs: every crash report that stopped lists an unsignalled cross-queue barrier, and the one that did not stop lists none. Relevant to that: since 9cc37c5 (in `main`), `crates/victory-gpu/src/hold.rs` holds a queue's work until its waits on memory values hold. A crash report from current `main` (`63bcca4`) with the barrier lines would test this. - Once a run has got past the stop and the title has written a save, later starts load that save, skip the intro and do not reach the trap (with a save, one pool peaked at 10,787 on default sizes). When comparing builds, move the save aside or check what the data folder gained between runs. - **RTX 2080, Windows 10, `940d32f` + #2460 #2461 #2462 #2464:** the pools fill only during the opening cutscene and drain afterwards (peak about 28,650 in one pool, then about 7,800 within minutes), so on that stack it looks like a burst rather than an unbounded leak. The reporter's reading is that the instance-culling compute passes that would retire instances early do not run on this 32-lane card, because their `WaveSize(64)` pipelines are refused. That fits the skip lead above and open PR #1960 (wave64 compute on 32-lane hosts). With three pools made three times larger, the run reached gameplay for 12+ minutes without the breakpoint. Making the breakpoint sites no-ops only moved the crash to the null read at `+0x5290e15`, as on the CrossOver run. - That pool-size change is now shared as a branch on `main` `f3578e3` (`VICTORY_POOL_SCALE`, only for one retail image, checked before patching), for testing under Proton. Like `VICTORY_STEP_OVER`, it patches the title's own code; `main` has neither (`crates/victory-loader/src/crash.rs`). It hides the stop rather than fixing the cause. If it should be considered, please open it as a pull request so it can be reviewed here. Disassembly or bytes of the title's executable must not be posted here; please describe such findings by offset only. Requests for the game, or for where to get it, do not belong here either. A useful new report gives the commit (`git rev-parse --short HEAD`, preferably plain `main`), the GPU and driver, the time and title frame of the stop, the pool counts, whether wave64 compute pipelines were refused, and whether a save from an earlier run was present. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠vladbondarenko97 on GitHub · 2026-11-25 02:21 UTC · original

Independent reproduction on an RTX 3080 Ti — same breakpoint, same counters, and the SRL name

Got to this wall tonight with a build based on a public VIctory fork (Zettrox/ztrx, current main lineage) plus VICTORY_PIPELINE_WAIT_MS=24 and VICTORY_RELAY=2, scripted first-run input. RTX 3080 Ti 12 GB, Windows 11, retail 1.0.2.1.

The title's own crash report (temp\victory-20261124-201734-*.crash.log) at the breakpoint says:

Paused: Yes
Pool: 591978336/624951280
Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:43270625]
Current SRL State: Prestream
 - BUILDING: 22460/22500
 - OBJECT: 16402/27500
 - INSTANCE_LIST: 45000/45000
 - GRASS_INSTANCE_LIST: 6643/9000

and the process ends at 0x80000003 in the title at +0x5149aec, identical to the report above.

World-side counters from the same run, in case they are useful for sizing rather than lifetime:

  • steady state before the breakpoint: ~1 fps, 750–2200 draws/frame, dropped 150–1300 without a host pipeline (0–1160 being made);
  • texture pipeline: 26,475 waiting, ~4,500 uploaded (2.3 GB) at the time of death, 429,655 slots placed / 142,427 objects;
  • the worst frame was 0.2 fps, 5878 ms/frame with 2,716.7 ms on the GPU and 2,963.6 ms copying back 51.8 MB;
  • pipeline cache: saved bytes=47790710 early=1767 made=572 loaded=20.

So on this machine INSTANCE_LIST saturates during the story intro prestream, while BUILDING is at 99.8% of its cap — which suggests the question is whether the port is failing to release instances during streaming rather than the caps being too small.

AI-assisted investigation (Claude Code); values from our own retail run, package unmodified.

**@⁠vladbondarenko97** on GitHub · 2026-11-25 02:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7150619577) **Independent reproduction on an RTX 3080 Ti — same breakpoint, same counters, and the SRL name** Got to this wall tonight with a build based on a public VIctory fork (`Zettrox/ztrx`, current main lineage) plus `VICTORY_PIPELINE_WAIT_MS=24` and `VICTORY_RELAY=2`, scripted first-run input. RTX 3080 Ti 12 GB, Windows 11, retail 1.0.2.1. The title's own crash report (`temp\victory-20261124-201734-*.crash.log`) at the breakpoint says: ``` Paused: Yes Pool: 591978336/624951280 Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:43270625] Current SRL State: Prestream - BUILDING: 22460/22500 - OBJECT: 16402/27500 - INSTANCE_LIST: 45000/45000 - GRASS_INSTANCE_LIST: 6643/9000 ``` and the process ends at `0x80000003` in the title at `+0x5149aec`, identical to the report above. World-side counters from the same run, in case they are useful for sizing rather than lifetime: - steady state before the breakpoint: `~1 fps, 750–2200 draws/frame, dropped 150–1300 without a host pipeline (0–1160 being made)`; - texture pipeline: `26,475 waiting`, `~4,500 uploaded (2.3 GB)` at the time of death, `429,655 slots placed / 142,427 objects`; - the worst frame was `0.2 fps, 5878 ms/frame` with **2,716.7 ms on the GPU and 2,963.6 ms copying back 51.8 MB**; - pipeline cache: `saved bytes=47790710 early=1767 made=572 loaded=20`. So on this machine INSTANCE_LIST saturates during the story intro prestream, while BUILDING is at 99.8% of its cap — which suggests the question is whether the port is failing to *release* instances during streaming rather than the caps being too small. AI-assisted investigation (Claude Code); values from our own retail run, package unmodified.
Author
Owner

@⁠Asenje on GitHub · 2026-11-25 07:53 UTC · original

A/B data on what fills INSTANCE_LIST, from #886 (RTX 3060 12 GB, i7-7700K, 32 GB, Windows 11, native D3D12, Series X profile):

  • r4tedx integration tree (testers update 9, 94e0ea5), with the four instance-culling compute programs running (17af15c4015cb4b6, 55679a0547649d0b, fdd56d97a806bcca, 89d08e561897d4e5): int3 at +0x5149aec at 7:03, 11:34 and 6:46 in three runs, crash report INSTANCE_LIST 45000/45000.
  • Same tree, same save, only those four added to VICTORY_SKIP_PIPELINES: INSTANCE_LIST held at 17856/45000 for 22+ min, no stop at +0x5149aec (a later, different fault at +0x4fafeae reading 0xffffffff00000000).
  • fxceless/victory-fork 4e17478 + #454, without skipping them: no stop at +0x5149aec in 25 and ~29 min of prologue play.

So on this box the pool fills only while those four programs run on the host, which fits Wallice's reading above (culling programs misbehaving on 32-lane hosts) and Sil3ntGam3r's #704 result, rather than a leak in the pool itself. The 3080 Ti report on Zettrox/ztrx suggests that fork still runs them.

Details and frame times: #886.

**@⁠Asenje** on GitHub · 2026-11-25 07:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7156366077) A/B data on what fills INSTANCE_LIST, from #886 (RTX 3060 12 GB, i7-7700K, 32 GB, Windows 11, native D3D12, Series X profile): - r4tedx integration tree (testers update 9, 94e0ea5), with the four instance-culling compute programs running (17af15c4015cb4b6, 55679a0547649d0b, fdd56d97a806bcca, 89d08e561897d4e5): int3 at +0x5149aec at 7:03, 11:34 and 6:46 in three runs, crash report INSTANCE_LIST 45000/45000. - Same tree, same save, only those four added to VICTORY_SKIP_PIPELINES: INSTANCE_LIST held at 17856/45000 for 22+ min, no stop at +0x5149aec (a later, different fault at +0x4fafeae reading 0xffffffff00000000). - fxceless/victory-fork 4e17478 + #454, without skipping them: no stop at +0x5149aec in 25 and ~29 min of prologue play. So on this box the pool fills only while those four programs run on the host, which fits Wallice's reading above (culling programs misbehaving on 32-lane hosts) and Sil3ntGam3r's #704 result, rather than a leak in the pool itself. The 3080 Ti report on Zettrox/ztrx suggests that fork still runs them. Details and frame times: #886.
Author
Owner

@⁠slauko on GitHub · 2026-11-25 14:02 UTC · original

A result against the skip lead, and what five crash reports of one machine say. RTX 3080 Ti under Wine (Proton Experimental, vkd3d-proton master@ec20719), this fork's line (uiliannn/VItoriaBr 2b3c339e) with fxceless#823, #845 and #91, the intro reached at 1.3–2.5 fps with a tree-indexed wineserver.

The skip did not prevent the stop here

With VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5 the run stopped as before: 6m05, frame 1458, INSTANCE_LIST 45000/45000, BUILDING 22049/22500. The skip was active — three of the four programs got a host pipeline in the runs without it, none with it. That is the result alexodee's second machine has in fxceless/victory-fork#378.

Five crash reports from one day

run game time frame BUILDING OBJECT INSTANCE_LIST GRASS_INSTANCE_LIST Unsignaled CrossQueueBarrier
ended by the title's watchdog, not by this trap 6m25 2154 7,486 6,694 24,026 2,765 none
stopped 6m02 1483 22,215 14,635 45,000 6,496 f8dcd913
stopped 6m00 1437 22,409 14,269 45,000 6,449 f8dcd913
stopped 6m07 1391 22,442 13,336 45,000 6,380 cf82834d
stopped, with the skip 6m05 1458 22,049 13,615 45,000 6,285 cf82834d

All five: Current SRL Name: fbk_stry000_FBK_STRY000_INTRO, Current SRL State: Prestream.

What they say:

  • Game Physical (2.178–2.186 GB of 2.306) and Pool (591.978 MB of 624.951) read the same in all five. They are not what runs out.
  • INSTANCE_LIST, BUILDING, OBJECT and GRASS_INSTANCE_LIST grow together while the intro prestreams. The slow run (frames about 6 s, twice the frame time of the others) was at 24,026 instance lists after 6m25; the fast ones are at 45,000 after 6m00. That is the law alexodee found: the stop follows the prestream, not the frame count.
  • Unsignaled CrossQueueBarrier is in every report that stopped and in none that did not. A hypothesis of mine, not checked: work behind that barrier never completes, so the frames' instance lists are never given back.

The trap

title+0x5149aec is one int3 with two ways into it, in the pool's allocate:

5149a81: mov  rax,[rcx+0x20]
5149a85: cmp  eax,0x1fffe
5149a8a: je   5149aec          ; no free element, by the look of it — the report's 45000/45000
...
5149ac0: mov  rdi,[rcx]
5149ac3: test rdi,rdi
5149ac6: je   5149aec          ; the pool's memory is NULL
...
5149aec: int3
5149aed: xor  edi,edi
5149aef: mov  rax,rdi          ; return NULL

The trap sits on the function's own NULL return: stepping over that one byte returns NULL, which is what alexodee's "local handler that goes on past the empty pool" amounts to.

**@⁠slauko** on GitHub · 2026-11-25 14:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7164670839) **A result against the skip lead, and what five crash reports of one machine say.** RTX 3080 Ti under Wine (Proton Experimental, vkd3d-proton `master@ec20719`), this fork's line (`uiliannn/VItoriaBr 2b3c339e`) with fxceless#823, #845 and #91, the intro reached at 1.3–2.5 fps with a tree-indexed wineserver. ## The skip did not prevent the stop here With `VICTORY_SKIP_PIPELINES=17af15c4015cb4b6,55679a0547649d0b,fdd56d97a806bcca,89d08e561897d4e5` the run stopped as before: 6m05, frame 1458, `INSTANCE_LIST 45000/45000`, `BUILDING 22049/22500`. The skip was active — three of the four programs got a host pipeline in the runs without it, none with it. That is the result alexodee's second machine has in fxceless/victory-fork#378. ## Five crash reports from one day | run | game time | frame | BUILDING | OBJECT | INSTANCE_LIST | GRASS_INSTANCE_LIST | `Unsignaled CrossQueueBarrier` | |---|---|---:|---:|---:|---:|---:|---| | ended by the title's watchdog, not by this trap | 6m25 | 2154 | 7,486 | 6,694 | 24,026 | 2,765 | none | | stopped | 6m02 | 1483 | 22,215 | 14,635 | 45,000 | 6,496 | `f8dcd913` | | stopped | 6m00 | 1437 | 22,409 | 14,269 | 45,000 | 6,449 | `f8dcd913` | | stopped | 6m07 | 1391 | 22,442 | 13,336 | 45,000 | 6,380 | `cf82834d` | | stopped, with the skip | 6m05 | 1458 | 22,049 | 13,615 | 45,000 | 6,285 | `cf82834d` | All five: `Current SRL Name: fbk_stry000_FBK_STRY000_INTRO`, `Current SRL State: Prestream`. What they say: - `Game Physical` (2.178–2.186 GB of 2.306) and `Pool` (591.978 MB of 624.951) read the same in all five. They are not what runs out. - `INSTANCE_LIST`, `BUILDING`, `OBJECT` and `GRASS_INSTANCE_LIST` grow together while the intro prestreams. The slow run (frames about 6 s, twice the frame time of the others) was at 24,026 instance lists after 6m25; the fast ones are at 45,000 after 6m00. That is the law alexodee found: the stop follows the prestream, not the frame count. - `Unsignaled CrossQueueBarrier` is in every report that stopped and in none that did not. A hypothesis of mine, not checked: work behind that barrier never completes, so the frames' instance lists are never given back. ## The trap `title+0x5149aec` is one `int3` with two ways into it, in the pool's allocate: ``` 5149a81: mov rax,[rcx+0x20] 5149a85: cmp eax,0x1fffe 5149a8a: je 5149aec ; no free element, by the look of it — the report's 45000/45000 ... 5149ac0: mov rdi,[rcx] 5149ac3: test rdi,rdi 5149ac6: je 5149aec ; the pool's memory is NULL ... 5149aec: int3 5149aed: xor edi,edi 5149aef: mov rax,rdi ; return NULL ``` The trap sits on the function's own NULL return: stepping over that one byte returns NULL, which is what alexodee's "local handler that goes on past the empty pool" amounts to.
Author
Owner

@⁠slauko on GitHub · 2026-11-25 14:54 UTC · original

Past the stop and into gameplay: the thread goes on behind the int3. 30 minutes, no fault.

The trap sits on the allocate's own NULL return (the disassembly in my comment above), so a thread can go on behind it. The loader's vectored handler — the one that already steps over the console's instructions — takes a breakpoint exception at a named offset of the title's image and returns EXCEPTION_CONTINUE_EXECUTION. VICTORY_STEP_OVER=<hex offset>[,<hex offset>…], off unless it is set; nothing else about exceptions changes.

With VICTORY_STEP_OVER=5149aec (retail 1.0.2.1, RTX 3080 Ti under Wine, uiliannn/VItoriaBr 2b3c339e with fxceless#823, #845 and #91):

the trap, first hit about 6:00 of game time, as in the six runs before it
after it 30 minutes to my time limit: no fault of the title, no device loss
world frames 317; median 521 ms (331 to 1,102); 3,516 draws a frame, at most 6,252
on screen the opening of the prologue: the cell, the yard beyond it; the title's prompts to move and to turn the camera
input W/A/S/D move, I/J/K/L turn the camera (the runtime's keyboard stand-in)
the trap's counter more than 512 and fewer than 1,024 hits in the 30 minutes
memory 27.5 GB resident and 4.3 GB in swap at the most (a 31 GB machine); 11.9 of 12 GB on the card

The picture was overexposed for its first minutes (the auto-exposure at 1.5 fps), then the yard settled. Hair renders as streaks; a red pattern lies on the skin at the neck.

A way around the stop, not its cause. The counter says the pool stays full: every list asked for after 6:00 gets NULL, and whatever needed it is not drawn. Asenje's runs D and E in #886 show the other way: with the four culling programs skipped, no trap on integration/testers. On this line the skip did not prevent it (my comment above), so the lists are lost on more than one path.

The handler's part (crates/victory-loader/src/crash.rs); the vectored handler calls it first
unsafe fn step_over(info: *mut EXCEPTION_POINTERS) -> bool {
    let Some(list) = STEP_OVER.get() else {
        return false;
    };
    if list.is_empty() {
        return false;
    }
    // SAFETY: the system passes valid exception pointers.
    let record = unsafe { &*(*info).ExceptionRecord };
    if record.ExceptionCode != EXCEPTION_BREAKPOINT {
        return false;
    }
    let base = STEP_BASE.load(std::sync::atomic::Ordering::Relaxed);
    let at = record.ExceptionAddress as usize;
    let Some((offset, count)) = list.iter().find(|(offset, _)| at == base + offset) else {
        return false;
    };
    // SAFETY: the faulting thread's context, for the exception being dispatched.
    let ctx = unsafe { &mut *(*info).ContextRecord };
    if ctx.Rip as usize == at {
        ctx.Rip += 1;
    }
    let n = count.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1;
    if n <= 3 || n.is_power_of_two() {
        tracing::warn!(
            offset = format_args!("{offset:#x}"),
            n,
            "step over the title's breakpoint (VICTORY_STEP_OVER): the code behind the trap goes on"
        );
    }
    true
}

STEP_OVER is a OnceLock<Vec<(usize, AtomicU64)>> filled once from the variable, with offsets that lie in the image; STEP_BASE is where the title's image was mapped.

**@⁠slauko** on GitHub · 2026-11-25 14:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7165993880) **Past the stop and into gameplay: the thread goes on behind the `int3`. 30 minutes, no fault.** The trap sits on the allocate's own NULL return (the disassembly in my comment above), so a thread can go on behind it. The loader's vectored handler — the one that already steps over the console's instructions — takes a breakpoint exception at a named offset of the title's image and returns `EXCEPTION_CONTINUE_EXECUTION`. `VICTORY_STEP_OVER=<hex offset>[,<hex offset>…]`, off unless it is set; nothing else about exceptions changes. With `VICTORY_STEP_OVER=5149aec` (retail 1.0.2.1, RTX 3080 Ti under Wine, `uiliannn/VItoriaBr 2b3c339e` with fxceless#823, #845 and #91): | | | |---|---| | the trap, first hit | about 6:00 of game time, as in the six runs before it | | after it | **30 minutes to my time limit: no fault of the title, no device loss** | | world frames | 317; median **521 ms** (331 to 1,102); 3,516 draws a frame, at most 6,252 | | on screen | the opening of the prologue: the cell, the yard beyond it; the title's prompts to move and to turn the camera | | input | W/A/S/D move, I/J/K/L turn the camera (the runtime's keyboard stand-in) | | the trap's counter | more than 512 and fewer than 1,024 hits in the 30 minutes | | memory | 27.5 GB resident and 4.3 GB in swap at the most (a 31 GB machine); 11.9 of 12 GB on the card | The picture was overexposed for its first minutes (the auto-exposure at 1.5 fps), then the yard settled. Hair renders as streaks; a red pattern lies on the skin at the neck. **A way around the stop, not its cause.** The counter says the pool stays full: every list asked for after 6:00 gets NULL, and whatever needed it is not drawn. Asenje's runs D and E in #886 show the other way: with the four culling programs skipped, no trap on `integration/testers`. On this line the skip did not prevent it (my comment above), so the lists are lost on more than one path. <details> <summary>The handler's part (<code>crates/victory-loader/src/crash.rs</code>); the vectored handler calls it first</summary> ```rust unsafe fn step_over(info: *mut EXCEPTION_POINTERS) -> bool { let Some(list) = STEP_OVER.get() else { return false; }; if list.is_empty() { return false; } // SAFETY: the system passes valid exception pointers. let record = unsafe { &*(*info).ExceptionRecord }; if record.ExceptionCode != EXCEPTION_BREAKPOINT { return false; } let base = STEP_BASE.load(std::sync::atomic::Ordering::Relaxed); let at = record.ExceptionAddress as usize; let Some((offset, count)) = list.iter().find(|(offset, _)| at == base + offset) else { return false; }; // SAFETY: the faulting thread's context, for the exception being dispatched. let ctx = unsafe { &mut *(*info).ContextRecord }; if ctx.Rip as usize == at { ctx.Rip += 1; } let n = count.fetch_add(1, std::sync::atomic::Ordering::Relaxed) + 1; if n <= 3 || n.is_power_of_two() { tracing::warn!( offset = format_args!("{offset:#x}"), n, "step over the title's breakpoint (VICTORY_STEP_OVER): the code behind the trap goes on" ); } true } ``` `STEP_OVER` is a `OnceLock<Vec<(usize, AtomicU64)>>` filled once from the variable, with offsets that lie in the image; `STEP_BASE` is where the title's image was mapped. </details>
Author
Owner

@⁠slauko on GitHub · 2026-11-25 17:08 UTC · original

Once the title has written a save, the starts after it do not reach this trap.

Under Wine, with the breakpoint stepped over as in my comment above: world07 got into gameplay, and under seven minutes in — right behind the trap — the title wrote a save (a container SARC0015~… in the title's saves folder of the data directory). Every run since starts from it:

  • no intro: a black load of five and a half minutes, about 4,370 draws a frame, with the title's prompt ("move", "move camera") on screen from 6:45;
  • the cell at 8:10, gameplay as before (1.4–2.0 fps, the yard, the tower, the people);
  • the trap is not reached: 24 minutes in one run, and the step counter of my handler stayed at 0 in it and in three more runs of 400 s.

I took that at first for a regression of a merge and spent four runs on it: the merged build (also with the two switches the merge had turned on, off), the merged runtime with the older translator, the older runtime with the merged translator — all the same with the save present. The merged build with that one container moved aside played the intro again and reached the trap at 366 s.

So, as far as this machine shows, the stop at +0x5149aec stands in the way of the first start into gameplay only. A run that gets past it once writes a save, and the runs after that load it. A tester whose runs "stopped failing" may simply have one. And before two runs are compared on their builds, it is worth listing what the data folder gained between them: find <data> -newermt '<start of the earlier run>'.

**@⁠slauko** on GitHub · 2026-11-25 17:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7169076990) **Once the title has written a save, the starts after it do not reach this trap.** Under Wine, with the breakpoint stepped over as in my comment above: `world07` got into gameplay, and under seven minutes in — right behind the trap — the title wrote a save (a container `SARC0015~…` in the title's `saves` folder of the data directory). Every run since starts from it: - **no intro:** a black load of five and a half minutes, about 4,370 draws a frame, with the title's prompt ("move", "move camera") on screen from 6:45; - the cell at 8:10, gameplay as before (1.4–2.0 fps, the yard, the tower, the people); - **the trap is not reached:** 24 minutes in one run, and the step counter of my handler stayed at 0 in it and in three more runs of 400 s. I took that at first for a regression of a merge and spent four runs on it: the merged build (also with the two switches the merge had turned on, off), the merged runtime with the older translator, the older runtime with the merged translator — all the same with the save present. The merged build with that one container moved aside played the intro again and reached the trap at 366 s. So, as far as this machine shows, the stop at `+0x5149aec` stands in the way of the **first** start into gameplay only. A run that gets past it once writes a save, and the runs after that load it. A tester whose runs "stopped failing" may simply have one. And before two runs are compared on their builds, it is worth listing what the data folder gained between them: `find <data> -newermt '<start of the earlier run>'`.
Author
Owner

@⁠Ahmet-Dedeler on GitHub · 2026-11-25 18:46 UTC · original

Data point on the step-over, from a different tree: the fxceless line (0b0074e base) under CrossOver + D3DMetal on an M5 Max.

The pool filled 7-8 minutes into the opening in three runs (7m28, 7m03, 7m59 of game time). With our own step-over (VICTORY_STEP_OVER=pool: steps over a title int3 that is followed by a register-zeroing xor) the trap was stepped over, but both times the title then faulted 40-70 s later at +0x5290e15, a read of address 0. slauko's run above went 30+ minutes past the same trap on VItoriaBr 2b3c339e with fxceless#823/#845/#91, so what happens after the trap seems to depend on the tree (or on how it's stepped over), not only on the title.

Also, from one run only so take it loosely: with VICTORY_TEXTURE_CATCHUP=0 (frames about half as long while streaming) a 620 s run never filled the pool. Haven't repeated it yet.

**@⁠Ahmet-Dedeler** on GitHub · 2026-11-25 18:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7171381115) Data point on the step-over, from a different tree: the fxceless line (`0b0074e` base) under CrossOver + D3DMetal on an M5 Max. The pool filled 7-8 minutes into the opening in three runs (7m28, 7m03, 7m59 of game time). With our own step-over (`VICTORY_STEP_OVER=pool`: steps over a title `int3` that is followed by a register-zeroing `xor`) the trap was stepped over, but both times the title then faulted 40-70 s later at `+0x5290e15`, a read of address 0. slauko's run above went 30+ minutes past the same trap on VItoriaBr `2b3c339e` with fxceless#823/#845/#91, so what happens after the trap seems to depend on the tree (or on how it's stepped over), not only on the title. Also, from one run only so take it loosely: with `VICTORY_TEXTURE_CATCHUP=0` (frames about half as long while streaming) a 620 s run never filled the pool. Haven't repeated it yet.
Author
Owner

@⁠lhnizdo on GitHub · 2026-11-25 19:37 UTC · original

RTX 2080 (32-lane waves), Windows 10 19045: the pools only overflow during the opening cutscene. They drain afterwards, and making three of them larger gets into gameplay.

Stack: main 940d32f + #2460 #2461 #2462 #2464, diag build, VICTORY_SKIP_PIPELINES=f607780aa8e502d0 (the irradiance-cache shadow trace, which hangs here), scripted Enter presses. The InstanceCulling Prop/Slod/Tree passes still don't run on this card (WaveSize(64) refused; see my notes on #1960).

What fills. I watched the building pool (+0xa9ec938, joaat 0x5411E15C) every 5 s. It's empty for the first ~2 min, then climbs through the cutscene, and the game stopped at about 9–10 min when it reached 22,500. Two neighbours run dry right behind it:

  • 0x0BA88904: 192-byte slots, pool global +0x8fe1078, the +0x1fa88e4 site. Almost certainly the crash report's INSTANCE_LIST.
  • 0xC12C9884: 16-byte list nodes, pool global +0x8fe1088, the +0x5290e65 site. Once building can grow, the instances' list nodes run out next.

Making them larger. Every pool is sized by a config lookup by name hash (+0x50cef40) followed by the pool initialiser (+0x16cbe00). I redirected those lookup calls, all 632 pool creations, through a small jump next to the image to a host function that multiplies the size for chosen hashes. It's capped at 0x1FFF0 slots, since slot indices are 17 bits.

  • All 632 pools ×3: the title's allocator hits its fatal handler (+0x22106e0) at start; it doesn't fit the arena.
  • building + 0x0BA88904 ×3: building passed 22,500 (27,788), then 0xC12C9884 ran dry at +0x5290e65.
  • All three ×3: past the cutscene into gameplay (player control), 12+ min, no breakpoint, no device removal. building peaked at 28,653 (27% over the default) about 10 min in, then dropped to 7,817 within 2½ min. About 1.2 fps in gameplay.

So on this stack it isn't an unbounded leak. It's a burst during the cutscene that runs past the default sizes, presumably because the culling passes that would retire instances early don't run. The memory cost is small: about 15 MB more for building, 17 MB for 0x0BA88904, and very little for the list nodes.

For comparison: I also tried making the 2,602 pool-empty int 3 sites NOPs (as @⁠WalliceCariasPerussio did). Here that only moved the crash. The allocator's null path at +0x5290e65 jumps back into code that uses the result, and the run ended on a null read at +0x5290e15 at about the same time.

The code is a local diagnostics switch for now, and it only patches if the bytes at those RVAs match image b99f876b74d4a77f. I can share it if anyone wants to try the same.

AI-assisted (Claude Code); the runs were on my machine. No game data beyond addresses, instruction bytes and hash values.

**@⁠lhnizdo** on GitHub · 2026-11-25 19:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7172545292) **RTX 2080 (32-lane waves), Windows 10 19045: the pools only overflow during the opening cutscene. They drain afterwards, and making three of them larger gets into gameplay.** **Stack:** `main` `940d32f` + #2460 #2461 #2462 #2464, diag build, `VICTORY_SKIP_PIPELINES=f607780aa8e502d0` (the irradiance-cache shadow trace, which hangs here), scripted Enter presses. The `InstanceCulling` `Prop`/`Slod`/`Tree` passes still don't run on this card (`WaveSize(64)` refused; see my notes on #1960). **What fills.** I watched the `building` pool (`+0xa9ec938`, joaat `0x5411E15C`) every 5 s. It's empty for the first ~2 min, then climbs through the cutscene, and the game stopped at about 9–10 min when it reached 22,500. Two neighbours run dry right behind it: - `0x0BA88904`: 192-byte slots, pool global `+0x8fe1078`, the `+0x1fa88e4` site. Almost certainly the crash report's `INSTANCE_LIST`. - `0xC12C9884`: 16-byte list nodes, pool global `+0x8fe1088`, the `+0x5290e65` site. Once `building` can grow, the instances' list nodes run out next. **Making them larger.** Every pool is sized by a config lookup by name hash (`+0x50cef40`) followed by the pool initialiser (`+0x16cbe00`). I redirected those lookup calls, all 632 pool creations, through a small jump next to the image to a host function that multiplies the size for chosen hashes. It's capped at 0x1FFF0 slots, since slot indices are 17 bits. - **All 632 pools ×3:** the title's allocator hits its fatal handler (`+0x22106e0`) at start; it doesn't fit the arena. - **`building` + `0x0BA88904` ×3:** `building` passed 22,500 (27,788), then `0xC12C9884` ran dry at `+0x5290e65`. - **All three ×3:** past the cutscene into gameplay (player control), 12+ min, no breakpoint, no device removal. `building` peaked at **28,653** (27% over the default) about 10 min in, then **dropped to 7,817** within 2½ min. About 1.2 fps in gameplay. So on this stack it isn't an unbounded leak. It's a burst during the cutscene that runs past the default sizes, presumably because the culling passes that would retire instances early don't run. The memory cost is small: about 15 MB more for `building`, 17 MB for `0x0BA88904`, and very little for the list nodes. **For comparison:** I also tried making the 2,602 pool-empty `int 3` sites NOPs (as @⁠WalliceCariasPerussio did). Here that only moved the crash. The allocator's null path at `+0x5290e65` jumps back into code that uses the result, and the run ended on a null read at `+0x5290e15` at about the same time. The code is a local diagnostics switch for now, and it only patches if the bytes at those RVAs match image `b99f876b74d4a77f`. I can share it if anyone wants to try the same. AI-assisted (Claude Code); the runs were on my machine. No game data beyond addresses, instruction bytes and hash values.
Author
Owner

@⁠ThomasHFWright on GitHub · 2026-11-25 23:09 UTC · original

@⁠lhnizdo We reproduced the 45,000/45,000 prestream stop on an RTX 5090 with GE-Proton 11-14. Could you share the three-pool sizing patch or its branch? We can test whether occupancy drains and controls work on Linux.

**@⁠ThomasHFWright** on GitHub · 2026-11-25 23:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7177216865) @⁠lhnizdo We reproduced the 45,000/45,000 prestream stop on an RTX 5090 with GE-Proton 11-14. Could you share the three-pool sizing patch or its branch? We can test whether occupancy drains and controls work on Linux.
Author
Owner

@⁠lhnizdo on GitHub · 2026-11-25 23:25 UTC · original

@⁠ThomasHFWright Sure: lhnizdo/VIctory@diag/pool-scale. It's current main (f3578e3) plus five diagnostic commits, nothing else. It builds and is clippy-clean. I haven't rerun the game on this exact rebase yet; the runs in my comment above used the same code on 940d32f.

Use:

  • VICTORY_POOL_SCALE=3 triples the three pools that run dry: building (0x5411E15C), 0x0BA88904 (INSTANCE_LIST, 192-byte slots) and the list nodes (0xC12C9884). VICTORY_POOL_SCALE_HASHES=<hex>,<hex>… picks other pools instead. Sizes are capped at 0x1FFF0 slots, since slot indices are 17 bits.
  • When it takes effect, the log says VICTORY_POOL_SCALE: pool sizes hooked with the number of call sites patched.
  • It only patches the retail 1.0.2.1 image it was written against: it checks the bytes at the pool-size lookup first, and otherwise logs not the image it knows; pools left alone.
  • No feature flag needed, so a plain build works.
  • How it works: it redirects the title's calls to the pool-size config lookup (+0x50cef40) through a jump placed next to the image, to a host function that multiplies the size for the chosen hashes. The jump needs memory within ±2 GB of the image (VirtualAlloc near it), which Wine should give as well, but I've only run it on native Windows 10.

Watching occupancy: VICTORY_WATCH=A9EC938:10,20,30 logs the building pool's fields every 5 s; +0x10 is the live count and +0xC the capacity.

Two things that affect what you'll see:

  • A save changes the start. As @⁠slauko found, once a run gets into gameplay the title writes a story save (saves/…/SARC0015~…), and later runs load straight into the world without the intro. They never hit the prestream burst: with the save, building peaked at 10,787 on default sizes here. To test the patch on the intro, move that container aside first. A copy of the saves folder keeps it safe.
  • On a 32-lane card, the wave64 culling passes need #1960 or similar to run at all. Without them the burst during the intro is what overflows the defaults, and the scaling covers it.

AI-assisted (Claude Code); the runs were on my machine. No game data.

**@⁠lhnizdo** on GitHub · 2026-11-25 23:25 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7177537575) @⁠ThomasHFWright Sure: **[`lhnizdo/VIctory@diag/pool-scale`](https://github.com/lhnizdo/VIctory/tree/diag/pool-scale)**. It's current `main` (`f3578e3`) plus five diagnostic commits, nothing else. It builds and is clippy-clean. I haven't rerun the game on this exact rebase yet; the runs in my comment above used the same code on `940d32f`. **Use:** - `VICTORY_POOL_SCALE=3` triples the three pools that run dry: `building` (`0x5411E15C`), `0x0BA88904` (`INSTANCE_LIST`, 192-byte slots) and the list nodes (`0xC12C9884`). `VICTORY_POOL_SCALE_HASHES=<hex>,<hex>…` picks other pools instead. Sizes are capped at `0x1FFF0` slots, since slot indices are 17 bits. - When it takes effect, the log says `VICTORY_POOL_SCALE: pool sizes hooked` with the number of call sites patched. - It only patches the retail 1.0.2.1 image it was written against: it checks the bytes at the pool-size lookup first, and otherwise logs `not the image it knows; pools left alone`. - No feature flag needed, so a plain build works. - **How it works:** it redirects the title's calls to the pool-size config lookup (`+0x50cef40`) through a jump placed next to the image, to a host function that multiplies the size for the chosen hashes. The jump needs memory within ±2 GB of the image (`VirtualAlloc` near it), which Wine should give as well, but I've only run it on native Windows 10. **Watching occupancy:** `VICTORY_WATCH=A9EC938:10,20,30` logs the `building` pool's fields every 5 s; `+0x10` is the live count and `+0xC` the capacity. **Two things that affect what you'll see:** - **A save changes the start.** As @⁠slauko found, once a run gets into gameplay the title writes a story save (`saves/…/SARC0015~…`), and later runs load straight into the world without the intro. They never hit the prestream burst: with the save, `building` peaked at 10,787 on default sizes here. To test the patch on the intro, move that container aside first. A copy of the `saves` folder keeps it safe. - **On a 32-lane card,** the wave64 culling passes need #1960 or similar to run at all. Without them the burst during the intro is what overflows the defaults, and the scaling covers it. AI-assisted (Claude Code); the runs were on my machine. No game data.
Author
Owner

@⁠Anzymanz on GitHub · 2026-11-26 00:49 UTC · original

Data point from AMD on Linux, where this stop used to hit us too (int3 at +0x5149aec / +0x63966f about 7 min into the world on earlier builds):

  • Setup: RX 9070 XT (RDNA4, 64-lane waves), CachyOS, Mesa 26.3.1 RADV, GE-Proton11-14 (with the view-tree wineserver patch), vkd3d-proton master 71cae09.
  • Build: main 13f91ca plus #1997, #454, #2644 and #2703. #2644's step-over was armed for both addresses.
  • Result: two runs of 9 min 46 s and 9 min 11 s in the world. Neither hit the stop, and the step-over never fired. Both went through the opening cutscene into gameplay (the first interaction prompt in the cell). There was no crash and no device loss, at about 1 fps.

What changed for us since the runs that stopped: #2703 (the BVH builder's root constant was read as a root-view offset, which dropped draws), and a guard in our local dxil-spirv. One translated shader does a float TextureLoad on a resource declared U64, and dxil-spirv called std::terminate() on it (fixup_load_type_typed). Before that, our runs died before reaching this point. I haven't isolated which change matters for the pools, so take this as a single configuration that doesn't reproduce, not a fix.

AI assistance: written with Claude (Anthropic, Claude Code); the runs were done and checked on my own machine.

**@⁠Anzymanz** on GitHub · 2026-11-26 00:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7179147302) Data point from AMD on Linux, where this stop used to hit us too (int3 at `+0x5149aec` / `+0x63966f` about 7 min into the world on earlier builds): - **Setup:** RX 9070 XT (RDNA4, 64-lane waves), CachyOS, Mesa 26.3.1 RADV, GE-Proton11-14 (with the view-tree wineserver patch), vkd3d-proton master `71cae09`. - **Build:** `main` `13f91ca` plus #1997, #454, #2644 and #2703. #2644's step-over was armed for both addresses. - **Result:** two runs of 9 min 46 s and 9 min 11 s in the world. Neither hit the stop, and the step-over never fired. Both went through the opening cutscene into gameplay (the first interaction prompt in the cell). There was no crash and no device loss, at about 1 fps. What changed for us since the runs that stopped: #2703 (the BVH builder's root constant was read as a root-view offset, which dropped draws), and a guard in our local dxil-spirv. One translated shader does a float `TextureLoad` on a resource declared U64, and dxil-spirv called `std::terminate()` on it (`fixup_load_type_typed`). Before that, our runs died before reaching this point. I haven't isolated which change matters for the pools, so take this as a single configuration that doesn't reproduce, not a fix. *AI assistance: written with Claude (Anthropic, Claude Code); the runs were done and checked on my own machine.*
Author
Owner

@⁠Tanju42 on GitHub · 2026-11-26 18:00 UTC · original

Data point from the #1065 machine (RTX 5060 Laptop 8 GB, 31 GB RAM, Windows, Series X profile, story save start — every earlier run here died at Pool: 59197833x/624951280, byte-identical across five tips):

  • Tree: our fork main e4245f3 with the five diag commits cherry-picked clean (6a0f913), built --features diagnostics
  • Env: VICTORY_POOL_SCALE=3 + VICTORY_WATCH=A9EC938:10,20,30
  • Watch steady at world: image+0xa9ec938 -> 0xdfcf8b420: +0x10=0x1da4 +0x20=0x2049 (live 7588, free-list head valid — never the empty marker)
  • Result: died at Frame 3100 (previous best on the same tree without the scale: 1790), last logged world fps ~32 (was 1–2.5)
  • Pool block at abort: Pool: 618786416/624951280 — for the first time the fill is NOT the constant 591,978,3xx. It climbed to 99 % of the total.

Reading: the constant we kept hitting on this machine was the three fixed pools filling at their console config, not a title-side mystery constant. Tripling them moved the death point deep into the actual byte ceiling. Question for @⁠lhnizdo: worth a run with VICTORY_POOL_SCALE=6 (or a targeted POOL_SCALE_HASHES + the list-node pool again) on this config before I try VICTORY_POOL_NO_ASSERT=1, or is the byte pool at 624951280 itself the next hard thing worth instrumenting? Happy to run either — one run per change, logging the pool line each time.

**@⁠Tanju42** on GitHub · 2026-11-26 18:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7199950675) Data point from the #1065 machine (RTX 5060 Laptop 8 GB, 31 GB RAM, Windows, Series X profile, story save start — every earlier run here died at `Pool: 59197833x/624951280`, byte-identical across five tips): - Tree: our fork main `e4245f3` with the five diag commits cherry-picked clean (`6a0f913`), built `--features diagnostics` - Env: `VICTORY_POOL_SCALE=3` + `VICTORY_WATCH=A9EC938:10,20,30` - Watch steady at world: `image+0xa9ec938 -> 0xdfcf8b420: +0x10=0x1da4 +0x20=0x2049` (live 7588, free-list head valid — never the empty marker) - Result: died at **Frame 3100** (previous best on the same tree without the scale: 1790), last logged world fps `~32` (was 1–2.5) - **Pool block at abort: `Pool: 618786416/624951280`** — for the first time the fill is NOT the constant `591,978,3xx`. It climbed to 99 % of the total. Reading: the constant we kept hitting on this machine was the three fixed pools filling at their console config, not a title-side mystery constant. Tripling them moved the death point deep into the actual byte ceiling. Question for @⁠lhnizdo: worth a run with `VICTORY_POOL_SCALE=6` (or a targeted `POOL_SCALE_HASHES` + the list-node pool again) on this config before I try `VICTORY_POOL_NO_ASSERT=1`, or is the byte pool at `624951280` itself the next hard thing worth instrumenting? Happy to run either — one run per change, logging the pool line each time.
Author
Owner

@⁠Tanju42 on GitHub · 2026-11-26 18:06 UTC · original

Follow-up from the same machine, as promised: one run with VICTORY_POOL_SCALE=6 (identical tree 6a0f913, same env otherwise). Hook active: factor=6 sites=632 patched=632 hashes=[building, INSTANCE_LIST, list-nodes].

Result is WORSE: abort at Frame 653 (scale 3 gave 3100), crash context shows Pool: 0/0 and the whole POOLS section at 0/0 with Current script program: 0x0, TileHeap only 448 MB used — the title aborts very early in the load, before the pools report anything. No pool-dry breakpoint, different stop than the scale-1 and scale-3 runs.

Reading: at factor 6 the enlarged pools themselves seem to eat the 624,951,280-byte ceiling during world load (or a slot count crosses something the title does not like — the 17-bit cap comment). Factor 3 is currently the sweet spot here: it kept every pool I watched (live 7588, valid free head) and moved the stop from the old 591,978,3xx constant to the real ceiling at 99 % fill, Frame 3100.

I have VICTORY_POOL_NO_ASSERT=1 armed mentally but holding it until you say the degraded-state read is safe. Next data point I can add without asking: targeted POOL_SCALE_HASHES per pool at 3 — say the word which split you want (building/INSTANCE_LIST at 3 with list-nodes at 5?), one run per change, pool line reported every time.

**@⁠Tanju42** on GitHub · 2026-11-26 18:06 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200068596) Follow-up from the same machine, as promised: one run with `VICTORY_POOL_SCALE=6` (identical tree `6a0f913`, same env otherwise). Hook active: `factor=6 sites=632 patched=632 hashes=[building, INSTANCE_LIST, list-nodes]`. Result is WORSE: abort at **Frame 653** (scale 3 gave 3100), crash context shows `Pool: 0/0` and the whole `POOLS` section at `0/0` with `Current script program: 0x0`, TileHeap only 448 MB used — the title aborts very early in the load, before the pools report anything. No pool-dry breakpoint, different stop than the scale-1 and scale-3 runs. Reading: at factor 6 the enlarged pools themselves seem to eat the 624,951,280-byte ceiling during world load (or a slot count crosses something the title does not like — the 17-bit cap comment). Factor 3 is currently the sweet spot here: it kept every pool I watched (live 7588, valid free head) and moved the stop from the old `591,978,3xx` constant to the real ceiling at 99 % fill, Frame 3100. I have `VICTORY_POOL_NO_ASSERT=1` armed mentally but holding it until you say the degraded-state read is safe. Next data point I can add without asking: targeted `POOL_SCALE_HASHES` per pool at 3 — say the word which split you want (building/INSTANCE_LIST at 3 with list-nodes at 5?), one run per change, pool line reported every time.
Author
Owner

@⁠Tanju42 on GitHub · 2026-11-26 18:14 UTC · original

Scale sweep on this machine, same tree 6a0f913, one run per factor, story-save start:

factor stop pool at abort note
1 (none) Frame 1790 591,978,352/624,951,280 the old constant
3 Frame 3100 618,786,416/624,951,280 99.0 % fill, last fps ~32
4 Frame 4080 623,916,448/624,951,280 99.8 % fill — one MiB short of the ceiling; ran ~5.5 min
6 Frame 653 0/0, whole POOLS section 0/0 early abort during load, pools seem to eat the byte pool

Watch at factor 4 stayed clean to 2 s before the stop: building pool live 0x1da4, free head 0x1afe, never the empty marker. So 4 is better than 3: same class of stop, deeper, at the true byte ceiling. Two questions where your call saves me two runs: (a) worth sweeping 5 before I go to per-hash splits? (b) if 4/5 is the sweet spot, is the byte ceiling itself (624,951,280) something the host could raise at the same hook site, or is that config baked elsewhere? I will not touch VICTORY_POOL_NO_ASSERT until you say so.

**@⁠Tanju42** on GitHub · 2026-11-26 18:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200222357) Scale sweep on this machine, same tree `6a0f913`, one run per factor, story-save start: | factor | stop | pool at abort | note | |---|---|---|---| | 1 (none) | Frame 1790 | 591,978,352/624,951,280 | the old constant | | 3 | Frame 3100 | 618,786,416/624,951,280 | 99.0 % fill, last fps ~32 | | 4 | **Frame 4080** | **623,916,448/624,951,280** | 99.8 % fill — one MiB short of the ceiling; ran ~5.5 min | | 6 | Frame 653 | 0/0, whole POOLS section 0/0 | early abort during load, pools seem to eat the byte pool | Watch at factor 4 stayed clean to 2 s before the stop: building pool live `0x1da4`, free head `0x1afe`, never the empty marker. So 4 is better than 3: same class of stop, deeper, at the true byte ceiling. Two questions where your call saves me two runs: (a) worth sweeping 5 before I go to per-hash splits? (b) if 4/5 is the sweet spot, is the byte ceiling itself (`624,951,280`) something the host could raise at the same hook site, or is that config baked elsewhere? I will not touch `VICTORY_POOL_NO_ASSERT` until you say so.
Author
Owner

@⁠lhnizdo on GitHub · 2026-11-26 18:15 UTC · original

@⁠Tanju42, thank you, that's a very useful pair of runs. Factor 6 failing early fits the ceiling: every scaled pool takes its whole size up front, so a larger factor spends the 624,951,280 bytes before the world even loads.

From my side (RTX 2080, the same story save), the building pool (0x5411E15C) peaked at 28,653 slots of its 22,500, about ×1.27, during the opening cutscene, and it drained afterwards. So it needs much less than ×3. For the next run I'd try a smaller factor per pool, to leave room under the ceiling:

  • building ×2
  • INSTANCE_LIST ×3
  • list nodes ×3

Please report each pool's line (live / size / free head) as before, plus the frame and the memory used at the stop, one change per run. If it stops at the ceiling again, then building ×2 with the other two at ×2 would show whether INSTANCE_LIST is the one that needs the most.

About VICTORY_POOL_NO_ASSERT=1: I'd keep it off for the readings. It only changes what happens after a pool runs dry, so the title then keeps going on a pool it considers full. Anything it reports after that point (and whether it hangs or corrupts later) isn't a reading of the real need. It's fine for "does it get further at all", but not for sizing.

AI-assisted (Claude Code). No game data.

**@⁠lhnizdo** on GitHub · 2026-11-26 18:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/698#issuecomment-7200246559) @⁠Tanju42, thank you, that's a very useful pair of runs. Factor 6 failing early fits the ceiling: every scaled pool takes its whole size up front, so a larger factor spends the 624,951,280 bytes before the world even loads. From my side (RTX 2080, the same story save), the `building` pool (0x5411E15C) peaked at 28,653 slots of its 22,500, about ×1.27, during the opening cutscene, and it drained afterwards. So it needs much less than ×3. For the next run I'd try a smaller factor per pool, to leave room under the ceiling: - `building` ×2 - `INSTANCE_LIST` ×3 - list nodes ×3 Please report each pool's line (live / size / free head) as before, plus the frame and the memory used at the stop, one change per run. If it stops at the ceiling again, then `building` ×2 with the other two at ×2 would show whether `INSTANCE_LIST` is the one that needs the most. About `VICTORY_POOL_NO_ASSERT=1`: I'd keep it off for the readings. It only changes what happens after a pool runs dry, so the title then keeps going on a pool it considers full. Anything it reports after that point (and whether it hangs or corrupts later) isn't a reading of the real need. It's fine for "does it get further at all", but not for sizing. AI-assisted (Claude Code). No game data.
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#698
No description provided.