RX 6750 XT (RDNA 2, 12 GB) with 16 GB RAM: the device is removed 1 to 90 s into the world in every setting tried, with nothing of ours on the card #11
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#11
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?
@RodrigoTorreao on GitHub · 2026-11-25 23:19 UTC · original
One machine: RX 6750 XT 12 GB (RDNA 2), driver 32.0.21045.29003, i5-14600KF, 16 GB RAM (page file 48 GB), Windows 11 26200, Resizable BAR on.
0a43566,cargo build --locked --profile diag -p victory --features diagnostics, shaders translated ahead withvictory shaders(25,689 in the cache, 200 do not translate, as in #1). The settings ofscripts\play.ps1, Enter every 5 s from 15 to 240 s, one run per row.The same card as in #1; the line in the log there (
when the host device went: ... nothing of ours was running on the card) is the one every run here ends with.Runs
play.ps10x887A0005VICTORY_WINDOWS_BAR_MB=3072 VICTORY_SEND_BAR=10x887A0007-Safe+ both BAR settings0x887A0005VICTORY_D3D12_DRED=10x887A0007VICTORY_SKIP_PIPELINES=585ecfc8622dffca0x887A0007-Safe+WINDOWS_BAR_MB=1024 SEND_BAR=10x887A0005--console series-s0x887A0007play.ps10x887A0005-Safe, Series S, no BAR settings0x887A0007WINDOWS_BAR_MB=3072only0x887A0007SEND_BAR=1only0x887A0005Memory is the last "video memory as the system counts it" line before the removal. No TDR event (4101, LiveKernelEvent) in the System log for any of them; the card recovered each time.
What it seems to say
host.rs,VICTORY_CARD_STEPS=2takes shared buffers for its fills), with half the card's memory free.VICTORY_WINDOWS_BAR_MBandVICTORY_SEND_BARmove enough of it to the card (run 2). Without them it fills even with the Series S profile (run 9).play.ps1: without any of the 14 (run 8) it was removed as well.-Safelasts longer (34-90 s against 1-5 s).dispatch 3x1x1 [compute 585ecfc8622dffca](itsu4/u5read null heap slots); with that pipeline skipped, adispatch 37x1x1 [compute 17af15c4015cb4b6]in a list of 3,487 commands (run 5). Breadcrumbs came out empty ([]) in all runs.[compute 39f0e9aeb156a61c](119 to 216 s); in 5 of the 11 nothing was being made.the system changed the budget of the card's memory), sometimes within a second of the removal.On the same machine and driver, Belobug/VIctory-Belobug-AMD stayed in the world for about 8 minutes (with a change of mine for the shared segment and
VICTORY_GPU_UPLOAD=1), so the card and driver can run the world for longer.I can run builds or settings you want tried; each run takes 3-4 minutes here. An excerpt of runs 7 and 10 (removal lines, memory lines; the title's own log lines and my user name removed) is attached.
AI-assisted (Claude Code): the runs, the numbers and this text. No game data.
@bloobenga8647 on GitHub · 2026-11-25 23:23 UTC · original
Same here on a 6950XT, running in -safe and not. Getting GPU device removed seconds after entering the cutscene and world loads and near immediate close.
2026-11-25T23:12:22.590444Z ERROR victory_gpu::host: host GPU device removed after 6 submissions sent ahead (VICTORY_RELAY=1) of 48 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 some other application submitted invalid commands. The calling application should re-create the device and continue. (0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command VIctory: host GPU failure: host GPU device removed after 6 submissions sent ahead (VICTORY_RELAY=1) of 48 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 some other application submitted invalid commands. The calling application should re-create the device and continue. (0x887A0007); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command2026-11-25T23:12:22.590704Z WARN victory_gpu::host: no upload buffer error=The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005) size=262144@incompetent-llm-user on GitHub · 2026-11-25 23:29 UTC · original
Same issue. 6700 XT, 0x887A0007. Crashes upon attempting to render the world it seems.
@RodrigoTorreao on GitHub · 2026-11-25 23:35 UTC · original
A run with the debug layer (
VICTORY_D3D12_DEBUG=1, full DRED,-Safe, both BAR settings, none of the other 14play.ps1settings) says what the removal is:It lasted 141 s in the world. The card's memory grew the whole time, past its budget:
with 28,683 MB private (3,575 MB of it in memory) and 906 MB of the PC's memory free.
Looking back at the runs above, the PC had 0.5 to 1.8 GB free at every removal, including runs 7 and 10, where both segments looked like they had room. So I take back "not memory" from the description: as far as I can tell, the system's video memory manager runs out of memory to page the card's allocations to once the 16 GB of RAM are full, and removes the device. On 64 GB that would not show.
Also, "nothing of ours was running on the card" is the submitting thread's phase only (
host.rs,removal_context), so it does not say the card was idle.AI-assisted (Claude Code): the run, the numbers and this text. No game data.
@RodrigoTorreao on GitHub · 2026-11-25 23:39 UTC · original
@bloobenga8647 @incompetent-llm-user thanks, that makes three RDNA 2 cards with the same
0x887A0007on entering the world. Could you say how much RAM your machines have, and how much was free at the removal? The log has it in the lastmemory:line before the error (... MB private (... MB of it in memory; the PC has N MB free ...)).On mine (16 GB) the debug layer named a kernel memory failure, with under 2 GB of RAM free at every removal. A 6950 XT has 16 GB on the card, so if that machine has 32 GB or more and the removal is the same, there is a second cause besides memory. A run with
VICTORY_D3D12_DEBUG=1added (diagnostics build; slower) would show whether you get the sameKernel memory failuretext.AI-assisted (Claude Code). No game data.
@itsonewi on GitHub · 2026-11-25 23:41 UTC · original
Three reading notes from the source, then three runs that would settle it.
1. Run 5 could not test what it looks like it tested
VICTORY_SKIP_PIPELINESis read incrates/victory-gpu/src/pipeline.rs:475-505and consulted fromis_skipped()where draws and dispatches are issued. The listed hash is still translated and still handed to the driver; only its dispatch is dropped afterwards (docs/README-fxceless.md:323says the same). So run 5 removed the dispatch of585ecfc8622dffca, not its pipeline, and it is expected that DRED then named the next dispatched shader (17af15c4015cb4b6). That is a valid result for a fault at dispatch time; it says nothing about a fault at compile time.2. Memory is neither necessary nor sufficient in your table
VICTORY_WINDOWS_BAR_MB(crates/victory-gpu/src/shadow.rs) andVICTORY_SEND_BAR(crates/victory-gpu/src/host/send.rs) are real switches in this tree, and runs 2, 6, 10 and 11 show that they do move work to the card. Those runs are still removed, with the shared segment under its budget in runs 2 and 11. In the other direction, run 8 is over budget in the card's segment and the shared one. So a full shared segment explains runs 1, 8 and 9, and cannot explain the rest. The section "The removal is not that, or not only that" is the right conclusion; I would go further and drop memory as the leading hypothesis until a run shows it as the only difference.3. Empty breadcrumbs in every run, with DRED on
breadcrumbs []withVICTORY_D3D12_DRED=1means the marker never executed, which fits an invalid submission rather than a long-running shader — and so does "nothing of ours was running on the card". A device removal from a submission that was invalid at submit time leaves the driver free to report either0x887A0005or0x887A0007, which is exactly the split you see between runs.Three runs worth more than the eleven
VICTORY_CARD_STEPS=0, everything else exactly asplay.ps1sets it. This is the switch that makes the shared buffers (4,256 of them, 4.1 GB, in run 1), and #13 independently foundCARD_STEPS> 0 corrupting skinned meshes on vkd3d-proton and2removing the device. If=0alone keeps you in the world for minutes, the rest of the table describes a path that is already known-bad elsewhere.VICTORY_RELAY=1alone, nothing else changed. #13 finds stage 2 handing back garbage on the same shader family; here it would show whether the removal follows the relay stage.steps done on the card instead of waiting for flights, per frame (VICTORY_CARD_STEPS=...)(crates/victory-gpu/src/host/card_steps.rs:896-910) and thebuffers made so farline from one run. That attributes the 4.1 GB directly instead of inferring it fromhost.rs.If a run is removed, the last
victory host list Nids and their pipeline sets (as in #16) would let that list be replayed offline with--features diagnosticsinstead of guessed at.AI use
AI-assisted reply (source reading). No build, no hardware run, no game files.
@incompetent-llm-user on GitHub · 2026-11-25 23:48 UTC · original
@RodrigoTorreao 48GB of RAM total, 1.3 seconds before the crash, last line with memory was:
@bloobenga8647 on GitHub · 2026-11-25 23:51 UTC · original
@RodrigoTorreao I have 64GB of RAM in my system. I am bit new to this and I'm not exactly sure where a log would be or how to do a run with
VICTORY_D3D12__DEBUG=1but will happily do one if I knew how@RodrigoTorreao on GitHub · 2026-11-26 00:24 UTC · original
@itsonewi thanks, all three points hold. With 48 GB (18.5 GB free at the removal) and 64 GB on the other two RDNA 2 machines, memory is not the common cause; the "Kernel memory failure" run was with the debug layer on 16 GB and I would not lean on it. And there was a hole in my run 8: leaving a setting out gives its default, and
VICTORY_RELAYdefaults to 2 (host.rs:2438,shadow.rs:923), so relay off was never tried. It is now, same build (0a43566), one run each:play.ps1+VICTORY_WINDOWS_BAR_MB=3072 VICTORY_SEND_BAR=1+VICTORY_RELAY=0VICTORY_RELAY=10x887A0005)play.ps1+VICTORY_RELAY=0, no BAR settings+0x23cf683) after about 30 s at frame 1659 making new pipelines; no removalno shared buffer0x8007000E, andno host list for a state prelude; no removalSo on this RX 6750 XT the removal follows the relay: stages 1 and 2 remove the device, 0 does not. x3 and x4 are other things: a first-run pipeline stall, and the shared segment on 16 GB of RAM, which the two BAR settings avoid.
The lines you asked for, from run 1 (
play.ps1as it is):So
CARD_STEPSdid nothing per frame there, and the 4.1 GB of shared buffers are not its fills.@incompetent-llm-user @bloobenga8647 could you try
VICTORY_RELAY=0? With the fork's script that isscripts\play.ps1 -Exe <your exe> -More @{VICTORY_RELAY='0'}. If the world stays up for you too, it is the relay on RDNA 2 and not this machine. (The log is the console output of that window;VICTORY_D3D12_DEBUG=1is not needed for this.)AI-assisted (Claude Code): the runs and this text. No game data.
@bloobenga8647 on GitHub · 2026-11-26 00:37 UTC · original
@RodrigoTorreao
So I tried launching with
scripts\play.ps1 -exe "game.exe" -More @{VICTORY_RELAY='0'}and it crashes at the same spot.@incompetent-llm-user on GitHub · 2026-11-26 00:54 UTC · original
@RodrigoTorreao Game started fine & did not crash. It took a while to start rendering the world itself, but did actually do something. Private memory started reaching its limits, so my frame times were not very good. Ran for about 7 minutes before I called it good, roughly 5 1/2 minutes in story mode, and about a minute of actual scene visibility.
@Zaid-Yousef on GitHub · 2026-11-26 01:08 UTC · original
RX 6800 XT (RDNA 2, 16 GB): bisected to
a0b4909;VICTORY_BURY_LAG=0avoids the removalOne machine: RX 6800 XT 16 GB, driver 32.0.21045.16010, i5-14400F, 32 GB RAM, Windows 11 26200, Resizable BAR on. Same symptom as above:
0x887A00075–30 s into the world on0a43566, "nothing of ours was running on the card", empty breadcrumbs, no TDR event.Bisect from
4e17478(good) to0a43566(bad),diagbuild, noplay.ps1settings, onlyVICTORY_SKIP_PIPELINES=39f0e9aeb156a61c. Good = 180 s in the world without a removal.9e30a46: good, 183 s in the worlda0b4909("Objects let go and lists that ran are kept about two frames longer"): removed 7 s into the world55babd1,96f2f32,2c982ee: good;ba837ee,3b73cb0,073d2d5: removed after 10–29 sWith
VICTORY_BURY_LAG=0on0a43566(no other settings): 304 s and 301 s in the world with no removal, the second run past the opening cutscene into gameplay.Still failing: the
play.ps1settings plusVICTORY_BURY_LAG=0lose the device right after the opening cutscene (2 of 2 runs). I have not found which setting does it.Limits: one machine, one run per commit. I don't know why the longer hold breaks this card. Happy to run a build or setting you want tried.
AI-assisted (Claude Code): the bisect, the runs and this text. No game data.
@ThatZaliaSGuy on GitHub · 2026-11-26 01:57 UTC · original
Same device loss on an RX 7900 XTX (RDNA 3, 24 GB), Ryzen 7 9800X3D, 64 GB RAM, Windows 11, Adrenalin 26.11.2;
0a43566diag build with theplay.ps1settings.VICTORY_BURY_LAG=0avoids it here too.play.ps1VICTORY_CARD_STEPS=0-Safe, and withVICTORY_RELAY=1)VICTORY_D3D12_DRED=1ExecuteIndirectof[mesh d27a28b2a81e6227, pixel 939cfeb940ab3530]VICTORY_SKIP_PIPELINES=d27a28b2a81e6227da22b2adfd4f76d3VICTORY_CARD_STEPS=0 VICTORY_BURY_LAG=0The page-fault addresses DRED reports are either "inside freed ... (type 40)" (
D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL) or in no allocation at all, never in a live title-memory copy. Both shaders build their own buffer descriptor from the root view's address, but both paths the translator gives that read (one-view root SRV tables, the title-memory page directory) return zeros when nothing is mapped. So this looks like command-list memory being reused or released, not an out-of-bounds read. One run per row.Separately: with Radeon GPU Detective's crash capture attached (
RadeonDeveloperPanelCLI -m crash), every run was removed at boot (page fault at VA 0 in a 1×1×1 compute-queue dispatch). Without it they boot, so that tool can't be used to chase this one.@kyokyotosh on GitHub · 2026-11-26 11:38 UTC · original · edited 2026-11-26 18:37 UTC
play.ps1+VICTORY_RELAY=0was the only option that worked for me.Willing to do more tests on different runs.
Frames:
Machine Specs:
Edit:
I was able to fix some issues related to RDNA2 cards, currently testing everything possible. Won't open a PR here until i'm satisfied. You're welcome to try:
https://github.com/kyokyotosh/VIctory-6700XT
Being able to reach 15fps (Not steady) on the parts i tested.
Let me know if you find any issues so we can work together on that.
@a15106479638-hub on GitHub · 2026-11-27 06:37 UTC · original
Same failure, different RDNA2 card, and it is solved by a fork of this repository.
On an RX 6950 XT 16 GB / 32 GB / driver 32.0.21045.29003 I had exactly what this thread describes: the device removed 60–360 s in with
0x887A0007and empty breadcrumbs in every tree I tried,RELAY=0never removing it, andTdrDelay/TdrDdiDelaychanging nothing.kyokyotosh/VIctory-6700XT traced the real cause with a GPU ETW capture (FINDINGS-6700XT.md): video memory manager exhaustion of the 2 GB aperture segment. 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. Send-ahead raises the live host list count from ~830 to 1,150–1,250 at the world load, so the next allocation that can only live there fails (ReserveResource→0xC0000001) and the kernel marks the device faulted (VidSchMarkDeviceAsError, reason 12). No hang, no page fault, no timeout packet — henceTdrDelayis irrelevant.With their four commits (
f173347,018d372,e3c0703,63a773e) and the 1 MiB / 1024 MiB card-buffer limits from #225, on my card: 0 device removals in 10+ minutes withRELAY=2and 18.1 fps average (28.8 max), against 2.8 fps withRELAY=0.Worth noting for a 12 GB card with 16 GB of RAM: the remaining wall after that fix is memory, not the GPU — I hit
os error 1450from DirectStorage at ~34 GB of commit on 32 GB, so 16 GB will need the texture cap (play.ps1 -TextureMax, orauto) more than this card did.@bloobenga8647 on GitHub · 2026-11-27 06:52 UTC · original
@Zaid-Yousef you are a fucking god dude, that runs at 20fps, textures a big funky but fps
@a15106479638-hub on GitHub · 2026-11-27 07:44 UTC · original
VICTORY_BURY_LAG=0avoids this on RDNA2 because it keeps the aperture segment from filling at all — and now that the segment can be watched, there is a number for it.Machine: RX 6950 XT (16 GB, RDNA2), i5-12600KF, 32 GB, driver 32.0.21045.29003, Windows 11 26300.8935. Build: kyokyotosh/VIctory-6700XT (this repository plus the four commits
f173347,018d372,e3c0703,63a773eand thehost/segments.rsmonitor),-Console series-s, textures capped at 1024,RELAY=2.VICTORY_BURY_LAG=0That second column is the point: with the lag at its default, the monitored segment (id 1, aperture, 2,048 MB) crossed 80% six times in nine minutes — 1,638 MB resident — and the back-off had to land flights to bring it to 1,428 MB. With
VICTORY_BURY_LAG=0it never reached 80%, so the back-off never fired. The flights' held lists that the lag keeps are exactly what fills that segment; that is the same memoryf173347gives back early.Two caveats from the same runs, so nobody expects the wrong thing:
So
VICTORY_BURY_LAG=0is a workaround that happens to hit the cause directly; the four commits fix the same cause while keeping the send-ahead worth having. Numbers, logs and the segment trace for both runs are available if useful.