0x887A0001 (INVALID_CALL) at frame 2,498 right after depth-texture UAV logs (RTX 3080, driver 621.14) #72

Closed
opened 2026-11-26 03:35:37 +00:00 by github-bot · 5 comments
Owner

@⁠Aminou973 on GitHub · 2026-11-24 21:09 UTC · original

RTX 3080 10 GB (driver 621.14, Win 11), the fxceless/victory-gta6 fork (main, diag build, fresh cache): 0x887A0001 (INVALID_CALL) device removal at frame 2,498, still in Prestream; the segment before presented 11,221 draws/frame with no hang, and an earlier run reached 3,610+ frames with no device loss — the upstream 0x887A0006 mesh-batch hang is gone on this card. Immediately before the removal, repeated victory_gpu::descriptor::host: unordered access view of a depth texture resource=0x102127e950 view=Some([56,...]) / view=Some([62,4,0,1,...]) logs — a compute pass taking UAVs of a depth texture. Rerunning with VICTORY_D3D12_DEBUG=1 to name the exact rejected command. Measured on my own copy; no game data. AI-assisted.

**@⁠Aminou973** on GitHub · 2026-11-24 21:09 UTC · [original](https://github.com/fxceless/victory-fork/issues/72) RTX 3080 10 GB (driver 621.14, Win 11), the `fxceless/victory-gta6` fork (main, diag build, fresh cache): **0x887A0001 (INVALID_CALL) device removal at frame 2,498**, still in Prestream; the segment before presented 11,221 draws/frame with no hang, and an earlier run reached 3,610+ frames with no device loss — the upstream 0x887A0006 mesh-batch hang is gone on this card. Immediately before the removal, repeated `victory_gpu::descriptor::host: unordered access view of a depth texture resource=0x102127e950 view=Some([56,...])` / `view=Some([62,4,0,1,...])` logs — a compute pass taking UAVs of a depth texture. Rerunning with `VICTORY_D3D12_DEBUG=1` to name the exact rejected command. Measured on my own copy; no game data. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:37 +00:00
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 21:14 UTC · original

Named with VICTORY_D3D12_DEBUG=1, logged twice around the removal:

debug layer: ID3D12Device::CreateConstantBufferView: Size of 2785536 exceeds maximum constant buffer view size.

So the invalid call is a >64 KB constant-buffer view — legal on the console's D3D12, refused by PC D3D12 (CBV max 64 KB). Device removal is INVALID_CALL right after this CBV is recorded into a list. Next: I'll try clamping SizeInBytes to 65536 host-side and report whether the run gets past it.

**@⁠Aminou973** on GitHub · 2026-11-24 21:14 UTC · [original](https://github.com/fxceless/victory-fork/issues/72#issuecomment-7144672471) Named with `VICTORY_D3D12_DEBUG=1`, logged twice around the removal: > debug layer: ID3D12Device::CreateConstantBufferView: Size of 2785536 exceeds maximum constant buffer view size. So the invalid call is a **>64 KB constant-buffer view** — legal on the console's D3D12, refused by PC D3D12 (CBV max 64 KB). Device removal is INVALID_CALL right after this CBV is recorded into a list. Next: I'll try clamping `SizeInBytes` to 65536 host-side and report whether the run gets past it.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 21:35 UTC · original

The clamp works. Same card, SizeInBytes clamped to 65536 host-side in both CBV paths:

  • no device removal at all this run (previous two: INVALID_CALL at frames 2,498 / 3,387); clean close at frame 4,393;
  • the prologue renders: geometry, characters, structures, ~2 fps / 460 ms per frame, 4,844 draws/frame (matches your README's RTX 4070 numbers);
  • 2,910 shaders used up to that frame (2,041 compute, 1,028 mesh, 1,857 pixel, 700 vertex), only 4 compute pipelines still refused by the host;
  • the clamp fired, so the title does issue the oversized CBV throughout the world scene, not once — a permanent fix needs this in the tree.

Patch here is 2 sites in crates/victory-gpu/src/descriptor/host.rs (constant_at and make/View::Constant): SizeInBytes: size.next_multiple_of(256).min(65536) with a one-time warn. Happy to open a PR (branch on my fork).

**@⁠Aminou973** on GitHub · 2026-11-24 21:35 UTC · [original](https://github.com/fxceless/victory-fork/issues/72#issuecomment-7145125369) **The clamp works.** Same card, `SizeInBytes` clamped to 65536 host-side in both CBV paths: - **no device removal at all** this run (previous two: INVALID_CALL at frames 2,498 / 3,387); clean close at frame 4,393; - **the prologue renders**: geometry, characters, structures, ~2 fps / 460 ms per frame, 4,844 draws/frame (matches your README's RTX 4070 numbers); - 2,910 shaders used up to that frame (2,041 compute, 1,028 mesh, 1,857 pixel, 700 vertex), only 4 compute pipelines still refused by the host; - the clamp fired, so the title does issue the oversized CBV throughout the world scene, not once — a permanent fix needs this in the tree. Patch here is 2 sites in `crates/victory-gpu/src/descriptor/host.rs` (`constant_at` and `make`/`View::Constant`): `SizeInBytes: size.next_multiple_of(256).min(65536)` with a one-time warn. Happy to open a PR (branch on my fork).
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 21:46 UTC · original

Run 4 on the same 3080, with VICTORY_GPU_TIMING=1 + your speed-switch set (VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_*). Frame 2,076, clean, prologue again ~400 ms/frame with 4,609 draws — the switches did not move the frame time here.

What the timings say the frame time actually is:

  • GPU command lists are fine: across the whole run, exactly one slow host list above 50 ms (73 ms, in loading); everything else is well under.
  • The heavy part is host-side title-memory work: per frame the copystat shows ~2,400 memory "watches" checking ~10.7 GB of title memory (~30 ms), on top of thousands of title-buffer copy recs and page-fault traffic — the same shape your README records as "copies dominate the frame, not compilation" (#400-style: preparing >> GPU).

So on this card the next lever is the title-memory copy/watch path, not shader work: your VICTORY_INPLACE stages (buffers used in place instead of copied) and VICTORY_CARD_BUFFERS are the mechanisms aimed at exactly this. One config note: the relay lines show nothing in the log — VICTORY_RELAY=2 did not appear to activate (no "relay" lines at all); worth a check on this build.

**@⁠Aminou973** on GitHub · 2026-11-24 21:46 UTC · [original](https://github.com/fxceless/victory-fork/issues/72#issuecomment-7145361599) **Run 4 on the same 3080, with `VICTORY_GPU_TIMING=1` + your speed-switch set (`VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_*`).** Frame 2,076, clean, prologue again ~400 ms/frame with 4,609 draws — the switches did not move the frame time here. What the timings say the frame time actually is: - **GPU command lists are fine**: across the whole run, exactly **one** slow host list above 50 ms (73 ms, in loading); everything else is well under. - The heavy part is **host-side title-memory work**: per frame the copystat shows ~2,400 memory "watches" checking **~10.7 GB** of title memory (~30 ms), on top of thousands of title-buffer copy recs and page-fault traffic — the same shape your README records as "copies dominate the frame, not compilation" (#400-style: preparing >> GPU). So on this card the next lever is the title-memory copy/watch path, not shader work: your `VICTORY_INPLACE` stages (buffers used in place instead of copied) and `VICTORY_CARD_BUFFERS` are the mechanisms aimed at exactly this. One config note: the relay lines show nothing in the log — `VICTORY_RELAY=2` did not appear to activate (no "relay" lines at all); worth a check on this build.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 21:56 UTC · original

VICTORY_INPLACE=1 follow-up on the same 3080 (timing on, also LATE_WAIT=3 + card buffers): clean to frame 3,419, no removals. The mode activates but only its first stage:

title memory in place: 1 windows 4 MB, 0 title buffers 0 MB (no copy, no refresh, no copy-back)

Per frame the host still checks ~10.3 GB of title memory through ~2,200 watches (~28 ms) and makes ~13,800 title copies — the dominant frame cost from the previous post is unchanged. So the big buffers the prologue streams through are not the 4 MB window. Is the "title buffers in place" stage implemented in this fork (VICTORY_INPLACE_MB seems to bound only the window), or does it need what the README calls probe/first-stage only? If there's a switch/limit that lets the streamed buffers go in place, that's the frame-time lever this card is waiting for.

**@⁠Aminou973** on GitHub · 2026-11-24 21:56 UTC · [original](https://github.com/fxceless/victory-fork/issues/72#issuecomment-7145601526) **`VICTORY_INPLACE=1` follow-up on the same 3080** (timing on, also `LATE_WAIT=3` + card buffers): clean to frame 3,419, no removals. The mode activates but only its first stage: > title memory in place: 1 windows 4 MB, 0 title buffers 0 MB (no copy, no refresh, no copy-back) Per frame the host still checks ~10.3 GB of title memory through ~2,200 watches (~28 ms) and makes ~13,800 title copies — the dominant frame cost from the previous post is unchanged. So the big buffers the prologue streams through are not the 4 MB window. Is the "title buffers in place" stage implemented in this fork (`VICTORY_INPLACE_MB` seems to bound only the window), or does it need what the README calls probe/first-stage only? If there's a switch/limit that lets the streamed buffers go in place, that's the frame-time lever this card is waiting for.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 22:20 UTC · original

Correction to my posts above: VICTORY_RELAY exists (host.rs:1733); "didn't activate" only meant no log line. And the GPU is a large share: your per-frame line gives the card ~51% busy at default (~242 ms GPU plus ~226 ms of preparation, serialized), ~60% with the speed switches (~232 + ~149). The constant-buffer fix here duplicates #24 (and #104 covers the staged copy); closing this in favour of #24.

**@⁠Aminou973** on GitHub · 2026-11-24 22:20 UTC · [original](https://github.com/fxceless/victory-fork/issues/72#issuecomment-7146116362) Correction to my posts above: `VICTORY_RELAY` exists (`host.rs:1733`); "didn't activate" only meant no log line. And the GPU *is* a large share: your per-frame line gives the card ~51% busy at default (~242 ms GPU plus ~226 ms of preparation, serialized), ~60% with the speed switches (~232 + ~149). The constant-buffer fix here duplicates #24 (and #104 covers the staged copy); closing this in favour of #24.
This discussion has been locked. Commenting is limited to contributors.
No description provided.