RDNA2 / RX 6800 XT: recurring D3D12 device reset on Series X and Series S #376
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#376
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@HaxorCZE on GitHub · 2026-11-26 22:50 UTC · original
A data point for RDNA2 compatibility, possibly related to #113.
Tested on Belobug/VIctory-Belobug-AMD, branch
a-publier, commitcd8dfc0, using thediagbuild with diagnostics enabled.Hardware:
Results:
DXGI_ERROR_DEVICE_RESET (0x887A0007).The device reset persists after addressing previously detected memory instability and increasing the system commit limit.
I haven't confirmed whether this is the same root cause as #113, or reproduced it on the latest upstream commit.
I'm a software developer and would be happy to contribute RDNA2 testing, regression testing and sanitized diagnostic logs. If anyone needs specific tests on an RX 6800 XT using legally distributable test cases, let me know.
I have also reported this issue in the AvatarManz repository for visibility and potential upstream collaboration.
I'm available for further RDNA2 compatibility testing on my RX 6800 XT.
AI-assisted (ChatGPT). No game data attached.
@eyesclose on GitHub · 2026-11-26 23:01 UTC · original
same on rx 6800 xt
@FernandoMontanari on GitHub · 2026-11-26 23:06 UTC · original
My game don't close anymore with the flag VICTORY_RELAY = '0', low FPS with rx6700 10gb, but don't reset anymore.
@Flexios on GitHub · 2026-11-26 23:36 UTC · original
Same, this Relay flag is causing issues on rdna 2 ( tested onRX 6950 XT ).
@MamaLeVrai on GitHub · 2026-11-26 23:36 UTC · original
Same on an RX 6950 XT (same driver 32.0.21045.29003, Ryzen 7 5700X, 32 GB, 64 GiB paging file), on
cd8dfc0. To gather what the RDNA 2 reports have in common so far:0x887A0007with "nothing of ours was running on the card", DRED breadcrumbs[], and compute pipelines being made, each taking seconds, at the time. With the D3D12 debug layer on here, nothing names a command at the loss; I put the details on #329.-Vram8GB(list pool off, residency limits, a 1536 MB texture budget, Series S, andVICTORY_CARD_AWAKEremoved) ran 4 min 25 s here with no loss. Every default-settings run lost the device within about 1 to 3.5 min. That is one run, so not proof.VICTORY_LIST_POOL=0alone did not prevent it here.VICTORY_RELAY=0result (above) is a third candidate. The defaults inscripts\play.ps1setVICTORY_RELAY=2andVICTORY_CARD_AWAKE=1. The latter keeps a compute queue busy at all times with ~2 ms dispatches (host/awake.rs), and so it is "of ours" on the card even when no title list is.-Vram8GBdrops it.So each of
VICTORY_RELAY=0andVICTORY_CARD_AWAKE=0is worth a run on its own with the other defaults. I have the two runs queued on this card and will post which one, if any, keeps the device. If you can run one of them on the RX 6800 XT, that would split the work.AI-assisted (Claude Code); no game data.
@J0suuuu on GitHub · 2026-11-26 23:37 UTC · original
9950x3d
RX 6800 XT
96gb ram
same problem, game cashing
@HaxorCZE on GitHub · 2026-11-26 23:42 UTC · original
Update: VICTORY_RELAY=0 on RX 6800 XT
I can independently confirm FernandoMontanari's observation.
After setting
VICTORY_RELAY=0, I no longer experienced the recurring D3D12 device reset during my latest test.Results:
cd8dfc0Disabling RELAY appears to improve stability significantly, but at a substantial performance cost.
This is not yet a long-term stability confirmation, but it provides another independent RDNA2 data point.
@shamair28 on GitHub · 2026-11-27 00:12 UTC · original
#329
This was my solution this morning. AFAIK any fork based on avatarmanz/VIctory-7900XTX can cause this issue with a lot of RDNA2 chips.
Currently how my RX 6700XT is performing: https://github.com/4lwayz/portwatch-vi/issues/229
@J0suuuu on GitHub · 2026-11-27 00:12 UTC · original
VICTORY_RELAY=0 on RX 6800 XT
Same has HaxorCZE
Results:
GPU: RX 6800 XT 16 GB (RDNA2)
Commit:
cd8dfc0Console profile: Series S
RELAY=1: recurring device resets, does not load.
RELAY=0: no crashes observed so far, approximately 6–7 FPS.
reached interactive gameplay.
Hardware configuration remains unchanged.
@J0suuuu on GitHub · 2026-11-27 00:33 UTC · original
title said: FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 for 'FFX_FSR4_PASS_21' -- falling back to NewBE
0x80004001 = E_NOTIMPL → "not implemented".
@LandonFerg on GitHub · 2026-11-27 00:50 UTC · original
VICTORY_RELAY=0 on RX 6700 XT
Same as HaxorCZE and J0suuuu
Results:
GPU: RX 6700 XT 12 GB (RDNA2)
Commit:
github.com/Belobug/VIctory-Belobug-AMD@4eb6cfdf9eConsole profile: Series S
RELAY=1: recurring device resets, does not load.
RELAY=0: no crashes observed so far, approximately 4–7 FPS.
reached interactive gameplay.
@J0suuuu on GitHub · 2026-11-27 01:04 UTC · original
-Safe+VICTORY_RELAY=0+VICTORY_THIN=1+VICTORY_LEVELS_ON_DEMAND=1+VICTORY_CARD_ROOM_FOR_BUFFERS=1→ stable 6–7 FPS-Safe, even withRELAY_COPY=0orCARD_AWAKE=0(error:no host list for a state prelude)RELAY=1crashes even withSUBMIT_DEPTH=8→ the relay itself appears to contain a bug affecting RDNA 2, rather than this being an allocator issue.@MamaLeVrai on GitHub · 2026-11-27 01:08 UTC · original
A concrete relay defect, and a fix to try: #428.
With
VICTORY_RELAY=2+VICTORY_RELAY_COPY=1(the defaults), a landed flight's card copies are fetched on a separate high-priority copy queue, with no GPU ordering against later submissions that write the same buffers. On an RX 6950 XT, the existing relay test shows it:a_result_caught_in_between_is_put_rightgives12 of 12 results wrong in title memoryona-publier, and 0 of 12 with #428. That is a real overlap that only the relay adds. Whether it is what resets RDNA 2 is not proven yet.VICTORY_RELAY=0also turns off the flights in the air, card steps and most overlap with the other queues.If you can, these two runs would split it, each on the defaults otherwise:
-More @{VICTORY_RELAY_COPY='0'}(the fetch on the drawing queue);If either keeps the device for 10+ minutes where the defaults lose it, the copy-queue fetch is the cause. I'll run the same on the RX 6950 XT.
AI-assisted (Claude Code); no game data.
@OzgurBasturk on GitHub · 2026-11-27 06:18 UTC · original
RX 6800 16 GB (RDNA2), Win11, latest Adrenalin, a-publier @
4eb6cfd, diag build, VICTORY_OUTPUT=1280x720, VICTORY_RENDER_SCALE=1.0.All resets are 0x887A0007, "nothing of ours was running on the card", breadcrumbs [] and no faulting address with DRED=light.
Late-wait stage is what matters here (relay at default 2):
LATE_WAIT=3 (default): reset within ~1 min
LATE_WAIT=2: 10–12 fps, reset after ~20k submissions (repeatable)
LATE_WAIT=2 + D3D12_DRED=1 (full): survived longest (~46.7k submissions), then reset. The in-flight list held an ExecuteIndirect at 0x157ba700 plus a 1×1×1 dispatch writing that record (log attached)
LATE_WAIT=0: stable, slow
RELAY=1 + LATE_WAIT=1: stable, slow
No change with LATE_WAIT=2: SWEEP=0, INDIRECT_BATCH=1, INDIRECT_BATCH=0 + INDIRECT_WINDOW=0.
No change at default stage 3: RELAY_COPY=0, COPIES_IN_PLACE=0, skipping the slowest compute pipeline via warm-bad.txt (no pipeline being made at the loss → slow compiles aren't the cause).
Full DRED delaying it suggests a timing-dependent sync issue that gets more likely with each late-wait stage.
Stable fallback: -Safe + RELAY=0 + THIN=1 + LEVELS_ON_DEMAND=1 + CARD_ROOM_FOR_BUFFERS=1, 6–7 fps.
No game data. AI-assisted (Claude).
@a15106479638-hub on GitHub · 2026-11-27 08:18 UTC · original
Same symptom on the sibling card (RX 6950 XT), and it is the aperture segment filling with command buffers — with a fix that already exists in another tree and that I ran on mine.
My machine: RX 6950 XT (16 GB, RDNA2), i5-12600KF, 32 GB, Windows 11 26300.8935, driver 32.0.21045.29003 (the same driver as yours), Series X files 1.0.2.1.
What I saw, across four trees (
beta-2at8187780,a-publier, the CGBJ/cool_fox package, a repacked Vice-Tay):RELAY=1or2lost the device 60–360 s in with0x887A0007and empty breadcrumbs;RELAY=0never lost it and ran at 1.5–6 fps.TdrDelay=10/TdrDdiDelay=20changed nothing. No Event ID 4101 in the System log for any of them — which fits what the ETW trace below says: no GPU hang, no page fault, no timed-out packet.The cause. kyokyotosh/VIctory-6700XT traced it with a GPU ETW capture: the video memory manager runs out of room in a 2 GB aperture segment (system memory the card maps). It holds the driver's command buffers (1 MB + 64 KB per D3D12 command list, which is the number @adrianmjim measured independently in #329), the upload scratch and the
D3D12_HEAP_TYPE_CUSTOMwrite-back buffers. Sending submissions ahead raises the live host list count from ~830 to 1,150–1,250 at the world load —land()keeps the newest 64 flights' lists, up to ~700 — and the next allocation that can only live there fails (ReserveResource→0xC0000001), so the kernel marks the device faulted (VidSchMarkDeviceAsError, reason 12).The fix is four commits (
f173347,018d372,e3c0703,63a773e): landed lists go back to the pool at once; preludes come from a pool (101 made instead of ~950); while an aperture segment is over 80% of its limit every flight lands as it is sent and idle lists and preludes are trimmed, back below 70% only; plus the 1 MiB / 1024 MiB card-buffer limits from #225.On my card, with the relay on (
RELAY=2): 0 device removals in 10+ minutes, 18.1 fps average, 28.8 max (Series S, textures capped, 91 samples in the world, 10th percentile 11.7 fps). Against 2.8 fps withRELAY=0. The segment monitor showed the real thing: segment 1, aperture, 2,048 MB, crossed 80% at 1,638 MB and the back-off brought it to 1,428 MB, six round trips.I also ported three of the four commits into Vice-Tay, which already has its own recycling: the
no host list for a state preludefailure disappeared (0 in 10 minutes, it was every run at ~2 min) and it ran at 11.5 fps average with the monitor cycling as intended.For this thread: the two profiles failing differently (Series S lasting longer) fits a segment that fills with list count rather than anything scene-specific. Anyone on RDNA2 can take the four commits, and
VICTORY_BURY_LAG=0is the one-line version that keeps the segment under 80% at the cost of the batching — it avoided the removal on two machines in avatarmanz/#11, and on mine it kept the segment from ever reaching 80% (0 back-offs against 6).Logs, frame breakdowns and the segment traces are available for any of it, and I can run any build or setting on this card.
@MamaLeVrai on GitHub · 2026-11-27 10:14 UTC · original
A detail that matters for reading the
VICTORY_RELAY=0results: with relay off,VICTORY_CARD_AWAKEis off too, not just its overlap. The only call toawake::sentis insideif late {in the submit path (host.rs ~6024-6042), andlateis 0 withVICTORY_RELAY=0, so the always-busy compute queue never starts. Card steps, the copy-queue fetch (#428) and the present sent ahead are relay-only as well. #306's-Vram8GB, which also kept an RX 6950 XT going, dropsVICTORY_CARD_AWAKEtoo.So the cheapest way to split it is relay on, each run turning one of these off:
-More @{VICTORY_CARD_AWAKE='0'}, thenVICTORY_RELAY_COPY='0', thenVICTORY_CARD_STEPS='0'. #428 alone did not help an RX 6600 XT, which already points away from the copy-queue fetch. If you can run theVICTORY_CARD_AWAKE='0'one on an RDNA 2 card, please post how it goes.AI-assisted (Claude Code); no game data.
@MamaLeVrai on GitHub · 2026-11-27 10:18 UTC · original
Follow-up, so the last comment doesn't over-sell
VICTORY_CARD_AWAKE: I stress-tested the awake helper alone on the RX 6950 XT for ~9 minutes. Its real loop (400k iterations, and 40k) ran beside heavy and light drawing-queue frames, 5 s idle gaps, and a copy the drawing queue waits for. There was no device loss. A 400k send takes ~3.9 ms here, not the ~2 ms the doc comment says, and it does not slow the drawing queue's dispatches. It shares no fence, resource or queue wait with the relay. So awake alone does not reset this card. That still leaves its interaction with the game's real load, and the other relay-only parts (card steps, flights in the air). A game run withVICTORY_CARD_AWAKE='0'and relay on is still the clean way to rule it in or out.AI-assisted (Claude Code); no game data.
@a15106479638-hub on GitHub · 2026-11-27 10:44 UTC · original
Before the next component goes on the list: the cause has been found and measured, so the elimination may not need to continue.
On an RX 6950 XT (16 GB, driver 32.0.21045.29003, Windows 11 26300, 32 GB) the removal is the video memory manager running out of room in a 2 GB aperture segment — the system-memory segment the card maps, which DXGI's budgets leave out. It holds the driver's command buffers (1 MB + 64 KB per D3D12 command list), the upload scratch and the
D3D12_HEAP_TYPE_CUSTOMwrite-back buffers. Sending submissions ahead raises the live host list count from ~830 to 1,150–1,250 at the world load —land()keeps the newest 64 flights' lists, up to ~700 — and the next allocation that can only live there fails (ReserveResource→0xC0000001), so the kernel marks the device faulted (VidSchMarkDeviceAsError, reason 12). No GPU hang, no page fault, no timed-out packet, which is whyTdrDelaynever changed anything and whyCARD_AWAKEalone cannot reset it either — your result fits that exactly.kyokyotosh/VIctory-6700XT traced it with a GPU ETW capture, and four commits fix it (
f173347,018d372,e3c0703,63a773e, plus ahost/segments.rsthat readsD3DKMTQueryStatisticsper segment): landed lists go back to the pool at once, preludes come from a pool, and while a segment is over 80% of its limit every flight lands as it is sent with idle lists and preludes trimmed.On my card with those: 0 removals in 10+ minutes with
RELAY=2, 18.1 fps average, against 2.8 fps withRELAY=0. The segment log shows segment 1, aperture, 2,048 MB, crossing 80% at 1,638 MB and being brought to 1,428 MB by the back-off — six round trips.The same conclusion is in #329 (with an independent measurement from @adrianmjim of 1.16 MiB per allocator + list pair, 1.0 MiB of it shared GPU memory) and in my comment above. So
VICTORY_BURY_LAG=0avoiding it is not a coincidence either: on this card it kept the segment from ever reaching 80% in a whole run.Not saying the other components are not worth watching — but the segment is where the memory goes, and it now has a counter.
@HaxorCZE on GitHub · 2026-11-27 11:01 UTC · original
Update – RX 6800 XT, commit
4eb6cfdHardware configuration and driver remain unchanged.
General regression tests:
@MamaLeVrai I also ran the following standalone test on my RX 6800 XT:
host::upcheck::tests::a_result_caught_in_between_is_put_rightTest A:
Result: FAILED
Test B:
Result: PASSED
Both tests were performed on commit
4eb6cfd, without applying PR #428.The fetch-check mechanism successfully corrected all 12 suspect pieces on my RDNA2 GPU in this test.
This does not yet confirm that the runtime device resets are resolved.
AI-assisted (ChatGPT). No game data attached.
@HaxorCZE on GitHub · 2026-11-27 11:05 UTC · original
Additional runtime test – RX 6800 XT, commit
4eb6cfdTested with the following environment variables:
Unfortunately, the D3D12 device reset still occurs.
The runtime log confirms that FETCH_CHECK is active, checking up to 685.4 pieces per frame, with no mismatches reported in the sampled intervals.
Crash details:
Interestingly, the runtime log reports VICTORY_RELAY=1 despite the environment variable being set to 2. Is this expected logging behavior?
The standalone fetch-check regression test passes, but the runtime device reset persists.
PR #428 has not been applied.
AI-assisted (ChatGPT). No game data attached.
@HaxorCZE on GitHub · 2026-11-27 11:15 UTC · original
Independent RDNA2 validation – RX 6800 XT
I tested PR #428 (commit
6bc90e3) on my RX 6800 XT 16 GB, driver32.0.21045.29003.Environment:
Before the patch (
4eb6cfd):After the patch (
6bc90e3):Both standalone regression tests pass:
a_result_caught_in_between_is_put_righta_fetch_never_runs_beside_a_flight_that_writes_its_copyFull GPU diagnostics: 446 passed, 0 failed, 35 ignored.
Runtime validation:
Unfortunately, the device reset still occurs with this patch applied.
The new fetchguard telemetry confirms that the mechanism is active:
At device removal:
The patch successfully resolves the standalone synchronization regression on my RX 6800 XT, but an additional cause of runtime device resets appears to remain.
Related issue: #376
Thanks for your work!
AI-assisted (ChatGPT). No game data attached.
@MamaLeVrai on GitHub · 2026-11-27 12:30 UTC · original
Runs on the RX 6950 XT (RDNA 2, 32 GB, a-publier
4eb6cfd+ #412's report wording + #428, defaults otherwise, Series X unless noted):VICTORY_CARD_AWAKE=0VICTORY_LIST_POOL=0-Vram8GB(Series S)-Vram8GBsettings with Series XSo
VICTORY_CARD_AWAKEis ruled out, and so is the Series S profile. Of-Vram8GB's settings, that leavesVICTORY_RESIDENCY=1withVICTORY_RESIDENCY_LIMITED=1,VICTORY_TEXTURE_BUDGET_MB=1536,VICTORY_LEVELS_ON_DEMAND=1andVICTORY_THIN_THREADS=5(and the list pool off, which alone did not help). The memory ones are the likely part. My next run is the defaults plus only the four memory settings.The loss at 78 s, with #412's wording, says
1 submissions of ours not finished: their lists may have been running on the card. So "nothing of ours on the card" was wrong for this kind of loss too. Both fence values readu64::MAXby then: the device is already removed when the report is made, so #412 needs to keep the last values seen before it. I'll change that.AI-assisted (Claude Code); no game data.
@MamaLeVrai on GitHub · 2026-11-27 12:38 UTC · original · edited 2026-11-27 12:42 UTC
The memory-only run (defaults plus
VICTORY_RESIDENCY=1,VICTORY_RESIDENCY_LIMITED=1,VICTORY_TEXTURE_BUDGET_MB=1536,VICTORY_LEVELS_ON_DEMAND=1, Series X) on the RX 6950 XT did not lose the device in 2 min 45 s, but it is not conclusive. After reaching the world at ~4 fps, it sat at ~1 fps with 4 draws a frame for over 40 s, and the player stopped it.Correction to my first reading: the residency waits are not the cause.
new memory waited foris a synchronousMakeResident(host.rs ~341). It averaged 0.7 ms (7,000 waits, 4.9 s over 166 s), with a single 990 ms outlier during a loading burst. Video memory was half used. In the 1 fps phase the card shows 93-100 % busy with 0.0 ms "on the GPU" for 2-4 draws, and no pipelines were being made. That points to something on the GPU side (a queue wait, or a long dispatch), still unexplained. The log also showsVICTORY_RELAY=1for this tree'splay.ps1, not 2.AI-assisted (Claude Code); no game data.