RX 6600 (RDNA2, 8 GB) on 01aadd1: device removed about 2 minutes after launch, in 2 of 2 runs, after a spike of title-memory refreshes #151
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#151
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?
@Andry018 on GitHub · 2026-11-25 17:23 UTC · original
Machine: AMD Radeon RX 6600 8 GB (RDNA2), driver 32.0.21045.1000; Ryzen 7 9700X (its integrated GPU is present, but the log shows the RX 6600 as host adapter); 32 GB RAM, system-managed page file; Windows 11 Pro 26200.
Build and settings, as in the README:
01aadd1,cargo build --profile diag -p victory --features diagnostics,VICTORY_PRESENT_TARGET=1x1:1 VICTORY_HAIR=1, Series X profile, the same save (prologue). Run 1 started with an empty shader cache for this build; run 2 hadVICTORY_D3D12_DRED=1added.Result: both runs lost the device during the load into the prologue: 2 min 09 s and 1 min 48 s after launch.
host GPU device removed after a submission of 22 lists(run 1) andof 28 lists(run 2). The removed reason is0x887A0007, and the process exits with0x887A0005.mainon the same card, but some textures were missing entirely (clothes), and there was inflated, stretched geometry.What precedes it, the same in both runs. In the last 20 to 30 seconds before the removal, the
copystatlines show a burst of title-memory refreshes. In the seconds before that the counts are near zero.DRED (run 2): the breadcrumbs are empty (
[]), so no command shows as completed. In flight were 24 operations from 6 of the 28 lists. All but 4 are compute dispatches, in lists of 638, 165 and 18 operations; the rest are 3 mesh draws and one 4x1 draw. I can send the program hashes if they help.For comparison, the same machine, save and driver: fxceless/victory-fork
main(0b0074e, release build) had no device loss in 8 runs of 7 to 9 minutes today, at about 280 ms/frame in the prologue cell. On that tree, faces in the world stay black on this card.@Andry018 on GitHub · 2026-11-25 17:31 UTC · original
A third run, the same as run 1 but without
VICTORY_HAIR=1(onlyVICTORY_PRESENT_TARGET=1x1:1), also lost the device, 3 min 21 s after launch, with the same0x887A0005. The same burst came first: no refreshes until about 30 s before, then 12,000-18,000 refreshes and 8-13 GB refreshed per frame. So hair strands are not the cause.What was on screen just before, in the opening cutscene:
main.Exploded skinned geometry would also fit the device loss: huge triangles that keep the card busy until Windows resets it.
@MamaLeVrai on GitHub · 2026-11-26 00:26 UTC · original
The same loss on a second RDNA2 card: an RX 6950 XT 16 GB, Ryzen 7 5700X, 32 GB RAM, Windows 11 build 26300, diag build, Series X profile. Two runs have logs:
000ffddand4f62c2a. Both ended in0x887A0007, 77 s and 38 s after the world began drawing in full (the first frames over 1,000 draws). That is the same point as yours, so the card's speed does not seem to matter.Three things from reading those logs against the code. They may help the next run:
copies per frameline divides about 5 s of counters by the last second's frames, so at 2-4 fps it reads 1.5-6x too high (#213). Its "refreshes … MB" is also the requested length, counted before the ranges are merged. The bytes actually copied are the fps line'scopies … MB. In my runs that was 35-121 MB a frame through the burst. The burst looks like a symptom of heavy world frames, not the cause.E_OUTOFMEMORYthe title stops on comes after: listresetreturns it once no host list can be made on the removed device (list.rs).01aadd1. There, a loss prints only the reason, even withVICTORY_D3D12_DRED=1. #214 adds the data. Until then,VICTORY_ASYNC_SUBMIT=0with DRED gives the full report.The best candidate I can find in the code is the one #144 fixes:
OWN_SLOTS-1, which is also the last dynamic slot. It is handed out and never nulled, so a wild index reads whatever descriptor was last put there.On #26 (RX 7700 XT),
000ffddlost the device at about 7.5 min.000ffdd+ #144 ran 12 min andmain+ #144 + #138 ran 16 min, both without a loss. I have builtmain+ #144 (+ #110, #214) for the 6950 XT and will report whether it gets past that scene. It has not run yet.harness machine: rx6950xt-w11 | AMD Radeon RX 6950 XT (RDNA2), driver 32.0.21045.29003 | 32 GB RAM | Windows 11 build 26300
AI-assisted (Claude Code); no game data.
@baiyuqianhe-sudo on GitHub · 2026-11-26 20:07 UTC · original
Same card, half the RAM (
a-publiercd8dfc0): the 16 GB host fails on an allocation, not on the deviceMachine: RX 6600 8 GB (RDNA2), driver 32.0.21045.16010; i5-10400; 15.9 GB RAM; page file fixed at 32 GB; Windows 11 build 26300.
Build:
a-publieratcd8dfc0, diag profile, Series S profile. #144 is in this tree:emit/shader.rsemitsUMin(index, 2047)for sampler indices and clamps view indices toVIEW_LIMIT, anddescriptor/host.rsbacks 2,048 sampler slots with slot 2,047 as the null sentinel (sampler_heaps_back_2048_slots_and_reserve_null_sentinel).Two runs, sampled every 3 s (commit, private bytes, page file, and both budget lines from the log):
0x887A00050x887A0005The shared budget (
the PC's shared with the card) is constant at 7,475 MB, which is what a 16 GB host is given. It holds at 15% until about 70 s, then goes 21% → 66% → 78% → 90% → 100% over the next minute. The first failed allocation comes in the same second it passes 100%, and 7 s later the process is gone:no shared buffer(1,453 of 4 MiB, 39 of 8 MiB) and 1,524 ×no upload buffer(1,080 of 4 MiB, 444 of 256 KiB), every one of them0x8007000Ea host state prelude did not record (0x8007000E)→host GPU failure0x8007000Ein 7 s. Neither log containsdevice removedor0x887A0007.The 4 MiB blocks are refused first and the 256 KiB ones after them, so by the end not even a command-sized block can be had.
VRAM never gets close (80.6% worst), and neither does commit (38 of 47.9 GB), so the 32 GB page file is not what runs out.
Why this may be worth a line in the thread: it separates two ceilings. At 32 GB the shared budget should be roughly twice this one (it tracks physical RAM), and then this ceiling never shows up — consistent with "memory was high but no allocation failed first", where the run goes on to whatever kills it on the GPU side. At 16 GB the same scene reaches the allocation ceiling first, and what comes back is
E_OUTOFMEMORYfromCreateCommittedResource, not a hang.That is also why commit and free RAM read as harmless in your logs, and why they read as harmless in mine until the very end: 38 GB of commit is a paging number, and the page file covered it, while the shared budget is a separate per-process quota that no amount of page file raises.
What did not help (all of it at once in run 2):
VICTORY_TEXTURE_BUDGET_MB=2048(caps the host copies theroom()test makes),VICTORY_TEXTURE_ROOM_PERCENT=60,VICTORY_TEXTURE_STAGE_MB=48,VICTORY_ASYNC_SUBMIT=0,VICTORY_RESIDENCY=1withVICTORY_RESIDENCY_LIMITED=1,VICTORY_UPLOAD_AHEAD=0,VICTORY_TEXTURE_STORE=0. It bought 35 s, and the ending was worse: 6,675 ×0x8007000Ein the last 2 s, against 3,018 over 7 s in run 1. The residency guard did fire once (host memory pressure: limiting texture prefetch and idle upload storage, frame 1138, 0:47 in), so the guard works; there was simply more to commit than the budget holds.An earlier run with most of the fast paths off (
ASYNC_SUBMIT=0, noRELAY_COPY/WIDE_BACK/CARD_AWAKE/TEXTURE_NO_WAIT,DRED=1) lasted 4 min 30 s and about 2,900 frames before the same ending, on 1,306 ×no upload buffer. So the environment moves the clock, not the wall.Two side notes for whoever runs this on RDNA2:
VICTORY_UPSCALER=6is needed independently of this bug: without it the log fills withFSR4_PASS_2xfailures, FSR4 being RDNA4 only.I can rerun any configuration on this machine and post the CSVs — 3 s samples of commit, private bytes, page file and both budgets — if it helps anyone chasing the 32 GB case.
Settings of the three runs
Run 1 (
scripts/play.ps1defaults with the 16 GB overrides):Run 2: run 1 plus
Run 3 (the 4 min 30 s one):
All three:
victory run <dump>/game_scarlett_master.exe --execute --console series-s.AI-assisted (the parsing scripts were written with an assistant; the runs, the logs and every number above are from this machine).
@pedim92 on GitHub · 2026-11-27 03:33 UTC · original
Zero chance of it working on an RX 5500 with 8GB of VRAM?