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

Open
opened 2026-11-24 22:54:10 +00:00 by Ashley123477 · 5 comments
Ashley123477 commented 2026-11-24 22:54:10 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by Ashley123477 on 2026-11-24T22:54:10Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6593041080 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1808). Originally posted by [Ashley123477](https://github.com/Ashley123477) on 2026-11-24T22:54:10Z. --- **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.
iokza commented 2026-11-25 00:06:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by iokza on 2026-11-24T23:07:49Z.


same

<!-- greyfinch-sync:Marvisak/VIctory:comment:7147047697 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7147047697). Originally posted by [iokza](https://github.com/iokza) on 2026-11-24T23:07:49Z. --- same
LucasFelip commented 2026-11-25 03:03:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by LucasFelip on 2026-11-25T02:39:31Z.


Same crash on RTX 5060, also with #1775 + #1777 applied (Game Init, frame 0)

System

  • GPU: NVIDIA GeForce RTX 5060, driver 621.24
  • CPU: AMD Ryzen 7 5700G, RAM 24 GB
  • OS: Windows 11 (build 26300)
  • Rust 1.98.1 (release build), retail 1.0.2.1 dump, translate --cache --pipelines done before running

Builds tried

  1. main at 70564ae: host device removed (0x887A0004 / 0x887A0001), as in #1753.
  2. PR #1775 branch (head b079909, which includes upstream main 4118f33): the device removal is gone, but the process dies with the access violation below.
  3. Local merge of #1775 + #1777 (3635e70) on top of that: same access violation.

What #1777 changes in the log

  • host view heap capped at 1000000 ... count=1245184 kept=934461 (was count=934464 before)
  • the host caps view heaps: shader heap indices clamped below it views=1000000
  • The no room for the null buffer views warning is gone.
  • Everything else is unchanged: 53,472 title slot past the host heap warnings in a ~35 s run.

Crash (identical with #1775 and with #1775 + #1777)

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

The registers are the same on both runs (rcx 0x4189374bc6a7f0, r8 0x83), so it is deterministic. The stack matches the one in this issue and the +0x2215eca frame from #1464.

Title's own crash log (written just before exit)
Game State: Game Init, Frame: 0, Streaming Requests: 6, TileHeap: used (66Mb) - total (6236Mb), camera at the default position.
So the title aborts during init, before the first frame is drawn, which shows as a black window and then exit. The host GPU device is still alive at that point, with no device-removed error.

Observations

  • Pipeline library saved fine (53,341 pipelines created), shaders_translated=0 (cache hit), so this does not look like a translation failure at boot.
  • The title's Breakpad upload attempt to submit.backtrace.io was blocked by VIctory's net HLE, as intended.
  • #1777 fixes the null buffer views and the shader clamp, but the title still writes ~54k slots past the capped heap, so it does not look sufficient for this crash.

Question
Is the abort at +0x2215eca the deliberate fatal-error handler that a comment in #1464 describes (a write to 0x0 after a failed check)? If so, which check fails during Game Init on a capped heap, the slots past the 934,461 limit or something else? I can run a diagnostics build (VICTORY_D3D12_DEBUG / DRED) and post the output if that helps.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7151010006 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7151010006). Originally posted by [LucasFelip](https://github.com/LucasFelip) on 2026-11-25T02:39:31Z. --- **Same crash on RTX 5060, also with #1775 + #1777 applied (Game Init, frame 0)** **System** - GPU: NVIDIA GeForce RTX 5060, driver 621.24 - CPU: AMD Ryzen 7 5700G, RAM 24 GB - OS: Windows 11 (build 26300) - Rust 1.98.1 (release build), retail 1.0.2.1 dump, `translate --cache --pipelines` done before running **Builds tried** 1. `main` at 70564ae: host device removed (0x887A0004 / 0x887A0001), as in #1753. 2. PR #1775 branch (head b079909, which includes upstream main 4118f33): the device removal is gone, but the process dies with the access violation below. 3. Local merge of #1775 + #1777 (3635e70) on top of that: same access violation. **What #1777 changes in the log** - `host view heap capped at 1000000 ... count=1245184 kept=934461` (was `count=934464` before) - `the host caps view heaps: shader heap indices clamped below it views=1000000` - The `no room for the null buffer views` warning is gone. - Everything else is unchanged: 53,472 `title slot past the host heap` warnings in a ~35 s run. **Crash (identical with #1775 and with #1775 + #1777)** ``` 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 ``` The registers are the same on both runs (rcx 0x4189374bc6a7f0, r8 0x83), so it is deterministic. The stack matches the one in this issue and the +0x2215eca frame from #1464. **Title's own crash log (written just before exit)** `Game State: Game Init`, `Frame: 0`, `Streaming Requests: 6`, `TileHeap: used (66Mb) - total (6236Mb)`, camera at the default position. So the title aborts during init, before the first frame is drawn, which shows as a black window and then exit. The host GPU device is still alive at that point, with no device-removed error. **Observations** - Pipeline library saved fine (53,341 pipelines created), shaders_translated=0 (cache hit), so this does not look like a translation failure at boot. - The title's Breakpad upload attempt to submit.backtrace.io was blocked by VIctory's net HLE, as intended. - #1777 fixes the null buffer views and the shader clamp, but the title still writes ~54k slots past the capped heap, so it does not look sufficient for this crash. **Question** Is the abort at +0x2215eca the deliberate fatal-error handler that a comment in #1464 describes (a write to 0x0 after a failed check)? If so, which check fails during Game Init on a capped heap, the slots past the 934,461 limit or something else? I can run a diagnostics build (`VICTORY_D3D12_DEBUG` / `DRED`) and post the output if that helps.
Marvisak commented 2026-11-25 13:02:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:47:21Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7162858279 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7162858279). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T12:47:21Z. --- <!-- 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)_
Ashley123477 commented 2026-11-25 17:05:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Ashley123477 on 2026-11-25T16:10:50Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7167663453 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7167663453). Originally posted by [Ashley123477](https://github.com/Ashley123477) on 2026-11-25T16:10:50Z. --- 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 commented 2026-11-25 17:05:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Ashley123477 on 2026-11-25T17:04:32Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7168964632 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1808#issuecomment-7168964632). Originally posted by [Ashley123477](https://github.com/Ashley123477) on 2026-11-25T17:04:32Z. --- 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).
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#1807
No description provided.