RX 6800 (RDNA2, 16 GB): debug layer reports 'Kernel memory failure' and a TDR reset on another device context at load #289

Open
opened 2026-11-26 14:34:15 +00:00 by github-bot · 2 comments
Owner

@⁠LumenMarch on GitHub · 2026-11-26 14:32 UTC · original

Environment

  • Repo: avatarmanz/VIctory-7900XTX @ 0dec5dc (main at the time of the run)
  • Title: own dump of game_scarlett_master.exe 1.0.2.1 (build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93); the known-build table is empty in this tree)
  • GPU: AMD Radeon RX 6800 (RDNA2, 16 GB), driver 32.0.21045.29003 (2026-11-17)
  • CPU: AMD Ryzen 7 9800X3D
  • RAM: 46.9 GiB
  • OS: Windows 10 Pro 26300.10075
  • Console profile: Series X; ray tracing off
  • Settings: scripts/play.ps1 defaults plus VICTORY_OUTPUT=1920x1080 and VICTORY_KEYS=12:Enter (auto-confirms the account picker). No VICTORY_SKIP_PIPELINES; TdrLevel / TdrDelay / TdrDdiDelay unset.

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):

VIctory: host GPU failure: no host list for a state prelude; device removed:
The GPU will not respond to more commands... (0x887A0007)

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 no XMemVirtualAlloc refused / commit_refused line. 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 system D3D12Core.dll was 10.0.26100.10068, so D3D12GetDebugInterface returned 887A002D ("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.dll in D3D12\ beside the exe; ID3D12SDKConfiguration::SetSDKVersion(722, "D3D12") behind VICTORY_AGILITY_SDK=722), the layer loads. The run was:

scripts\play.ps1 -Exe <game> -More @{VICTORY_AGILITY_SDK='722'; VICTORY_D3D12_DEBUG='1'; VICTORY_OUTPUT='1920x1080'; VICTORY_KEYS='25:Enter,60:Enter,120:Enter'}

At device removal (14:25:15 start, 14:26:20 removal):

WARN victory_gpu::host: D3D12: Kernel memory failure. There might be a memory leak. id=834 severity=1
...
WARN victory_gpu::host: D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_RESET: The hardware took an unreasonable amount of time to execute a command on a different Device Context, or the hardware crashed/hung. As a result, the TDR (Timeout Detection and Recovery) mechanism has been triggered. The current Device Context was NOT executing commands when the hang occurred. However, the current video memory and Device Context could not be completely recovered. The application may want to just respawn itself, as the other application may no longer be around to cause this again). id=234 severity=4
...
ERROR victory_gpu::host: host GPU device removed ... ; debug layer: Kernel memory failure. There might be a memory leak.

Live objects reported at removal:

Object Count
ID3D12Resource 38,896
ID3D12Heap 8,688
ID3D12GraphicsCommandList 4,003
ID3D12CommandAllocator 2,003
ID3D12PipelineState 1,448
ID3D12RootSignature 240
ID3D12DescriptorHeap 16
ID3D12Fence 16
ID3D12CommandQueue 6
ID3D12CommandSignature 4
pipeline library / swap chain / lifetime tracker 1 / 1 / 1
live ID3D12Device refcount 40,642

The 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_PIPELINES of 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 warm for all 76,811 known pipelines (616 s; 6 bad) and victory 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.
  • Full DRED (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.
  • Raising TdrDelay / TdrDdiDelay was 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.

**@⁠LumenMarch** on GitHub · 2026-11-26 14:32 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/289) ## Environment - Repo: `avatarmanz/VIctory-7900XTX` @ `0dec5dc` (main at the time of the run) - Title: own dump of `game_scarlett_master.exe` 1.0.2.1 (`build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)`; the known-build table is empty in this tree) - GPU: AMD Radeon RX 6800 (RDNA2, 16 GB), driver `32.0.21045.29003` (2026-11-17) - CPU: AMD Ryzen 7 9800X3D - RAM: 46.9 GiB - OS: Windows 10 Pro 26300.10075 - Console profile: Series X; ray tracing off - Settings: `scripts/play.ps1` defaults plus `VICTORY_OUTPUT=1920x1080` and `VICTORY_KEYS=12:Enter` (auto-confirms the account picker). No `VICTORY_SKIP_PIPELINES`; `TdrLevel` / `TdrDelay` / `TdrDdiDelay` unset. ## 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): ``` VIctory: host GPU failure: no host list for a state prelude; device removed: The GPU will not respond to more commands... (0x887A0007) ``` 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 no `XMemVirtualAlloc refused` / `commit_refused` line. 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 system `D3D12Core.dll` was `10.0.26100.10068`, so `D3D12GetDebugInterface` returned `887A002D` ("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.dll` in `D3D12\` beside the exe; `ID3D12SDKConfiguration::SetSDKVersion(722, "D3D12")` behind `VICTORY_AGILITY_SDK=722`), the layer loads. The run was: ``` scripts\play.ps1 -Exe <game> -More @{VICTORY_AGILITY_SDK='722'; VICTORY_D3D12_DEBUG='1'; VICTORY_OUTPUT='1920x1080'; VICTORY_KEYS='25:Enter,60:Enter,120:Enter'} ``` At device removal (14:25:15 start, 14:26:20 removal): ``` WARN victory_gpu::host: D3D12: Kernel memory failure. There might be a memory leak. id=834 severity=1 ... WARN victory_gpu::host: D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_RESET: The hardware took an unreasonable amount of time to execute a command on a different Device Context, or the hardware crashed/hung. As a result, the TDR (Timeout Detection and Recovery) mechanism has been triggered. The current Device Context was NOT executing commands when the hang occurred. However, the current video memory and Device Context could not be completely recovered. The application may want to just respawn itself, as the other application may no longer be around to cause this again). id=234 severity=4 ... ERROR victory_gpu::host: host GPU device removed ... ; debug layer: Kernel memory failure. There might be a memory leak. ``` Live objects reported at removal: | Object | Count | |---|---| | `ID3D12Resource` | 38,896 | | `ID3D12Heap` | 8,688 | | `ID3D12GraphicsCommandList` | 4,003 | | `ID3D12CommandAllocator` | 2,003 | | `ID3D12PipelineState` | 1,448 | | `ID3D12RootSignature` | 240 | | `ID3D12DescriptorHeap` | 16 | | `ID3D12Fence` | 16 | | `ID3D12CommandQueue` | 6 | | `ID3D12CommandSignature` | 4 | | pipeline library / swap chain / lifetime tracker | 1 / 1 / 1 | | live `ID3D12Device` refcount | 40,642 | The 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_PIPELINES` of 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 warm` for all 76,811 known pipelines (616 s; 6 bad) and `victory 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. - Full DRED (`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. - Raising `TdrDelay` / `TdrDdiDelay` was 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:34:15 +00:00
Author
Owner

@⁠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 the scripts/play.ps1 preset with --console series-s, ray tracing off, a fresh cache, and VICTORY_PORT_CONSTANTS, VICTORY_PORT_DESCRIPTORS, VICTORY_PORT_CBV, VICTORY_PORT_GUARD and VICTORY_PORT_JOURNAL all set to 1.

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 recorded DXGI_ERROR_DEVICE_REMOVED (0x887A0005) with removal reason DXGI_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.

**@⁠weikiboy-tech** on GitHub · 2026-11-26 17:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/289#issuecomment-7199850929) 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 the `scripts/play.ps1` preset with `--console series-s`, ray tracing off, a fresh cache, and `VICTORY_PORT_CONSTANTS`, `VICTORY_PORT_DESCRIPTORS`, `VICTORY_PORT_CBV`, `VICTORY_PORT_GUARD` and `VICTORY_PORT_JOURNAL` all set to `1`. 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 recorded `DXGI_ERROR_DEVICE_REMOVED (0x887A0005)` with removal reason `DXGI_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.
Author
Owner

@⁠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.

**@⁠kyokyotosh** on GitHub · 2026-11-26 18:20 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/289#issuecomment-7200343912) 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#289
No description provided.