d3d12: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) after 5 to 46 minutes on an RTX 4070 SUPER, every profile #2821

Open
opened 2026-12-01 02:02:58 +00:00 by DerSchweigefuchs · 13 comments
DerSchweigefuchs commented 2026-12-01 02:02:58 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by DerSchweigefuchs on 2026-12-01T02:02:58Z.


What happens

The d3d12 runtime ends with host GPU failure: ... device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) after 5 to 46 minutes in the open world, on Series X and Series S, at 1080, 1080-1440 and 4K output, with and without frame generation. Two of the crashes stop at the same texture (a 1024x1024 BC1, format 71).

Commit

d4fabd3fe (one crash also on ffa0f8ed4 the day before)

System

Windows 11 Pro 10.0.26200, Intel Core i9-13900K (8 P-cores + 16 E-cores, 32 threads), 32 GB RAM, NVIDIA GeForce RTX 4070 SUPER 12 GB, driver 621.40 (32.0.16.2140) Built with d3d12\scripts\build-nvidia.ps1 (diag profile)

Where

d3d12/ runtime (leonida.exe), in the running game, not the build.

Command and steps

Runs on 2026-12-01, all with -Log and -More @{LEONIDA_AMBIENT_FLOOR='0.4'; LEONIDA_AMBIENT_ALPHA='1'; LEONIDA_REFLECT_MOST='0.25'}; Smooth Motion off in the F1 menu:

Run Start Length Crash Card memory at the end (budget) Shared with the card Least free RAM
play-X-1080-1440p.ps1 00:39 27 min no (closed) 9261 MB (10605) 3721 MB 556 MB
play-X-1080-1440p.ps1, LEONIDA_OUTPUT=3840x2160 01:06 7 min yes 9874 MB (10955) 4234 MB 622 MB
same, LEONIDA_D3D12_DRED=light 01:19 5.5 min yes 9616 MB (10679) 4513 MB 539 MB
play-nvidia.ps1 -SeriesX -Resolution 1080, LEONIDA_OUTPUT=3840x2160 01:42 46 min (about 10 in the world after an idle half hour) yes 11027 MB (10994) 5427 MB 1359 MB
play-nvidia.ps1 (Series S, DLSS) 02:31 18 min yes about 8700 MB (10975), steady about 4190 MB 2394 MB

It happens every time; only the time to the crash changes.

  • The Series X runs filled the card's memory to its budget before the crash (in the 4th run it went from 1.75 GB to 11.0 GB in the last 10 minutes, and title memory windows placed in the PC's memory alone grew from 2.2 GB to 4.7 GB in the last minute of the 3rd run). The Series S run crashed with about 2.2 GB of the budget free, so a full card is not the whole story.
  • With LEONIDA_D3D12_DRED=light the log says crash tracing on (device-removed data) breadcrumbs=true markers=false, but no device-removed report was written at the crash. In an earlier run with the default DRED setting it was device-removed data; none.
  • Windows' System event log has no nvlddmkm, Display 4101 (TDR) or LiveKernelEvent entry for any of these crashes, and C:\Windows\LiveKernelReports has nothing new.

Output

The last lines of each crashed run (the localized DXGI text replaced by its name):


# 01:06, 4K output
Leonida: host GPU failure: no host list for the compare of host copies in the card's memory; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command

# 01:19, 4K output, DRED light
ERROR leonida_gpu::draw: the host device went while textures picked by index were made ready; last: Some(Placed(false, [3, 0, 0, 0, 1024, 0, 1024, 589825, 71, 1, 0, 261, 3145728, 0], [71, 4, 5768, 0, 1, 8, 0, 0, 0, 0, 658526208, 7, 0, 0, 0, 3])) why="DXGI_ERROR_DEVICE_REMOVED (0x887A0005)" slot=70508
Leonida: host GPU failure: no host list for the copies between host copies in the card's memory; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)

# 01:42, -Resolution 1080, 4K output
ERROR leonida_gpu::draw: the host device went while textures picked by index were made ready; last: Some(Placed(false, [3, 0, 0, 0, 1024, 0, 1024, 589825, 71, 1, 0, 261, 3145728, 0], [71, 4, 5768, 0, 3, 6, 0, 0, 0, 0, 2585903104, 12, 0, 0, 0, 3])) why="DXGI_ERROR_DEVICE_REMOVED (0x887A0005)" slot=6679
Leonida: host GPU failure: no host list for the compare of host copies in the card's memory; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)

# 02:31, Series S
Leonida: host GPU failure: no host list to bring host copies in the card's memory up to date; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)


The full logs quote the title's memory and shader hashes, so they are not attached; I can look up more lines in them on request.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6710606341 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821). Originally posted by [DerSchweigefuchs](https://github.com/DerSchweigefuchs) on 2026-12-01T02:02:58Z. --- ### What happens The d3d12 runtime ends with `host GPU failure: ... device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)` after 5 to 46 minutes in the open world, on Series X and Series S, at 1080, 1080-1440 and 4K output, with and without frame generation. Two of the crashes stop at the same texture (a 1024x1024 BC1, format 71). ### Commit d4fabd3fe (one crash also on ffa0f8ed4 the day before) ### System Windows 11 Pro 10.0.26200, Intel Core i9-13900K (8 P-cores + 16 E-cores, 32 threads), 32 GB RAM, NVIDIA GeForce RTX 4070 SUPER 12 GB, driver 621.40 (32.0.16.2140) Built with d3d12\scripts\build-nvidia.ps1 (diag profile) ### Where `d3d12/` runtime (`leonida.exe`), in the running game, not the build. ### Command and steps Runs on 2026-12-01, all with `-Log` and `-More @{LEONIDA_AMBIENT_FLOOR='0.4'; LEONIDA_AMBIENT_ALPHA='1'; LEONIDA_REFLECT_MOST='0.25'}`; Smooth Motion off in the F1 menu: | Run | Start | Length | Crash | Card memory at the end (budget) | Shared with the card | Least free RAM | |---|---|---|---|---|---|---| | `play-X-1080-1440p.ps1` | 00:39 | 27 min | no (closed) | 9261 MB (10605) | 3721 MB | 556 MB | | `play-X-1080-1440p.ps1`, `LEONIDA_OUTPUT=3840x2160` | 01:06 | 7 min | yes | 9874 MB (10955) | 4234 MB | 622 MB | | same, `LEONIDA_D3D12_DRED=light` | 01:19 | 5.5 min | yes | 9616 MB (10679) | 4513 MB | 539 MB | | `play-nvidia.ps1 -SeriesX -Resolution 1080`, `LEONIDA_OUTPUT=3840x2160` | 01:42 | 46 min (about 10 in the world after an idle half hour) | yes | 11027 MB (10994) | 5427 MB | 1359 MB | | `play-nvidia.ps1` (Series S, DLSS) | 02:31 | 18 min | yes | about 8700 MB (10975), steady | about 4190 MB | 2394 MB | It happens every time; only the time to the crash changes. - The Series X runs filled the card's memory to its budget before the crash (in the 4th run it went from 1.75 GB to 11.0 GB in the last 10 minutes, and title memory windows placed in the PC's memory alone grew from 2.2 GB to 4.7 GB in the last minute of the 3rd run). The Series S run crashed with about 2.2 GB of the budget free, so a full card is not the whole story. - With `LEONIDA_D3D12_DRED=light` the log says `crash tracing on (device-removed data) breadcrumbs=true markers=false`, but no device-removed report was written at the crash. In an earlier run with the default DRED setting it was `device-removed data; none`. - Windows' System event log has no nvlddmkm, Display 4101 (TDR) or LiveKernelEvent entry for any of these crashes, and `C:\Windows\LiveKernelReports` has nothing new. ### Output ```text The last lines of each crashed run (the localized DXGI text replaced by its name): # 01:06, 4K output Leonida: host GPU failure: no host list for the compare of host copies in the card's memory; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command # 01:19, 4K output, DRED light ERROR leonida_gpu::draw: the host device went while textures picked by index were made ready; last: Some(Placed(false, [3, 0, 0, 0, 1024, 0, 1024, 589825, 71, 1, 0, 261, 3145728, 0], [71, 4, 5768, 0, 1, 8, 0, 0, 0, 0, 658526208, 7, 0, 0, 0, 3])) why="DXGI_ERROR_DEVICE_REMOVED (0x887A0005)" slot=70508 Leonida: host GPU failure: no host list for the copies between host copies in the card's memory; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) # 01:42, -Resolution 1080, 4K output ERROR leonida_gpu::draw: the host device went while textures picked by index were made ready; last: Some(Placed(false, [3, 0, 0, 0, 1024, 0, 1024, 589825, 71, 1, 0, 261, 3145728, 0], [71, 4, 5768, 0, 3, 6, 0, 0, 0, 0, 2585903104, 12, 0, 0, 0, 3])) why="DXGI_ERROR_DEVICE_REMOVED (0x887A0005)" slot=6679 Leonida: host GPU failure: no host list for the compare of host copies in the card's memory; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) # 02:31, Series S Leonida: host GPU failure: no host list to bring host copies in the card's memory up to date; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) The full logs quote the title's memory and shader hashes, so they are not attached; I can look up more lines in them on request. ```
broveer commented 2026-12-01 14:30:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by broveer on 2026-12-01T14:30:25Z.


Same crash here on an 8 GB laptop card, with the same driver (621.40), in all six runs today across three builds. The details
match yours: no TDR / nvlddmkm / LiveKernelReports entry, device-removed data; none, and one crash ends on the same
the host device went while textures picked by index were made ready line (a different texture: 256x256, format 83).

System

Windows 11 Home 26300, Ryzen AI 9 HX 370, 32 GB RAM, RTX 4060 Laptop 8 GB (7188 MB budget), NVIDIA 621.40.
Built with d3d12\scripts\build-nvidia.ps1 (diag profile). Started with
play-d3d12.ps1 -SeriesS -FrameGen 2 -Log -Adapter 4060 -More @{LEONIDA_WINDOWS_BAR_MB='1024'; LEONIDA_CARD_BUFFERS_MB='1024'; LEONIDA_SIM_MAX_STEP_MS='100'; LEONIDA_TITLE_GRAPHICS='performance'}.

Not plain main: each build is upstream main at the commit below plus 15 of the Rust leak fixes from #2569. Those
fixes didn't change how soon it crashes.

Runs (2026-12-01, times UTC)

Upstream main Start Crashed after Card memory peak (7188) Least free RAM At the crash
640b0d0df 07:52 8.8 min 6903 MB 535 MB a 4.7 s frame just after a cutscene
427aa19b6 (both pools at 512) 12:23 8.5 min 6116 MB 769 MB 14 submissions not finished; a compute pipeline compiling for 0.9 s
427aa19b6 12:38 15.8 min 6550 MB 1591 MB a loading moment, 2 draws/frame, nothing compiling, 2 submissions not finished
427aa19b6 12:54 16.5 min 7124 MB 576 MB a 9.4 s frame; a compute pipeline compiling for 9.6 s, 25 not finished
e04721c7f 13:59 12.1 min 6883 MB 552 MB a 10.0 s frame; a compute pipeline compiling for 10.1 s, 27 not finished
e04721c7f 14:11 8.5 min 6738 MB 388 MB a loading moment, 2 draws/frame, nothing compiling, 2 not finished

Earlier builds since 2026-11-30 did the same after 7.5 to 28 minutes. "Not finished" is the new count from 0695de54b
(submissions of ours started and not yet seen finished).

What these runs rule out

  • Card memory: the 12:38 run died with about 650 MB of the budget free. With LEONIDA_WINDOWS_BAR_MB and
    LEONIDA_CARD_BUFFERS_MB at 512 (12:23), the card stayed at 4.9-6.1 GB and it still crashed (and the card's own
    time went to 250-290 ms a frame, so 512 isn't a usable setting on this card).
  • RAM: the 12:38 run had 1.6 GB of physical memory and 12.6 GB of commit left.
  • Frame generation: you and the comments on #2607 already saw it with frame generation off.

Two shapes, each seen twice

  1. A screen-pass compute pipeline that the driver takes about 10 s to compile. The frame waits the full
    LEONIDA_SCREEN_WAIT_MS (10 s), and the device is gone right after. Different pipelines each time.
  2. A quiet moment: a loading screen or cutscene, 2 draws a frame, nothing compiling, only 2 submissions in the air.

Both come at transitions: out of a cutscene or load, or into a denser area.

One more data point

The same laptop, driver and save ran the VIctory-NVIDIA build (5fabb46ea) for 45 minutes without a device loss, with
its card at 6.4-6.9 GB of 7188.

Driver

Every report of this I can find is on 621.x: 621.40 here, in your post and in #2607's first post; 621.24 in
Miici0's runs on #2607. The test notes in main's commits say 616.64. Has anyone on 616.x seen this device loss? If
nobody has, a run on 616.64 would tell driver from runtime, and I can do that run here.

Related: #2607 (the same signature on 8 GB and 12 GB cards).

AI-assisted (Claude Code, Claude Opus 5.5): it read the logs and wrote this summary. I ran every game session
myself and checked the numbers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314364382 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7314364382). Originally posted by [broveer](https://github.com/broveer) on 2026-12-01T14:30:25Z. --- Same crash here on an 8 GB laptop card, with the same driver (621.40), in all six runs today across three builds. The details match yours: no TDR / nvlddmkm / LiveKernelReports entry, `device-removed data; none`, and one crash ends on the same `the host device went while textures picked by index were made ready` line (a different texture: 256x256, format 83). ### System Windows 11 Home 26300, Ryzen AI 9 HX 370, 32 GB RAM, **RTX 4060 Laptop 8 GB** (7188 MB budget), NVIDIA **621.40**. Built with `d3d12\scripts\build-nvidia.ps1` (diag profile). Started with `play-d3d12.ps1 -SeriesS -FrameGen 2 -Log -Adapter 4060 -More @{LEONIDA_WINDOWS_BAR_MB='1024'; LEONIDA_CARD_BUFFERS_MB='1024'; LEONIDA_SIM_MAX_STEP_MS='100'; LEONIDA_TITLE_GRAPHICS='performance'}`. **Not plain `main`:** each build is upstream `main` at the commit below plus 15 of the Rust leak fixes from #2569. Those fixes didn't change how soon it crashes. ### Runs (2026-12-01, times UTC) | Upstream `main` | Start | Crashed after | Card memory peak (7188) | Least free RAM | At the crash | |---|---|---|---|---|---| | `640b0d0df` | 07:52 | 8.8 min | 6903 MB | 535 MB | a 4.7 s frame just after a cutscene | | `427aa19b6` (both pools at 512) | 12:23 | 8.5 min | 6116 MB | 769 MB | 14 submissions not finished; a compute pipeline compiling for 0.9 s | | `427aa19b6` | 12:38 | 15.8 min | 6550 MB | **1591 MB** | **a loading moment, 2 draws/frame, nothing compiling, 2 submissions not finished** | | `427aa19b6` | 12:54 | 16.5 min | 7124 MB | 576 MB | **a 9.4 s frame; a compute pipeline compiling for 9.6 s**, 25 not finished | | `e04721c7f` | 13:59 | 12.1 min | 6883 MB | 552 MB | **a 10.0 s frame; a compute pipeline compiling for 10.1 s**, 27 not finished | | `e04721c7f` | 14:11 | 8.5 min | 6738 MB | 388 MB | a loading moment, 2 draws/frame, nothing compiling, 2 not finished | Earlier builds since 2026-11-30 did the same after 7.5 to 28 minutes. "Not finished" is the new count from 0695de54b (`submissions of ours started and not yet seen finished`). ### What these runs rule out - **Card memory:** the 12:38 run died with about 650 MB of the budget free. With `LEONIDA_WINDOWS_BAR_MB` and `LEONIDA_CARD_BUFFERS_MB` at 512 (12:23), the card stayed at 4.9-6.1 GB and it still crashed (and the card's own time went to 250-290 ms a frame, so 512 isn't a usable setting on this card). - **RAM:** the 12:38 run had 1.6 GB of physical memory and 12.6 GB of commit left. - **Frame generation:** you and the comments on #2607 already saw it with frame generation off. ### Two shapes, each seen twice 1. **A screen-pass compute pipeline that the driver takes about 10 s to compile.** The frame waits the full `LEONIDA_SCREEN_WAIT_MS` (10 s), and the device is gone right after. Different pipelines each time. 2. **A quiet moment:** a loading screen or cutscene, 2 draws a frame, nothing compiling, only 2 submissions in the air. Both come at transitions: out of a cutscene or load, or into a denser area. ### One more data point The same laptop, driver and save ran the VIctory-NVIDIA build (`5fabb46ea`) for 45 minutes without a device loss, with its card at 6.4-6.9 GB of 7188. ### Driver Every report of this I can find is on 621.x: 621.40 here, in your post and in #2607's first post; 621.24 in Miici0's runs on #2607. The test notes in `main`'s commits say 616.64. Has anyone on 616.x seen this device loss? If nobody has, a run on 616.64 would tell driver from runtime, and I can do that run here. Related: #2607 (the same signature on 8 GB and 12 GB cards). AI-assisted (Claude Code, Claude Opus 5.5): it read the logs and wrote this summary. I ran every game session myself and checked the numbers.
Speedbox666 commented 2026-12-01 22:40:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Speedbox666 on 2026-12-01T22:40:21Z.


<html>

d3d12: Repeated DXGI_ERROR_DEVICE_REMOVED (0x887A0005) with GPU fence failure

What happens

The D3D12 runtime repeatedly terminates with DXGI_ERROR_DEVICE_REMOVED (0x887A0005). Both recorded crashes report a host GPU failure during fence synchronization.

In the second run, the runtime crashed after approximately 3 minutes and 9 seconds. The fence returned UINT64_MAX (18446744073709551615) while waiting for fence value 77133.

Both runs also contain pipeline library lookup failures (E_INVALIDARG / 0x80070057), although the pipelines appear to be recreated successfully.

Commit

[commit hash]

System

Component | Specification -- | -- OS | Windows 11 26H2 CPU | I9 13900k RAM | 64GB DDR5 GPU | RTX 4080 Super Driver | 621.24

Observations

  • Both runs terminate with DXGI_ERROR_DEVICE_REMOVED (0x887A0005).

  • Both runs report device-removed data; none.

  • Pipeline library lookups fail with 0x80070057, but subsequent pipeline creation succeeds.

  • In the first run, a vertex/pixel pipeline took 402 ms to create, approximately 7 ms before the reported failure.

  • In the second run, the last recorded pipeline operation was a successful cache load approximately 1.1 seconds before the failure.

  • The second run reports exit code 0 despite the fatal GPU error.

  • It is unclear whether the pipeline library failures are related to the device removal.

Output

Run 1 — 21:44 UTC

3909.8 ms before:
pipeline library: made [vertex f6da88d93b045912,
pixel e40174e01d7d84bf] in 144.6 ms
(the library did not load it: Falscher Parameter. (0x80070057))

3782.6 ms before:
pipeline library: made [vertex f6da88d93b045912,
pixel f5531be9af77f7eb] in 262.2 ms
(the library did not load it: Falscher Parameter. (0x80070057))

7.0 ms before:
pipeline library: made [vertex f6da88d93b045912,
pixel f0f93211f593f37a] in 402.0 ms
(the library did not load it: Falscher Parameter. (0x80070057))

4.1 ms before:
sweep: 2 host copies of windows of title memory
let go (12288 KiB), held by no list and no slot

2026-12-01T21:44:03.477756Z ERROR leonida_gpu::host:
device-removed data; none

2026-12-01T21:44:03.477837Z ERROR leonida_gpu::host:
relay: the fence reports the device removed;
device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)

Run 2 — 22:33 UTC

9823.1 ms before:
pipeline library: made [mesh 581b4c40cb0ca108,
pixel e819d0b31c213166 masked] in 4.5 ms
(the library did not load it: Falscher Parameter. (0x80070057))

9374.9 ms before:
pipeline library: made [mesh af6d42b80481c3a5,
pixel 2567ef6bc3625832 masked] in 3.3 ms
(the library did not load it: Falscher Parameter. (0x80070057))

1101.1 ms before:
pipeline library: loaded [vertex d166c341988178de,
pixel e370f602fa0db9b2] in 0.1 ms

2026-12-01T22:33:37.125951Z ERROR leonida_gpu::host:
device-removed data; none

2026-12-01T22:33:37.125991Z ERROR leonida_gpu::host:
relay: fence 18446744073709551615 did not reach 77133;
device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)

Command finished (exit 0).
Elapsed: 00:03:09.0417259

The localized German DXGI error messages have been replaced with their English symbolic name for readability. Log excerpts have been shortened.

Related issues

  • #2821 — Similar D3D12 device removal failures.

  • #2607 — GPU crashes during gameplay.

Additional information

</html>
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328175717 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7328175717). Originally posted by [Speedbox666](https://github.com/Speedbox666) on 2026-12-01T22:40:21Z. --- <html> <body> <!--StartFragment--><h1 data-pm-slice="1 1 []"><span>d3d12: Repeated DXGI_ERROR_DEVICE_REMOVED (0x887A0005) with GPU fence failure</span></h1><h3><span>What happens</span></h3><p><span>The D3D12 runtime repeatedly terminates with </span><code dir="ltr"><span>DXGI_ERROR_DEVICE_REMOVED (0x887A0005)</span></code><span>. Both recorded crashes report a host GPU failure during fence synchronization.</span></p><p><span>In the second run, the runtime crashed after approximately 3 minutes and 9 seconds. The fence returned </span><code dir="ltr"><span>UINT64_MAX</span></code><span> (</span><code dir="ltr"><span>18446744073709551615</span></code><span>) while waiting for fence value </span><code dir="ltr"><span>77133</span></code><span>.</span></p><p><span>Both runs also contain pipeline library lookup failures (</span><code dir="ltr"><span>E_INVALIDARG / 0x80070057</span></code><span>), although the pipelines appear to be recreated successfully.</span></p><h3><span>Commit</span></h3><p><code dir="ltr"><span>[commit hash]</span></code></p><h3><span>System</span></h3> Component | Specification -- | -- OS | Windows 11 26H2 CPU | I9 13900k RAM | 64GB DDR5 GPU | RTX 4080 Super Driver | 621.24 <h3><span>Observations</span></h3><ul data-spread="false"><li><p><span>Both runs terminate with </span><code dir="ltr"><span>DXGI_ERROR_DEVICE_REMOVED (0x887A0005)</span></code><span>.</span></p></li><li><p><span>Both runs report </span><code dir="ltr"><span>device-removed data; none</span></code><span>.</span></p></li><li><p><span>Pipeline library lookups fail with </span><code dir="ltr"><span>0x80070057</span></code><span>, but subsequent pipeline creation succeeds.</span></p></li><li><p><span>In the first run, a vertex/pixel pipeline took 402 ms to create, approximately 7 ms before the reported failure.</span></p></li><li><p><span>In the second run, the last recorded pipeline operation was a successful cache load approximately 1.1 seconds before the failure.</span></p></li><li><p><span>The second run reports exit code </span><code dir="ltr"><span>0</span></code><span> despite the fatal GPU error.</span></p></li><li><p><span>It is unclear whether the pipeline library failures are related to the device removal.</span></p></li></ul><h3><span>Output</span></h3><p><strong><span>Run 1 — 21:44 UTC</span></strong></p><pre><code class="language-text"><span>3909.8 ms before: pipeline library: made [vertex f6da88d93b045912, pixel e40174e01d7d84bf] in 144.6 ms (the library did not load it: Falscher Parameter. (0x80070057)) 3782.6 ms before: pipeline library: made [vertex f6da88d93b045912, pixel f5531be9af77f7eb] in 262.2 ms (the library did not load it: Falscher Parameter. (0x80070057)) 7.0 ms before: pipeline library: made [vertex f6da88d93b045912, pixel f0f93211f593f37a] in 402.0 ms (the library did not load it: Falscher Parameter. (0x80070057)) 4.1 ms before: sweep: 2 host copies of windows of title memory let go (12288 KiB), held by no list and no slot 2026-12-01T21:44:03.477756Z ERROR leonida_gpu::host: device-removed data; none 2026-12-01T21:44:03.477837Z ERROR leonida_gpu::host: relay: the fence reports the device removed; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005)</span></code></pre><p><strong><span>Run 2 — 22:33 UTC</span></strong></p><pre><code class="language-text"><span>9823.1 ms before: pipeline library: made [mesh 581b4c40cb0ca108, pixel e819d0b31c213166 masked] in 4.5 ms (the library did not load it: Falscher Parameter. (0x80070057)) 9374.9 ms before: pipeline library: made [mesh af6d42b80481c3a5, pixel 2567ef6bc3625832 masked] in 3.3 ms (the library did not load it: Falscher Parameter. (0x80070057)) 1101.1 ms before: pipeline library: loaded [vertex d166c341988178de, pixel e370f602fa0db9b2] in 0.1 ms 2026-12-01T22:33:37.125951Z ERROR leonida_gpu::host: device-removed data; none 2026-12-01T22:33:37.125991Z ERROR leonida_gpu::host: relay: fence 18446744073709551615 did not reach 77133; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) Command finished (exit 0). Elapsed: 00:03:09.0417259</span></code></pre><p><span>The localized German DXGI error messages have been replaced with their English symbolic name for readability. Log excerpts have been shortened.</span></p><h3><span>Related issues</span></h3><ul data-spread="false"><li><p><span>#2821 — Similar D3D12 device removal failures.</span></p></li><li><p><span>#2607 — GPU crashes during gameplay.</span></p></li></ul><h3><span>Additional information</span></h3><!--EndFragment--> </body> </html>
Nebekenezzer commented 2026-12-02 02:56:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Nebekenezzer on 2026-12-02T02:56:05Z.


System

  • RTX 4070 12 GB (stock clocks), driver 621.40, Windows 11
  • Ryzen 7 7700, 32 GB DDR5-5600, page file fixed at 32–64 GB
  • Mandy main source downloaded 2026-12-01, built with scripts\build-nvidia.ps1 (diag, dlss, mimalloc)
  • Series S profile, DLSS Quality (720 → 1080), DLSS frame generation 2x, fullscreen

Symptom

  • 8 crashes, each 3–18 minutes into play: DXGI_ERROR_DEVICE_REMOVED (0x887A0005).
    GetDeviceRemovedReason returns 0x887A0005 itself (not HUNG/RESET/INVALID_CALL).
  • No nvlddmkm/Display (TDR) events in the Windows System log at any crash time, and no WHEA errors.
  • LEONIDA_D3D12_DRED=light: breadcrumbs empty, "device-removed data; none" (no page fault).
  • Always when a lot of new scenery streams in at once: arriving/parking at a destination after a drive,
    taking a boat out onto open water, driving fast. Two crashes in the Donnie/Doug deal mission (like #3023).
  • At the moment of the crash the log says the submitting thread was "preparing a submission", pipeline library: no call running.

Ruled out (one change at a time)

Test Result
Frame generation off (-NoFrameGen -NoSmoothMotion) still crashes
RAM: Firefox closed, ≥ 5 GB physical RAM free, 20+ GB commit left, 0 s "under pressure" still crashes
VRAM at crash: 8.7–9.7 GB of ~11.1 GB budget (3.9–5.0 GB shared) under budget
LEONIDA_LIBRARY_LOCK=1 still crashes (17.5 min)
Fresh host-pipelines.bin (old one moved aside, #2781 workaround) still crashes (12 min)
GPU at stock clocks still crashes
Mandy main of 2026-12-01 13:44 vs later the same day both crash

Note: even with a freshly built library, 7–25 pipelines per run log
"the library did not load it: The parameter is incorrect (0x80070057)", so that seems unrelated.

The interesting one: with the D3D12 debug layer it does NOT crash

  • LEONIDA_D3D12_DEBUG=1 (Windows Graphics Tools installed), same save, same triggers (boat, driving, parking):
    about 1 hour with no crash, while normal runs never got past 18 minutes.
  • It ran at ~18 fps (median frame 56 ms vs 28–44 ms normally).
  • The debug layer reported no errors or corruption, only warnings:
    GetResourceAllocationInfo 4 KB alignment (~44k), CreateDescriptorHeap 4194304 / 2097152 > 1000000 (twice at startup),
    CreateGraphicsPipelineState RTV slot not bound (37), ClearRenderTargetView clear value mismatch (18),
    PipelineLibrary::Load*Pipeline name not stored (a few).

So the crash disappears when the debug layer serialises/slows things down. To me that points to a timing or
threading problem at full speed (or something the driver only does when it isn't wrapped), rather than an invalid call.

For comparison, VIctory 11.30.01 on the same PC, driver and save got through the same mission without crashing.

I can share full logs if useful.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7333350442 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7333350442). Originally posted by [Nebekenezzer](https://github.com/Nebekenezzer) on 2026-12-02T02:56:05Z. --- **System** - RTX 4070 12 GB (stock clocks), driver **621.40**, Windows 11 - Ryzen 7 7700, 32 GB DDR5-5600, page file fixed at 32–64 GB - Mandy `main` source downloaded 2026-12-01, built with `scripts\build-nvidia.ps1` (diag, dlss, mimalloc) - Series S profile, DLSS Quality (720 → 1080), DLSS frame generation 2x, fullscreen **Symptom** - 8 crashes, each **3–18 minutes** into play: `DXGI_ERROR_DEVICE_REMOVED (0x887A0005)`. `GetDeviceRemovedReason` returns 0x887A0005 itself (not HUNG/RESET/INVALID_CALL). - **No** nvlddmkm/Display (TDR) events in the Windows System log at any crash time, and no WHEA errors. - `LEONIDA_D3D12_DRED=light`: breadcrumbs empty, "device-removed data; none" (no page fault). - Always when a lot of new scenery streams in at once: arriving/parking at a destination after a drive, taking a boat out onto open water, driving fast. Two crashes in the Donnie/Doug deal mission (like #3023). - At the moment of the crash the log says the submitting thread was "preparing a submission", pipeline library: no call running. **Ruled out (one change at a time)** | Test | Result | |---|---| | Frame generation off (`-NoFrameGen -NoSmoothMotion`) | still crashes | | RAM: Firefox closed, ≥ 5 GB physical RAM free, 20+ GB commit left, 0 s "under pressure" | still crashes | | VRAM at crash: 8.7–9.7 GB of ~11.1 GB budget (3.9–5.0 GB shared) | under budget | | `LEONIDA_LIBRARY_LOCK=1` | still crashes (17.5 min) | | Fresh `host-pipelines.bin` (old one moved aside, #2781 workaround) | still crashes (12 min) | | GPU at stock clocks | still crashes | | Mandy main of 2026-12-01 13:44 vs later the same day | both crash | Note: even with a freshly built library, 7–25 pipelines per run log "the library did not load it: The parameter is incorrect (0x80070057)", so that seems unrelated. **The interesting one: with the D3D12 debug layer it does NOT crash** - `LEONIDA_D3D12_DEBUG=1` (Windows Graphics Tools installed), same save, same triggers (boat, driving, parking): **about 1 hour with no crash**, while normal runs never got past 18 minutes. - It ran at ~18 fps (median frame 56 ms vs 28–44 ms normally). - The debug layer reported **no errors or corruption**, only warnings: `GetResourceAllocationInfo` 4 KB alignment (~44k), `CreateDescriptorHeap` 4194304 / 2097152 > 1000000 (twice at startup), `CreateGraphicsPipelineState` RTV slot not bound (37), `ClearRenderTargetView` clear value mismatch (18), `PipelineLibrary::Load*Pipeline` name not stored (a few). So the crash disappears when the debug layer serialises/slows things down. To me that points to a timing or threading problem at full speed (or something the driver only does when it isn't wrapped), rather than an invalid call. For comparison, VIctory 11.30.01 on the same PC, driver and save got through the same mission without crashing. I can share full logs if useful.
wimdo14-hub commented 2026-12-02 08:38:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by wimdo14-hub on 2026-12-02T08:38:08Z.


Same crash here on an RTX 3070 Ti 8 GB, on NVIDIA 621.40 and 621.47, every 5 to 25 minutes in the open world. Same signs as above: no Display 4101 / nvlddmkm / TDR entry in the System log, and device-removed data; none. Before it crashes the game is stable at about 15-16 fps rendered (Series X profile, ~6,000-7,500 draws/frame).

Runs (2026-12-02, times UTC), main at 0ae5a26 (and 8422def for the first)

Session log Time in the world before the crash Settings
play-1202-015611 ~21 min Series X default, LEONIDA_FRAME_GEN=4 in leonida-settings.txt (DLSS-G refused: not supported on this card)
play-1202-025724 ~16 min same, after -PrecompileAll
play-1202-032215 ~5 min -SeriesS
play-1202-034129 ~18 min Series X default, TdrDelay/TdrDdiDelay = 60 s
play-1202-044327 ~6 min after updating the driver 621.40 → 621.47 (re-precompiled)
play-1202-045259 ~9 min LEONIDA_FRAME_GEN removed, -Fullscreen
play-1202-050548 ~19 min AMD FidelityFX DLLs removed from d3d12\amd-sdk (FSR 3 never loaded)

An earlier session (play-1202-010013, 33 min) did not crash before I closed it.

Ruled out on this PC: GPU timeout (no TDR event; TdrDelay 60 s did not help, reverted since), the driver (621.40 and 621.47), frame generation (DLSS-G refused, FSR 3 off, AMD DLLs removed), Series S vs Series X, shader/pipeline compiles (-PrecompileAll done, nothing being made), window vs -Fullscreen. GPU temperature is ~45-60 °C and the GPU is mostly idle (~1-2 ms of its own work a frame).

Last lines (play-1202-050548):

INFO leonida_gpu::host: crash tracing on (device-removed data) breadcrumbs=false markers=false
INFO leonida_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=default ddi_delay=default
ERROR leonida_gpu::host: when the host device went: the submitting thread was preparing a submission (2 submissions of ours started and not yet seen finished), of 1 lists, for 0.7 ms; pipeline library: no call running; ... submissions started 417848 finished 417846
ERROR leonida_gpu::host: device-removed data; none
Leonida: host GPU failure: relay: the fence reports the device removed; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command

I can run with LEONIDA_D3D12_DEBUG=1 or DRED breadcrumbs if that helps; tell me which switches you want.

System

CPU AMD Ryzen 7 5700X (8 cores / 16 threads), stock
GPU NVIDIA GeForce RTX 3070 Ti 8 GB, driver 621.47 (also on 621.40), VBIOS 94.04.65.00.3d, PCIe 4.0 x16, Resizable BAR on
RAM 32 GB (2 × 16 GB DDR4-3600, dual channel, XMP)
Motherboard ASUS TUF GAMING B550M-PLUS, BIOS 3621
Storage game on an NVMe SSD
Page file 32 GB on D: + 5 GB on C:
OS Windows 11 Pro 26H2 (build 26300), VBS off
Mandy main at 0ae5a26, built with d3d12\scripts\build-nvidia.ps1 (diagnostics, dlss, mimalloc), started with scripts\play-d3d12.ps1 -Game <package> -Log
Settings defaults: Series X profile, 2560x1440 output, the title's dynamic resolution (1080-1440), no frame generation
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7339717762 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7339717762). Originally posted by [wimdo14-hub](https://github.com/wimdo14-hub) on 2026-12-02T08:38:08Z. --- Same crash here on an **RTX 3070 Ti 8 GB**, on NVIDIA **621.40 and 621.47**, every 5 to 25 minutes in the open world. Same signs as above: no Display 4101 / nvlddmkm / TDR entry in the System log, and `device-removed data; none`. Before it crashes the game is stable at about 15-16 fps rendered (Series X profile, ~6,000-7,500 draws/frame). **Runs (2026-12-02, times UTC), main at 0ae5a26 (and 8422def for the first)** | Session log | Time in the world before the crash | Settings | |---|---|---| | play-1202-015611 | ~21 min | Series X default, `LEONIDA_FRAME_GEN=4` in leonida-settings.txt (DLSS-G refused: not supported on this card) | | play-1202-025724 | ~16 min | same, after `-PrecompileAll` | | play-1202-032215 | ~5 min | `-SeriesS` | | play-1202-034129 | ~18 min | Series X default, TdrDelay/TdrDdiDelay = 60 s | | play-1202-044327 | ~6 min | after updating the driver 621.40 → 621.47 (re-precompiled) | | play-1202-045259 | ~9 min | `LEONIDA_FRAME_GEN` removed, `-Fullscreen` | | play-1202-050548 | ~19 min | AMD FidelityFX DLLs removed from `d3d12\amd-sdk` (FSR 3 never loaded) | An earlier session (play-1202-010013, 33 min) did not crash before I closed it. **Ruled out on this PC:** GPU timeout (no TDR event; TdrDelay 60 s did not help, reverted since), the driver (621.40 and 621.47), frame generation (DLSS-G refused, FSR 3 off, AMD DLLs removed), Series S vs Series X, shader/pipeline compiles (`-PrecompileAll` done, nothing being made), window vs `-Fullscreen`. GPU temperature is ~45-60 °C and the GPU is mostly idle (~1-2 ms of its own work a frame). **Last lines (play-1202-050548):** ``` INFO leonida_gpu::host: crash tracing on (device-removed data) breadcrumbs=false markers=false INFO leonida_gpu::tdr: GPU timeout detection (TdrLevel, TdrDelay, TdrDdiDelay) level=default delay=default ddi_delay=default ERROR leonida_gpu::host: when the host device went: the submitting thread was preparing a submission (2 submissions of ours started and not yet seen finished), of 1 lists, for 0.7 ms; pipeline library: no call running; ... submissions started 417848 finished 417846 ERROR leonida_gpu::host: device-removed data; none Leonida: host GPU failure: relay: the fence reports the device removed; device removed: DXGI_ERROR_DEVICE_REMOVED (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command ``` I can run with `LEONIDA_D3D12_DEBUG=1` or DRED breadcrumbs if that helps; tell me which switches you want. **System** | | | |---|---| | CPU | AMD Ryzen 7 5700X (8 cores / 16 threads), stock | | GPU | NVIDIA GeForce RTX 3070 Ti 8 GB, driver 621.47 (also on 621.40), VBIOS 94.04.65.00.3d, PCIe 4.0 x16, Resizable BAR on | | RAM | 32 GB (2 × 16 GB DDR4-3600, dual channel, XMP) | | Motherboard | ASUS TUF GAMING B550M-PLUS, BIOS 3621 | | Storage | game on an NVMe SSD | | Page file | 32 GB on D: + 5 GB on C: | | OS | Windows 11 Pro 26H2 (build 26300), VBS off | | Mandy | main at 0ae5a26, built with `d3d12\scripts\build-nvidia.ps1` (diagnostics, dlss, mimalloc), started with `scripts\play-d3d12.ps1 -Game <package> -Log` | | Settings | defaults: Series X profile, 2560x1440 output, the title's dynamic resolution (1080-1440), no frame generation |
broveer commented 2026-12-02 12:40:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by broveer on 2026-12-02T12:40:23Z.


Follow-up from the RTX 4060 Laptop 8 GB (driver 621.40) above: seven more crashes today, the same quiet way. One test
rules out mandy's side threads.

Build: upstream main at 229d352ee, plus #2789, #2857, #2588, #2847 and 15 of the Rust leak fixes from #2569,
merged locally. Same command as before, plus LEONIDA_SCREEN_WAIT_MS=1000.

Runs (2026-12-02, times UTC)

Start Change In the world before the crash Card at the crash (budget 7188) Least free RAM At the crash
07:53 fresh host-pipelines.bin + #2789 3.2 min 5.9 GB peak 400 MB a burst of first loads, ~14 pipelines made a second
08:03 LEONIDA_D3D12_DEBUG=1 (see below) 17.6 min n/a n/a quiet; no debug-layer message
08:46 none 6.1 min 6913 MB 86 MB preparing a submission, 2 in the air, nothing compiling
11:44 none 10.2 min 7187 MB 51 MB 6.5 s frame just before; two compute pipelines took 3.0 and 3.3 s
11:56 none 8.9 min 7112 MB 725 MB 7.0 s frame just before; ends on no host list for the compare of host copies in the card's memory
12:23 side threads off (below) 3.6 min 6732 MB 1850 MB preparing a submission, 1 in the air, nothing compiling
12:31 none 5.4 min 7041 MB 693 MB steady play: 18 fps, 3,450 draws, frames 54-63 ms for the 10 s before, no pipeline made or waited for; between submissions, 8 in the air

The 12:31 one is worth noting: it came in plain, even play, not at a load or a freeze.

All of them: device-removed data; none, and no TDR, nvlddmkm or Display event in the System log.

Side threads off: still crashes

Nebekenezzer's debug-layer result suggests a timing problem, so the 12:23 run moved every side thread I could find
back onto the submitting thread:

LEONIDA_THIN=0 LEONIDA_ASYNC_SUBMIT=0 LEONIDA_TEXBACK_ASYNC=0 LEONIDA_HEAP_SYNC_ASIDE=0 LEONIDA_HEAP_PASS_ASIDE=0

The log confirms each one was off. fps dropped by about 40% (8.8 fps at 6-8k draws, against about 15), and it crashed
after 3.6 min in the world. That run also had the most free RAM of any run here (1.85 GB physical) and about 450 MB of
the card's budget free. So whatever is racing is not in those five paths, and neither memory nor a full card is needed
to trigger it.

Debug layer on this PC

With Graphics Tools installed, one run (08:03) got a device and lasted 17.6 min, the longest here. It was not slower
than usual, though, and logged nothing from the layer, so I'm not sure the layer was active. Every later start with
LEONIDA_D3D12_DEBUG=1 (three) failed at device creation with 0x80070057 (white screen,
sound running). d3d12SDKLayers.dll is 10.0.26100.1 while D3D12Core.dll is 10.0.26100.10068, which may be why.
So I can't repeat the debug-layer test here.

Pipeline library

A library this driver had just built still refuses 7-25 pipelines a run with 0x80070057, mostly masked twins
(as Nebekenezzer saw). They are cheap now (8-55 ms), and #2789's self-heal never fired. A fresh library didn't change
when it crashes (07:53, 3.2 min).

If there is a switch or a log level that would show the last thing submitted before the device goes, I can run it.

AI-assisted (Claude Code, Claude Opus 5.5): it read the logs and wrote this summary. I ran every game session myself
and checked the numbers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345697344 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7345697344). Originally posted by [broveer](https://github.com/broveer) on 2026-12-02T12:40:23Z. --- Follow-up from the RTX 4060 Laptop 8 GB (driver 621.40) above: seven more crashes today, the same quiet way. One test rules out mandy's side threads. **Build:** upstream `main` at `229d352ee`, plus #2789, #2857, #2588, #2847 and 15 of the Rust leak fixes from #2569, merged locally. Same command as before, plus `LEONIDA_SCREEN_WAIT_MS=1000`. ### Runs (2026-12-02, times UTC) | Start | Change | In the world before the crash | Card at the crash (budget 7188) | Least free RAM | At the crash | |---|---|---|---|---|---| | 07:53 | fresh `host-pipelines.bin` + #2789 | 3.2 min | 5.9 GB peak | 400 MB | a burst of first loads, ~14 pipelines made a second | | 08:03 | `LEONIDA_D3D12_DEBUG=1` (see below) | 17.6 min | n/a | n/a | quiet; no debug-layer message | | 08:46 | none | 6.1 min | 6913 MB | 86 MB | preparing a submission, 2 in the air, nothing compiling | | 11:44 | none | 10.2 min | 7187 MB | 51 MB | 6.5 s frame just before; two compute pipelines took 3.0 and 3.3 s | | 11:56 | none | 8.9 min | 7112 MB | 725 MB | 7.0 s frame just before; ends on `no host list for the compare of host copies in the card's memory` | | **12:23** | **side threads off** (below) | **3.6 min** | **6732 MB** | **1850 MB** | preparing a submission, 1 in the air, nothing compiling | | 12:31 | none | 5.4 min | 7041 MB | 693 MB | **steady play**: 18 fps, 3,450 draws, frames 54-63 ms for the 10 s before, no pipeline made or waited for; between submissions, 8 in the air | The 12:31 one is worth noting: it came in plain, even play, not at a load or a freeze. All of them: `device-removed data; none`, and no TDR, nvlddmkm or Display event in the System log. ### Side threads off: still crashes Nebekenezzer's debug-layer result suggests a timing problem, so the 12:23 run moved every side thread I could find back onto the submitting thread: `LEONIDA_THIN=0 LEONIDA_ASYNC_SUBMIT=0 LEONIDA_TEXBACK_ASYNC=0 LEONIDA_HEAP_SYNC_ASIDE=0 LEONIDA_HEAP_PASS_ASIDE=0` The log confirms each one was off. fps dropped by about 40% (8.8 fps at 6-8k draws, against about 15), and it crashed after 3.6 min in the world. That run also had the most free RAM of any run here (1.85 GB physical) and about 450 MB of the card's budget free. So whatever is racing is not in those five paths, and neither memory nor a full card is needed to trigger it. ### Debug layer on this PC With Graphics Tools installed, one run (08:03) got a device and lasted 17.6 min, the longest here. It was not slower than usual, though, and logged nothing from the layer, so I'm not sure the layer was active. Every later start with `LEONIDA_D3D12_DEBUG=1` (three) failed at device creation with `0x80070057` (white screen, sound running). `d3d12SDKLayers.dll` is 10.0.26100.1 while `D3D12Core.dll` is 10.0.26100.10068, which may be why. So I can't repeat the debug-layer test here. ### Pipeline library A library this driver had just built still refuses 7-25 pipelines a run with `0x80070057`, mostly masked twins (as Nebekenezzer saw). They are cheap now (8-55 ms), and #2789's self-heal never fired. A fresh library didn't change when it crashes (07:53, 3.2 min). If there is a switch or a log level that would show the last thing submitted before the device goes, I can run it. AI-assisted (Claude Code, Claude Opus 5.5): it read the logs and wrote this summary. I ran every game session myself and checked the numbers.
valenciana-nc commented 2026-12-02 16:35:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T16:35:48Z.


Data point on this device loss from an RTX 4060 Laptop GPU 8 GB (budget about 7.2 GB), i7-13650HX, 16 GB RAM, Windows 11 (Developer mode on), NVIDIA 621.47. Two earlier sessions on driver 610.62 ended the same way after 21 and 27 min, so 621.x isn't required for it here.

Setup. main d741a9f-based diag builds; the gate runs below used main d0bf821fa. Series S -Resolution 720 -NoDlss -NoFrameGen, the same save every start, a scripted walking loop (W with camera turns) unless noted, LEONIDA_D3D12_DRED=light.

Run Set beside the launcher's Page file at start Time in the world End
base none ~26 GB 8.5 min 0x887A0005
base none (C: had room for the page file to grow) 24.9 GB 5.2 min 0x887A0005
base, standing (gate run on main) none 28.5 GB 4.0 min 0x887A0005
base, standing (gate run, #3002 merged) none 28.5 GB 4.8 min 0x887A0005
headroom WINDOWS_BAR_MB=1024 WINDOWS_BAR_LINE=75 TEXTURE_ROOM_PERCENT=80 CARD_BUFFERS_MB=1024 ~25 GB 3.7 min 0x887A0005
base none 35.1 GB 25 min stopped by me, no loss
background off D3D12_BACKGROUND=0 28.6 GB 45 min no loss
background off D3D12_BACKGROUND=0 28.5 GB 30 min no loss
trim ALLOCATOR_TRIM=1 ALLOCATOR_TRIM_S=15 COMMIT_FLOOR=1 25.9 GB 30 min no loss
trim the same 29.0 GB 30 min no loss
both D3D12_BACKGROUND=0 + the trim switches 23.4 GB 41 min no loss

Without either switch, 5 of 6 runs lost the device after 3.7 to 8.5 min in the world. With either one, or both, 5 of 5 ran 30 to 45 min with no loss. A real 47-min play session with both (launcher defaults otherwise, main 8422def75) also ended with no loss and saved normally.

At every loss:

  • GetDeviceRemovedReason 0x887A0005, DRED breadcrumbs empty, no page fault.
  • No nvlddmkm, Display, WHEA or LiveKernelEvent entry in the event log.
  • The card at P0, full clocks, 70-72 °C.
  • In 2 of 3 runs checked, no pipeline call in the last 60 s.

Caveats:

  • The system commit sat at or near its limit in every run, losses and survivors alike: 42-48 GB committed, 0-0.6 GB of RAM free, the process 22-24.8 GB private. The commit stood about 7 GB above the sum of every process's commit plus the kernel pools, about the card memory in use (inference: video memory is charged to commit).
  • The page file: the one base run that survived started with a large one (35 GB). The two standing base losses started with a 28.5 GB page file, the same as the background-off survivors. So the page file alone doesn't explain it.
  • LEONIDA_COMMIT_FLOOR did nothing: it let go 0 MB in every run. In the trim rows, the active part is ALLOCATOR_TRIM. It swapped about 214,000 allocators, but private memory was not lower.
  • Frame rate: median 23.0-23.2 fps with D3D12_BACKGROUND=0 walking, against 16-22 fps in the base runs before their loss. ALLOCATOR_TRIM runs were 17.6-22.1 fps.
  • Developer mode: D3D12_BACKGROUND=0 only takes effect in Developer mode (#2847's note; the runtime logged ok=true here).

This points at the driver's background shader work (and its allocations), not at card memory. #2847 switches that work off during play; I'm running it in game on this PC now and will report there.

AI-assisted: yes (Claude Opus 5.5; runs driven by script; analysis checked by a second Claude Opus 5.5 agent)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7352177565 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7352177565). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T16:35:48Z. --- Data point on this device loss from an RTX 4060 Laptop GPU 8 GB (budget about 7.2 GB), i7-13650HX, 16 GB RAM, Windows 11 (Developer mode on), NVIDIA 621.47. Two earlier sessions on driver 610.62 ended the same way after 21 and 27 min, so 621.x isn't required for it here. **Setup.** `main` d741a9f-based diag builds; the gate runs below used `main` d0bf821fa. Series S `-Resolution 720 -NoDlss -NoFrameGen`, the same save every start, a scripted walking loop (W with camera turns) unless noted, `LEONIDA_D3D12_DRED=light`. | Run | Set beside the launcher's | Page file at start | Time in the world | End | |---|---|---|---|---| | base | none | ~26 GB | 8.5 min | `0x887A0005` | | base | none (C: had room for the page file to grow) | 24.9 GB | 5.2 min | `0x887A0005` | | base, standing (gate run on `main`) | none | 28.5 GB | 4.0 min | `0x887A0005` | | base, standing (gate run, #3002 merged) | none | 28.5 GB | 4.8 min | `0x887A0005` | | headroom | `WINDOWS_BAR_MB=1024 WINDOWS_BAR_LINE=75 TEXTURE_ROOM_PERCENT=80 CARD_BUFFERS_MB=1024` | ~25 GB | 3.7 min | `0x887A0005` | | base | none | 35.1 GB | 25 min | stopped by me, no loss | | background off | `D3D12_BACKGROUND=0` | 28.6 GB | 45 min | no loss | | background off | `D3D12_BACKGROUND=0` | 28.5 GB | 30 min | no loss | | trim | `ALLOCATOR_TRIM=1 ALLOCATOR_TRIM_S=15 COMMIT_FLOOR=1` | 25.9 GB | 30 min | no loss | | trim | the same | 29.0 GB | 30 min | no loss | | both | `D3D12_BACKGROUND=0` + the trim switches | 23.4 GB | 41 min | no loss | Without either switch, 5 of 6 runs lost the device after 3.7 to 8.5 min in the world. With either one, or both, 5 of 5 ran 30 to 45 min with no loss. A real 47-min play session with both (launcher defaults otherwise, `main` 8422def75) also ended with no loss and saved normally. At every loss: - `GetDeviceRemovedReason` 0x887A0005, DRED breadcrumbs empty, no page fault. - No nvlddmkm, Display, WHEA or LiveKernelEvent entry in the event log. - The card at P0, full clocks, 70-72 °C. - In 2 of 3 runs checked, no pipeline call in the last 60 s. **Caveats:** - **The system commit** sat at or near its limit in every run, losses and survivors alike: 42-48 GB committed, 0-0.6 GB of RAM free, the process 22-24.8 GB private. The commit stood about 7 GB above the sum of every process's commit plus the kernel pools, about the card memory in use (inference: video memory is charged to commit). - **The page file:** the one base run that survived started with a large one (35 GB). The two standing base losses started with a 28.5 GB page file, the same as the background-off survivors. So the page file alone doesn't explain it. - **`LEONIDA_COMMIT_FLOOR` did nothing:** it let go 0 MB in every run. In the trim rows, the active part is `ALLOCATOR_TRIM`. It swapped about 214,000 allocators, but private memory was not lower. - **Frame rate:** median 23.0-23.2 fps with `D3D12_BACKGROUND=0` walking, against 16-22 fps in the base runs before their loss. `ALLOCATOR_TRIM` runs were 17.6-22.1 fps. - **Developer mode:** `D3D12_BACKGROUND=0` only takes effect in Developer mode (#2847's note; the runtime logged `ok=true` here). This points at the driver's background shader work (and its allocations), not at card memory. #2847 switches that work off during play; I'm running it in game on this PC now and will report there. AI-assisted: yes (Claude Opus 5.5; runs driven by script; analysis checked by a second Claude Opus 5.5 agent)
Jyx0208 commented 2026-12-02 17:36:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Jyx0208 on 2026-12-02T17:36:17Z.


Data point from a 64 GB RAM + 48 GB VRAM setup with a local kernel-level removal watchdog (ID3D12Fence::SetEventOnCompletion(u64::MAX) + 256-event D3D12 lifecycle ring + post-call GetDeviceRemovedReason() checks + explicit DRED1/DRED2 + GlobalMemoryStatusEx).

System & Run

  • Build: main at a917c54d (diag profile: diagnostics,dlss,mimalloc) + local diagnostic probe only
  • GPU: NVIDIA GeForce RTX 4090 D 48 GB (48,628 MB VRAM), driver 616.92
  • CPU / RAM / OS: Ryzen 9 9950X (16C/32T), 64 GB RAM (63,137 MB) + 32 GB pagefile (~96 GB commit limit), Windows 11 (10.0.26200), Developer Mode off
  • Settings: Series X, -Resolution 1440, Frame Gen 2x (DLSS off), LEONIDA_D3D12_DRED=light, LEONIDA_PIPELINE_WAIT_MS=0, LEONIDA_FG_LIMIT_FPS=0, -Log
  • Time in the world: ~79.5 min (frame 130205, 2,268,030 submissions) before 0x887A0005

Key Findings from the Instant Watchdog Capture

  1. Removed synchronously inside host::card_sync's ExecuteCommandLists (376 ms before relay noticed):

    • Normally card_sync (host::card_before) takes 0.12–0.27 ms in ExecuteCommandLists.
    • On submission #2268030 (18 dirty shadow buffers), tid=22220 entered ExecuteCommandLists(&[sync]) at -1.54 ms.
    • At -0.19 ms (while ExecuteCommandLists had still not returned), the u64::MAX kernel watchdog woke with GetDeviceRemovedReason() == 0x887A0005.
    • At 0.00 ms, ExecuteCommandLists returned and the immediate post-call boundary check observed 0x887A0005 (376 ms before relay hit it).
    • At removal: started=2268030 finished=2268026 in_air=4 queued=22, line_state: runs=2 card_plans=1 fences=2268028..2268029 (submission #2268027 had already finished on the GPU).
  2. Explicit DRED1 + DRED2 confirm zero hardware fault / zero breadcrumbs (and zero TDR):

    • dred_init: ok (SetAutoBreadcrumbsEnablement, SetBreadcrumbContextEnablement, and SetPageFaultEnablement all FORCED_ON before D3D12CreateDevice)
    • dred2_device_state: 0 (D3D12_DRED_DEVICE_STATE_UNKNOWN)
    • dred1_page_fault: Ok(va=0x0, existing=false, freed=false)
    • dred1_breadcrumbs1: Ok(nodes=0, stopped=[])
    • Windows System and Application event logs: 0 Display, nvlddmkm, Event 4101 TDR, or LiveKernelEvent entries around the crash.
    • Pipeline library: no call running, mapped file intact (0 of 111,399 pages read as zeros).
  3. Ruled out concurrent lifecycle races in the crash window (active_at_removal: none, last 92 ms / 256 ring events):

    • 0 sweep (last sweep was 1,287 ms earlier), 0 MakeResident / aside_mapped, 0 pool_reclaim, 0 tile_mappings, 0 pipeline_make.
    • copy_queue (-6.14 ms), reaper (-5.17 ms), and present (-12.56 ms) had all finished cleanly with S_OK prior to card_sync.
  4. System commit charge bled ~41 GB even with 25.5 GB VRAM and 12 GB physical RAM free (lines up closely with @valenciana-nc's commit / background-work / allocator-trim results above):

Elapsed Free physical RAM Available commit (avail_commit) Notes
+4 s 34,126 MB 43,568 MB start
+7 min 11,279 MB 14,158 MB rapid commit drop
+17 min 9,130 MB 4,052 MB ~39.5 GB commit consumed
+37 min 8,603 MB 2,601 MB under pressure
+67 min 8,603 MB 2,212 MB commit critical hit 7 times
+79.5 min (crash) 11,995 MB 2,782 MB vram_local=22,282 / 47,860 MB, vram_nonlocal=9,436 / 45,985 MB

This matches the cross-RAM time-to-crash scaling reported here (16 GB RAM: ~4–9 min; 32 GB RAM: ~18–21 min; 64 GB RAM + 32 GB pagefile: ~80 min) and confirms VRAM exhaustion is not required. Next I am auditing where that ~41 GB of commit charge went in this session and why card_sync / ExecuteCommandLists is hitting synchronous driver-side removal under low commit headroom.

AI-assisted: yes (Antigravity helped write the local probe, analyze the captured logs, and draft this comment; I ran the session on my hardware and verified the output).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353466990 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7353466990). Originally posted by [Jyx0208](https://github.com/Jyx0208) on 2026-12-02T17:36:17Z. --- Data point from a **64 GB RAM + 48 GB VRAM** setup with a local kernel-level removal watchdog (`ID3D12Fence::SetEventOnCompletion(u64::MAX)` + 256-event D3D12 lifecycle ring + post-call `GetDeviceRemovedReason()` checks + explicit DRED1/DRED2 + `GlobalMemoryStatusEx`). ### System & Run - **Build:** `main` at `a917c54d` (`diag` profile: `diagnostics,dlss,mimalloc`) + local diagnostic probe only - **GPU:** NVIDIA GeForce RTX 4090 D 48 GB (`48,628 MB` VRAM), driver `616.92` - **CPU / RAM / OS:** Ryzen 9 9950X (16C/32T), 64 GB RAM (`63,137 MB`) + 32 GB pagefile (~96 GB commit limit), Windows 11 (`10.0.26200`), Developer Mode off - **Settings:** Series X, `-Resolution 1440`, Frame Gen 2x (DLSS off), `LEONIDA_D3D12_DRED=light`, `LEONIDA_PIPELINE_WAIT_MS=0`, `LEONIDA_FG_LIMIT_FPS=0`, `-Log` - **Time in the world:** **~79.5 min** (`frame 130205`, `2,268,030` submissions) before `0x887A0005` ### Key Findings from the Instant Watchdog Capture 1. **Removed synchronously inside `host::card_sync`'s `ExecuteCommandLists` (376 ms before `relay` noticed):** - Normally `card_sync` (`host::card_before`) takes `0.12–0.27 ms` in `ExecuteCommandLists`. - On submission `#2268030` (`18` dirty shadow buffers), `tid=22220` entered `ExecuteCommandLists(&[sync])` at `-1.54 ms`. - At **`-0.19 ms`** (while `ExecuteCommandLists` had still not returned), the `u64::MAX` kernel watchdog woke with `GetDeviceRemovedReason() == 0x887A0005`. - At **`0.00 ms`**, `ExecuteCommandLists` returned and the immediate post-call boundary check observed `0x887A0005` (`376 ms` before `relay` hit it). - At removal: `started=2268030 finished=2268026 in_air=4 queued=22`, `line_state: runs=2 card_plans=1 fences=2268028..2268029` (submission `#2268027` had already finished on the GPU). 2. **Explicit DRED1 + DRED2 confirm zero hardware fault / zero breadcrumbs (and zero TDR):** - `dred_init: ok` (`SetAutoBreadcrumbsEnablement`, `SetBreadcrumbContextEnablement`, and `SetPageFaultEnablement` all `FORCED_ON` before `D3D12CreateDevice`) - `dred2_device_state: 0` (`D3D12_DRED_DEVICE_STATE_UNKNOWN`) - `dred1_page_fault: Ok(va=0x0, existing=false, freed=false)` - `dred1_breadcrumbs1: Ok(nodes=0, stopped=[])` - Windows `System` and `Application` event logs: **0** `Display`, `nvlddmkm`, Event 4101 TDR, or `LiveKernelEvent` entries around the crash. - Pipeline library: no call running, mapped file intact (`0` of `111,399` pages read as zeros). 3. **Ruled out concurrent lifecycle races in the crash window (`active_at_removal: none`, last 92 ms / 256 ring events):** - **0** `sweep` (last sweep was `1,287 ms` earlier), **0** `MakeResident` / `aside_mapped`, **0** `pool_reclaim`, **0** `tile_mappings`, **0** `pipeline_make`. - `copy_queue` (`-6.14 ms`), `reaper` (`-5.17 ms`), and `present` (`-12.56 ms`) had all finished cleanly with `S_OK` prior to `card_sync`. 4. **System commit charge bled ~41 GB even with 25.5 GB VRAM and 12 GB physical RAM free** (lines up closely with `@valenciana-nc`'s commit / background-work / allocator-trim results above): | Elapsed | Free physical RAM | Available commit (`avail_commit`) | Notes | |---|---|---|---| | `+4 s` | `34,126 MB` | `43,568 MB` | start | | `+7 min` | `11,279 MB` | `14,158 MB` | rapid commit drop | | `+17 min` | `9,130 MB` | `4,052 MB` | ~39.5 GB commit consumed | | `+37 min` | `8,603 MB` | `2,601 MB` | under pressure | | `+67 min` | `8,603 MB` | `2,212 MB` | `commit critical` hit 7 times | | `+79.5 min` (crash) | `11,995 MB` | `2,782 MB` | `vram_local=22,282 / 47,860 MB`, `vram_nonlocal=9,436 / 45,985 MB` | This matches the cross-RAM time-to-crash scaling reported here (16 GB RAM: ~4–9 min; 32 GB RAM: ~18–21 min; 64 GB RAM + 32 GB pagefile: ~80 min) and confirms VRAM exhaustion is not required. Next I am auditing where that ~41 GB of commit charge went in this session and why `card_sync` / `ExecuteCommandLists` is hitting synchronous driver-side removal under low commit headroom. AI-assisted: yes (Antigravity helped write the local probe, analyze the captured logs, and draft this comment; I ran the session on my hardware and verified the output).
jptorres96 commented 2026-12-02 19:56:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by jptorres96 on 2026-12-02T19:56:06Z.


Data point: RTX 4080 SUPER 16 GB, LEONIDA_D3D12_BACKGROUND=0 stopped the loss here too

  • PC: Ryzen 7 5800X3D, 32 GB RAM, RTX 4080 SUPER 16 GB, NVIDIA 621.40 (32.0.16.2140), Windows 11 Home 26300, Developer mode on.
  • Build: main 5b1fff821, build-nvidia.ps1 (diag, dlss, mimalloc).
  • Settings: launcher defaults (Series X, 2560x1440 output, dynamic 1080-1440, title upscaler, DLSS FG 2x), -PrecompileAll, NVIDIA shader cache Unlimited.
Run (local time) D3D12_BACKGROUND In the world End
18:17 unset ~80 min 0x887A0005
19:47 unset ~16 min 0x887A0005
20:06 unset ~10 min 0x887A0005
20:19 0 (ok=true logged) 35 min no loss, closed by me

At each loss: device-removed data; none, no nvlddmkm/Display/TDR event, VRAM under budget (13.0-13.6 of ~14.6-15.0 GB), 18-23 GB of commit left, so not commit-starved here. One loss ended on the same textures picked by index were made ready line with a 1024x1024 BC1 (format 71) texture, like the first report.

With BACKGROUND=0 the average rendered fps also rose from 16-20 to 22.8, and there were 4 frames over 1 s in 35 min.

One run so far, so this is supporting evidence, not proof. I'll add more runs if it holds or breaks.

Note for others testing it: play-nvidia.ps1 removes every LEONIDA_* environment variable before the start, so set it in d3d12\leonida-settings.txt (LEONIDA_D3D12_BACKGROUND=0) or with -More, not as a Windows variable.

AI-assisted: Claude Opus 5.5 analyzed the logs and drafted this comment.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7356953828 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7356953828). Originally posted by [jptorres96](https://github.com/jptorres96) on 2026-12-02T19:56:06Z. --- **Data point: RTX 4080 SUPER 16 GB, `LEONIDA_D3D12_BACKGROUND=0` stopped the loss here too** - **PC:** Ryzen 7 5800X3D, 32 GB RAM, RTX 4080 SUPER 16 GB, NVIDIA 621.40 (32.0.16.2140), Windows 11 Home 26300, Developer mode on. - **Build:** `main` 5b1fff821, `build-nvidia.ps1` (diag, dlss, mimalloc). - **Settings:** launcher defaults (Series X, 2560x1440 output, dynamic 1080-1440, title upscaler, DLSS FG 2x), `-PrecompileAll`, NVIDIA shader cache Unlimited. | Run (local time) | `D3D12_BACKGROUND` | In the world | End | |---|---|---|---| | 18:17 | unset | ~80 min | `0x887A0005` | | 19:47 | unset | ~16 min | `0x887A0005` | | 20:06 | unset | ~10 min | `0x887A0005` | | 20:19 | `0` (`ok=true` logged) | 35 min | no loss, closed by me | At each loss: `device-removed data; none`, no nvlddmkm/Display/TDR event, VRAM under budget (13.0-13.6 of ~14.6-15.0 GB), 18-23 GB of commit left, so not commit-starved here. One loss ended on the same `textures picked by index were made ready` line with a 1024x1024 BC1 (format 71) texture, like the first report. With `BACKGROUND=0` the average rendered fps also rose from 16-20 to 22.8, and there were 4 frames over 1 s in 35 min. One run so far, so this is supporting evidence, not proof. I'll add more runs if it holds or breaks. Note for others testing it: `play-nvidia.ps1` removes every `LEONIDA_*` environment variable before the start, so set it in `d3d12\leonida-settings.txt` (`LEONIDA_D3D12_BACKGROUND=0`) or with `-More`, not as a Windows variable. AI-assisted: Claude Opus 5.5 analyzed the logs and drafted this comment.
Nebekenezzer commented 2026-12-02 21:13:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Nebekenezzer on 2026-12-02T21:13:24Z.


Follow-up to my comment above (RTX 4070 12 GB, driver 621.40, Ryzen 7 7700, 32 GB). LEONIDA_D3D12_BACKGROUND=0 stopped the device-removed crashes for me, confirming what @valenciana-nc found. Their other set (allocator trim + commit floor) did not stop it here.

Build: main source zip downloaded 2026-12-02 ~16:30Z (before #3172), diag + dlss. Series S, DLSS Quality 720->1080, DLSS FG 2x, fullscreen, -PrecompileAll. Developer Mode had to be turned ON first; the log then shows `the host's

Build: main source zip downloaded 2026-12-02 ~16:30Z (before #3172), diag + dlss. Series S, DLSS Quality 720->1080, DLSS FG 2x, fullscreen, -PrecompileAll. Developer Mode had to be turned ON first; the log then shows the host's background shader work is switched off (LEONIDA_D3D12_BACKGROUND=0) ok=true.

Runs today, one change at a time:

Log Change Result
play-1202-092303 none (pipeline library rebuilt clean, drawn-with pipelines only, 364 MB) 0x887A0005 after ~15 min, driving
play-1202-094345 LEONIDA_DYNAMIC_SLOTS=262144 no crash in 31 min, but mostly on a boat
play-1202-102501 LEONIDA_DYNAMIC_SLOTS=262144 0x887A0005 after ~6 min on the highway
play-1202-103226 LEONIDA_D3D12_BACKGROUND=0 no crash, 33 min: high-speed highway + downtown for the first time, 5,846 first binds
play-1202-110737 LEONIDA_D3D12_BACKGROUND=0 no crash, 1 h 36 min: the whole Mattia mission (crashed there yesterday) into chapter 2, 7,596 first binds
play-1202-125216 LEONIDA_ALLOCATOR_TRIM=1 LEONIDA_ALLOCATOR_TRIM_S=15 LEONIDA_COMMIT_FLOOR=1 (background work left on) 0x887A0005 after ~6.5 min, driving, as I answered the in-game phone; a pipeline-library make was running at that moment

Before the fix, every crash came while driving, during a steady stream of first-time pipeline binds (~30 per 10 s), with no hang, no page fault, empty DRED and no TDR event. That fits the driver's background recompiles being involved. It also fits my earlier result: with LEONIDA_D3D12_DEBUG=1 (slower) it never crashed in 1 h.

Ruled out today: a clean pipeline library (drawn-with only, per the new warm.rs), the dynamic-slot change, and the allocator-trim/commit-floor set.

Cost of the fix: noticeably more stutter, which I saw in play, especially in chapter 2. Streamline "Frame rate over 100ms" warnings: ~2-3/min in the crash runs, ~9/min in the 33-min run. In the 1 h 36 min run: under 3/min for the first 30 min, then 50-60/min from ~35 min to the end, mostly at a steady ~1-second beat. I can't tell yet whether that comes from chapter 2 or builds up over time with the background work off. Median rendered fps 26-28 against ~31 before. A world-only mode (as in #2847) might keep the fix with less of this.

Side observation, not the crash cause: with the launcher's LEONIDA_DYNAMIC_SLOTS=524288, the "found by the fallback" slot warnings top out at exactly 499,999 every run. With 262144 the title used slots up to 737,854 (12,108 fallback hits above 500,000 in one run), so on the 1,000,000-capped NVIDIA heap the title seems to use slots that 524288 gives to dynamic tables. With 262144, dynamic tables were refused at times (up to 1,740 at load).

Full logs available if useful.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7358970014 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7358970014). Originally posted by [Nebekenezzer](https://github.com/Nebekenezzer) on 2026-12-02T21:13:24Z. --- Follow-up to my comment above (RTX 4070 12 GB, driver 621.40, Ryzen 7 7700, 32 GB). **`LEONIDA_D3D12_BACKGROUND=0` stopped the device-removed crashes for me**, confirming what @valenciana-nc found. Their other set (allocator trim + commit floor) did not stop it here. Build: main source zip downloaded 2026-12-02 ~16:30Z (before #3172), diag + dlss. Series S, DLSS Quality 720->1080, DLSS FG 2x, fullscreen, `-PrecompileAll`. Developer Mode had to be turned ON first; the log then shows `the host's Build: main source zip downloaded 2026-12-02 ~16:30Z (before #3172), diag + dlss. Series S, DLSS Quality 720->1080, DLSS FG 2x, fullscreen, `-PrecompileAll`. Developer Mode had to be turned ON first; the log then shows `the host's background shader work is switched off (LEONIDA_D3D12_BACKGROUND=0) ok=true`. Runs today, one change at a time: | Log | Change | Result | |---|---|---| | play-1202-092303 | none (pipeline library rebuilt clean, drawn-with pipelines only, 364 MB) | 0x887A0005 after ~15 min, driving | | play-1202-094345 | `LEONIDA_DYNAMIC_SLOTS=262144` | no crash in 31 min, but mostly on a boat | | play-1202-102501 | `LEONIDA_DYNAMIC_SLOTS=262144` | 0x887A0005 after ~6 min on the highway | | play-1202-103226 | `LEONIDA_D3D12_BACKGROUND=0` | **no crash, 33 min**: high-speed highway + downtown for the first time, 5,846 first binds | | play-1202-110737 | `LEONIDA_D3D12_BACKGROUND=0` | **no crash, 1 h 36 min**: the whole Mattia mission (crashed there yesterday) into chapter 2, 7,596 first binds | | play-1202-125216 | `LEONIDA_ALLOCATOR_TRIM=1 LEONIDA_ALLOCATOR_TRIM_S=15 LEONIDA_COMMIT_FLOOR=1` (background work left on) | 0x887A0005 after ~6.5 min, driving, as I answered the in-game phone; a pipeline-library make was running at that moment | Before the fix, every crash came while driving, during a steady stream of first-time pipeline binds (~30 per 10 s), with no hang, no page fault, empty DRED and no TDR event. That fits the driver's background recompiles being involved. It also fits my earlier result: with `LEONIDA_D3D12_DEBUG=1` (slower) it never crashed in 1 h. Ruled out today: a clean pipeline library (drawn-with only, per the new warm.rs), the dynamic-slot change, and the allocator-trim/commit-floor set. **Cost of the fix: noticeably more stutter, which I saw in play, especially in chapter 2.** Streamline "Frame rate over 100ms" warnings: ~2-3/min in the crash runs, ~9/min in the 33-min run. In the 1 h 36 min run: under 3/min for the first 30 min, then 50-60/min from ~35 min to the end, mostly at a steady ~1-second beat. I can't tell yet whether that comes from chapter 2 or builds up over time with the background work off. Median rendered fps 26-28 against ~31 before. A world-only mode (as in #2847) might keep the fix with less of this. Side observation, not the crash cause: with the launcher's `LEONIDA_DYNAMIC_SLOTS=524288`, the "found by the fallback" slot warnings top out at exactly 499,999 every run. With 262144 the title used slots up to 737,854 (12,108 fallback hits above 500,000 in one run), so on the 1,000,000-capped NVIDIA heap the title seems to use slots that 524288 gives to dynamic tables. With 262144, dynamic tables were refused at times (up to 1,740 at load). Full logs available if useful.
OtavMacedo commented 2026-12-03 06:31:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by OtavMacedo on 2026-12-03T06:31:00Z.


Data point on this device loss from a desktop 8 GB / 16 GB PC with @valenciana-nc's Series S recipe. No loss in 4 of 4 runs, but standing, not walking, so this does not test the walking case.

PC NVIDIA GeForce RTX 3070 8 GB desktop (budget about 7.2 GB), driver 621.24, Ryzen 7 5700X, 16 GB RAM, Windows 11, 24 GB fixed page file (commit limit 40,882 MB)
Code main 516c9eaab + #3258, diagnostics build with DLSS
Start the game gate, -SeriesS -Resolution 720 -NoDlss -NoFrameGen, the same save every start, LEONIDA_D3D12_BACKGROUND / ALLOCATOR_TRIM / COMMIT_FLOOR not set (launcher defaults)
Save in the prison prologue. The gate driver was meant to walk in one run, but the title held the player and it never got control there, so all four runs are standing

MEASURED (n=4)

Run In the world End Over the video-memory budget Median / p5 fps Private peak Least commit left
1 (cold pipelines) 601 s target 15.6 s 21.88 / 14.74 20,529 MB 7,961 MB
2 482 s the gate's 60 s video-memory stop 102.2 s 22.97 / 11.44 20,690 MB 7,715 MB
3 (video-memory stop off) 605 s target, PASS 0 s 23.69 / 14.00 20,747 MB 7,590 MB
4 (video-memory stop off) 902 s target, PASS 785.7 s (152 of 172 samples, at most 90 MB over) 22.61 / 11.48 21,269 MB 7,024 MB
  • No run lost the device: every exit was clean (0x0), with no 0x887A0005 or device-removed line in any log. That is 2,590 s in the world in total, each run past the 4.0 and 4.8 min of the two standing base losses above.
  • Over budget is not enough here: run 4 spent most of 15 minutes up to 90 MB over the budget and held, at a steady 22–23 fps.
  • One difference from the laptop runs: the commit. There the system commit sat at or near its limit, with 0–0.6 GB of RAM free. Here every run kept 7.0–8.0 GB of commit left at its tightest, with the process at about 21 GB private. That fits the commit or driver-allocation lead more than card memory. ASSUMED: this is one PC and a different scene, so it is not a cause.

Caveats:

  • Standing in the prologue, not the walking loop in the world that lost the device in 4 of the 6 laptop runs.
  • Desktop card vs laptop, and driver 621.24 vs 621.47.
  • Window input checked: none in runs 2–4. Run 1 had a minute of it after its first 9 minutes.

Next: walking runs in the open world on this PC, once I have a save there, and then the same with ALLOCATOR_TRIM and D3D12_BACKGROUND=0 (Developer mode is on here now) if the base loses the device.

Numbers recomputed from summary.json / memory.csv / the logs by a separate agent before posting.

AI-assisted: yes (Claude Code, Claude Opus 5.5; recomputation by a separate Claude Opus 5.5 agent).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7369922781 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7369922781). Originally posted by [OtavMacedo](https://github.com/OtavMacedo) on 2026-12-03T06:31:00Z. --- Data point on this device loss from a **desktop** 8 GB / 16 GB PC with @valenciana-nc's Series S recipe. **No loss in 4 of 4 runs, but standing, not walking**, so this does not test the walking case. | | | |---|---| | PC | NVIDIA GeForce RTX 3070 8 GB desktop (budget about 7.2 GB), driver 621.24, Ryzen 7 5700X, 16 GB RAM, Windows 11, 24 GB fixed page file (commit limit 40,882 MB) | | Code | `main` `516c9eaab` + #3258, diagnostics build with DLSS | | Start | the game gate, `-SeriesS -Resolution 720 -NoDlss -NoFrameGen`, the same save every start, `LEONIDA_D3D12_BACKGROUND` / `ALLOCATOR_TRIM` / `COMMIT_FLOOR` **not set** (launcher defaults) | | Save | in the prison prologue. The gate driver was meant to walk in one run, but the title held the player and it never got control there, so all four runs are standing | **MEASURED (n=4)** | Run | In the world | End | Over the video-memory budget | Median / p5 fps | Private peak | Least commit left | |---|---|---|---|---|---|---| | 1 (cold pipelines) | 601 s | target | 15.6 s | 21.88 / 14.74 | 20,529 MB | 7,961 MB | | 2 | 482 s | the gate's 60 s video-memory stop | 102.2 s | 22.97 / 11.44 | 20,690 MB | 7,715 MB | | 3 (video-memory stop off) | 605 s | target, PASS | 0 s | 23.69 / 14.00 | 20,747 MB | 7,590 MB | | 4 (video-memory stop off) | 902 s | target, PASS | 785.7 s (152 of 172 samples, at most 90 MB over) | 22.61 / 11.48 | 21,269 MB | 7,024 MB | - No run lost the device: every exit was clean (0x0), with no 0x887A0005 or device-removed line in any log. That is 2,590 s in the world in total, each run past the 4.0 and 4.8 min of the two standing base losses above. - **Over budget is not enough here:** run 4 spent most of 15 minutes up to 90 MB over the budget and held, at a steady 22–23 fps. - **One difference from the laptop runs:** the commit. There the system commit sat at or near its limit, with 0–0.6 GB of RAM free. Here every run kept **7.0–8.0 GB of commit left** at its tightest, with the process at about 21 GB private. That fits the commit or driver-allocation lead more than card memory. **ASSUMED:** this is one PC and a different scene, so it is not a cause. **Caveats:** - Standing in the prologue, not the walking loop in the world that lost the device in 4 of the 6 laptop runs. - Desktop card vs laptop, and driver 621.24 vs 621.47. - Window input checked: none in runs 2–4. Run 1 had a minute of it after its first 9 minutes. **Next:** walking runs in the open world on this PC, once I have a save there, and then the same with `ALLOCATOR_TRIM` and `D3D12_BACKGROUND=0` (Developer mode is on here now) if the base loses the device. Numbers recomputed from `summary.json` / `memory.csv` / the logs by a separate agent before posting. AI-assisted: yes (Claude Code, Claude Opus 5.5; recomputation by a separate Claude Opus 5.5 agent).
OtavMacedo commented 2026-12-03 06:31:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by OtavMacedo on 2026-12-03T06:31:24Z.


CORRECTION to my comment above (https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7369922781), first caveat:

  • Wrong: "the walking loop in the world that lost the device in 4 of the 6 laptop runs."
  • Right: in the laptop table above, 3 of the 4 walking runs without either switch lost the device (8.5, 5.2 and 3.7 min; the 3.7 min one with the headroom settings). The fourth, with a 35 GB page file, ran 25 min with no loss. The two standing runs lost it at 4.0 and 4.8 min (2 of 2). "5 of 6" in that comment counts walking and standing together.
  • Cause: I mixed the overall count with the walking subset.
  • Nothing else in my comment changes. Its runs here were standing, so the right comparison is with the 2 of 2 standing losses.

AI-assisted: yes (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7369930327 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7369930327). Originally posted by [OtavMacedo](https://github.com/OtavMacedo) on 2026-12-03T06:31:24Z. --- CORRECTION to my comment above (https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7369922781), first caveat: - Wrong: "the walking loop in the world that lost the device in 4 of the 6 laptop runs." - Right: in the laptop table above, **3 of the 4 walking runs** without either switch lost the device (8.5, 5.2 and 3.7 min; the 3.7 min one with the headroom settings). The fourth, with a 35 GB page file, ran 25 min with no loss. The two standing runs lost it at 4.0 and 4.8 min (2 of 2). "5 of 6" in that comment counts walking and standing together. - Cause: I mixed the overall count with the walking subset. - Nothing else in my comment changes. Its runs here were standing, so the right comparison is with the 2 of 2 standing losses. AI-assisted: yes (Claude Code, Claude Opus 5.5).
OtavMacedo commented 2026-12-03 09:50:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by OtavMacedo on 2026-12-03T09:50:52Z.


Follow-up from the same 8 GB / 16 GB desktop (RTX 3070, 621.24): an in-game ABBA of LEONIDA_ALLOCATOR_TRIM=0 against 1, 4 pairs, Series X -Resolution 1080, standing, prologue save. Full RUN block: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7374343274

  • The switch acted: about 9,000 host-list and 8,000 prelude allocators taken anew per 300 s run.
  • Private bytes did not fall. B−A was +418 MB, 95 % [−639, +1,474], and B was higher in 4 of 4 pairs.
  • No clear frame-time difference: +0.10 ms, 95 % [−4.64, +4.85].
  • No device loss in either arm (0 of 11 runs).

So, standing on this desktop, I can't see the trim help memory or frame rate. That doesn't contradict @valenciana-nc's walking result (5 of 5 held with it), because nothing was lost here to begin with. The walking repro waits for an open-world save on this machine. MEASURED, n=4 pairs.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7374353866 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7374353866). Originally posted by [OtavMacedo](https://github.com/OtavMacedo) on 2026-12-03T09:50:52Z. --- Follow-up from the same 8 GB / 16 GB desktop (RTX 3070, 621.24): an in-game ABBA of `LEONIDA_ALLOCATOR_TRIM=0` against `1`, 4 pairs, Series X `-Resolution 1080`, **standing**, prologue save. Full RUN block: https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7374343274 - **The switch acted:** about 9,000 host-list and 8,000 prelude allocators taken anew per 300 s run. - **Private bytes did not fall.** B−A was +418 MB, 95 % [−639, +1,474], and B was higher in 4 of 4 pairs. - **No clear frame-time difference:** +0.10 ms, 95 % [−4.64, +4.85]. - **No device loss in either arm** (0 of 11 runs). So, standing on this desktop, I can't see the trim help memory or frame rate. That doesn't contradict @valenciana-nc's walking result (5 of 5 held with it), because nothing was lost here to begin with. The walking repro waits for an open-world save on this machine. MEASURED, n=4 pairs. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-12-03 14:21:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T14:21:24Z.


Counts from the public channels on 2026-12-03: device removed (0x887A0005, or code 2289696773) reported 9 times, NVIDIA and AMD (an RX 6750 XT also got 0x887A0007 with "no host list for a state prelude"). Players report that LEONIDA_RT_RESOLVE=0 plus LEONIDA_ACTIVATE_RAYS=0 stops it (one ran 56 min), at the cost of dark car lights at night. One log shows a burst of "pipeline library ... did not load it (0x80070057)" in the 100 ms before the loss. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7381308249 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7381308249). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T14:21:24Z. --- Counts from the public channels on 2026-12-03: device removed (0x887A0005, or code 2289696773) reported 9 times, NVIDIA and AMD (an RX 6750 XT also got 0x887A0007 with "no host list for a state prelude"). Players report that `LEONIDA_RT_RESOLVE=0` plus `LEONIDA_ACTIVATE_RAYS=0` stops it (one ran 56 min), at the cost of dark car lights at night. One log shows a burst of "pipeline library ... did not load it (0x80070057)" in the 100 ms before the loss. AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
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.

Reference
ProjectLeonida/mandy#2821
No description provided.