Title slots exceed host descriptor heap on NVIDIA/WARP (count=934464), device removed / null write #1808

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

@⁠Ashley123477 on GitHub · 2026-11-24 22:54 UTC · original

System

  • GPU: NVIDIA GeForce RTX 4090, driver 621.40
  • OS: Windows 11
  • VIctory commit: 70564ae (README: status of 2026-11-24)

What happens
The title writes descriptor slots past the end of the host CBV/SRV/UAV heap. The host heap is created with count=934464 (1,000,000 − 65,536), but the title uses indices ≥1,088,026:

WARN victory_gpu::descriptor::host: title slot past the host heap index=1088026 count=934464 for_draw=false
WARN victory_gpu::descriptor::host: title slot past the host heap index=1088027 count=934464 for_draw=false
WARN victory_gpu::descriptor::host: title slot past the host heap index=1088028 count=934464 for_draw=false

After that, one of two failures:

  1. Device removed after the first submission (release build):
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (0x887A0004); device removed: The application made a call that is invalid. (0x887A0001)
  1. Access violation on a title thread:
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x258b000 (write 0x0: nothing mapped there)
  #0  victory-image-b99f876b74d4a77f.dll+0x258b000
  #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3  KERNEL32.DLL+0x2dda7
  #4  ntdll.dll+0xc9c5c

Tried

  • VICTORY_D3D12_WARP=1: same device-removed failure, so it doesn't look driver-specific. 1M is the shader-visible heap cap on NVIDIA and WARP.
  • Diagnostics build with VICTORY_D3D12_DEBUG=1: boots (slowly), still logs title slot past the host heap.

Possibly related
#11 / 3827767 ("GPU: make tables past a capped host view heap afresh"). This build includes that commit and still hits the capped heap with count=934464.

**@⁠Ashley123477** on GitHub · 2026-11-24 22:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/1808) **System** - GPU: NVIDIA GeForce RTX 4090, driver 621.40 - OS: Windows 11 - VIctory commit: 70564ae (README: status of 2026-11-24) **What happens** The title writes descriptor slots past the end of the host CBV/SRV/UAV heap. The host heap is created with count=934464 (1,000,000 − 65,536), but the title uses indices ≥1,088,026: ``` WARN victory_gpu::descriptor::host: title slot past the host heap index=1088026 count=934464 for_draw=false WARN victory_gpu::descriptor::host: title slot past the host heap index=1088027 count=934464 for_draw=false WARN victory_gpu::descriptor::host: title slot past the host heap index=1088028 count=934464 for_draw=false ``` After that, one of two failures: 1. Device removed after the first submission (release build): ``` ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (0x887A0004); device removed: The application made a call that is invalid. (0x887A0001) ``` 2. Access violation on a title thread: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x258b000 (write 0x0: nothing mapped there) #0 victory-image-b99f876b74d4a77f.dll+0x258b000 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x2dda7 #4 ntdll.dll+0xc9c5c ``` **Tried** - `VICTORY_D3D12_WARP=1`: same device-removed failure, so it doesn't look driver-specific. 1M is the shader-visible heap cap on NVIDIA and WARP. - Diagnostics build with `VICTORY_D3D12_DEBUG=1`: boots (slowly), still logs `title slot past the host heap`. **Possibly related** #11 / 3827767 ("GPU: make tables past a capped host view heap afresh"). This build includes that commit and still hits the capped heap with count=934464.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:13 +00:00
Author
Owner

@⁠iokza on GitHub · 2026-11-24 23:07 UTC · original

same

**@⁠iokza** on GitHub · 2026-11-24 23:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7147047697) same
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:47 UTC · original · edited 2026-11-25 18:48 UTC

Automated triage for the maintainers.

Run reports: RTX 4090 (driver 621.40, Windows 11, 70564ae) and RTX 5060 (driver 621.24, Windows 11 26300, 70564ae, and with #1775/#1777). Three things are in here:

  • The capped heap. On main, HostHeap::new in crates/victory-gpu/src/descriptor/host.rs caps a refused view heap at 1,000,000 and keeps part of it for dynamic tables. So count=934464 and the title slot past the host heap warnings for higher indices are expected. The cap is tracked in #747.
  • The device removal (0x887A0004 / 0x887A0001, no breadcrumbs) on stock 70564ae is the NVIDIA invalid-call removal tracked in #1753: unordered access on formats NVIDIA cannot store. The open PRs are #1763, #2459 and #1787.
  • The null write at +0x258b000 during Game Init, frame 0. New: on an RTX 4090 with the #1763 branch (50d91b1) on its own, this write is gone. So it appears to be a consequence of the #1753 problem, not a separate stop. #1763 does not merge cleanly onto main (conflict in the tests of descriptor/host.rs), so it needs a rebase.

With #1763 the run boots through the loading screens at 30 fps for about 3 minutes. It then stops with the title's null write at +0x23cf683 (frames +0x2215c35 / +0x2215eca), the same on a third-party fork at frame 5345. That is the +0x23cf683 stop tracked in #1118, which the thread in #97 relates to the title's own watchdog after slow GPU work. Two compute pipelines were refused there with 0x80070057 (88994c3496045f51, 13dfdd3b1136e407), which is likely the wave64 refusal on 32-lane hosts (#2220).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7162858279) · edited 2026-11-25 18:48 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T17:04:32Z at=2026-11-25T19:27:00Z --> Automated triage for the maintainers. Run reports: RTX 4090 (driver 621.40, Windows 11, `70564ae`) and RTX 5060 (driver 621.24, Windows 11 26300, `70564ae`, and with #1775/#1777). Three things are in here: - **The capped heap.** On `main`, `HostHeap::new` in `crates/victory-gpu/src/descriptor/host.rs` caps a refused view heap at 1,000,000 and keeps part of it for dynamic tables. So `count=934464` and the `title slot past the host heap` warnings for higher indices are expected. The cap is tracked in #747. - **The device removal** (`0x887A0004` / `0x887A0001`, no breadcrumbs) on stock `70564ae` is the NVIDIA invalid-call removal tracked in #1753: unordered access on formats NVIDIA cannot store. The open PRs are #1763, #2459 and #1787. - **The null write at `+0x258b000`** during Game Init, frame 0. New: on an RTX 4090 with the #1763 branch (`50d91b1`) on its own, this write is gone. So it appears to be a consequence of the #1753 problem, not a separate stop. #1763 does not merge cleanly onto `main` (conflict in the tests of `descriptor/host.rs`), so it needs a rebase. With #1763 the run boots through the loading screens at 30 fps for about 3 minutes. It then stops with the title's null write at `+0x23cf683` (frames `+0x2215c35` / `+0x2215eca`), the same on a third-party fork at frame 5345. That is the `+0x23cf683` stop tracked in #1118, which the thread in #97 relates to the title's own watchdog after slow GPU work. Two compute pipelines were refused there with `0x80070057` (`88994c3496045f51`, `13dfdd3b1136e407`), which is likely the wave64 refusal on 32-lane hosts (#2220). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Ashley123477 on GitHub · 2026-11-25 16:10 UTC · original

Tested the #1763 branch head (50d91b1) on RTX 4090, driver 621.40, i9-14900K, Windows 10.0.26200. #1763 does not merge cleanly onto main 940d32f (conflict in the tests of crates/victory-gpu/src/descriptor/host.rs around a_texture_view_gives_its_image_descriptor_size_fields), so this is the PR branch on its own.

Result: no device removal, and the +0x258b000 null write is gone. It boots through the loading screens at a steady 30 fps (frame ~4836, about 3 minutes), then hits a different null write from the same job-dispatcher frames:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
  rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0x57f61ffc48 rdi 0x1fd1c8b1f3 rsp 0x57f61ffbd0 rbp 0x0
  r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40 r12 0x1f7e4bec00 r13 0x7ffb90535c28 r14 0x7ffd1ca7b220 r15 0x1fc020c0e4
  #0  victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3  KERNEL32.DLL+0x2dda7
  #4  ntdll.dll+0xc9c5c

Before the crash, two compute pipelines were refused and their dispatches dropped:

WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 88994c3496045f51]
WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 13dfdd3b1136e407]
WARN victory_gpu::draw: a dispatch without a host pipeline dropped pipeline=0x24d8934f0f0

The title's Breakpad handler then fired and tried to upload a minidump to submit.backtrace.io (blocked by VIctory).

**@⁠Ashley123477** on GitHub · 2026-11-25 16:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7167663453) Tested the #1763 branch head (`50d91b1`) on RTX 4090, driver 621.40, i9-14900K, Windows 10.0.26200. #1763 does not merge cleanly onto main `940d32f` (conflict in the tests of `crates/victory-gpu/src/descriptor/host.rs` around `a_texture_view_gives_its_image_descriptor_size_fields`), so this is the PR branch on its own. Result: no device removal, and the `+0x258b000` null write is gone. It boots through the loading screens at a steady 30 fps (frame ~4836, about 3 minutes), then hits a different null write from the same job-dispatcher frames: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0x57f61ffc48 rdi 0x1fd1c8b1f3 rsp 0x57f61ffbd0 rbp 0x0 r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40 r12 0x1f7e4bec00 r13 0x7ffb90535c28 r14 0x7ffd1ca7b220 r15 0x1fc020c0e4 #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x2dda7 #4 ntdll.dll+0xc9c5c ``` Before the crash, two compute pipelines were refused and their dispatches dropped: ``` WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 88994c3496045f51] WARN victory_gpu::pipeline::host: host pipeline refused error=The parameter is incorrect. (0x80070057) shaders=[compute 13dfdd3b1136e407] WARN victory_gpu::draw: a dispatch without a host pipeline dropped pipeline=0x24d8934f0f0 ``` The title's Breakpad handler then fired and tried to upload a minidump to submit.backtrace.io (blocked by VIctory).
Author
Owner

@⁠Ashley123477 on GitHub · 2026-11-25 17:04 UTC · original

Same null write reproduces on the DexNom fork (which logs no title slot past the host heap warnings and no device removal). The game loads story000_restofworld.rpf, reaches frame 5345, then crashes at +0x23cf683 with frames +0x2215c35 / +0x2215eca and identical rcx/r8–r11, so it's deterministic and not caused by the heap cap. One compute pipeline refused: 02384a60fda6f2d0 (0x80070057).

**@⁠Ashley123477** on GitHub · 2026-11-25 17:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7168964632) Same null write reproduces on the DexNom fork (which logs no title slot past the host heap warnings and no device removal). The game loads story000_restofworld.rpf, reaches frame 5345, then crashes at +0x23cf683 with frames +0x2215c35 / +0x2215eca and identical rcx/r8–r11, so it's deterministic and not caused by the heap cap. One compute pipeline refused: 02384a60fda6f2d0 (0x80070057).
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#1808
No description provided.