RX 6800 (RDNA2, 16 GB): debug layer reports 'Kernel memory failure' and a TDR reset on another device context at load #289
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#289
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?
@LumenMarch on GitHub · 2026-11-26 14:32 UTC · original
Environment
avatarmanz/VIctory-7900XTX@0dec5dc(main at the time of the run)game_scarlett_master.exe1.0.2.1 (build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93); the known-build table is empty in this tree)32.0.21045.29003(2026-11-17)scripts/play.ps1defaults plusVICTORY_OUTPUT=1920x1080andVICTORY_KEYS=12:Enter(auto-confirms the account picker). NoVICTORY_SKIP_PIPELINES;TdrLevel/TdrDelay/TdrDdiDelayunset.Symptom
The title boots, shows the account picker and renders the splash at 30 fps, then loses the device during the first load submission, 45-65 s after start (frame ~1000-2000):
The failed submission carries 28-42 lists; the log says the submitting thread was preparing a submission with
nothing of ours was running on the card. There is no Display 4101 / LiveKernelEvent in the System log, and noXMemVirtualAlloc refused/commit_refusedline. Pressing A immediately moves the crash earlier (~45 s); leaving the account picker idle only postpones it until the background load reaches the same point.Debug layer evidence
To get a working debug layer on this machine I had to work around a Windows servicing mismatch: the "Graphics Tools" layer was
d3d12SDKLayers.dll 10.0.26100.1, while the systemD3D12Core.dllwas10.0.26100.10068, soD3D12GetDebugInterfacereturned887A002D("SDKLayers dll does not match the D3D12SDKVersion"). With Developer Mode enabled and a local 26-line opt-in into the Agility SDK 1.722.1-preview core+layer (D3D12Core.dll+d3d12SDKLayers.dllinD3D12\beside the exe;ID3D12SDKConfiguration::SetSDKVersion(722, "D3D12")behindVICTORY_AGILITY_SDK=722), the layer loads. The run was:At device removal (14:25:15 start, 14:26:20 removal):
Live objects reported at removal:
ID3D12ResourceID3D12HeapID3D12GraphicsCommandListID3D12CommandAllocatorID3D12PipelineStateID3D12RootSignatureID3D12DescriptorHeapID3D12FenceID3D12CommandQueueID3D12CommandSignatureID3D12DevicerefcountThe debug layer slows creation; the last compute pipeline makes before removal took 1.9-5.4 s. Without the layer most makes are sub-millisecond after
victory warm.At the same point in a run without the debug layer, the layer's memory line reports: card budget 15,569 MB, in use 6,972 MB; shared-with-the-card budget 30,853 MB, in use 7,277 MB; 15,554 MB could still be reserved. So VRAM/shared memory are not exhausted.
What did not change it
VICTORY_SKIP_PIPELINESof the two compute shaders first bound at the crash. The skip acts at draw/dispatch time, not at pipeline creation (as the maintainer noted in #34); the crash remains.victory warmfor all 76,811 known pipelines (616 s; 6 bad) andvictory warm --used.VICTORY_PIPELINE_WORKERS=1+VICTORY_EARLY_ALL=0.VICTORY_OUTPUT=1920x1080(patch sites confirmed applied),-Safe, and a run without any of play.ps1's switches.VICTORY_D3D12_DRED=1) +VICTORY_SLOT_CHECK=1: breadcrumbs[], no GPU page fault, slot check 4,194,302 slots / 0 null / 0 naming something gone.TdrDelay/TdrDdiDelaywas attempted earlier but was never active without a reboot; the reset also occurs with the default values.Related: #34 (RX 6800), #11 (RX 6750 XT, debug layer "Kernel memory failure"), #245 (7900 XTX, same
no host list for a state prelude), #113 (send-ahead patch).Ask
Is this "Kernel memory failure" the known driver/kernel-side failure behind the RDNA2 removals, or is there a switch or patch that changes the allocation footprint (live resources/heaps/command lists) enough to avoid it? The TDR text says the hang was on another Device Context and the current one was idle. I can run builds, switches, or instrumentation on this machine.
@weikiboy-tech on GitHub · 2026-11-26 17:55 UTC · original
One more RDNA2 data point from 26 November 2026, on commit
2de998014dc85ad68cd6422a250400c7084ace57. One run on Windows 11 25H2 (26200.9974), Ryzen 5 5600X, Radeon RX 6800 XT 16 GB, 32 GB system RAM, game build 1.0.2.1.Built from source with
cargo build --locked --offline --profile diag -p victory --features diagnostics. Used thescripts/play.ps1preset with--console series-s, ray tracing off, a fresh cache, andVICTORY_PORT_CONSTANTS,VICTORY_PORT_DESCRIPTORS,VICTORY_PORT_CBV,VICTORY_PORT_GUARDandVICTORY_PORT_JOURNALall set to1.The menu reached 30 FPS. On the transition to the prologue the window went black. The last two sampled window readings were 3645.3 ms/frame (32 draws) and 1316.1 ms/frame (175 draws), then the process exited before the cell became controllable. No gameplay FPS measurement.
At 17:53:35 UTC the renderer reported
the host device went while textures picked by index were made ready. The submission thread was preparing 42 lists. The log recordedDXGI_ERROR_DEVICE_REMOVED (0x887A0005)with removal reasonDXGI_ERROR_DEVICE_RESET (0x887A0007). This matches the load-stage symptom in this issue on an RX 6800 XT with the Series S profile. The log identifies where the failure was observed; the triggering GPU command is unknown.@kyokyotosh on GitHub · 2026-11-26 18:20 UTC · original
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.