[D3D12 / AMD RDNA] Device removal (0x887A0007 / id=834) caused by ID3D12CommandAllocator exhaustion (~2,048 ceiling) #1057
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#1057
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?
@wxnelord-boop on GitHub · 2026-11-28 12:21 UTC · original
On AMD RDNA GPUs (tested on RX 6700 XT 12 GB, RX 6800 XT 16 GB, also affects other RDNA 2 / RDNA 4 cards), running with list pooling and streaming enabled (
VICTORY_LIST_POOL=1,VICTORY_THIN=1,VICTORY_CARD_STEPS=2) consistently triggers a D3D12 device removal (0x887A0007) after ~80–180 seconds of gameplay/streaming.Root Cause
D3D12 debug layer captures show
D3D12: Kernel memory failure. There might be a memory leak. (id=834)right as the liveID3D12CommandAllocatorcount reaches ~2,045:ID3D12CommandAllocatorobjects (each reserving kernel-mode command-buffer backing pages).HostListowns 1ID3D12CommandAllocator, and initializingprelude: OnceLock<Option<Prelude>>pins a 2nd permanent allocator for the entire lifetime of thatHostList.IDLElist pools,BACKS,bury_lag,VICTORY_SUBMIT_DEPTH=64, andcard_stepspushes total live allocators past the ~2,048 limit.CreateComputePipelineStatetakes seconds on RDNA 2, it is usually in flight on a worker thread when the limit trips — making pipeline compilation orE_INVALIDARG(0x80070057) appear as the culprit while DRED breadcrumbs remain empty ([]).Workaround
Setting
VICTORY_LIST_POOL=0(and/orVICTORY_SUBMIT_DEPTH=32) prevents allocator hoarding and avoids the crash, though at a significant streaming performance cost.VICTORY_LIST_POOL=0did not prevent the crash on my setup; the only env variable that noticeably affects it here isVICTORY_RELAY(disabling/changingVICTORY_RELAYalters the behavior). WithVICTORY_RELAY=0: runs without the crash.Proposed Fix
host.rs: Replace per-HostListprelude: OnceLock<Option<Prelude>>withMutex<Option<Prelude>>backed by a bounded sharedPRELUDE_POOL(cap128), borrowed inHostList::prelude()and returned inHostList::reset(). Capline.landedretention inland()tobury_lag().min(4).list.rs: LowerIDLE_MOSTfrom(512, 256 << 20)to(256, 128 << 20). DeferHostListallocation untilreset()(list.host = Noneindetach()/detach_parts(), addboxed_back(kind)).list/thin.rs: CapBACKS_MOST = 64, useboxed_back(), and clearback.host = None/ drop overflow backing allocators early inRecording::drop.queue/behind.rs: Lower defaultVICTORY_SUBMIT_DEPTH(runs_most()) from64to32.host/card_steps.rs: CapPOOL_MOST = 8and limitcool_downretention lag tobury_lag().min(16).Environment
@github-actions[bot] on GitHub · 2026-11-28 12:21 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@trustno1-coder on GitHub · 2026-11-30 15:48 UTC · original
Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.
If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.