Intel Arc B580: device removed / GPU hang while loading, missing barrier with card buffers, memory growth with CARD_BUFFERS=0 #4544

Open
opened 2026-11-30 22:13:40 +00:00 by github-bot · 1 comment
Owner

@⁠marcelloveyugioh-wq on GitHub · 2026-11-30 22:13 UTC · original

System

  • GPU: Intel Arc B580 12 GB, driver 32.0.101.9175 (2026-11-04, latest)
  • CPU: AMD Ryzen 5 5500, RAM: 32 GB, Windows 11 Home (26300)
  • Game on HDD
  • Builds tested: VIctory-NVIDIA (84bd61e / e1251c3, via VILauncher), Whiplash 1.1.0 + engines/amd diag build (SHA-256 35c5bc678064ca729c22d6cb1c1fabc06bd05e7a853dc0e1a197b1727752a249), AnyXboxX 66b92fb
  • Settings: Series S, RT off, 1080p, DLSS and frame gen off

Summary

On the Intel Arc B580, every run ends in device removed (0x887A0006 / 0x887A0004 / 0x887A0005). It happens with every VIctory-based build I tried. With the D3D12 debug layer I found two separate problems. Working around the first one only exposes the second, which is a reproducible GPU hang.

Issue 1: missing resource barrier (card buffers)

Debug layer output (VICTORY_D3D12_DEBUG=1), crash after ~4 min:

ID3D12CommandQueue1::ExecuteCommandLists: Using SetComputeRootShaderResourceView on Command List
(...'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST)
(promoted from COMMON state) of resource (...) (subresource: 0) is invalid for use as a root shader resource.
Expected State Bits (all): 0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE,
Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x40.

This looks like the card-copy hash pass in victory-gpu/src/host.rs (around the SetComputeRootShaderResourceView(1, shadow.buffer…) calls after CopyBufferRegion). The COPY_DEST → NON_PIXEL_SHADER_RESOURCE transition is only pushed when own.is_none() && before.is_some() && !ranges.is_empty(), so some path seems to skip it. AMD and NVIDIA tolerate this, but the Intel driver removes the device.

Workaround: VICTORY_CARD_BUFFERS=0 makes this error go away, but process commit then grows very fast (see below).

Issue 2: GPU hang (TDR) at a fixed point while loading

With VICTORY_CARD_BUFFERS=0, the game reaches the first cutscene and then the loading screen. It then fails at the same point in loading.

  • Debug layer: DXGI_ERROR_DEVICE_HUNG … TDR … The current Device Context was executing commands when the hang occurred.
  • With TdrDelay=10: crash at 533 s. The log says the submitting thread was preparing a submission (nothing of ours was running on the card), of 39 lists, for 11528.3 ms.
  • With TdrDelay=60: crash again at 533 s (identical). After ~80 s of no output, the title itself crashes: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0). So this is a real hang, not just slow work.
  • Just before the hang: shader does not translate; its pipelines' draws are dropped stage="compute" hash=8b437ab61d8008fe.
  • AnyXboxX (same switches) crashes at the same address +0x23cf683 (write 0x0) after ~8 min.

VIctory-NVIDIA results

  • CARD_BUFFERS=0 + LIBRARY_MAP=0, TdrDelay 60: reached the main menu once and ran 45 min, but process commit grows without bound (~32 GB → 85 GB in 5 min while loading). Windows logged "virtual memory insufficient … victory.exe 85,519,826,944 bytes". Another run hit 96.5 GB in ~13 min.
  • Only LIBRARY_MAP=0 (card buffers on): device removed after ~3 min (relay: the device was lost before fence value 90178 was reached … 0x887A0006). The pipeline-library serialise had been running for 11.2 s at that moment.
  • CARD_BUFFERS=0 + LIBRARY_MAP=0, TdrDelay 10: device removed after ~3 min while the library serialise had been running for 14.3 s.
  • CARD_BUFFERS=0 + LIBRARY_MAP=0, TdrDelay 60, ~144 GB commit limit: device removed after ~8 min (0x887A0005) with commit at only 44/144 GB, right after process memory jumped from ~10 GB to ~29 GB at the same loading point.

Other observations (Intel-specific)

  • Almost every pipeline-library store fails: pipeline library: made [compute …] (the library did not load it: Falscher Parameter. (0x80070057)) (E_INVALIDARG). Some compute pipelines are refused with the same error.
  • Many compute pipelines take 10–14 s each to compile, and a whole-library serialise takes 11–14 s, which is longer than the default 2 s TDR.
  • host-pipelines.bin got corrupted while mapped: 46 of the 62811 pages … read as zeros now: the library's contents were lost there after this run replaced the file under the mapping 8 times.
  • FSR4 always falls back on Intel: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 … falling back to NewBE.
  • VICTORY_UPSCALER=6 makes the title assert (0x80000003) within 30 s–3.5 min.

Logs are available on request.

**@⁠marcelloveyugioh-wq** on GitHub · 2026-11-30 22:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4543) ## System - GPU: Intel Arc B580 12 GB, driver 32.0.101.9175 (2026-11-04, latest) - CPU: AMD Ryzen 5 5500, RAM: 32 GB, Windows 11 Home (26300) - Game on HDD - Builds tested: VIctory-NVIDIA (84bd61e / e1251c3, via VILauncher), Whiplash 1.1.0 + `engines/amd` diag build (SHA-256 `35c5bc678064ca729c22d6cb1c1fabc06bd05e7a853dc0e1a197b1727752a249`), AnyXboxX 66b92fb - Settings: Series S, RT off, 1080p, DLSS and frame gen off ## Summary On the Intel Arc B580, every run ends in `device removed` (0x887A0006 / 0x887A0004 / 0x887A0005). It happens with every VIctory-based build I tried. With the D3D12 debug layer I found **two separate problems**. Working around the first one only exposes the second, which is a reproducible GPU hang. ## Issue 1: missing resource barrier (card buffers) Debug layer output (`VICTORY_D3D12_DEBUG=1`), crash after ~4 min: ``` ID3D12CommandQueue1::ExecuteCommandLists: Using SetComputeRootShaderResourceView on Command List (...'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) (promoted from COMMON state) of resource (...) (subresource: 0) is invalid for use as a root shader resource. Expected State Bits (all): 0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE, Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x40. ``` This looks like the card-copy hash pass in `victory-gpu/src/host.rs` (around the `SetComputeRootShaderResourceView(1, shadow.buffer…)` calls after `CopyBufferRegion`). The `COPY_DEST → NON_PIXEL_SHADER_RESOURCE` transition is only pushed when `own.is_none() && before.is_some() && !ranges.is_empty()`, so some path seems to skip it. AMD and NVIDIA tolerate this, but the Intel driver removes the device. **Workaround:** `VICTORY_CARD_BUFFERS=0` makes this error go away, but process commit then grows very fast (see below). ## Issue 2: GPU hang (TDR) at a fixed point while loading With `VICTORY_CARD_BUFFERS=0`, the game reaches the first cutscene and then the loading screen. It then fails at the same point in loading. - Debug layer: `DXGI_ERROR_DEVICE_HUNG … TDR … The current Device Context was executing commands when the hang occurred.` - With `TdrDelay=10`: crash at **533 s**. The log says `the submitting thread was preparing a submission (nothing of ours was running on the card), of 39 lists, for 11528.3 ms`. - With `TdrDelay=60`: crash again at **533 s** (identical). After ~80 s of no output, the title itself crashes: `unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0)`. So this is a real hang, not just slow work. - Just before the hang: `shader does not translate; its pipelines' draws are dropped stage="compute" hash=8b437ab61d8008fe`. - AnyXboxX (same switches) crashes at the **same address** `+0x23cf683 (write 0x0)` after ~8 min. ## VIctory-NVIDIA results - `CARD_BUFFERS=0` + `LIBRARY_MAP=0`, TdrDelay 60: reached the main menu once and ran 45 min, but process commit grows without bound (~32 GB → 85 GB in 5 min while loading). Windows logged "virtual memory insufficient … victory.exe 85,519,826,944 bytes". Another run hit 96.5 GB in ~13 min. - Only `LIBRARY_MAP=0` (card buffers on): **device removed after ~3 min** (`relay: the device was lost before fence value 90178 was reached … 0x887A0006`). The pipeline-library serialise had been running for 11.2 s at that moment. - `CARD_BUFFERS=0` + `LIBRARY_MAP=0`, TdrDelay 10: device removed after ~3 min while the library serialise had been running for 14.3 s. - `CARD_BUFFERS=0` + `LIBRARY_MAP=0`, TdrDelay 60, ~144 GB commit limit: **device removed after ~8 min** (0x887A0005) with commit at only 44/144 GB, right after process memory jumped from ~10 GB to ~29 GB at the same loading point. ## Other observations (Intel-specific) - Almost every pipeline-library store fails: `pipeline library: made [compute …] (the library did not load it: Falscher Parameter. (0x80070057))` (E_INVALIDARG). Some compute pipelines are refused with the same error. - Many compute pipelines take 10–14 s each to compile, and a whole-library serialise takes 11–14 s, which is longer than the default 2 s TDR. - `host-pipelines.bin` got corrupted while mapped: `46 of the 62811 pages … read as zeros now: the library's contents were lost there` after `this run replaced the file under the mapping 8 times`. - FSR4 always falls back on Intel: `FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 … falling back to NewBE`. - `VICTORY_UPSCALER=6` makes the title assert (`0x80000003`) within 30 s–3.5 min. Logs are available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 22:13:40 +00:00
Author
Owner
**@⁠Deadliestbridge** on GitHub · 2026-12-01 00:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4543#issuecomment-7296342051) Same issue on my wife's B570 card, the intro works up until the cops show up. [victory-nvidia-play-20261201-002024-8712.log](https://github.com/user-attachments/files/35649033/victory-nvidia-play-20261201-002024-8712.log) [victory-nvidia-play-20261201-001836-17196.log](https://github.com/user-attachments/files/35649038/victory-nvidia-play-20261201-001836-17196.log) [victory-nvidia-play-20261201-001610-18256.log](https://github.com/user-attachments/files/35649043/victory-nvidia-play-20261201-001610-18256.log) [victory-nvidia-play-20261201-001533-17180.log](https://github.com/user-attachments/files/35649045/victory-nvidia-play-20261201-001533-17180.log) [victory-nvidia-play-20261201-000112-21484.log](https://github.com/user-attachments/files/35649053/victory-nvidia-play-20261201-000112-21484.log)
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/trustno1-coder--VIctory-NVIDIA#4544
No description provided.