NVIDIA RTX 4070 SUPER on 70564ae: device removed (INVALID_CALL, 0x887A0001) at frame 128, before the menus #1754

Open
opened 2026-11-26 04:43:39 +00:00 by github-bot · 16 comments
Owner

@⁠Cresceda on GitHub · 2026-11-24 21:59 UTC · original

Environment

  • NVIDIA GeForce RTX 4070 SUPER 12 GB (32-lane waves), driver 616.56
  • AMD Ryzen 7 5700X3D, 32 GB, Windows 11 Pro 25H2 (build 26200.9457)
  • VIctory main at 70564ae, cargo build --release -p victory, Rust 1.98.1, no local changes
  • Title 1.0.2.1, Series X profile, run <exe> --execute
  • No D3D12 debug layer on this machine (Graphics Tools not installed), so the rejected call is not named

What happens

The host device is removed with DXGI_ERROR_INVALID_CALL (0x887A0001) after a submission of 1 list, at frame 128, about 12 s after start and before the menus. It happened in 4 of 4 runs (two unchanged, two with the local tests below), at frame 128 every time. On d2a4bae the same machine reached the world, then hung there with 0x887A0006 as in #71.

What the log shows before it

  • host view heap capped at 1000000 (title count 1,245,184), then no room for the null buffer views: computed indices of slots without a buffer view read what is there, and about 310,000 title slot past the host heap warnings (indices from 934,464 up).
  • Once, about 1.5 s before the removal: the host refuses castable formats, followed by no host texture (E_INVALIDARG) for a 2560x1440 texture with format 115 (B4G4R4A4_UNORM) and flags 1 (render target). Render-target support for B4G4R4A4_UNORM is optional on PC D3D12; this looks like the same class as #797 (format 86 there).
  • Right before the removal, the depth-twin lines for console formats 19 and 118.

Local tests (not proposed as fixes)

  1. HEAP_VIEWS lowered to 1,000,000, and the capped heap's title slots to PORTABLE_VIEWS - MIN_DYNAMIC - 3, so that NULL_BUFFER_VIEW falls inside NVIDIA's heap: the no room for the null buffer views warning is gone, but the removal at frame 128 stays. (With NULL_BUFFER_VIEW at 2^21 - 2 and a 1,000,000-view heap, every computed-index read of an empty slot still lands past the heap on NVIDIA; #1744 hits the same limit in the unit tests.)
  2. Depth twins off (twin::plane_formats returning None): the removal at frame 128 stays.

So neither the null buffer views nor the twins cause it alone. The remaining suspect in the log is the missing 2560x1440 B4G4R4A4_UNORM render target being used by a later command. That is unconfirmed.

Related: #1620 and #1627 (heap cap on NVIDIA), #1744 (HEAP_VIEWS against NVIDIA's cap in the tests), #797 (2560x1440 textures refused on NVIDIA).

Counts only, no game data. AI-assisted (Claude Code).

**@⁠Cresceda** on GitHub · 2026-11-24 21:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754) ## Environment - NVIDIA GeForce RTX 4070 SUPER 12 GB (32-lane waves), driver 616.56 - AMD Ryzen 7 5700X3D, 32 GB, Windows 11 Pro 25H2 (build 26200.9457) - VIctory `main` at `70564ae`, `cargo build --release -p victory`, Rust 1.98.1, no local changes - Title 1.0.2.1, Series X profile, `run <exe> --execute` - No D3D12 debug layer on this machine (Graphics Tools not installed), so the rejected call is not named ## What happens The host device is removed with `DXGI_ERROR_INVALID_CALL` (0x887A0001) after a submission of 1 list, **at frame 128**, about 12 s after start and before the menus. It happened in 4 of 4 runs (two unchanged, two with the local tests below), at frame 128 every time. On `d2a4bae` the same machine reached the world, then hung there with 0x887A0006 as in #71. ## What the log shows before it - `host view heap capped at 1000000` (title count 1,245,184), then `no room for the null buffer views: computed indices of slots without a buffer view read what is there`, and about 310,000 `title slot past the host heap` warnings (indices from 934,464 up). - Once, about 1.5 s before the removal: `the host refuses castable formats`, followed by `no host texture` (E_INVALIDARG) for a 2560x1440 texture with format 115 (`B4G4R4A4_UNORM`) and flags 1 (render target). Render-target support for `B4G4R4A4_UNORM` is optional on PC D3D12; this looks like the same class as #797 (format 86 there). - Right before the removal, the depth-twin lines for console formats 19 and 118. ## Local tests (not proposed as fixes) 1. `HEAP_VIEWS` lowered to 1,000,000, and the capped heap's title slots to `PORTABLE_VIEWS - MIN_DYNAMIC - 3`, so that `NULL_BUFFER_VIEW` falls inside NVIDIA's heap: the `no room for the null buffer views` warning is gone, but the removal at frame 128 stays. (With `NULL_BUFFER_VIEW` at 2^21 - 2 and a 1,000,000-view heap, every computed-index read of an empty slot still lands past the heap on NVIDIA; #1744 hits the same limit in the unit tests.) 2. Depth twins off (`twin::plane_formats` returning `None`): the removal at frame 128 stays. So neither the null buffer views nor the twins cause it alone. The remaining suspect in the log is the missing 2560x1440 `B4G4R4A4_UNORM` render target being used by a later command. That is unconfirmed. Related: #1620 and #1627 (heap cap on NVIDIA), #1744 (`HEAP_VIEWS` against NVIDIA's cap in the tests), #797 (2560x1440 textures refused on NVIDIA). Counts only, no game data. AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:43:39 +00:00
Author
Owner

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

Same failure on an RTX 5060, with the D3D12 debug layer on, so here is what it names.

Setup

  • NVIDIA GeForce RTX 5060 8 GB, driver 32.0.16.2124; Ryzen 7 5700X; Windows 11 26300
  • main at 70564ae, no local changes, diag build (--profile diag --features diagnostics)
  • VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, scripted Enter (VICTORY_KEYS), title 1.0.2.1, Series X profile
  • Shader cache warmed first with translate --cache (25,591 translated, 298 refused, 240 s)

What happens

Device removed with DXGI_ERROR_INVALID_CALL (0x887A0001) after a submission of 1 list, before the menus, as here: 46 s after start in the debug-layer run, and at frame 128 in a run without the layer. The log has the same lines before it: host view heap capped at 1000000 (count 1,245,184), no room for the null buffer views, and 310,720 title slot past the host heap warnings.

On ffe310e this card runs the menus at 30 fps and reaches the world.

Debug layer errors (severity 1) in that run

ID3D12CommandList::SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED flag. (id 1419)

ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_INVALID_CALL: There is strong evidence that the application has performed an illegal or undefined operation, and such a condition could not be returned to the application cleanly through a return code). (id 232)

ID3D12Device::CreateDescriptorHeap: D3D12_DESCRIPTOR_HEAP_DESC.NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000 (id 645, 3 times)

ID3D12Device::CreateCommittedResource3: When D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET is set in D3D12_RESOURCE_DESC::Flags, D3D12_CLEAR_VALUE::Format must be valid to be used as a render target. […] D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM. (id 817)

ID3D12Device::CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View. (id 342)

Id 1419 is the only error on a command list, so it is my candidate for the call the removal refers to: a compute list sets a root signature that indexes the sampler heap directly while no sampler heap is bound. The format errors are creation calls that fail with a return code.

Limits

One debug-layer run. I did not capture the order of id 1419 and id 232 against the frame count, and I have not looked at why the list has no sampler heap at that point.

**@⁠LarryBebou** on GitHub · 2026-11-24 22:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7145910133) Same failure on an RTX 5060, with the D3D12 debug layer on, so here is what it names. ## Setup - NVIDIA GeForce RTX 5060 8 GB, driver 32.0.16.2124; Ryzen 7 5700X; Windows 11 26300 - `main` at `70564ae`, no local changes, diag build (`--profile diag --features diagnostics`) - `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1`, scripted Enter (`VICTORY_KEYS`), title 1.0.2.1, Series X profile - Shader cache warmed first with `translate --cache` (25,591 translated, 298 refused, 240 s) ## What happens Device removed with `DXGI_ERROR_INVALID_CALL` (0x887A0001) after a submission of 1 list, before the menus, as here: 46 s after start in the debug-layer run, and at frame 128 in a run without the layer. The log has the same lines before it: `host view heap capped at 1000000` (count 1,245,184), `no room for the null buffer views`, and 310,720 `title slot past the host heap` warnings. On `ffe310e` this card runs the menus at 30 fps and reaches the world. ## Debug layer errors (severity 1) in that run ``` ID3D12CommandList::SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor before setting a root signature with D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED flag. (id 1419) ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_INVALID_CALL: There is strong evidence that the application has performed an illegal or undefined operation, and such a condition could not be returned to the application cleanly through a return code). (id 232) ID3D12Device::CreateDescriptorHeap: D3D12_DESCRIPTOR_HEAP_DESC.NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000 (id 645, 3 times) ID3D12Device::CreateCommittedResource3: When D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET is set in D3D12_RESOURCE_DESC::Flags, D3D12_CLEAR_VALUE::Format must be valid to be used as a render target. […] D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM. (id 817) ID3D12Device::CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View. (id 342) ``` Id 1419 is the only error on a command list, so it is my candidate for the call the removal refers to: a compute list sets a root signature that indexes the sampler heap directly while no sampler heap is bound. The format errors are creation calls that fail with a return code. ## Limits One debug-layer run. I did not capture the order of id 1419 and id 232 against the frame count, and I have not looked at why the list has no sampler heap at that point.
Author
Owner

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

Answering the open question: the list has no sampler heap because we only ever bind the title's

You wrote: "I have not looked at why the list has no sampler heap at that point." Here it is, from the code at 70564ae.

Every root signature we build declares the flag. crates/victory-gpu/src/pipeline/host.rs, where the version-1.1 description is filled:

                Flags: input
                    | D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED
                    | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED,

— unconditionally, for every pipeline, whether or not its shaders index a sampler directly.

And a list only ever binds the heaps the title bound. crates/victory-gpu/src/draw.rs:

    pub(crate) fn set_heaps(&mut self, heaps: &[This]) {
        self.heaps = [0; 2];
        for &h in heaps {
            if !h.is_null() {
                let samplers = crate::descriptor::heap(h).samplers();
                self.heaps[usize::from(samplers)] = h as usize;
            }
        }
    }

bind_heaps then sets self.heaps (plus a view-heap fallback of ours, MEMORY_HEAP, for the case where the title binds none), and only afterwards is the root signature set:

        self.bind_heaps(list, memory_heap);
        ...
                    l.SetComputeRootSignature(&p.root);

There is no sampler-heap fallback of ours: MEMORY_HEAP covers views only. So on any list where the title binds no sampler heap — and the dispatch you caught is exactly that, a compute list — SetDescriptorHeaps names a view heap and no sampler heap, and the signature that follows declares that its sampler heap is indexed directly. That is id 1419, and per your report it is the only error on a command list, i.e. the one the removal refers to.

The fix is the mirror of what already exists for views: a small persistent sampler heap of ours, bound whenever the signature declares the flag and the title binds no sampler heap, before the signature is set. It costs one descriptor heap with one harmless sampler in it, and it makes the rule hold for every list rather than for the lists where the title happens to bind both.

The other two errors are the two texture rules I have been measuring, and they are creation failures with return codes, not list errors:

  • id 817, CreateCommittedResource3 … D3D12_CLEAR_VALUE::Format must be valid to be used as a render target … Format is B4G4R4A4_UNORM — for the 2560×1440 targets of #1758. Measured on an RTX 4090 (driver 32.0.16.2124): that description is refused with and without the clear value, so the clear is not the only problem, but it is the one this error names. #1630 drops the clear value only after the host refuses it, which is what this message asks for.
  • id 342, The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View — the same pull request gives up ALLOW_UNORDERED_ACCESS only when refused, which is the other half of the pair.

Neither of those needs a device removal; they return E_INVALIDARG and the ladder handles them. The removal needs a command-list error, and 1419 is the one on record — which is why I would fix that first and re-test, rather than change the texture code and hope.

Measurement notes: nothing here is from a run of mine in the world — my machine has no presentable desktop (the agent runs in session 0), so I can only read the code and measure descriptions on the device. My runs produce no id 1419 because they never reach a list that binds no sampler heap, which is consistent with the code above and with your report rather than proof of it.

No game data is involved: code, descriptions, flags and format numbers only.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 22:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146079569) **Answering the open question: the list has no sampler heap because we only ever bind the title's** You wrote: *"I have not looked at why the list has no sampler heap at that point."* Here it is, from the code at `70564ae`. **Every root signature we build declares the flag.** `crates/victory-gpu/src/pipeline/host.rs`, where the version-1.1 description is filled: ```rust Flags: input | D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED, ``` — unconditionally, for every pipeline, whether or not its shaders index a sampler directly. **And a list only ever binds the heaps the title bound.** `crates/victory-gpu/src/draw.rs`: ```rust pub(crate) fn set_heaps(&mut self, heaps: &[This]) { self.heaps = [0; 2]; for &h in heaps { if !h.is_null() { let samplers = crate::descriptor::heap(h).samplers(); self.heaps[usize::from(samplers)] = h as usize; } } } ``` `bind_heaps` then sets `self.heaps` (plus a view-heap fallback of ours, `MEMORY_HEAP`, for the case where the title binds none), and only *afterwards* is the root signature set: ```rust self.bind_heaps(list, memory_heap); ... l.SetComputeRootSignature(&p.root); ``` There is no sampler-heap fallback of ours: `MEMORY_HEAP` covers views only. So on any list where the title binds no sampler heap — and the dispatch you caught is exactly that, a compute list — `SetDescriptorHeaps` names a view heap and no sampler heap, and the signature that follows declares that its sampler heap is indexed directly. That is id 1419, and per your report it is the only error on a command list, i.e. the one the removal refers to. **The fix is the mirror of what already exists for views**: a small persistent sampler heap of ours, bound whenever the signature declares the flag and the title binds no sampler heap, before the signature is set. It costs one descriptor heap with one harmless sampler in it, and it makes the rule hold for every list rather than for the lists where the title happens to bind both. **The other two errors are the two texture rules I have been measuring**, and they are creation failures with return codes, not list errors: - id 817, `CreateCommittedResource3 … D3D12_CLEAR_VALUE::Format must be valid to be used as a render target … Format is B4G4R4A4_UNORM` — for the 2560×1440 targets of #1758. Measured on an RTX 4090 (driver `32.0.16.2124`): that description is refused with *and* without the clear value, so the clear is not the only problem, but it is the one this error names. https://git.gtahub.st/github/Marvisak--VIctory/pulls/1630 drops the clear value only after the host refuses it, which is what this message asks for. - id 342, `The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View` — the same pull request gives up `ALLOW_UNORDERED_ACCESS` only when refused, which is the other half of the pair. Neither of those needs a device removal; they return `E_INVALIDARG` and the ladder handles them. **The removal needs a command-list error**, and 1419 is the one on record — which is why I would fix that first and re-test, rather than change the texture code and hope. Measurement notes: nothing here is from a run of mine in the world — my machine has no presentable desktop (the agent runs in session 0), so I can only read the code and measure descriptions on the device. My runs produce no id 1419 because they never reach a list that binds no sampler heap, which is consistent with the code above and with your report rather than proof of it. No game data is involved: code, descriptions, flags and format numbers only. Written with an AI assistant.
Author
Owner

@⁠LarryBebou on GitHub · 2026-11-24 22:21 UTC · original

Correction to my comment above: id 1419 is not what removes the device.

Putting the debug-layer messages of that run in time order:

  • SetComputeRootSignature … SAMPLER_HEAP_DIRECTLY_INDEXED (id 1419) comes 40 s before the removal, at the very start, and the run goes on.
  • The removal (id 232, DXGI_ERROR_INVALID_CALL) comes 1 ms after CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View (id 342).

So the call the removal refers to is that typed UAV creation. On this card B5G5R5A1_UNORM has no D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW.

A fix that removes it here

descriptor::host::fits already refuses an unordered view the host cannot store to, but only for a view cast to another format family (cast && family(view) != family(own)). A B5G5R5A1 texture viewed as B5G5R5A1 is never checked. Checking every unordered view in the format it is made in (the view's on a typeless or castable texture, the texture's otherwise) against typed_store:

let stored = viewed_format(own, view, typeless, cast);
if unordered && !typed_store(stored) {
    once!(view, own, "an unordered view in a format the host cannot store");
    return false;
}

On 70564ae with only that change, same RTX 5060, debug layer on: no id 342 and no INVALID_CALL; the cannot store line is logged once; the menus and the loading screen run at 30 fps (frame 2048 captured and correct). The view is null, so the title's writes to that texture are lost: packed 16-bit formats would need their own unordered path.

The run then stopped on something else: no dynamic slots for its tables (the capped heap keeps MIN_DYNAMIC, see #747 / #1349) and later DXGI_ERROR_DEVICE_HUNG in a 3.9 s submission, the world hang of #71.

Id 1419 is still logged once with the fix, without a removal after it.

I can open this as a PR if it helps.

**@⁠LarryBebou** on GitHub · 2026-11-24 22:21 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146120917) Correction to my comment above: id 1419 is not what removes the device. Putting the debug-layer messages of that run in time order: - `SetComputeRootSignature` … `SAMPLER_HEAP_DIRECTLY_INDEXED` (id 1419) comes 40 s before the removal, at the very start, and the run goes on. - The removal (id 232, `DXGI_ERROR_INVALID_CALL`) comes 1 ms after `CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View` (id 342). So the call the removal refers to is that typed UAV creation. On this card `B5G5R5A1_UNORM` has no `D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW`. ## A fix that removes it here `descriptor::host::fits` already refuses an unordered view the host cannot store to, but only for a view cast to another format family (`cast && family(view) != family(own)`). A B5G5R5A1 texture viewed as B5G5R5A1 is never checked. Checking every unordered view in the format it is made in (the view's on a typeless or castable texture, the texture's otherwise) against `typed_store`: ```rust let stored = viewed_format(own, view, typeless, cast); if unordered && !typed_store(stored) { once!(view, own, "an unordered view in a format the host cannot store"); return false; } ``` On `70564ae` with only that change, same RTX 5060, debug layer on: no id 342 and no `INVALID_CALL`; the `cannot store` line is logged once; the menus and the loading screen run at 30 fps (frame 2048 captured and correct). The view is null, so the title's writes to that texture are lost: packed 16-bit formats would need their own unordered path. The run then stopped on something else: `no dynamic slots for its tables` (the capped heap keeps `MIN_DYNAMIC`, see #747 / #1349) and later `DXGI_ERROR_DEVICE_HUNG` in a 3.9 s submission, the world hang of #71. Id 1419 is still logged once with the fix, without a removal after it. I can open this as a PR if it helps.
Author
Owner

@⁠Cresceda on GitHub · 2026-11-24 22:34 UTC · original

Same cause here on the RTX 4070 SUPER once the debug layer was installed: CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View (id 342), then RemoveDevice with DXGI_ERROR_INVALID_CALL 0.1 ms later.

I tested a local change equivalent to #1780: fits checks typed-store support in the format the view ends up in, for every unordered texture view. With it, the diag build with VICTORY_D3D12_DEBUG=1 ran for 180 s, reached frame 2,337 and had no device removal. The check refused exactly one view (view=86 own=86). The other debug-layer errors in that run were 80 CreateComputeShader wave-64-on-32 refusals and resource-barrier before-state mismatches; none of them removed the device.

One gap in #1780 as it stands: an unordered view without a format (view == 0, a UAV made without a description) returns at if view == 0 { return !typeless; } before the new check, so a description-less UAV of a B5G5R5A1_UNORM texture would still be made. The local change here also checks the texture's own format in that branch:

if view == 0 {
    if unordered && !typeless && !typed_store(own) {
        once!(own, "an unordered view in a format the host cannot store");
        return false;
    }
    return !typeless;
}

AI-assisted (Claude Code).

**@⁠Cresceda** on GitHub · 2026-11-24 22:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146395805) Same cause here on the RTX 4070 SUPER once the debug layer was installed: `CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View` (id 342), then `RemoveDevice` with `DXGI_ERROR_INVALID_CALL` 0.1 ms later. I tested a local change equivalent to #1780: `fits` checks typed-store support in the format the view ends up in, for every unordered texture view. With it, the diag build with `VICTORY_D3D12_DEBUG=1` ran for 180 s, reached frame 2,337 and had no device removal. The check refused exactly one view (`view=86 own=86`). The other debug-layer errors in that run were 80 `CreateComputeShader` wave-64-on-32 refusals and resource-barrier before-state mismatches; none of them removed the device. One gap in #1780 as it stands: an unordered view without a format (`view == 0`, a UAV made without a description) returns at `if view == 0 { return !typeless; }` before the new check, so a description-less UAV of a `B5G5R5A1_UNORM` texture would still be made. The local change here also checks the texture's own format in that branch: ```rust if view == 0 { if unordered && !typeless && !typed_store(own) { once!(own, "an unordered view in a format the host cannot store"); return false; } return !typeless; } ``` AI-assisted (Claude Code).
Author
Owner

@⁠Cresceda on GitHub · 2026-11-24 22:40 UTC · original

Correction to the gap I noted above: #1763 and #1775 already check the view == 0 branch too, so either covers it; only #1780 does not yet.

**@⁠Cresceda** on GitHub · 2026-11-24 22:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146502782) Correction to the gap I noted above: #1763 and #1775 already check the `view == 0` branch too, so either covers it; only #1780 does not yet.
Author
Owner

@⁠JurajSimicevic on GitHub · 2026-11-24 22:42 UTC · original

This looks like the same crash as #1753 (reported a few seconds apart): a typed unordered view on B5G5R5A1_UNORM, which NVIDIA can't store, then DXGI_ERROR_INVALID_CALL. #1775 fixes it there (RTX 5080: boot goes on into the world instead of stopping at ~6 s); it would be good to know whether it does on the RTX 4070 SUPER too.

AI-assisted.

**@⁠JurajSimicevic** on GitHub · 2026-11-24 22:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146544080) This looks like the same crash as #1753 (reported a few seconds apart): a typed unordered view on `B5G5R5A1_UNORM`, which NVIDIA can't store, then `DXGI_ERROR_INVALID_CALL`. #1775 fixes it there (RTX 5080: boot goes on into the world instead of stopping at ~6 s); it would be good to know whether it does on the RTX 4070 SUPER too. AI-assisted.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-24 22:48 UTC · original

A negative result for my own fix, from a local reproduction of this removal

I can now run with a real desktop on this machine (the agent is in session 0; registering the boot as an interactive scheduled task puts it in session 1), so I reproduced the removal you described and used it to test the candidate I proposed in my previous comment — the sampler heap bound when the title binds none:

main 70564ae, release, window 3840x2160 format=28, empty cache, default adapter
(integrated AMD Radeon(TM) Graphics, driver 32.0.21045.29003 — DXGI's default here, not the NVIDIA card)

host view heap capped at 1000000 (E_INVALIDARG), no room for the null buffer views ×2,
title slot past the host heap × 310,720, then:
host GPU device removed after a submission of 1 lists (0x887A0001) at frame 128, ~40 s in

With the pull request that binds our own sampler heap (#1778) built and run the same way:

frames 64, device removed (twice), still 310,720 slots past the host heap

So it does not fix this, and I have said so on the pull request rather than leave it looking like the fix for your report. The debug-layer error you captured (id 1419) is a real rule we were breaking, and it is worth fixing, but it is not what removes the device here.

What the numbers do single out is the capped heap against the shaders' bound: the translated shaders clamp descriptor indices to a compile-time HEAP_VIEWS - 1 = 2,097,151, and the null slots they fall back to are 2,097,150; the host heap is capped at 1,000,000, so indices in [1,000,000, 2,097,151] — the null slots included — are outside the bound heap, and 310,720 title slots sit above the cap. That is the shape an out-of-bounds descriptor read takes.

Next experiment, which I can now run in a minute: lower the clamp bound so it fits the smallest heap the host will take (PORTABLE_VIEWS = 1_000_000, already a constant in the same module), and see whether the removal goes away on this machine. Details and the full log lines are on #1760.

If you still have the debug-layer run handy: after that change the log should have no title slot past the host heap and no no room for the null buffer views. If it does and the device still goes, the removal has a second cause and your ids are the ones to chase.

No game data is involved.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 22:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146660502) **A negative result for my own fix, from a local reproduction of this removal** I can now run with a real desktop on this machine (the agent is in session 0; registering the boot as an interactive scheduled task puts it in session 1), so I reproduced the removal you described and used it to test the candidate I proposed in my previous comment — the sampler heap bound when the title binds none: ``` main 70564ae, release, window 3840x2160 format=28, empty cache, default adapter (integrated AMD Radeon(TM) Graphics, driver 32.0.21045.29003 — DXGI's default here, not the NVIDIA card) host view heap capped at 1000000 (E_INVALIDARG), no room for the null buffer views ×2, title slot past the host heap × 310,720, then: host GPU device removed after a submission of 1 lists (0x887A0001) at frame 128, ~40 s in ``` With the pull request that binds our own sampler heap (#1778) built and run the same way: ``` frames 64, device removed (twice), still 310,720 slots past the host heap ``` **So it does not fix this**, and I have said so on the pull request rather than leave it looking like the fix for your report. The debug-layer error you captured (id 1419) is a real rule we were breaking, and it is worth fixing, but it is not what removes the device here. What the numbers do single out is the capped heap against the shaders' bound: the translated shaders clamp descriptor indices to a compile-time `HEAP_VIEWS - 1 = 2,097,151`, and the null slots they fall back to are `2,097,150`; the host heap is capped at 1,000,000, so indices in `[1,000,000, 2,097,151]` — the null slots included — are outside the bound heap, and 310,720 title slots sit above the cap. That is the shape an out-of-bounds descriptor read takes. Next experiment, which I can now run in a minute: lower the clamp bound so it fits the smallest heap the host will take (`PORTABLE_VIEWS = 1_000_000`, already a constant in the same module), and see whether the removal goes away on this machine. Details and the full log lines are on https://git.gtahub.st/github/Marvisak--VIctory/issues/1760. If you still have the debug-layer run handy: after that change the log should have no `title slot past the host heap` and no `no room for the null buffer views`. If it does and the device still goes, the removal has a second cause and your ids are the ones to chase. No game data is involved. Written with an AI assistant.
Author
Owner

@⁠AgneyaK on GitHub · 2026-11-24 22:55 UTC · original

Reproduced on an RTX 3050 6 GB Laptop (driver 32.0.16.2124, i7-13700H, 16 GB, Windows 11 26300), and tried the two candidate fixes in the title. All runs: diag build, VICTORY_D3D12_DRED=1, no debug layer (not installed here), title 1.0.2.1, Series X profile, scripted Enter. A local patch picks the NVIDIA adapter (main takes adapter 0, the Intel iGPU here; #208 does this properly). It's not part of any PR.

build result
70564ae device removed, 0x887A0001, after a submission of 1 list, empty breadcrumbs, right after frame 128 (67 s after start). Same log lines as above: heap capped at 1,000,000, no room for the null buffer views, 310,720 title slot past the host heap, the refused 2560x1440 format-115 texture
70564ae + texture made without ALLOW_RENDER_TARGET when refused (local experiment, with #1613's null-RTV/clear guard) same removal after frame 128: the missing format-115 texture isn't it
70564ae + a sampler heap of ours where the title binds none (local; the same change as #1778) same removal after frame 128: id 1419 alone isn't what removes the device here
70564ae + #1763 (dbd4fc2, clean merge) no removal in 5 min: frames 128 → 4,096, the menus at about 15 fps. Logged once: an unordered view in a format the host cannot store target=86 own=86

So on this card the removal is the typed UAV on B5G5R5A1_UNORM (#1753), as the debug-layer runs above say, and #1763 (or one of #1775 / #1780 / #1787) stops it. #1778 may still be right per the debug layer, but it's not the removal.

A rough bisect (one run per commit) puts it after 683ad7a (ran past frame 1,400, then a different device reset) and at or before bacb06a. That range includes 13bbd6f, which matches Ryanarcx2's reading in #1753.

Not tested: further than the menus (this laptop can't reach the world), and the other three typed-UAV PRs.

AI use: Claude Code (Claude Opus 5.5) ran these builds and wrote this; the results are from the runs described.

**@⁠AgneyaK** on GitHub · 2026-11-24 22:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146797240) Reproduced on an **RTX 3050 6 GB Laptop** (driver 32.0.16.2124, i7-13700H, 16 GB, Windows 11 26300), and tried the two candidate fixes in the title. All runs: diag build, `VICTORY_D3D12_DRED=1`, no debug layer (not installed here), title 1.0.2.1, Series X profile, scripted Enter. A local patch picks the NVIDIA adapter (`main` takes adapter 0, the Intel iGPU here; #208 does this properly). It's not part of any PR. | build | result | |---|---| | `70564ae` | device removed, `0x887A0001`, after a submission of 1 list, empty breadcrumbs, **right after frame 128** (67 s after start). Same log lines as above: heap capped at 1,000,000, `no room for the null buffer views`, 310,720 `title slot past the host heap`, the refused 2560x1440 format-115 texture | | `70564ae` + texture made without `ALLOW_RENDER_TARGET` when refused (local experiment, with #1613's null-RTV/clear guard) | same removal after frame 128: the missing format-115 texture isn't it | | `70564ae` + a sampler heap of ours where the title binds none (local; the same change as #1778) | **same removal after frame 128**: id 1419 alone isn't what removes the device here | | `70564ae` + #1763 (`dbd4fc2`, clean merge) | **no removal in 5 min**: frames 128 → 4,096, the menus at about 15 fps. Logged once: `an unordered view in a format the host cannot store target=86 own=86` | So on this card the removal is the typed UAV on `B5G5R5A1_UNORM` (#1753), as the debug-layer runs above say, and #1763 (or one of #1775 / #1780 / #1787) stops it. #1778 may still be right per the debug layer, but it's not the removal. A rough bisect (one run per commit) puts it after `683ad7a` (ran past frame 1,400, then a different device reset) and at or before `bacb06a`. That range includes `13bbd6f`, which matches Ryanarcx2's reading in #1753. Not tested: further than the menus (this laptop can't reach the world), and the other three typed-UAV PRs. AI use: Claude Code (Claude Opus 5.5) ran these builds and wrote this; the results are from the runs described.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-24 22:55 UTC · original

The debug layer is installed here now, and it names the removal: GetResourceAllocationInfo on a description whose UAV flag its format cannot carry

I installed the Graphics Tools capability on this machine (DISM /Online /Add-Capability /CapabilityName:Tools.Graphics.DirectX~~~~0.0.1.0, d3d12SDKLayers.dll present, debug layer loads) and ran main at 70564ae in session 1, release+diag build, VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, empty cache, default adapter (integrated AMD Radeon(TM) Graphics, driver 32.0.21045.29003). The removal comes with one message, and it is not a command-list error:

WARN victory_gpu::host: D3D12: ID3D12Device::GetResourceAllocationInfo: A texture that has
D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set in D3D12_RESOURCE_DESC::Flags must be created with a
format that either can be used as unordered access, or cast to a format that could be used as
unordered access. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_RESOURCE_DESC::Format is
B5G5R5A1_UNORM. id=599 severity=1
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists … (0x887A0001)

Three things follow, and the third is the one I would act on:

  1. It is severity=1, so the device goes. That is the removal in #1754, #1755, #1758 and #1760 — same description I have been measuring in #1600, the 2560×1440 B5G5R5A1_UNORM target with ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS. It is not the missing sampler heap (my #1778 does not stop it, as I reported), and it is not a command-list error like id 1419.
  2. It is GetResourceAllocationInfo, not a creation call. The description is refused at the queries we make before creating anything, so a ladder around CreateCommittedResource — mine included — never gets the chance to help: the device is already being removed.
  3. The rule is per format, and it is checkable. D3D12 answers it: CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT, {Format}) returns Support2 with UAV_TYPED_STORE/UAV_TYPED_LOAD clear exactly for formats like B5G5R5A1_UNORM. So the host can drop ALLOW_UNORDERED_ACCESS before the first device call that names the description, once per format, and log it — instead of the title's description being passed to GetResourceAllocationInfo, GetCopyableFootprints and CreateCommittedResource as it arrives.

That last point is the fix I would write:

  • one function turning a title description into the one the host can name, dropping the UAV permission when the format cannot carry a typed UAV (and, for a depth target, the combination the host refuses);
  • it used in allocation_info, copyable_footprints, create_committed and make_texture, so no device call ever sees a description the driver will remove the device for;
  • one tracing::warn! per (format, dropped flag) naming what was dropped.

It also explains the frame 128 coincidence: it is not the 128th frame that is special, it is the first submission after the title asks for that 1440p target.

I will write it and re-run this scenario, since I can now reproduce in under a minute and the layer tells me whether the message is gone. If someone can run the same on an NVIDIA card, the comparison would be worth more than my numbers.

No game data is involved: a description, a format name and an HRESULT.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 22:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7146800659) **The debug layer is installed here now, and it names the removal: `GetResourceAllocationInfo` on a description whose UAV flag its format cannot carry** I installed the Graphics Tools capability on this machine (`DISM /Online /Add-Capability /CapabilityName:Tools.Graphics.DirectX~~~~0.0.1.0`, `d3d12SDKLayers.dll` present, debug layer loads) and ran `main` at `70564ae` in session 1, release+diag build, `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1`, empty cache, default adapter (integrated `AMD Radeon(TM) Graphics`, driver `32.0.21045.29003`). The removal comes with one message, and it is not a command-list error: ``` WARN victory_gpu::host: D3D12: ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set in D3D12_RESOURCE_DESC::Flags must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM. id=599 severity=1 ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists … (0x887A0001) ``` Three things follow, and the third is the one I would act on: 1. **It is `severity=1`, so the device goes.** That is the removal in #1754, #1755, #1758 and #1760 — same description I have been measuring in #1600, the 2560×1440 `B5G5R5A1_UNORM` target with `ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS`. It is not the missing sampler heap (my #1778 does not stop it, as I reported), and it is not a command-list error like id 1419. 2. **It is `GetResourceAllocationInfo`, not a creation call.** The description is refused at the *queries* we make before creating anything, so a ladder around `CreateCommittedResource` — mine included — never gets the chance to help: the device is already being removed. 3. **The rule is per format, and it is checkable.** D3D12 answers it: `CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT, {Format})` returns `Support2` with `UAV_TYPED_STORE`/`UAV_TYPED_LOAD` clear exactly for formats like `B5G5R5A1_UNORM`. So the host can drop `ALLOW_UNORDERED_ACCESS` **before the first device call that names the description**, once per format, and log it — instead of the title's description being passed to `GetResourceAllocationInfo`, `GetCopyableFootprints` and `CreateCommittedResource` as it arrives. That last point is the fix I would write: - one function turning a title description into the one the host can name, dropping the UAV permission when the format cannot carry a typed UAV (and, for a depth target, the combination the host refuses); - it used in `allocation_info`, `copyable_footprints`, `create_committed` and `make_texture`, so no device call ever sees a description the driver will remove the device for; - one `tracing::warn!` per (format, dropped flag) naming what was dropped. It also **explains the frame 128** coincidence: it is not the 128th frame that is special, it is the first submission after the title asks for that 1440p target. I will write it and re-run this scenario, since I can now reproduce in under a minute and the layer tells me whether the message is gone. If someone can run the same on an NVIDIA card, the comparison would be worth more than my numbers. No game data is involved: a description, a format name and an HRESULT. Written with an AI assistant.
Author
Owner

@⁠moe-miau on GitHub · 2026-11-24 23:14 UTC · original

RTX 4070 SUPER, in the title: all four typed-UAV fixes get past the early removal, then the device hangs in the intro cutscene; #968 does not hang

Answering the question above about #1775 on this card, with the other candidates run the same way.

Setup: RTX 4070 SUPER 12 GB, driver 32.0.16.1742, Ryzen 7 7700X, 32 GB, Windows 11 Pro 26300. Each build is main 70564ae with one PR merged (all merge cleanly), diag profile (--profile diag --features diagnostics), no debug layer. Title 1.0.2.1, Series X profile, fresh shader cache per run (no translate --cache warm-up), a save past first-boot setup copied into each run's data folder, then VICTORY_KEYS pressing Enter every 6 s from 25 s to 150 s. That reaches the intro cutscene at about 90 s.

Build Before the menus Intro cutscene (from ~90 s) no host texture
70564ae device removed at 32 s, 0x887A0001 not reached 1
+ #1763 (dbd4fc2) menus at 30 fps device hung (0x887A0006) at 204 s 1: 2560x1440, format 115, flags 1
+ #1775 (3f91087) menus at 30 fps device hung at 151 s 1: same texture
+ #1780 (151fa7d) menus at 30 fps device hung at 208 s; second run 122 s 1: same texture
+ #1787 (040f9d4) menus at 30 fps device hung at 225 s 1: same texture
+ #968 (3411406) menus at 30 fps no removal: runs stopped by me at 240 s and at 420 s 0

In every build that reaches it, the cutscene runs at 0.1 to 1 fps with 1,000 to 3,000 draws per frame, about 120 to 140 compute pipelines refused (the wave-64 ones) and 12 to 19 shaders not translated. The 3D picture is black in all of them while the audio plays. In the 420 s #968 run, the opening credits' text is drawn over the black scene, so the title keeps going through the intro.

What this suggests (correlation, not proven): the four fits fixes all stop the B5G5R5A1_UNORM typed-UAV removal, and all of them still refuse the 2560x1440 B4G4R4A4_UNORM render target (format 115, flags 1, the #797 texture). The only build without the later hang is the one where that texture exists (#968 maps formats 86 and 115 in pc_format, so neither is refused). That fits the open suspect in the issue text: a later command that uses the missing format-115 target. #968 also changes uploads of those formats without converting them, and carries the Agility SDK change, so it is not a clean isolation of that one texture.

Limits: one run per build, two for #1780 and #968; no debug layer, so the hanging command isn't named; no cache warm-up, so the frame times include first-use translation.

Counts and times only, no game data or captures. AI-assisted (Claude Code); runs done on my machine.

**@⁠moe-miau** on GitHub · 2026-11-24 23:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7147178455) **RTX 4070 SUPER, in the title: all four typed-UAV fixes get past the early removal, then the device hangs in the intro cutscene; #968 does not hang** Answering the question above about #1775 on this card, with the other candidates run the same way. **Setup:** RTX 4070 SUPER 12 GB, driver 32.0.16.1742, Ryzen 7 7700X, 32 GB, Windows 11 Pro 26300. Each build is `main` `70564ae` with one PR merged (all merge cleanly), diag profile (`--profile diag --features diagnostics`), no debug layer. Title 1.0.2.1, Series X profile, fresh shader cache per run (no `translate --cache` warm-up), a save past first-boot setup copied into each run's data folder, then `VICTORY_KEYS` pressing Enter every 6 s from 25 s to 150 s. That reaches the intro cutscene at about 90 s. | Build | Before the menus | Intro cutscene (from ~90 s) | `no host texture` | |---|---|---|---| | `70564ae` | device removed at 32 s, `0x887A0001` | not reached | 1 | | + #1763 (`dbd4fc2`) | menus at 30 fps | device hung (`0x887A0006`) at 204 s | 1: 2560x1440, format 115, flags 1 | | + #1775 (`3f91087`) | menus at 30 fps | device hung at 151 s | 1: same texture | | + #1780 (`151fa7d`) | menus at 30 fps | device hung at 208 s; second run 122 s | 1: same texture | | + #1787 (`040f9d4`) | menus at 30 fps | device hung at 225 s | 1: same texture | | + #968 (`3411406`) | menus at 30 fps | **no removal**: runs stopped by me at 240 s and at 420 s | 0 | In every build that reaches it, the cutscene runs at 0.1 to 1 fps with 1,000 to 3,000 draws per frame, about 120 to 140 compute pipelines refused (the wave-64 ones) and 12 to 19 shaders not translated. The 3D picture is black in all of them while the audio plays. In the 420 s #968 run, the opening credits' text is drawn over the black scene, so the title keeps going through the intro. **What this suggests (correlation, not proven):** the four `fits` fixes all stop the `B5G5R5A1_UNORM` typed-UAV removal, and all of them still refuse the 2560x1440 `B4G4R4A4_UNORM` render target (format 115, flags 1, the #797 texture). The only build without the later hang is the one where that texture exists (#968 maps formats 86 and 115 in `pc_format`, so neither is refused). That fits the open suspect in the issue text: a later command that uses the missing format-115 target. #968 also changes uploads of those formats without converting them, and carries the Agility SDK change, so it is not a clean isolation of that one texture. **Limits:** one run per build, two for #1780 and #968; no debug layer, so the hanging command isn't named; no cache warm-up, so the frame times include first-use translation. Counts and times only, no game data or captures. AI-assisted (Claude Code); runs done on my machine.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-24 23:15 UTC · original

The removal is a chain of causes, not one, and each of the three is now measured separately

With the debug layer installed on a machine that reproduces the failure, I ran the same scenario (session 1, real window 3840×2160, empty cache, release or diag builds as noted, default adapter AMD Radeon(TM) Graphics, driver 32.0.21045.29003) against main and against each candidate in isolation, then in combination:

build id=599 id=1419 no host texture device removed
main 70564ae 1 0 1 yes, frame 128
+ #1832 (UAV permission follows the format) 0 0 1 no
+ #1630 (texture description ladder) 0 2 0 yes
+ #1778 (sampler heap of ours) with #1832 0 0 1 no
+ all three 0 0 0 no, keeps presenting

Read as a chain:

  1. #1832 removes the first cause. The B5G5R5A1_UNORM description is not nameable with ALLOW_UNORDERED_ACCESS; the layer raises id 599 in GetResourceAllocationInfo — a query, before anything is created — and removes the device. With the permission dropped where the host says the format cannot carry it, no 599 and no removal.
  2. Once 599 is gone, #1630 reveals a second one. With the texture ladder the no host texture disappears (the 1440p B4G4R4A4_UNORM target exists as plain memory), but the debug layer then reports id 1419 twice — SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor … — and the device goes again. That is the rule #1778 fixes, and it was previously invisible because the run died at 599 first.
  3. All three together: no 599, no 1419, no no host texture, and the run keeps presenting frames.

What is still in the log with all three, and is a different problem:

WARN host view heap capped at 1000000
WARN title slot past the host heap                                             × 310,720

— the 1,245,184-descriptor heap that does not fit the driver's 1,000,000 (#1760). It no longer removes the device on this machine; it is still costing the frame, and the clamp-bound question I raised there stands.

I am not saying the regression is closed: my numbers are the integrated GPU of this machine, and the reports come from NVIDIA cards. What the table does say is that no single one of these three is sufficient, so merging one and testing on a card would show "still broken" for a reason that is now written down.

The three pull requests: #1832, #1630, #1778. All three are rebased on 70564ae and merge cleanly; the combination above is a local merge of the three branches with no additional change.

No game data is involved: ids, counts and warnings only.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 23:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7147203080) **The removal is a chain of causes, not one, and each of the three is now measured separately** With the debug layer installed on a machine that reproduces the failure, I ran the same scenario (session 1, real window 3840×2160, empty cache, release or diag builds as noted, default adapter `AMD Radeon(TM) Graphics`, driver `32.0.21045.29003`) against `main` and against each candidate in isolation, then in combination: | build | `id=599` | `id=1419` | `no host texture` | device removed | |---|---|---|---|---| | `main` `70564ae` | **1** | 0 | 1 | **yes**, frame 128 | | + #1832 (UAV permission follows the format) | 0 | 0 | 1 | no | | + #1630 (texture description ladder) | 0 | **2** | 0 | **yes** | | + #1778 (sampler heap of ours) with #1832 | 0 | 0 | 1 | no | | + all three | 0 | 0 | 0 | **no**, keeps presenting | Read as a chain: 1. **#1832 removes the first cause.** The `B5G5R5A1_UNORM` description is not nameable with `ALLOW_UNORDERED_ACCESS`; the layer raises id 599 in `GetResourceAllocationInfo` — a query, before anything is created — and removes the device. With the permission dropped where the host says the format cannot carry it, no 599 and no removal. 2. **Once 599 is gone, #1630 reveals a second one.** With the texture ladder the `no host texture` disappears (the 1440p `B4G4R4A4_UNORM` target exists as plain memory), but the debug layer then reports **id 1419 twice** — `SetComputeRootSignature: SetDescriptorHeaps must be called to bind a sampler descriptor …` — and the device goes again. That is the rule #1778 fixes, and it was previously invisible because the run died at 599 first. 3. **All three together: no 599, no 1419, no `no host texture`, and the run keeps presenting frames.** What is still in the log with all three, and is a different problem: ``` WARN host view heap capped at 1000000 WARN title slot past the host heap × 310,720 ``` — the 1,245,184-descriptor heap that does not fit the driver's 1,000,000 (#1760). It no longer removes the device on this machine; it is still costing the frame, and the clamp-bound question I raised there stands. I am not saying the regression is closed: my numbers are the integrated GPU of this machine, and the reports come from NVIDIA cards. What the table does say is that **no single one of these three is sufficient**, so merging one and testing on a card would show "still broken" for a reason that is now written down. The three pull requests: https://git.gtahub.st/github/Marvisak--VIctory/pulls/1832, https://git.gtahub.st/github/Marvisak--VIctory/pulls/1630, https://git.gtahub.st/github/Marvisak--VIctory/pulls/1778. All three are rebased on `70564ae` and merge cleanly; the combination above is a local merge of the three branches with no additional change. No game data is involved: ids, counts and warnings only. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-24 23:41 UTC · original

Correction to my own measurements: those runs were on the RTX 4090, not on the integrated GPU

I have been writing "default adapter, integrated AMD Radeon(TM) Graphics, driver 32.0.21045.29003" on the runs I made in session 1. That attribution is wrong, and the cause is worth knowing because it is the exact trap this repository keeps warning about.

DXGI enumerates the adapters in a different order in the two sessions. Measured on this machine, same binary, same moment, with cargo test --release -p victory-gpu -- --ignored adapters:

session 0 (the agent's, services):
  adapter 0: "AMD Radeon(TM) Graphics"      vendor=0x1002  485 MiB
  adapter 1: "NVIDIA GeForce RTX 4090"      vendor=0x10de  24,138 MiB
  adapter 2: "Microsoft Basic Render Driver"

session 1 (the interactive desktop, where the title actually runs):
  adapter 0: "NVIDIA GeForce RTX 4090"      vendor=0x10de  24,138 MiB
  adapter 1: "AMD Radeon(TM) Graphics"      vendor=0x1002  485 MiB
  adapter 2: "Microsoft Basic Render Driver"

So the default adapter is the integrated AMD in the agent's session and the RTX 4090 in the session where the title runs, which is precisely where every number I published in the last few rounds came from. With my selector in place the run says it plainly:

INFO victory_gpu::host: host GPU adapter="AMD Radeon(TM) Graphics" index=1 vendor=0x1002 …

— index=1 is the AMD in session 1, the reverse of session 0, which is what made me notice.

What this changes, and what it does not:

  • The measurements stand, and they get stronger: the device removals, the 1,000,000-descriptor cap and the 310,720 slots past it were measured on an NVIDIA RTX 4090 (driver 32.0.16.2124), not on the integrated GPU — which is the same vendor as the machines in #1754, #1755, #1758 and #1760. The chain in #1754 is NVIDIA evidence, not AMD evidence.
  • The one open question I could not explain is now explained. I reported that in the run formats 27 and 86 answered "no typed UAV" while a direct query from the test process answered "yes" for 86. Those two ran on different adapters: the test in session 0 (integrated AMD, which does support a typed UAV view of B5G5R5A1_UNORM), the title in session 1 (RTX 4090, which does not). There was never a discrepancy — different device, different answer.
  • The corrections to apply elsewhere: the driver line in every comment where I wrote 32.0.21045.29003 for a session-1 run should read 32.0.16.2124 (NVIDIA GeForce RTX 4090). I will put this note on the threads where the numbers were used rather than editing old comments, so the record keeps both.
  • For anyone reproducing: an index in VICTORY_D3D12_ADAPTER is session-dependent, and a name substring is not. Use VICTORY_D3D12_ADAPTER=nvidia or =amd, and check the host GPU adapter= line rather than assuming which card the default is.

No game data is involved: adapter descriptions, vendor ids and memory sizes only.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 23:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7147681599) **Correction to my own measurements: those runs were on the RTX 4090, not on the integrated GPU** I have been writing "default adapter, integrated `AMD Radeon(TM) Graphics`, driver `32.0.21045.29003`" on the runs I made in session 1. That attribution is wrong, and the cause is worth knowing because it is the exact trap this repository keeps warning about. **DXGI enumerates the adapters in a different order in the two sessions.** Measured on this machine, same binary, same moment, with `cargo test --release -p victory-gpu -- --ignored adapters`: ``` session 0 (the agent's, services): adapter 0: "AMD Radeon(TM) Graphics" vendor=0x1002 485 MiB adapter 1: "NVIDIA GeForce RTX 4090" vendor=0x10de 24,138 MiB adapter 2: "Microsoft Basic Render Driver" session 1 (the interactive desktop, where the title actually runs): adapter 0: "NVIDIA GeForce RTX 4090" vendor=0x10de 24,138 MiB adapter 1: "AMD Radeon(TM) Graphics" vendor=0x1002 485 MiB adapter 2: "Microsoft Basic Render Driver" ``` So the default adapter is the integrated AMD **in the agent's session** and the **RTX 4090 in the session where the title runs**, which is precisely where every number I published in the last few rounds came from. With my selector in place the run says it plainly: ``` INFO victory_gpu::host: host GPU adapter="AMD Radeon(TM) Graphics" index=1 vendor=0x1002 … ``` — `index=1` is the AMD *in session 1*, the reverse of session 0, which is what made me notice. What this changes, and what it does not: - **The measurements stand**, and they get *stronger*: the device removals, the 1,000,000-descriptor cap and the 310,720 slots past it were measured on an **NVIDIA RTX 4090** (driver `32.0.16.2124`), not on the integrated GPU — which is the same vendor as the machines in #1754, #1755, #1758 and #1760. The chain in https://git.gtahub.st/github/Marvisak--VIctory/issues/1754 is NVIDIA evidence, not AMD evidence. - **The one open question I could not explain is now explained.** I reported that in the run formats 27 and 86 answered "no typed UAV" while a direct query from the test process answered "yes" for 86. Those two ran on **different adapters**: the test in session 0 (integrated AMD, which does support a typed UAV view of `B5G5R5A1_UNORM`), the title in session 1 (RTX 4090, which does not). There was never a discrepancy — different device, different answer. - **The corrections to apply elsewhere**: the driver line in every comment where I wrote `32.0.21045.29003` for a session-1 run should read `32.0.16.2124` (`NVIDIA GeForce RTX 4090`). I will put this note on the threads where the numbers were used rather than editing old comments, so the record keeps both. - **For anyone reproducing**: an index in `VICTORY_D3D12_ADAPTER` is session-dependent, and a *name substring* is not. Use `VICTORY_D3D12_ADAPTER=nvidia` or `=amd`, and check the `host GPU adapter=` line rather than assuming which card the default is. No game data is involved: adapter descriptions, vendor ids and memory sizes only. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-24 23:44 UTC · original

Same build, same scenario, two adapters: the regression is NVIDIA-only on this machine

I had been comparing builds; this compares adapters, which is what the reports actually vary. Build: main at 70564ae plus only the adapter selector (the host.rs commit of #1630, cherry-picked locally for the measurement — not a pull request). Session 1, real window 3840×2160, empty cache, release, 40 s each.

RTX 4090 (driver 32.0.16.2124) Radeon integrated (driver 32.0.21045.29003)
host GPU adapter= "NVIDIA GeForce RTX 4090" index=0 "AMD Radeon(TM) Graphics" index=1
host view heap capped at 1000000 63,999 0
title slot past the host heap 310,720 0
no host texture 1 0
device removed yes (frame 128) no
last frame in 40 s 128 (dead) 1,024 frames, 6,656 draws

Same title, same requests, same binary: the AMD adapter takes every description the NVIDIA one refuses, does not cap the 1,245,184-slot heap, and the run keeps presenting 6,656 draws where the other dies at frame 128.

What that means for the chain I published:

  • The failures I attributed to "the driver" are NVIDIA driver behaviour, measured on NVIDIA: B5G5R5A1_UNORM with ALLOW_UNORDERED_ACCESS refused at GetResourceAllocationInfo (id 599), the 1,000,000-descriptor view-heap cap, and the sampler-heap rule (id 1419). AMD takes all three here.
  • It also explains why the reports cluster where they do, and why an "it works on my machine" from an AMD user is not a contradiction: it is the same code, different driver answers.
  • And it sharpens the review advice: a fix for #1754 that is only tested on AMD cannot be judged. The card to test on is the one that refuses.

Reproduce: VICTORY_D3D12_ADAPTER=nvidia versus =amd, then read the host GPU adapter= line — use the name, not the index, because DXGI's order differs per session on this machine (session 0: AMD 0, NVIDIA 1; session 1: NVIDIA 0, AMD 1), which is the correction I posted above.

No game data is involved: adapter descriptions, counts and warnings only.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 23:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7147748178) **Same build, same scenario, two adapters: the regression is NVIDIA-only on this machine** I had been comparing builds; this compares **adapters**, which is what the reports actually vary. Build: `main` at `70564ae` plus **only** the adapter selector (the `host.rs` commit of #1630, cherry-picked locally for the measurement — not a pull request). Session 1, real window 3840×2160, empty cache, release, 40 s each. | | RTX 4090 (driver `32.0.16.2124`) | Radeon integrated (driver `32.0.21045.29003`) | |---|---|---| | `host GPU adapter=` | `"NVIDIA GeForce RTX 4090"` `index=0` | `"AMD Radeon(TM) Graphics"` `index=1` | | `host view heap capped at 1000000` | **63,999** | 0 | | `title slot past the host heap` | 310,720 | **0** | | `no host texture` | 1 | **0** | | device removed | **yes** (frame 128) | **no** | | last frame in 40 s | 128 (dead) | **1,024 frames, 6,656 draws** | Same title, same requests, same binary: the AMD adapter takes every description the NVIDIA one refuses, does not cap the 1,245,184-slot heap, and the run keeps presenting 6,656 draws where the other dies at frame 128. What that means for the chain I published: - The failures I attributed to "the driver" are **NVIDIA driver behaviour**, measured on NVIDIA: `B5G5R5A1_UNORM` with `ALLOW_UNORDERED_ACCESS` refused at `GetResourceAllocationInfo` (id 599), the 1,000,000-descriptor view-heap cap, and the sampler-heap rule (id 1419). AMD takes all three here. - It also explains why the reports cluster where they do, and why an "it works on my machine" from an AMD user is not a contradiction: it is the same code, different driver answers. - And it sharpens the review advice: a fix for #1754 that is only tested on AMD cannot be judged. The card to test on is the one that refuses. Reproduce: `VICTORY_D3D12_ADAPTER=nvidia` versus `=amd`, then read the `host GPU adapter=` line — **use the name, not the index**, because DXGI's order differs per session on this machine (session 0: AMD 0, NVIDIA 1; session 1: NVIDIA 0, AMD 1), which is the correction I posted above. No game data is involved: adapter descriptions, counts and warnings only. Written with an AI assistant.
Author
Owner

@⁠DoubleD17 on GitHub · 2026-11-25 01:17 UTC · original

Confirming this still happens before the menu with upstream main at 42363ab. The run exited with DXGI_ERROR_DEVICE_REMOVED (0x887A0005) and reported DXGI_ERROR_INVALID_CALL (0x887A0001) as the removal reason.

AI-assisted.

**@⁠DoubleD17** on GitHub · 2026-11-25 01:17 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7149403330) Confirming this still happens before the menu with upstream `main` at [`42363ab`](https://github.com/Marvisak/VIctory/commit/42363ab6cd5265f0fb3b500ad265f2b84c6b5dbf). The run exited with `DXGI_ERROR_DEVICE_REMOVED` (`0x887A0005`) and reported `DXGI_ERROR_INVALID_CALL` (`0x887A0001`) as the removal reason. AI-assisted.
Author
Owner

@⁠roshanarunk on GitHub · 2026-11-25 01:18 UTC · original

Same on an RTX 5070 Ti at 42363ab (as confirmed above; none of #1763, #1775, #1780 or #1933 is merged there), with the frame and the log lines for comparison.

Setup: RTX 5070 Ti 16 GB (32-lane waves), driver 617.42, Windows 11 Pro 26200, 31 GB RAM. Diag build (--profile diag --features diagnostics), VICTORY_D3D12_DRED=1 VICTORY_GPU_TIMING=1, VICTORY_KEYS=5:Enter,10:Enter,15:Enter, title 1.0.2.1, Series X profile, profile and settings saved by an earlier run. No debug layer here, so the rejected call is not named. Run as a low-integrity process (cache and data under %USERPROFILE%\AppData\LocalLow); nothing else changed.

Result: host device removed with 0x887A0001 (DXGI_ERROR_INVALID_CALL) after a submission of 1 list, 44 s after start, before the menus. Frame captures stop at frame 128, the same frame as in the report above. On ffe310e the same machine reached the world and then hung with 0x887A0006 (as in #71).

In the log before it (same sequence as in the report):

  • the host refuses castable formats: textures of one memory in other formats get their own host texture (E_INVALIDARG), then no host texture for the 2560x1440 format-115 (B4G4R4A4_UNORM) render target.
  • Right before the removal: three twin: an unordered view of a depth texture, made on its writable twin lines (console formats 19 and 118, planes 0 and 1), then host pipeline refused … 0x887A0005 and the removal.

I can rerun with #1775 or #1780 merged on this card if a 5070 Ti data point would help choose between them.

AI use: Claude Code (Claude Opus 5.5) built VIctory, ran it on my machine, read the logs and wrote this comment.

**@⁠roshanarunk** on GitHub · 2026-11-25 01:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7149414648) Same on an RTX 5070 Ti at `42363ab` (as confirmed above; none of #1763, #1775, #1780 or #1933 is merged there), with the frame and the log lines for comparison. **Setup:** RTX 5070 Ti 16 GB (32-lane waves), driver 617.42, Windows 11 Pro 26200, 31 GB RAM. Diag build (`--profile diag --features diagnostics`), `VICTORY_D3D12_DRED=1 VICTORY_GPU_TIMING=1`, `VICTORY_KEYS=5:Enter,10:Enter,15:Enter`, title 1.0.2.1, Series X profile, profile and settings saved by an earlier run. No debug layer here, so the rejected call is not named. Run as a low-integrity process (cache and data under `%USERPROFILE%\AppData\LocalLow`); nothing else changed. **Result:** host device removed with `0x887A0001` (DXGI_ERROR_INVALID_CALL) after a submission of 1 list, **44 s after start**, before the menus. Frame captures stop at frame 128, the same frame as in the report above. On `ffe310e` the same machine reached the world and then hung with `0x887A0006` (as in #71). **In the log before it** (same sequence as in the report): - `the host refuses castable formats: textures of one memory in other formats get their own host texture` (E_INVALIDARG), then `no host texture` for the 2560x1440 format-115 (`B4G4R4A4_UNORM`) render target. - Right before the removal: three `twin: an unordered view of a depth texture, made on its writable twin` lines (console formats 19 and 118, planes 0 and 1), then `host pipeline refused … 0x887A0005` and the removal. I can rerun with #1775 or #1780 merged on this card if a 5070 Ti data point would help choose between them. AI use: Claude Code (Claude Opus 5.5) built VIctory, ran it on my machine, read the logs and wrote this comment.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:52 UTC · original

Automated triage for the maintainers. Complete run report (RTX 4070 SUPER, driver 616.56, Windows 11 26200, 70564ae), with debug-layer follow-ups. The device removal at frame 128 (0x887A0001, one list) is the typed UAV on B5G5R5A1_UNORM (id 342/599) that NVIDIA cannot store to. It is confirmed in fits in crates/victory-gpu/src/descriptor/host.rs and tracked in #1753, which was opened seconds earlier; please follow it there. The open fixes are listed there (#1763, #1780, #1843, #1832).

Your thread adds useful data for #1753: AgneyaK's bisect to the range containing 13bbd6f; moe-miau's runs showing every fits fix gets past this removal but still hangs in the intro cutscene, with the refused 2560x1440 B4G4R4A4_UNORM target as the open suspect (#797); and fiestorra's note that id 1419 (no sampler heap bound, #1778) is a real rule break but not this removal. The capped view heap and the slots past it are #1760.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/1754#issuecomment-7162971842) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T01:18:30Z at=2026-11-25T12:51:39Z --> Automated triage for the maintainers. Complete run report (RTX 4070 SUPER, driver 616.56, Windows 11 26200, `70564ae`), with debug-layer follow-ups. The device removal at frame 128 (`0x887A0001`, one list) is the typed UAV on `B5G5R5A1_UNORM` (id 342/599) that NVIDIA cannot store to. It is confirmed in `fits` in `crates/victory-gpu/src/descriptor/host.rs` and tracked in **#1753**, which was opened seconds earlier; please follow it there. The open fixes are listed there (#1763, #1780, #1843, #1832). Your thread adds useful data for #1753: AgneyaK's bisect to the range containing `13bbd6f`; moe-miau's runs showing every `fits` fix gets past this removal but still hangs in the intro cutscene, with the refused 2560x1440 `B4G4R4A4_UNORM` target as the open suspect (#797); and fiestorra's note that id 1419 (no sampler heap bound, #1778) is a real rule break but not this removal. The capped view heap and the slots past it are #1760. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1754
No description provided.