RX 6800 (RDNA2, 32 GB): device removed within the first minute, also without play.ps1's switches #34

Open
opened 2026-11-26 03:31:28 +00:00 by github-bot · 1 comment
Owner

@⁠TG0000 on GitHub · 2026-11-25 23:55 UTC · original

Thanks for the write-up in docs/findings.md, it is very clear. I tried main (0a435665) on an older card and it loses the device within a minute every time. In case RDNA2 or 32 GB machines matter to you, here is what I measured.

Setup: Ryzen 9 5900X, 32 GB, Radeon RX 6800 (RDNA2, 16 GB), Windows 11, Series X profile, diagnostics build cross-compiled from main. The only change is one commit of ours that places the window on a given monitor and draws the frame rate. Cold shader cache on the first run, then warm.

Run Settings Result
1 scripts/play.ps1 defaults (incl. THIN=1, JOIN_PARTS=8, UPLOAD_AHEAD=1, SKIP_PIPELINES=none) DXGI_ERROR_DEVICE_REMOVED 47 s after start, while several compute pipelines had been compiling for about 2 s; "nothing of ours was running on the card", 1 list being prepared
2 same + VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c device removed (0x887A0005) 52 s after start; the pipeline of compute 39f0e9aeb156a61c was still being made, for 16 s (the skip only acts at draw time; the same holds on fxceless main)
3 none of play.ps1's switches, only LATE_WAIT=3 WIDE_BACK=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1024 TEXTURE_NO_WAIT=1 and the skip above device removed again (0x887A0004, "1 submission sent ahead (VICTORY_RELAY=1) of 7 lists", no breadcrumbs). Working set 25.6 GB with 1.3 GB of RAM left free; 13 of 14 windows over 600 ms

On the same PC, fxceless main plus our own branches run 3 to 7 minutes at a time, dozens of runs a night, without losing the device, at 5 to 10 fps.

What this suggests (not proven):

  • The loss does not come from the switches in play.ps1; run 3 has none of them.
  • It comes during the first minute, while many compute pipelines are being made. On a 32 GB machine it also comes with memory close to full.

I can run a build or a set of switches you would like checked on this card. The goal is to find out which change it is.

(Measured and written with AI assistance. The logs contain only our own messages, no game data.)

**@⁠TG0000** on GitHub · 2026-11-25 23:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/34) Thanks for the write-up in docs/findings.md, it is very clear. I tried main (0a435665) on an older card and it loses the device within a minute every time. In case RDNA2 or 32 GB machines matter to you, here is what I measured. **Setup:** Ryzen 9 5900X, 32 GB, Radeon RX 6800 (RDNA2, 16 GB), Windows 11, Series X profile, diagnostics build cross-compiled from main. The only change is one commit of ours that places the window on a given monitor and draws the frame rate. Cold shader cache on the first run, then warm. | Run | Settings | Result | |---|---|---| | 1 | `scripts/play.ps1` defaults (incl. `THIN=1`, `JOIN_PARTS=8`, `UPLOAD_AHEAD=1`, `SKIP_PIPELINES=none`) | `DXGI_ERROR_DEVICE_REMOVED` 47 s after start, while several compute pipelines had been compiling for about 2 s; "nothing of ours was running on the card", 1 list being prepared | | 2 | same + `VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c` | device removed (0x887A0005) 52 s after start; the pipeline of compute 39f0e9aeb156a61c was still being made, for 16 s (the skip only acts at draw time; the same holds on fxceless main) | | 3 | none of play.ps1's switches, only `LATE_WAIT=3 WIDE_BACK=1 CARD_BUFFERS_MIN_MB=1 CARD_BUFFERS_MB=1024 TEXTURE_NO_WAIT=1` and the skip above | device removed again (0x887A0004, "1 submission sent ahead (VICTORY_RELAY=1) of 7 lists", no breadcrumbs). Working set 25.6 GB with 1.3 GB of RAM left free; 13 of 14 windows over 600 ms | On the same PC, fxceless main plus our own branches run 3 to 7 minutes at a time, dozens of runs a night, without losing the device, at 5 to 10 fps. **What this suggests (not proven):** - The loss does not come from the switches in play.ps1; run 3 has none of them. - It comes during the first minute, while many compute pipelines are being made. On a 32 GB machine it also comes with memory close to full. I can run a build or a set of switches you would like checked on this card. The goal is to find out which change it is. (Measured and written with AI assistance. The logs contain only our own messages, no game data.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:28 +00:00
Author
Owner

@⁠itsonewi on GitHub · 2026-11-26 00:02 UTC · original

Thank you — three runs with three different removal codes is more than most reports here carry, and it narrows things a lot.

The three codes are not the same failure. Run 1 and 2 are 0x887A0005 (DXGI_ERROR_DEVICE_REMOVED, "removed, reason not given"). Run 3 is 0x887A0004 (DXGI_ERROR_UNSUPPORTED, "the requested functionality is not supported"), which is a refusal of a request, not a reset. If the log for run 3 came from ID3D12Device::GetDeviceRemovedReason, that is worth separating: two of your runs may be a crash somewhere and one may be the title (or our side) asking the device for something it will not do.

Your observation about the skip is correct and is by design in the code. crates/victory-gpu/src/pipeline.rs:475-505 (is_skipped / parse_skip_hashes) is consulted where a pipeline is used — at a draw or a dispatch — while the host pipeline is made when the title creates it. So VICTORY_SKIP_PIPELINES cannot prevent the compile that is presumably killing the device; it only stops the draw from asking for the result. That matches #8 and #11 in this tracker, and it means the switch is the wrong tool for your experiment.

Switches that would separate your hypotheses, cheapest first — all of them exist in this tree:

Question Switch What the answer looks like
Is it concurrency of pipeline creation? VICTORY_HOST_WAVE=1 (read at apps/victory/src/main.rs:207-210; see #27 — the same setting has a second name, VICTORY_HOST_MAX_WAVE, honoured only by translate --warm) If the first minute survives with one pipeline at a time, the trigger is parallel creation, not a particular pipeline
Is it the early-loading path (the book made by earlier runs)? run once without VICTORY_PIPELINE_BOOK, and once with VICTORY_EARLY_ALL=0 A run that survives cold but dies warm points at known.rs/library.rs instead of the title
Is memory refusal involved (your 25.6 GB / 1.3 GB free run)? nothing to set — look for commit_refused or XMemVirtualAlloc refused lines in the log (crates/victory-hle/src/modules/xmem.rs:143-175) xmem.rs:648-660 deliberately keeps the title's 6.1 GiB as a SEC_RESERVE section so a busy host can commit lazily; a refusal there is logged, and the caller then gets a null it may not check
What was on the card at the loss? VICTORY_D3D12_DRED=1 VICTORY_BOOK=1 VICTORY_SLOT_CHECK=1 The removal reason, the faulting allocation with its owner, and which view-heap slot still names it. Note #22: the "stopped at command N" line names the last command that completed, not the one that hung

A 0x887A0005 with "nothing of ours was running on the card" and a compile that had been going for 16 s (your run 2) looks like the driver's own compiler dying — a driver crash removes the device and the reason usually reads 0x887A002B (DXGI_ERROR_DRIVER_INTERNAL_ERROR), so if the log really says 0x887A0005, the loss came from outside the compile and the DRED block is the only thing that will say from where.

If you are willing to run one build: the most informative single line you could get is GetDeviceRemovedReason() printed at the moment the loss is detected, next to the DRED output, on the same run. That distinguishes "the driver died" from "we asked for something unsupported" without another bisect.

(Answer written with AI assistance, from reading the source at 0a43566. No build and no card here, so nothing above is a measurement.)

**@⁠itsonewi** on GitHub · 2026-11-26 00:02 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/34#issuecomment-7178328390) Thank you — three runs with three different removal codes is more than most reports here carry, and it narrows things a lot. **The three codes are not the same failure.** Run 1 and 2 are `0x887A0005` (`DXGI_ERROR_DEVICE_REMOVED`, "removed, reason not given"). Run 3 is `0x887A0004` (`DXGI_ERROR_UNSUPPORTED`, "the requested functionality is not supported"), which is a refusal of a request, not a reset. If the log for run 3 came from `ID3D12Device::GetDeviceRemovedReason`, that is worth separating: two of your runs may be a crash somewhere and one may be the title (or our side) asking the device for something it will not do. **Your observation about the skip is correct and is by design in the code.** `crates/victory-gpu/src/pipeline.rs:475-505` (`is_skipped` / `parse_skip_hashes`) is consulted where a pipeline is *used* — at a draw or a dispatch — while the host pipeline is made when the title *creates* it. So `VICTORY_SKIP_PIPELINES` cannot prevent the compile that is presumably killing the device; it only stops the draw from asking for the result. That matches #8 and #11 in this tracker, and it means the switch is the wrong tool for your experiment. **Switches that would separate your hypotheses**, cheapest first — all of them exist in this tree: | Question | Switch | What the answer looks like | |---|---|---| | Is it concurrency of pipeline creation? | `VICTORY_HOST_WAVE=1` (read at `apps/victory/src/main.rs:207-210`; see #27 — the same setting has a second name, `VICTORY_HOST_MAX_WAVE`, honoured only by `translate --warm`) | If the first minute survives with one pipeline at a time, the trigger is parallel creation, not a particular pipeline | | Is it the early-loading path (the book made by earlier runs)? | run once without `VICTORY_PIPELINE_BOOK`, and once with `VICTORY_EARLY_ALL=0` | A run that survives cold but dies warm points at `known.rs`/`library.rs` instead of the title | | Is memory refusal involved (your 25.6 GB / 1.3 GB free run)? | nothing to set — look for `commit_refused` or `XMemVirtualAlloc refused` lines in the log (`crates/victory-hle/src/modules/xmem.rs:143-175`) | `xmem.rs:648-660` deliberately keeps the title's 6.1 GiB as a `SEC_RESERVE` section so a busy host can commit lazily; a refusal there is logged, and the caller then gets a null it may not check | | What was on the card at the loss? | `VICTORY_D3D12_DRED=1` `VICTORY_BOOK=1` `VICTORY_SLOT_CHECK=1` | The removal reason, the faulting allocation with its owner, and which view-heap slot still names it. Note #22: the "stopped at command N" line names the last command that *completed*, not the one that hung | A `0x887A0005` with "nothing of ours was running on the card" and a compile that had been going for 16 s (your run 2) looks like the driver's own compiler dying — a driver crash removes the device and the reason usually reads `0x887A002B` (`DXGI_ERROR_DRIVER_INTERNAL_ERROR`), so if the log really says `0x887A0005`, the loss came from outside the compile and the DRED block is the only thing that will say from where. If you are willing to run one build: the most informative single line you could get is `GetDeviceRemovedReason()` printed at the moment the loss is detected, next to the DRED output, on the same run. That distinguishes "the driver died" from "we asked for something unsupported" without another bisect. (Answer written with AI assistance, from reading the source at `0a43566`. No build and no card here, so nothing above is a measurement.)
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/avatarmanz--VIctory-7900XTX#34
No description provided.