Host GPU hangs (DXGI_ERROR_DEVICE_HUNG) during first-boot screens on NVIDIA RTX 4060 #11

Closed
opened 2026-11-26 03:46:21 +00:00 by github-bot · 7 comments
Owner

@⁠DaniloMaglia on GitHub · 2026-11-23 22:53 UTC · original

Summary

On an NVIDIA GeForce RTX 4060 the host device is removed during the
first-boot / menu screens, about 60–70 s after start (frames ~1250–2100),
well before loading into the world.

Environment

  • VIctory main at 015d45b, diag profile with --features diagnostics
  • Windows 11 Pro 10.0.26200
  • NVIDIA GeForce RTX 4060, driver 32.0.16.2124
  • Console mode: Series X (default)

Steps

cargo build --profile diag -p victory --features diagnostics
$env:VICTORY_D3D12_DRED = '1'
target\diag\victory.exe run <game dir>\game_scarlett_master.exe --execute

Let the boot screens play. 4 runs out of 4 failed with exit code 5.

What happens

host GPU device removed after a submission of 4 lists; ...
device removed: ... (0x887A0006)

With VICTORY_D3D12_DEBUG=1 the debug layer reports no errors before the
removal (only harmless warnings: unbound DSV, resource creation hints), and
the reason is:

DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable amount of time
to execute its commands ... TDR

DRED reports no page fault.

Where it stops (DRED breadcrumbs)

The hang does not follow one draw:

Run Frame Stopped at
1 (DRED) ~1870 indexed 30x1, VS a59924ecd59ce5dd / PS a820d0c3bdb59905, next in flight PS 82ba5eae46a856a4
2 (DRED + debug layer) ~2090 one of 12 indexed draws with no marker; the list's last note was PS 872592596b3651f0
3 (DRED) ~1224 indexed 30x1, PS 82ba5eae46a856a4
4 (DRED, 82ba5eae dropped) ~1650 draw 6x1, VS 0602c2384acbb3b2 / PS a78d088fa55aa495 (full-screen pass reading a 3840x2160 SRV)

The shaders in flight are trivial. I disassembled two of them with
victory shader-info --disasm:

  • a820d0c3bdb59905: interpolates a color and exports it, no resources
  • 82ba5eae46a856a4: samples one 2D texture and exports it, no loops

Run 4 dropped every draw using 82ba5eae46a856a4 and still hung, at a
different draw. One bad shader seems unlikely.

Pattern

Every hang comes at a screen change. On the GPU runs, "a black frame after a
frame that was not" is logged about every 216 frames (frames 357, 573, 789,
1005, 1222, ...), and each hang comes on one of those changes, when the next
screen first binds new pipelines. On WARP only the frame-1 black frame is
logged.

The window also goes black for a few seconds and comes back several times
before the hang. These are those same black frames.

Not yet tried

  • An Nsight Aftermath GPU crash dump, which would name the shader and
    instruction the GPU was running
  • Whether Series S mode or a release build behave the same

Full logs available on request.

**@⁠DaniloMaglia** on GitHub · 2026-11-23 22:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/11) ## Summary On an NVIDIA GeForce RTX 4060 the host device is removed during the first-boot / menu screens, about 60–70 s after start (frames ~1250–2100), well before loading into the world. ## Environment - VIctory `main` at 015d45b, `diag` profile with `--features diagnostics` - Windows 11 Pro 10.0.26200 - NVIDIA GeForce RTX 4060, driver 32.0.16.2124 - Console mode: Series X (default) ## Steps cargo build --profile diag -p victory --features diagnostics $env:VICTORY_D3D12_DRED = '1' target\diag\victory.exe run <game dir>\game_scarlett_master.exe --execute Let the boot screens play. 4 runs out of 4 failed with exit code 5. ## What happens host GPU device removed after a submission of 4 lists; ... device removed: ... (0x887A0006) With `VICTORY_D3D12_DEBUG=1` the debug layer reports no errors before the removal (only harmless warnings: unbound DSV, resource creation hints), and the reason is: DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable amount of time to execute its commands ... TDR DRED reports no page fault. ## Where it stops (DRED breadcrumbs) The hang does not follow one draw: | Run | Frame | Stopped at | |-----|-------|------------| | 1 (DRED) | ~1870 | indexed 30x1, VS a59924ecd59ce5dd / PS a820d0c3bdb59905, next in flight PS 82ba5eae46a856a4 | | 2 (DRED + debug layer) | ~2090 | one of 12 indexed draws with no marker; the list's last note was PS 872592596b3651f0 | | 3 (DRED) | ~1224 | indexed 30x1, PS 82ba5eae46a856a4 | | 4 (DRED, 82ba5eae dropped) | ~1650 | draw 6x1, VS 0602c2384acbb3b2 / PS a78d088fa55aa495 (full-screen pass reading a 3840x2160 SRV) | The shaders in flight are trivial. I disassembled two of them with `victory shader-info --disasm`: - `a820d0c3bdb59905`: interpolates a color and exports it, no resources - `82ba5eae46a856a4`: samples one 2D texture and exports it, no loops Run 4 dropped every draw using `82ba5eae46a856a4` and still hung, at a different draw. One bad shader seems unlikely. ## Pattern Every hang comes at a screen change. On the GPU runs, "a black frame after a frame that was not" is logged about every 216 frames (frames 357, 573, 789, 1005, 1222, ...), and each hang comes on one of those changes, when the next screen first binds new pipelines. On WARP only the frame-1 black frame is logged. The window also goes black for a few seconds and comes back several times before the hang. These are those same black frames. ## Not yet tried - An Nsight Aftermath GPU crash dump, which would name the shader and instruction the GPU was running - Whether Series S mode or a release build behave the same Full logs available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:21 +00:00
Author
Owner

@⁠diolehner on GitHub · 2026-11-23 23:04 UTC · original

Same hang here on an RTX 4080 SUPER (16 GB), same driver 32.0.16.2124, Ryzen 7 9800X3D, Windows 11, VIctory main at e8f3b1c, own copy of the title.

Release build: first-boot screens and the intro video with sound work, but the window flickers to black repeatedly; the host device is removed (0x887A0006, TDR) about 100 s in, right after accepting the legal screen.

diag + VICTORY_D3D12_DRED=1 (1 run): same DEVICE_HUNG. The breadcrumbs stop at a small indexed draw (30x1) of a UI pass, as in your runs 1 and 3. Two things that may help narrow it:

  • The submission right before the removal was logged as slow host submission ms=524 (4 lists, one compute pipeline plus several graphics ones). It is the only slow submission in the whole log, so the GPU was already taking far longer than usual one submission before the TDR.
  • A black frame ... after a frame that was not warning came a fraction of a second before that slow submission, at a screen change, which matches the ~216-frame pattern you saw.

diag + VICTORY_D3D12_WARP=1: gets further: past the legal screen and "continue" into a black loading screen. There WARP refuses a batch of compute pipelines with 0x80070057 (E_INVALIDARG) and then the device is removed with 0x887A0005. That is probably a WARP feature limit rather than the same bug, but it shows the title itself proceeds when the hardware hang doesn't happen.

Next I'll try VICTORY_COPY_MODE=none to see whether the title-memory copies are involved, and a longer TDR delay to tell a long GPU workload from a shader that never finishes. I'll post the results here.

AI-assisted (Claude Code); measured on my machine. No game data in this comment.

**@⁠diolehner** on GitHub · 2026-11-23 23:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7116514472) Same hang here on an **RTX 4080 SUPER** (16 GB), same driver **32.0.16.2124**, Ryzen 7 9800X3D, Windows 11, VIctory `main` at e8f3b1c, own copy of the title. **Release build:** first-boot screens and the intro video with sound work, but the window flickers to black repeatedly; the host device is removed (`0x887A0006`, TDR) about 100 s in, right after accepting the legal screen. **`diag` + `VICTORY_D3D12_DRED=1`** (1 run): same `DEVICE_HUNG`. The breadcrumbs stop at a small indexed draw (30x1) of a UI pass, as in your runs 1 and 3. Two things that may help narrow it: - The submission right before the removal was logged as `slow host submission ms=524` (4 lists, one compute pipeline plus several graphics ones). It is the only slow submission in the whole log, so the GPU was already taking far longer than usual one submission before the TDR. - A `black frame ... after a frame that was not` warning came a fraction of a second before that slow submission, at a screen change, which matches the ~216-frame pattern you saw. **`diag` + `VICTORY_D3D12_WARP=1`:** gets further: past the legal screen and "continue" into a black loading screen. There WARP refuses a batch of compute pipelines with `0x80070057` (E_INVALIDARG) and then the device is removed with `0x887A0005`. That is probably a WARP feature limit rather than the same bug, but it shows the title itself proceeds when the hardware hang doesn't happen. Next I'll try `VICTORY_COPY_MODE=none` to see whether the title-memory copies are involved, and a longer TDR delay to tell a long GPU workload from a shader that never finishes. I'll post the results here. _AI-assisted (Claude Code); measured on my machine. No game data in this comment._
Author
Owner

@⁠DaniloMaglia on GitHub · 2026-11-23 23:09 UTC · original

Update: it isn't a hang. It's a use-after-free, and I have a fix.

What Aftermath shows. I loaded NVIDIA's Aftermath library in the
diagnostics build and got a GPU crash dump on the next failure. It shows a
page fault, not a timeout:

"Device state": "Error_DMA_PageFault"
"Fault Type": "Failed to translate the virtual address."  (Read, pixel shader)
"Resource": committed 256x1 DXGI_FORMAT_R32G32B32A32_FLOAT, 32 KB,
            "Destroyed": true

The title creates and releases this texture within 2.7 ms around screen
changes, and the host copy was freed about 3 ms before the fault. That's why
DRED and the debug layer pointed at a different trivial draw each time.
NVIDIA faults on this; other hardware may read zeros instead.

Two gaps let the host texture be freed while it's still referenced:

  1. Queue::signal completes the title's fence at once, but a host submission
    from another thread can still be running. The title then releases the
    texture, Resource's Drop frees the ID3D12Resource, and the running
    submission reads freed memory.
  2. Translated shaders index the host descriptor heap directly, and a slot is
    only rebuilt when a draw's table walk visits it. After
    descriptor::forget, a slot made from a released texture keeps a live SRV
    to the freed host resource.

Fix.

  • host::retire frees a released resource's host texture at once if no
    submission is running, otherwise after the running one finishes.
  • descriptor::forget passes the retired view records to every host heap,
    which nulls the slots made from them (a record-to-slots index, so no heap
    scan).

Result. With both changes there's no device loss. The run gets through
the setup screens (about 2 minutes) and the opening cinematic starts, with
audio. Then the title itself crashes: the frame counter stays at 2222 for
more than 10 s while mesh pipelines are built, followed by
0xc0000005 at <title exe>+0x23cf683 (write 0x0) and the title's crash
reporter. That looks like a deliberate fatal error, probably part of the
known world-performance work rather than this bug.

I don't yet know whether the slot-nulling change is needed on its own; the
page fault was gone only once both changes were in.

Still open from my first post: on the real GPU, single black frames show up
about every 216 frames during the setup screens. They're single frames
between normal ones, not fades.

I can open a PR with the fix. I also added three diagnostics-only switches
that could go in the same PR or be left out:

  • VICTORY_AFTERMATH=<path to GFSDK_Aftermath_Lib.x64.dll> writes an NVIDIA
    crash dump and its decoded JSON when the device is lost. The DLL is loaded
    at run time; nothing from NVIDIA is linked or shipped.
  • VICTORY_SHADER_DUMP=<dir> saves each translated shader container.
  • VICTORY_SKIP_SHADERS=<hash>,... drops the draws of the listed shaders.
**@⁠DaniloMaglia** on GitHub · 2026-11-23 23:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7116627285) Update: it isn't a hang. It's a use-after-free, and I have a fix. **What Aftermath shows.** I loaded NVIDIA's Aftermath library in the diagnostics build and got a GPU crash dump on the next failure. It shows a page fault, not a timeout: "Device state": "Error_DMA_PageFault" "Fault Type": "Failed to translate the virtual address." (Read, pixel shader) "Resource": committed 256x1 DXGI_FORMAT_R32G32B32A32_FLOAT, 32 KB, "Destroyed": true The title creates and releases this texture within 2.7 ms around screen changes, and the host copy was freed about 3 ms before the fault. That's why DRED and the debug layer pointed at a different trivial draw each time. NVIDIA faults on this; other hardware may read zeros instead. **Two gaps let the host texture be freed while it's still referenced:** 1. `Queue::signal` completes the title's fence at once, but a host submission from another thread can still be running. The title then releases the texture, `Resource`'s `Drop` frees the `ID3D12Resource`, and the running submission reads freed memory. 2. Translated shaders index the host descriptor heap directly, and a slot is only rebuilt when a draw's table walk visits it. After `descriptor::forget`, a slot made from a released texture keeps a live SRV to the freed host resource. **Fix.** - `host::retire` frees a released resource's host texture at once if no submission is running, otherwise after the running one finishes. - `descriptor::forget` passes the retired view records to every host heap, which nulls the slots made from them (a record-to-slots index, so no heap scan). **Result.** With both changes there's no device loss. The run gets through the setup screens (about 2 minutes) and the opening cinematic starts, with audio. Then the title itself crashes: the frame counter stays at 2222 for more than 10 s while mesh pipelines are built, followed by `0xc0000005 at <title exe>+0x23cf683 (write 0x0)` and the title's crash reporter. That looks like a deliberate fatal error, probably part of the known world-performance work rather than this bug. I don't yet know whether the slot-nulling change is needed on its own; the page fault was gone only once both changes were in. Still open from my first post: on the real GPU, single black frames show up about every 216 frames during the setup screens. They're single frames between normal ones, not fades. I can open a PR with the fix. I also added three diagnostics-only switches that could go in the same PR or be left out: - `VICTORY_AFTERMATH=<path to GFSDK_Aftermath_Lib.x64.dll>` writes an NVIDIA crash dump and its decoded JSON when the device is lost. The DLL is loaded at run time; nothing from NVIDIA is linked or shipped. - `VICTORY_SHADER_DUMP=<dir>` saves each translated shader container. - `VICTORY_SKIP_SHADERS=<hash>,...` drops the draws of the listed shaders.
Author
Owner

@⁠FIocker on GitHub · 2026-11-23 23:10 UTC · original

This may be the same cause as #16: on NVIDIA the title's 2560x1440 B5G5R5A1_UNORM (UAV) and B4G4R4A4_UNORM (render target) textures are refused (no host texture in the log, formats 86 and 115), and the draws after that read or write through descriptors with nothing behind them; render targets after a missing one also shift down a slot. On an RTX 5080 (driver 621.1) the hang stopped at a different draw than yours (a 6-vertex quad), but it went away with the patch in #16, and the title then reaches the world.

If your logs also have the two no host texture lines, that patch should be worth a try on the RTX 4060 / 4080 SUPER; if they do not, it is something else.

AI-assisted (Claude Code). No game data in this comment.

**@⁠FIocker** on GitHub · 2026-11-23 23:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7116628236) This may be the same cause as #16: on NVIDIA the title's 2560x1440 `B5G5R5A1_UNORM` (UAV) and `B4G4R4A4_UNORM` (render target) textures are refused (`no host texture` in the log, formats 86 and 115), and the draws after that read or write through descriptors with nothing behind them; render targets after a missing one also shift down a slot. On an RTX 5080 (driver 621.1) the hang stopped at a different draw than yours (a 6-vertex quad), but it went away with the patch in https://git.gtahub.st/github/Marvisak--VIctory/issues/16, and the title then reaches the world. If your logs also have the two `no host texture` lines, that patch should be worth a try on the RTX 4060 / 4080 SUPER; if they do not, it is something else. AI-assisted (Claude Code). No game data in this comment.
Author
Owner

@⁠Secbit-A-dpereira on GitHub · 2026-11-23 23:30 UTC · original

Same symptom on an RTX 5080, two runs out of two, and one extra data point: it also fails in WARP, with a
different code.

Environment

  • VIctory main at e8f3b1c, diag profile with --features diagnostics
  • Windows 11 build 26300, Ryzen 7 7800X3D, 32 GB
  • NVIDIA GeForce RTX 5080 (16 GB), driver 32.0.16.2114
  • Console mode: Series X (default), DXC 1.9.2602.17 from SDK 10.0.26100

What happens (Series X, host GPU)

2 runs of 2 failed the same way, both after the loading-screen artwork had been drawn and presented:

ERROR victory_gpu::host: host GPU device removed after a submission of 4 lists;
device removed: ... (0x887A0006)

Captured frames up to the failure: frame 1419 is the loading-screen illustration, fully drawn and correct; the
hang comes on the next frame or two. Frames 1350–1419 are all distinct, so the picture is live, not frozen.

With VICTORY_D3D12_DRED=1:

a list stopped at command 75 of 117 (op 4); commands 62..114 between its barriers
  command 75 (op 4): indexed 30x1 [vertex 67e814f3c3be6dac, pixel 46447d58f4954cd1]
  ...
a list stopped at command 0 of 2 (op 46), its pipelines {}
list 2 of 4, of its 34: draw 6x1 [vertex 0602c2384acbb3b2, pixel a78d088fa55aa495]
  | 0602c2384acbb3b2 Srv s0+0: placed dim 1 128x1 f0 at 0x95a30a0
  | a78d088fa55aa495 Srv s0+8: 3840x2160 f28 flags 0x1

That last one matches the draw 6x1 … 3840x2160 SRV in run 4 of the report above.

WARP is not immune

VICTORY_D3D12_WARP=1, with VICTORY_KEYS to move through the menus:

  • the menus, the legal notices and the Rockstar logo all render correctly (1920x1080 captures, 10–16 fps at first,
    then 2 fps / 488 ms per frame once it starts loading);

  • after about four minutes the device is removed as well, but with a different code:

    ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists;
    device removed: ... (0x887A0005)
    

So on this machine the failure is not NVIDIA-specific and not a TDR: the same point (the first heavy frames of the
world load) kills both a real GPU and the software adapter, with 0x887A0006 and 0x887A0005 respectively. That
points at something in the submission itself (a resource that is used after it is freed, an aliasing/barrier
problem, or a copy into a range that is no longer mapped) rather than at shader code — WARP does not TDR.

Series S mode does not remove the device

--console series-s on the real GPU: 30 fps, 11 draws a frame, no device removal in 4 096+ frames (Series X fails
at about 1 420 here). Every captured frame is a single flat colour, so this path runs but does not draw.

Ask

  • Is the 0x887A0005 on WARP expected, or does it point at the same defect as the 0x887A0006?
  • If it helps, I can run diagnostics builds here and send full logs, VICTORY_D3D12_DEBUG=1 output, target dumps
    (VICTORY_CAPTURE + VICTORY_DUMP_TARGETS=1) of frames 1350–1419, or a capture with VICTORY_D3D12_DRED=1 and
    --console series-s. No game files would be shared.
**@⁠Secbit-A-dpereira** on GitHub · 2026-11-23 23:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7117039302) Same symptom on an RTX 5080, two runs out of two, and one extra data point: **it also fails in WARP**, with a different code. ## Environment - VIctory `main` at `e8f3b1c`, `diag` profile with `--features diagnostics` - Windows 11 build 26300, Ryzen 7 7800X3D, 32 GB - NVIDIA GeForce RTX 5080 (16 GB), driver 32.0.16.2114 - Console mode: Series X (default), DXC 1.9.2602.17 from SDK 10.0.26100 ## What happens (Series X, host GPU) 2 runs of 2 failed the same way, both after the loading-screen artwork had been drawn and presented: ERROR victory_gpu::host: host GPU device removed after a submission of 4 lists; device removed: ... (0x887A0006) Captured frames up to the failure: frame 1419 is the loading-screen illustration, fully drawn and correct; the hang comes on the next frame or two. Frames 1350–1419 are all distinct, so the picture is live, not frozen. With `VICTORY_D3D12_DRED=1`: a list stopped at command 75 of 117 (op 4); commands 62..114 between its barriers command 75 (op 4): indexed 30x1 [vertex 67e814f3c3be6dac, pixel 46447d58f4954cd1] ... a list stopped at command 0 of 2 (op 46), its pipelines {} list 2 of 4, of its 34: draw 6x1 [vertex 0602c2384acbb3b2, pixel a78d088fa55aa495] | 0602c2384acbb3b2 Srv s0+0: placed dim 1 128x1 f0 at 0x95a30a0 | a78d088fa55aa495 Srv s0+8: 3840x2160 f28 flags 0x1 That last one matches the `draw 6x1 … 3840x2160 SRV` in run 4 of the report above. ## WARP is not immune `VICTORY_D3D12_WARP=1`, with `VICTORY_KEYS` to move through the menus: - the menus, the legal notices and the Rockstar logo all render correctly (1920x1080 captures, 10–16 fps at first, then 2 fps / 488 ms per frame once it starts loading); - after about four minutes the device is removed as well, but with a different code: ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; device removed: ... (0x887A0005) So on this machine the failure is not NVIDIA-specific and not a TDR: the same point (the first heavy frames of the world load) kills both a real GPU and the software adapter, with `0x887A0006` and `0x887A0005` respectively. That points at something in the submission itself (a resource that is used after it is freed, an aliasing/barrier problem, or a copy into a range that is no longer mapped) rather than at shader code — WARP does not TDR. ## Series S mode does not remove the device `--console series-s` on the real GPU: 30 fps, 11 draws a frame, no device removal in 4 096+ frames (Series X fails at about 1 420 here). Every captured frame is a single flat colour, so this path runs but does not draw. ## Ask - Is the `0x887A0005` on WARP expected, or does it point at the same defect as the `0x887A0006`? - If it helps, I can run diagnostics builds here and send full logs, `VICTORY_D3D12_DEBUG=1` output, target dumps (`VICTORY_CAPTURE` + `VICTORY_DUMP_TARGETS=1`) of frames 1350–1419, or a capture with `VICTORY_D3D12_DRED=1` and `--console series-s`. No game files would be shared.
Author
Owner

@⁠DaniloMaglia on GitHub · 2026-11-23 23:31 UTC · original

Update: with current main plus two fixes from elsewhere, the RTX 4060 runs
without device loss and the menu flicker is gone.

Device loss: fixed by the patch in
#16
(thanks @⁠FIocker). My logs had both no host texture lines, formats 86
(B5G5R5A1_UNORM, UAV) and 115 (B4G4R4A4_UNORM, render target), on every
GPU run and never on WARP. With the patch:

the host's format support lacks uses of this texture; made without them format=86 flags=0x5 dropped=0x4
the host's format support lacks uses of this texture; made without them format=115 flags=0x1 dropped=0x1

The run then goes through the setup screens and menus, plays the
"Rockstar Games presents" card and loads into the world (game audio plays,
the picture is black, as listed under "Not working yet" in 8c26061).
After about 2 min 20 s there was no device loss and no crash.

The use-after-free I described above is already handled on main by
8c26061 (host lists hold the textures they name, heap slots hold the
resource they view), so I'm dropping my fix for it.

Black flashes in the menus: fixed by #20. Without it, single black
frames showed up about every 216 frames and in bursts at screen changes
(frames 357, 573, 789, ... in each run). With #20 the only black frames
left are frame 1 and a 4-frame black at frame 759, which looks like an
intended cut (brightness 44 → 0 for four frames → 45), not flicker.

Tested on main (8c26061) with the #16 patch and #20 applied:

  • NVIDIA GeForce RTX 4060, driver 621.24, Windows 11 Pro 26200
  • cargo test -p victory-gpu: 36 passed; clippy clean

I have a diagnostics-only VICTORY_AFTERMATH=<path to GFSDK_Aftermath_Lib.x64.dll> switch that writes an NVIDIA GPU crash dump
plus its decoded JSON on device loss. It's what showed the page fault that
DRED and the debug layer missed. The DLL is loaded at run time; nothing
from NVIDIA is linked or shipped. Happy to open a PR if it's wanted.

**@⁠DaniloMaglia** on GitHub · 2026-11-23 23:31 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7117062940) Update: with current `main` plus two fixes from elsewhere, the RTX 4060 runs without device loss and the menu flicker is gone. **Device loss: fixed** by the patch in https://git.gtahub.st/github/Marvisak--VIctory/issues/16 (thanks @⁠FIocker). My logs had both `no host texture` lines, formats 86 (`B5G5R5A1_UNORM`, UAV) and 115 (`B4G4R4A4_UNORM`, render target), on every GPU run and never on WARP. With the patch: the host's format support lacks uses of this texture; made without them format=86 flags=0x5 dropped=0x4 the host's format support lacks uses of this texture; made without them format=115 flags=0x1 dropped=0x1 The run then goes through the setup screens and menus, plays the "Rockstar Games presents" card and loads into the world (game audio plays, the picture is black, as listed under "Not working yet" in 8c26061). After about 2 min 20 s there was no device loss and no crash. The use-after-free I described above is already handled on `main` by 8c26061 (host lists hold the textures they name, heap slots hold the resource they view), so I'm dropping my fix for it. **Black flashes in the menus: fixed** by #20. Without it, single black frames showed up about every 216 frames and in bursts at screen changes (frames 357, 573, 789, ... in each run). With #20 the only black frames left are frame 1 and a 4-frame black at frame 759, which looks like an intended cut (brightness 44 → 0 for four frames → 45), not flicker. Tested on `main` (8c26061) with the #16 patch and #20 applied: - NVIDIA GeForce RTX 4060, driver 621.24, Windows 11 Pro 26200 - `cargo test -p victory-gpu`: 36 passed; clippy clean I have a diagnostics-only `VICTORY_AFTERMATH=<path to GFSDK_Aftermath_Lib.x64.dll>` switch that writes an NVIDIA GPU crash dump plus its decoded JSON on device loss. It's what showed the page fault that DRED and the debug layer missed. The DLL is loaded at run time; nothing from NVIDIA is linked or shipped. Happy to open a PR if it's wanted.
Author
Owner

@⁠DaniloMaglia on GitHub · 2026-11-23 23:40 UTC · original

@⁠Marvisak can we mark this as closed?

**@⁠DaniloMaglia** on GitHub · 2026-11-23 23:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7117229216) @⁠Marvisak can we mark this as closed?
Author
Owner

@⁠Lonhaax on GitHub · 2026-11-24 00:03 UTC · original

2026-11-23T23:59:43.831106Z ERROR victory_gpu::host: host GPU device removed after a submission of 31 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command
VIctory: host GPU failure: host GPU device removed after a submission of 31 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command

RTX 4070.

**@⁠Lonhaax** on GitHub · 2026-11-24 00:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/11#issuecomment-7117661159) 2026-11-23T23:59:43.831106Z ERROR victory_gpu::host: host GPU device removed after a submission of 31 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command VIctory: host GPU failure: host GPU device removed after a submission of 31 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command RTX 4070.
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#11
No description provided.