[crash/Windows] device removed (0x887A0005), RTX 3070 8 GB #3423

Open
leonida/mandy
opened 2026-12-04 03:00:36 +00:00 by foo · 1 comment

What happens

crash

Commit

4d9e4d05d

System

Microsoft Windows 11 Professionnel, build 26300, x64 ; AMD Ryzen 9 5950X 16-Core (32 threads), AVX2 ; NVIDIA GeForce RTX 3070, 8192 MiB**

Where

A tool run by hand (tools/, scripts/)

Command and steps

Crash report — device removed (0x887A0005), RTX 3070 8 GB

Build

Commit 4d9e4d05d (mirror git.leonida.now, branch main)
Previous reference 8da914820 (old GitHub tree)
Build features diagnostics,dlss,mimalloc (cargo build --locked --profile diag -p leonida)
Binary d3d12\target\diag\leonida.exe, 21 862 400 bytes, built 2026-12-04 00:41
FSR4 stand-in (#3022) present in this build

System

OS Microsoft Windows 11 Professionnel, build 26300, x64
CPU AMD Ryzen 9 5950X 16-Core (32 threads), AVX2
RAM 63.9 GB (commit limit never reported under pressure: residency: 0 under pressure over 2 412 samples)
GPU NVIDIA GeForce RTX 3070, 8192 MiB, compute capability 8.6 (Ampere)
Driver 621.01 (WMI 32.0.16.2101)
Page file Windows-managed, not full
Other GPU load none (single-GPU desktop)

Ampere matters for two reasons: DLSS Frame Generation is unavailable (needs Ada), and FSR 3 frame
generation on top of an already tight 8 GB budget is the configuration that crashed earlier.

How it was started

& { & 'X:\mandy\scripts\play-d3d12.ps1' -Game '<package>' `
    -SeriesS -NoFrameGen -Dlss ultra -Log `
    -More @{ LEONIDA_TEXTURE_ROOM_PERCENT='94'; LEONIDA_PROMPTS='xbox'; LEONIDA_PIPELINE_WAIT_MS='1000' } }

Effective settings, from the profile script's own output (-DryRun):

LEONIDA_UPSCALE=dlss          LEONIDA_RENDER_SCALE=0.3333   (DLSS Ultra performance, 640x360 -> 1920x1080)
LEONIDA_OWN_UPSCALER=1        LEONIDA_CARD_BUFFERS_MB=1536  LEONIDA_CARD_BUFFERS_MIN_MB=1
LEONIDA_CARD_ROOM_FOR_TARGETS_MB=1536                        LEONIDA_BVH_MISS=1
LEONIDA_THIN=1                LEONIDA_JOIN_PARTS=8          LEONIDA_MAP_THREADS=1
LEONIDA_INDIRECT_BATCH=4      LEONIDA_INDIRECT_WINDOW=1     LEONIDA_UPLOAD_AHEAD=1
LEONIDA_NAN_SCRUB=1           LEONIDA_EARLY_DEPTH=1         LEONIDA_DYNAMIC_SLOTS=524288
LEONIDA_DLSS_PRESET=K         LEONIDA_DLSS_SHARPNESS=0.25   LEONIDA_FPS_CAP=0
LEONIDA_PIPELINE_WAIT_MS=1000 LEONIDA_TEXTURE_ROOM_PERCENT=94
LEONIDA_FULLSCREEN=1          LEONIDA_PANEL=1               LEONIDA_FPS_LINE=1

LEONIDA_D3D12_DEBUG and LEONIDA_D3D12_DRED were unset on this run.

What happened

Session start 2026-12-04 03:39:18
Crash 2026-12-04 03:41:41 (unix 1796352101, pid 9464)
Time survived ~2 min 20 s
Where in the world, standing/walking, no specific action
Leonida: host GPU failure: no host list for the compare of host copies in the card's memory;
device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to
determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1
names the command

Last lines of the run log (%LOCALAPPDATA%\Leonida\logs\play-1204-033918.log), all within
13 ms of each other, every one carrying the already-removed device:

02:41:41.752221Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.752496Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.752746Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.752955Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.765696Z WARN  leonida_gpu::host: no host list for a prelude      error=...(0x887A0005)
02:41:41.766041Z ERROR leonida_gpu::host: no host list for the compare of host copies in the
                                        card's memory; device removed: ...(0x887A0005)

So the compare-of-host-copies path reported the removal first; the four no unordered-access buffer warnings before it show the command lists were already unusable.

It was not a slow frame

Frame times logged before the failure (5 s windows, host::frametime):

46.4 ms median, 95th 50.7, 99th 54.8, longest  57.7 ms
46.1 ms median, 95th 53.0, 99th 59.3, longest  61.9 ms
49.6 ms median, 95th 59.4, 99th 62.5, longest  67.7 ms

≈21 fps, no frame above 68 ms — nowhere near the 2 s TDR budget (TdrLevel, TdrDelay,
TdrDdiDelay all at their defaults, logged by the runtime at start). A TDR on a 68 ms frame
does not follow from frame duration, which points at memory rather than time.

Memory evidence

  • nvidia-smi, sampled every 2 s through the session, showed the card pinned at 7 651–7 843 MiB
    of 8 192
    (93–95 %) on the previous runs; the last sample before this crash read 7 679 MiB.

  • The run before this one logged, once:

    WARN leonida_gpu::draw: textures picked by index: the card has no room for more; they wait
    

    i.e. the texture queue had filled its share of the budget.

  • LEONIDA_TEXTURE_ROOM_PERCENT=94 was set on this run (90 is the default, 50–97 the range),
    raised on purpose to fight missing textures — this is the variable that changed against the
    previous, longer session.

Hypothesis

The card is at 93–95 % of its budget by design (the texture queue fills it), so any additional
allocation — here, one more step of TEXTURE_ROOM_PERCENT (90 → 94, ≈330 MB) combined with the
compare-of-host-copies buffers — lands on a full card. The device is removed during eviction and
every command list built against it fails, the compare path being the first to say so.

Suggested angles for a maintainer:

  1. Is no host list for the compare of host copies in the card's memory expected to be reachable
    before the device is reported removed? It reads like a secondary failure surfacing first.
  2. card_accounting never printed a line naming the process that exhausted the budget in these
    runs; would a budget figure at each frametime line make this class of crash attributable?
  3. On 8 GB, is TEXTURE_ROOM_PERCENT above 90 ever safe together with LEONIDA_CARD_BUFFERS_MB?

Output

02:41:41.752221Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.752496Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.752746Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.752955Z WARN  leonida_gpu::host: no unordered-access buffer  error=...(0x887A0005)
02:41:41.765696Z WARN  leonida_gpu::host: no host list for a prelude      error=...(0x887A0005)
02:41:41.766041Z ERROR leonida_gpu::host: no host list for the compare of host copies in the
                                        card's memory; device removed: ...(0x887A0005)
### What happens crash ### Commit 4d9e4d05d ### System Microsoft Windows 11 Professionnel, build 26300, x64 ; AMD Ryzen 9 5950X 16-Core (32 threads), AVX2 ; NVIDIA GeForce RTX 3070, 8192 MiB** ### Where A tool run by hand (tools/, scripts/) ### Command and steps # Crash report — device removed (0x887A0005), RTX 3070 8 GB ## Build | | | |---|---| | Commit | `4d9e4d05d` (mirror `git.leonida.now`, branch `main`) | | Previous reference | `8da914820` (old GitHub tree) | | Build features | `diagnostics,dlss,mimalloc` (`cargo build --locked --profile diag -p leonida`) | | Binary | `d3d12\target\diag\leonida.exe`, 21 862 400 bytes, built 2026-12-04 00:41 | | FSR4 stand-in (#3022) | present in this build | ## System | | | |---|---| | OS | Microsoft Windows 11 Professionnel, build 26300, x64 | | CPU | AMD Ryzen 9 5950X 16-Core (32 threads), AVX2 | | RAM | 63.9 GB (commit limit never reported under pressure: `residency: 0 under pressure` over 2 412 samples) | | GPU | **NVIDIA GeForce RTX 3070, 8192 MiB**, compute capability 8.6 (Ampere) | | Driver | **621.01** (WMI 32.0.16.2101) | | Page file | Windows-managed, not full | | Other GPU load | none (single-GPU desktop) | Ampere matters for two reasons: DLSS Frame Generation is unavailable (needs Ada), and FSR 3 frame generation on top of an already tight 8 GB budget is the configuration that crashed earlier. ## How it was started ```powershell & { & 'X:\mandy\scripts\play-d3d12.ps1' -Game '<package>' ` -SeriesS -NoFrameGen -Dlss ultra -Log ` -More @{ LEONIDA_TEXTURE_ROOM_PERCENT='94'; LEONIDA_PROMPTS='xbox'; LEONIDA_PIPELINE_WAIT_MS='1000' } } ``` Effective settings, from the profile script's own output (`-DryRun`): ``` LEONIDA_UPSCALE=dlss LEONIDA_RENDER_SCALE=0.3333 (DLSS Ultra performance, 640x360 -> 1920x1080) LEONIDA_OWN_UPSCALER=1 LEONIDA_CARD_BUFFERS_MB=1536 LEONIDA_CARD_BUFFERS_MIN_MB=1 LEONIDA_CARD_ROOM_FOR_TARGETS_MB=1536 LEONIDA_BVH_MISS=1 LEONIDA_THIN=1 LEONIDA_JOIN_PARTS=8 LEONIDA_MAP_THREADS=1 LEONIDA_INDIRECT_BATCH=4 LEONIDA_INDIRECT_WINDOW=1 LEONIDA_UPLOAD_AHEAD=1 LEONIDA_NAN_SCRUB=1 LEONIDA_EARLY_DEPTH=1 LEONIDA_DYNAMIC_SLOTS=524288 LEONIDA_DLSS_PRESET=K LEONIDA_DLSS_SHARPNESS=0.25 LEONIDA_FPS_CAP=0 LEONIDA_PIPELINE_WAIT_MS=1000 LEONIDA_TEXTURE_ROOM_PERCENT=94 LEONIDA_FULLSCREEN=1 LEONIDA_PANEL=1 LEONIDA_FPS_LINE=1 ``` `LEONIDA_D3D12_DEBUG` and `LEONIDA_D3D12_DRED` were **unset** on this run. ## What happened | | | |---|---| | Session start | 2026-12-04 03:39:18 | | Crash | **2026-12-04 03:41:41** (`unix 1796352101`, pid 9464) | | Time survived | **~2 min 20 s** | | Where | in the world, standing/walking, no specific action | ``` Leonida: host GPU failure: no host list for the compare of host copies in the card's memory; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command ``` Last lines of the run log (`%LOCALAPPDATA%\Leonida\logs\play-1204-033918.log`), all within 13 ms of each other, every one carrying the already-removed device: ``` 02:41:41.752221Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.752496Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.752746Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.752955Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.765696Z WARN leonida_gpu::host: no host list for a prelude error=...(0x887A0005) 02:41:41.766041Z ERROR leonida_gpu::host: no host list for the compare of host copies in the card's memory; device removed: ...(0x887A0005) ``` So the compare-of-host-copies path reported the removal first; the four `no unordered-access buffer` warnings before it show the command lists were already unusable. ## It was not a slow frame Frame times logged before the failure (5 s windows, `host::frametime`): ``` 46.4 ms median, 95th 50.7, 99th 54.8, longest 57.7 ms 46.1 ms median, 95th 53.0, 99th 59.3, longest 61.9 ms 49.6 ms median, 95th 59.4, 99th 62.5, longest 67.7 ms ``` ≈21 fps, **no frame above 68 ms** — nowhere near the 2 s TDR budget (`TdrLevel`, `TdrDelay`, `TdrDdiDelay` all at their defaults, logged by the runtime at start). A TDR on a 68 ms frame does not follow from frame duration, which points at memory rather than time. ## Memory evidence - `nvidia-smi`, sampled every 2 s through the session, showed the card pinned at **7 651–7 843 MiB of 8 192** (93–95 %) on the previous runs; the last sample before this crash read 7 679 MiB. - The run before this one logged, once: ``` WARN leonida_gpu::draw: textures picked by index: the card has no room for more; they wait ``` i.e. the texture queue had filled its share of the budget. - `LEONIDA_TEXTURE_ROOM_PERCENT=94` was set on this run (90 is the default, 50–97 the range), raised on purpose to fight missing textures — this is the variable that changed against the previous, longer session. ## Hypothesis The card is at 93–95 % of its budget by design (the texture queue fills it), so any additional allocation — here, one more step of `TEXTURE_ROOM_PERCENT` (90 → 94, ≈330 MB) combined with the compare-of-host-copies buffers — lands on a full card. The device is removed during eviction and every command list built against it fails, the compare path being the first to say so. Suggested angles for a maintainer: 1. Is `no host list for the compare of host copies in the card's memory` expected to be reachable *before* the device is reported removed? It reads like a secondary failure surfacing first. 2. `card_accounting` never printed a line naming the process that exhausted the budget in these runs; would a `budget` figure at each `frametime` line make this class of crash attributable? 3. On 8 GB, is `TEXTURE_ROOM_PERCENT` above 90 ever safe together with `LEONIDA_CARD_BUFFERS_MB`? ### Output ```text 02:41:41.752221Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.752496Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.752746Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.752955Z WARN leonida_gpu::host: no unordered-access buffer error=...(0x887A0005) 02:41:41.765696Z WARN leonida_gpu::host: no host list for a prelude error=...(0x887A0005) 02:41:41.766041Z ERROR leonida_gpu::host: no host list for the compare of host copies in the card's memory; device removed: ...(0x887A0005) ```
Member

Thanks. Same device loss as #3436 and #3344. The setting that has stopped it so far on NVIDIA (0 losses in about 14 runs on 5 PCs, #2821) is turning off the driver's background shader work: turn on Windows Developer Mode (Settings > System > For developers; it lets apps be installed from any source), then start with LEONIDA_D3D12_BACKGROUND=0. The log should show ok=true. #3437 does this by default on NVIDIA once Developer Mode is on and is being merged. If it still crashes with that line, please post the log with LEONIDA_D3D12_DRED=1.

🤖 Generated with Claude Code

Thanks. Same device loss as #3436 and #3344. The setting that has stopped it so far on NVIDIA (0 losses in about 14 runs on 5 PCs, #2821) is turning off the driver's background shader work: turn on Windows Developer Mode (Settings > System > For developers; it lets apps be installed from any source), then start with `LEONIDA_D3D12_BACKGROUND=0`. The log should show `ok=true`. #3437 does this by default on NVIDIA once Developer Mode is on and is being merged. If it still crashes with that line, please post the log with `LEONIDA_D3D12_DRED=1`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No assignees
No project
No milestone
Dependencies

No dependencies set

Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
leonida/mandy#3423
No description provided.