Device removed (0x887A0005) after 7–18 min of play, right after a masked-twin pipeline is made (RTX 4070 SUPER) #3068

Open
opened 2026-12-02 08:19:12 +00:00 by KOZ-7 · 7 comments
KOZ-7 commented 2026-12-02 08:19:12 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by KOZ-7 on 2026-12-02T08:19:12Z.


What happens

The GPU hangs for about 1.8 s and Windows removes the device: "The GPU device instance has been suspended ... (0x887A0005)", Streamline "We've lost the Device". It happened twice, after ~18 min and ~7 min of free roam (no mission, not saving).

Commit

main, downloaded 2026-12-02 about 06:16 UTC (mandy-main.zip), runtime built by scripts\play-d3d12.ps1 (default build).

System

Windows 11, NVIDIA driver 621.24, hardware-accelerated GPU scheduling on GPU: NVIDIA GeForce RTX 4070 SUPER 12 GB CPU: Intel Core i5-12400F, RAM: 32 GB NVIDIA App shader cache: Unlimited

Where

Finding the game (--find)

Command and steps

scripts\play-d3d12.ps1 -Game "C:\Games\GTA 6\GTA6\GTA6" -Log, frame generation on (LEONIDA_FRAME_GEN=2), DLSS, first run with LEONIDA_FG_LIMIT_FPS=28 (default), second with -More @{LEONIDA_FG_LIMIT_FPS='0'}. Load a save, walk/drive around the starting area. Not reproducible on demand; happened 2 of 2 longer sessions.
Before the second crash I turned off the NVIDIA App's global DLSS override (it was loading the OTA "dlss_g" override in the first log); the second crash happened without it.
What both crashes have in common
Card memory was not short: budget 11009 MB, in use ~9110 MB.
The last line before the gap is a new masked mesh pipeline (LEONIDA_SAMPLE_MASK twin), then ~20–25 ms later the device is gone:
crash 1: host mesh pipeline shaders=[mesh 66d4de52d86d04a4, pixel c58582327ffdada0 masked] at 06:14:01.183, device lost 06:14:01.20
crash 2: host mesh pipeline shaders=[mesh fb5e4cf7091f9525, pixel 2acfe7729b8916c1 masked] at 06:27:11.483, device lost 06:27:11.508
Masked twins are ~1 in 6 of the pipelines made in these sessions (309 of 1821 and 300 of 1871), so this may be chance, but it is the same both times.
Earlier in both sessions, masked pipelines are refused by the pipeline library: "the library did not load it: The parameter is incorrect (0x80070057)".
Both crashes end with the host device went while textures picked by index were made ready; last: Some(Placed(false, ....
"device-removed data: none" (DRED was not on in this build).

Output

The lines around each crash are attached (ANSI colours removed, nothing else changed):
`play-1202-085549-crash-excerpt.txt` and `play-1202-092018-crash-excerpt.txt`.
Full logs (33 MB and 17 MB) are available if you want them.
Next test on my side
A session with `-More @{LEONIDA_SAMPLE_MASK='0'}` to see whether the crashes stop.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6740232516 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068). Originally posted by [KOZ-7](https://github.com/KOZ-7) on 2026-12-02T08:19:12Z. --- ### What happens The GPU hangs for about 1.8 s and Windows removes the device: "The GPU device instance has been suspended ... (0x887A0005)", Streamline "We've lost the Device". It happened twice, after ~18 min and ~7 min of free roam (no mission, not saving). ### Commit main, downloaded 2026-12-02 about 06:16 UTC (mandy-main.zip), runtime built by scripts\play-d3d12.ps1 (default build). ### System Windows 11, NVIDIA driver 621.24, hardware-accelerated GPU scheduling on GPU: NVIDIA GeForce RTX 4070 SUPER 12 GB CPU: Intel Core i5-12400F, RAM: 32 GB NVIDIA App shader cache: Unlimited ### Where Finding the game (--find) ### Command and steps `scripts\play-d3d12.ps1 -Game "C:\Games\GTA 6\GTA6\GTA6" -Log`, frame generation on (LEONIDA_FRAME_GEN=2), DLSS, first run with LEONIDA_FG_LIMIT_FPS=28 (default), second with -More @{LEONIDA_FG_LIMIT_FPS='0'}. Load a save, walk/drive around the starting area. Not reproducible on demand; happened 2 of 2 longer sessions. Before the second crash I turned off the NVIDIA App's global DLSS override (it was loading the OTA "dlss_g" override in the first log); the second crash happened without it. What both crashes have in common Card memory was not short: budget 11009 MB, in use ~9110 MB. The last line before the gap is a new masked mesh pipeline (LEONIDA_SAMPLE_MASK twin), then ~20–25 ms later the device is gone: crash 1: `host mesh pipeline shaders=[mesh 66d4de52d86d04a4, pixel c58582327ffdada0 masked]` at 06:14:01.183, device lost 06:14:01.20 crash 2: `host mesh pipeline shaders=[mesh fb5e4cf7091f9525, pixel 2acfe7729b8916c1 masked]` at 06:27:11.483, device lost 06:27:11.508 Masked twins are ~1 in 6 of the pipelines made in these sessions (309 of 1821 and 300 of 1871), so this may be chance, but it is the same both times. Earlier in both sessions, masked pipelines are refused by the pipeline library: "the library did not load it: The parameter is incorrect (0x80070057)". Both crashes end with `the host device went while textures picked by index were made ready; last: Some(Placed(false, ...`. "device-removed data: none" (DRED was not on in this build). ### Output ```text The lines around each crash are attached (ANSI colours removed, nothing else changed): `play-1202-085549-crash-excerpt.txt` and `play-1202-092018-crash-excerpt.txt`. Full logs (33 MB and 17 MB) are available if you want them. Next test on my side A session with `-More @{LEONIDA_SAMPLE_MASK='0'}` to see whether the crashes stop. ```
lixonik commented 2026-12-02 09:09:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T09:09:11Z.


finding: source trace of the three log signatures in this report (0x80070057, draw.rs texture-ready poll, and host mesh pipeline ... masked right before removal).

  1. the library did not load it: The parameter is incorrect (0x80070057) is a normal cache miss, not a corruption/refusal error.
    In d3d12/crates/leonida-gpu/src/pipeline/library.rs (pipeline()), ID3D12PipelineLibrary1::LoadPipeline returns E_INVALIDARG (0x80070057) whenever a pipeline name is not yet stored in the library. Masked twins are not precompiled by leonida warm and are built lazily on first masked draw, so a first-seen twin normally misses with 0x80070057, compiles via CreatePipelineState, and is then stored with StorePipeline. That line is recorded into the host::trail ring buffer and only becomes visible when device removal dumps the trail.

  2. the host device went while textures picked by index were made ready; last: Some(Placed(false, ... (d3d12/crates/leonida-gpu/src/draw.rs) is just the first CPU poll site calling GetDeviceRemovedReason() during submission preparation after an asynchronous GPU removal -- it does not imply that specific placed texture caused the hang.

  3. Why a newly created masked mesh pipeline appears ~20-25 ms before device lost:

    • Since commit 65f372c08, d3d12/crates/leonida-gpu/src/pipeline/make.rs (masked_for()) compiles a masked twin synchronously on the recording thread (p.make()) on its first draw rather than queuing it to background workers.
    • Inside HostPipeline::new (d3d12/crates/leonida-gpu/src/pipeline/host.rs), tracing::info!(?shaders, "host mesh pipeline") is logged right after the base mesh PSO is created and immediately before the optional amplified mesh PSO (mesh_pipeline(..., amplify: Some(stage))) compiles (which typically takes ~15-25 ms on a miss).
    • Static check of the masked pixel-shader lowering (d3d12/crates/leonida-shader/src/emit/lower.rs, pixel_mask()) and root-signature binding (USER_PIXEL_MASK as a PS 32-bit root constant in pipeline/host.rs and draw.rs) shows EARLY_DEPTH_STENCIL is cleared before dx.op.discard, SV_Position is matched to position_row(&ms.dxil) (OSG1), and no obvious static DXIL/root-signature mismatch stood out.

That leaves two main possibilities to separate empirically:

  • (A) Executing the newly compiled masked mesh draw itself (or its interaction with DLSS Frame Generation) triggers a GPU fault/hang shortly after submission, or
  • (B) An unrelated async GPU hang or NVIDIA driver internal removal (0x887A0005 under LEONIDA_FRAME_GEN=2 + HAGS on driver 621.24) completes while masked_for() is compiling on the recording thread and is noticed at the next draw.rs poll.

Helpful next data points

  • Could you attach the two excerpt files (play-1202-085549-crash-excerpt.txt and play-1202-092018-crash-excerpt.txt -- they were named in the text block but not attached as links), especially the full when the host device went: block (submissions started/finished, active pipeline library calls, and the last trail timestamps)?
  • The default scripts\play-d3d12.ps1 build (d3d12/scripts/build-nvidia.ps1) already compiles with --features diagnostics, so DRED can be enabled directly without rebuilding via:
    • -More @{LEONIDA_D3D12_DRED='light'} (breadcrumbs + faulting address + bound pipelines, low overhead), or
    • -More @{LEONIDA_D3D12_DRED='faults'} (faulting address only, negligible overhead).
  • Alongside your planned -More @{LEONIDA_SAMPLE_MASK='0'} test, if it reproduces with LEONIDA_D3D12_DRED='light', the breadcrumb list + faulting address will immediately tell us whether the GPU stopped inside the masked mesh draw or an unrelated pass (and testing -NoFrameGen if it still occurs with LEONIDA_SAMPLE_MASK='0' will isolate Streamline FG).

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7340455452 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7340455452). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T09:09:11Z. --- finding: source trace of the three log signatures in this report (`0x80070057`, `draw.rs` texture-ready poll, and `host mesh pipeline ... masked` right before removal). 1. **`the library did not load it: The parameter is incorrect (0x80070057)` is a normal cache miss, not a corruption/refusal error.** In `d3d12/crates/leonida-gpu/src/pipeline/library.rs` (`pipeline()`), `ID3D12PipelineLibrary1::LoadPipeline` returns `E_INVALIDARG` (`0x80070057`) whenever a pipeline name is not yet stored in the library. Masked twins are not precompiled by `leonida warm` and are built lazily on first masked draw, so a first-seen twin normally misses with `0x80070057`, compiles via `CreatePipelineState`, and is then stored with `StorePipeline`. That line is recorded into the `host::trail` ring buffer and only becomes visible when device removal dumps the trail. 2. **`the host device went while textures picked by index were made ready; last: Some(Placed(false, ...`** (`d3d12/crates/leonida-gpu/src/draw.rs`) is just the first CPU poll site calling `GetDeviceRemovedReason()` during submission preparation after an asynchronous GPU removal -- it does not imply that specific placed texture caused the hang. 3. **Why a newly created masked mesh pipeline appears ~20-25 ms before device lost:** - Since commit `65f372c08`, `d3d12/crates/leonida-gpu/src/pipeline/make.rs` (`masked_for()`) compiles a masked twin synchronously on the recording thread (`p.make()`) on its first draw rather than queuing it to background workers. - Inside `HostPipeline::new` (`d3d12/crates/leonida-gpu/src/pipeline/host.rs`), `tracing::info!(?shaders, "host mesh pipeline")` is logged right after the base mesh PSO is created and immediately before the optional amplified mesh PSO (`mesh_pipeline(..., amplify: Some(stage))`) compiles (which typically takes ~15-25 ms on a miss). - Static check of the masked pixel-shader lowering (`d3d12/crates/leonida-shader/src/emit/lower.rs`, `pixel_mask()`) and root-signature binding (`USER_PIXEL_MASK` as a PS 32-bit root constant in `pipeline/host.rs` and `draw.rs`) shows `EARLY_DEPTH_STENCIL` is cleared before `dx.op.discard`, `SV_Position` is matched to `position_row(&ms.dxil)` (`OSG1`), and no obvious static DXIL/root-signature mismatch stood out. That leaves two main possibilities to separate empirically: - **(A)** Executing the newly compiled masked mesh draw itself (or its interaction with DLSS Frame Generation) triggers a GPU fault/hang shortly after submission, or - **(B)** An unrelated async GPU hang or NVIDIA driver internal removal (`0x887A0005` under `LEONIDA_FRAME_GEN=2` + HAGS on driver `621.24`) completes while `masked_for()` is compiling on the recording thread and is noticed at the next `draw.rs` poll. ### Helpful next data points - Could you attach the two excerpt files (`play-1202-085549-crash-excerpt.txt` and `play-1202-092018-crash-excerpt.txt` -- they were named in the text block but not attached as links), especially the full `when the host device went:` block (`submissions started/finished`, active pipeline library calls, and the last trail timestamps)? - The default `scripts\play-d3d12.ps1` build (`d3d12/scripts/build-nvidia.ps1`) already compiles with `--features diagnostics`, so DRED can be enabled directly without rebuilding via: - `-More @{LEONIDA_D3D12_DRED='light'}` (breadcrumbs + faulting address + bound pipelines, low overhead), or - `-More @{LEONIDA_D3D12_DRED='faults'}` (faulting address only, negligible overhead). - Alongside your planned `-More @{LEONIDA_SAMPLE_MASK='0'}` test, if it reproduces with `LEONIDA_D3D12_DRED='light'`, the breadcrumb list + faulting address will immediately tell us whether the GPU stopped inside the masked mesh draw or an unrelated pass (and testing `-NoFrameGen` if it still occurs with `LEONIDA_SAMPLE_MASK='0'` will isolate Streamline FG). AI-assisted: yes (Antigravity).
KOZ-7 commented 2026-12-02 10:39:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by KOZ-7 on 2026-12-02T10:39:55Z.


Thanks for tracing it. Point 1 is my mistake: I read the 0x80070057 line as a refusal; noted that it is a normal first-time miss.
The excerpts are attached now, plus the full block you asked for:
play-1202-085549-crash-excerpt.txt and play-1202-092018-crash-excerpt.txt: the lines around each removal.
play-1202-085549-device-went-block.txt: the whole when the host device went: block of the first crash (submissions started 267509 / finished 267507, pipeline library: no call running, and the last 96 trail entries). Its newest entry, 10.4 ms before, is made [mesh 66d4de52d86d04a4, pixel c58582327ffdada0 masked] in 673.0 ms.
play-1202-092018-end-of-log.txt: the last 60 lines of the second crash. That run printed no when the host device went: block.
Next I am running -More @{LEONIDA_SAMPLE_MASK='0'; LEONIDA_D3D12_DRED='light'; LEONIDA_FG_LIMIT_FPS='0'} with -Log, and will post the DRED breadcrumbs / faulting address if it crashes. If it still crashes with the mask off, the next run adds -NoFrameGen.

play-1202-085549-crash-excerpt.txt
play-1202-085549-device-went-block.txt
play-1202-092018-crash-excerpt.txt
play-1202-092018-end-of-log.txt

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7342802106 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7342802106). Originally posted by [KOZ-7](https://github.com/KOZ-7) on 2026-12-02T10:39:55Z. --- Thanks for tracing it. Point 1 is my mistake: I read the 0x80070057 line as a refusal; noted that it is a normal first-time miss. The excerpts are attached now, plus the full block you asked for: `play-1202-085549-crash-excerpt.txt` and `play-1202-092018-crash-excerpt.txt`: the lines around each removal. `play-1202-085549-device-went-block.txt`: the whole `when the host device went:` block of the first crash (submissions started 267509 / finished 267507, pipeline library: no call running, and the last 96 trail entries). Its newest entry, 10.4 ms before, is `made [mesh 66d4de52d86d04a4, pixel c58582327ffdada0 masked] in 673.0 ms`. `play-1202-092018-end-of-log.txt`: the last 60 lines of the second crash. That run printed no `when the host device went:` block. Next I am running `-More @{LEONIDA_SAMPLE_MASK='0'; LEONIDA_D3D12_DRED='light'; LEONIDA_FG_LIMIT_FPS='0'}` with `-Log`, and will post the DRED breadcrumbs / faulting address if it crashes. If it still crashes with the mask off, the next run adds `-NoFrameGen`. [play-1202-085549-crash-excerpt.txt](https://github.com/user-attachments/files/35737788/play-1202-085549-crash-excerpt.txt) [play-1202-085549-device-went-block.txt](https://github.com/user-attachments/files/35737790/play-1202-085549-device-went-block.txt) [play-1202-092018-crash-excerpt.txt](https://github.com/user-attachments/files/35737791/play-1202-092018-crash-excerpt.txt) [play-1202-092018-end-of-log.txt](https://github.com/user-attachments/files/35737789/play-1202-092018-end-of-log.txt)
lixonik commented 2026-12-02 11:02:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T11:02:06Z.


Thanks for uploading all four excerpts -- play-1202-085549-device-went-block.txt and play-1202-092018-crash-excerpt.txt clarify three important details:

  1. Pipeline library mapping is intact (not the zero-page bug): 0 of the 294088 pages looked at read as zeros now, pipeline library: no call running, and the file was never replaced during the run.
  2. The ~1.8 s timestamp jump in crash 1 (06:14:01.202 -> 06:14:03.017) is CPU time inside removal_context() scanning the 1.2 GB mapped pipeline library, not a GPU hang after 06:14:01.202.
  3. Both crashes happen 10-25 ms after a slow synchronous masked_for() mesh pipeline compile completes, coinciding with Streamline's >100 ms frame-timer reset:
    • Crash 1: c58582327ffdada0 (masked=true) translated at 06:14:00.509, host mesh pipeline finished 673.0 ms later at 06:14:01.183 (thread 22868), and 0x887A0005 was hit 19 ms later at 06:14:01.202 (with 2 submissions in flight: started 267509 finished 267507) right beside dlfgPresent.cpp:1323 Frame rate over 100.00ms, reseting frame timer.
    • Crash 2: 2acfe7729b8916c1 (masked=true, samplers=2) translated at 06:27:09.613, host mesh pipeline finished ~1.87 s later at 06:27:11.483, and 0x887A0005 + dlfgPresent.cpp:1323 Frame rate over 100.00ms, reseting frame timer hit 25 ms later at 06:27:11.508.

Your in-progress LEONIDA_SAMPLE_MASK='0' + LEONIDA_D3D12_DRED='light' test (and -NoFrameGen if it still reproduces) will cleanly separate whether the fault is in the masked mesh draw itself, in the synchronous 673 ms / 1.87 s stall colliding with Streamline FG, or in an unrelated pass.

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7343329769 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7343329769). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T11:02:06Z. --- Thanks for uploading all four excerpts -- `play-1202-085549-device-went-block.txt` and `play-1202-092018-crash-excerpt.txt` clarify three important details: 1. **Pipeline library mapping is intact (not the zero-page bug):** `0 of the 294088 pages looked at read as zeros now`, `pipeline library: no call running`, and the file was never replaced during the run. 2. **The ~1.8 s timestamp jump in crash 1 (`06:14:01.202` -> `06:14:03.017`) is CPU time inside `removal_context()` scanning the 1.2 GB mapped pipeline library**, not a GPU hang after `06:14:01.202`. 3. **Both crashes happen 10-25 ms after a slow synchronous `masked_for()` mesh pipeline compile completes, coinciding with Streamline's `>100 ms` frame-timer reset:** - **Crash 1:** `c58582327ffdada0` (`masked=true`) translated at `06:14:00.509`, `host mesh pipeline` finished **673.0 ms** later at `06:14:01.183` (thread `22868`), and `0x887A0005` was hit **19 ms** later at `06:14:01.202` (with 2 submissions in flight: `started 267509 finished 267507`) right beside `dlfgPresent.cpp:1323 Frame rate over 100.00ms, reseting frame timer`. - **Crash 2:** `2acfe7729b8916c1` (`masked=true`, `samplers=2`) translated at `06:27:09.613`, `host mesh pipeline` finished **~1.87 s** later at `06:27:11.483`, and `0x887A0005` + `dlfgPresent.cpp:1323 Frame rate over 100.00ms, reseting frame timer` hit **25 ms** later at `06:27:11.508`. Your in-progress `LEONIDA_SAMPLE_MASK='0'` + `LEONIDA_D3D12_DRED='light'` test (and `-NoFrameGen` if it still reproduces) will cleanly separate whether the fault is in the masked mesh draw itself, in the synchronous `673 ms / 1.87 s` stall colliding with Streamline FG, or in an unrelated pass. AI-assisted: yes (Antigravity).
KOZ-7 commented 2026-12-02 11:49:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by KOZ-7 on 2026-12-02T11:49:01Z.


Thanks, that makes sense: a 673 ms / 1.87 s synchronous masked compile, then Streamline's >100 ms frame-timer reset, then the removal 19–25 ms later.

I'm starting the run with -More @{LEONIDA_SAMPLE_MASK='0'; LEONIDA_D3D12_DRED='light'; LEONIDA_FG_LIMIT_FPS='0'} and -Log now, and will play 20–30 minutes without the F1 restart. I'll post the result either way, with the DRED breadcrumbs and faulting address if it crashes, then a -NoFrameGen run if needed.

One question: if the stall turns out to be the trigger, could masked twins be compiled on the background workers (drawing the unmasked pipeline, or skipping the draw, until the twin is ready), like other pipelines that are not ready yet?

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7344446720 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7344446720). Originally posted by [KOZ-7](https://github.com/KOZ-7) on 2026-12-02T11:49:01Z. --- Thanks, that makes sense: a 673 ms / 1.87 s synchronous masked compile, then Streamline's >100 ms frame-timer reset, then the removal 19–25 ms later. I'm starting the run with -More @{LEONIDA_SAMPLE_MASK='0'; LEONIDA_D3D12_DRED='light'; LEONIDA_FG_LIMIT_FPS='0'} and -Log now, and will play 20–30 minutes without the F1 restart. I'll post the result either way, with the DRED breadcrumbs and faulting address if it crashes, then a -NoFrameGen run if needed. One question: if the stall turns out to be the trigger, could masked twins be compiled on the background workers (drawing the unmasked pipeline, or skipping the draw, until the twin is ready), like other pipelines that are not ready yet?
ninjalegxd commented 2026-12-02 16:11:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by ninjalegxd on 2026-12-02T16:11:35Z.


Ran LEONIDA_SAMPLE_MASK='0' + LEONIDA_D3D12_DRED='light' (-SeriesS -NoFrameGen), RTX 3090, driver 621.14:

  • 0 masked pipelines made in the run (confirmed in the log)
  • 24 min in the world (my longest so far; before: 3-20 min), median 23 fps
  • then device removed (0x887A0005) anyway
  • DRED: "breadcrumbs (done/count, list) []" - empty; 7 submissions in flight, preparing 2 lists
  • last pipeline made 660 ms before the removal: [mesh f607be37ee4fba77, pixel 8b24403f37708a44] (not masked)

So turning the masked twins off did not stop it here; it fits hypothesis B
(a hang noticed at the next poll), still right after a new pipeline. Log attached.

AI-assisted: Claude Opus 5.5 (Anthropic) helped analyze the logs and draft this comment.

play-1202-173853-trimmed.log
(trimmed: first 300 + last 8000 lines; the middle is 24 min of normal play)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351578675 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7351578675). Originally posted by [ninjalegxd](https://github.com/ninjalegxd) on 2026-12-02T16:11:35Z. --- Ran LEONIDA_SAMPLE_MASK='0' + LEONIDA_D3D12_DRED='light' (-SeriesS -NoFrameGen), RTX 3090, driver 621.14: - 0 masked pipelines made in the run (confirmed in the log) - 24 min in the world (my longest so far; before: 3-20 min), median 23 fps - then device removed (0x887A0005) anyway - DRED: "breadcrumbs (done/count, list) []" - empty; 7 submissions in flight, preparing 2 lists - last pipeline made 660 ms before the removal: [mesh f607be37ee4fba77, pixel 8b24403f37708a44] (not masked) So turning the masked twins off did not stop it here; it fits hypothesis B (a hang noticed at the next poll), still right after a new pipeline. Log attached. AI-assisted: Claude Opus 5.5 (Anthropic) helped analyze the logs and draft this comment. [play-1202-173853-trimmed.log](https://github.com/user-attachments/files/35752498/play-1202-173853-trimmed.log) (trimmed: first 300 + last 8000 lines; the middle is 24 min of normal play)
k1447266100-alt commented 2026-12-02 17:00:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by k1447266100-alt on 2026-12-02T17:00:01Z.


Same signature on an RTX 5080 (Windows 11): 3 sessions, 18–21 min, card only 57% busy

  • Build: mandy-main.zip downloaded 2026-12-02 ~05:52 UTC, built by scripts\play-d3d12.ps1 (diag).
  • System: Windows 11 Pro for Workstations 22631; RTX 5080 16 GB, driver 32.0.16.1074; Ryzen 7 9800X3D; 31.1 GB RAM; 3840×2160 display.
  • Run: Series X from the F1 menu, DLSS off, frame generation 2× (the first session 3×), 30 fps cap, precompile_all, VRAM and textures auto.
  • Result: three starts of free roam — 20.5, 18.2 and 21.0 minutes — all three ended in 0x887A0005. The spread says it is not on a fixed clock. LEONIDA_D3D12_DRED=faults was on in all three and still printed device-removed data; none.
  • The third session ran with LEONIDA_SUBMIT_SENDER=1 (the new default from #3076) and died at 21 min all the same, so the submit path is not what holds it.

It is not load pressure. The last per-frame line before the removal reads the card's clock per frame: nothing of ours queued 22.8 ms (the card about 57% busy by this count), 13.4 ms of that while the submitting thread ..., and no memory line rose.

The last second of the third log (Win32 messages are in the Chinese locale; 参数错误 = the parameter is incorrect):

16:33:56.884 host mesh pipeline shaders=[mesh a91e3fe6f391a0ce, pixel 00d00b004a894cbc masked]
16:33:56.901 shader translated stage="pixel" hash=55cf1a9737f7672f masked=true
16:33:56.920 host mesh pipeline shaders=[mesh 093c64546c55554e, pixel 55cf1a9737f7672f masked]   (made in 12.5 ms; "the library did not load it: 参数错误 (0x80070057)")
16:33:56.965 ERROR leonida_gpu::draw: the host device went while textures picked by index were made ready; last: Some(Placed(false, ...
16:33:57.300 ERROR leonida_gpu::host: device-removed data; none
16:33:57.301 ERROR leonida_gpu::host: relay: the fence reports the device removed; ... (0x887A0005)

The first session (frame generation 3×) died 460 ms after a burst of nine masked pipelines made on four threads (34536, 10200, 8056, 34228), the slowest taking 369.5 ms — the same shape as the 673 ms / 1.87 s stalls above, only shorter.

I have not run LEONIDA_SAMPLE_MASK=0 yet, and ninjalegxd has just reported that turning it off did not stop the removal, so this does not separate (A) from (B) either way. I can attach the trimmed excerpt (118 KB: the settings line plus the last 150 lines of each of the three crashes) and the full logs (41, 37 and 40 MB) if useful.

AI-assisted: yes (log lines pulled and timed with an assistant; the runs themselves were mine).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7352754673 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7352754673). Originally posted by [k1447266100-alt](https://github.com/k1447266100-alt) on 2026-12-02T17:00:01Z. --- **Same signature on an RTX 5080 (Windows 11): 3 sessions, 18–21 min, card only 57% busy** - Build: `mandy-main.zip` downloaded 2026-12-02 ~05:52 UTC, built by `scripts\play-d3d12.ps1` (diag). - System: Windows 11 Pro for Workstations 22631; RTX 5080 16 GB, driver 32.0.16.1074; Ryzen 7 9800X3D; 31.1 GB RAM; 3840×2160 display. - Run: Series X from the F1 menu, DLSS off, frame generation 2× (the first session 3×), 30 fps cap, `precompile_all`, VRAM and textures auto. - Result: three starts of free roam — 20.5, 18.2 and 21.0 minutes — all three ended in `0x887A0005`. The spread says it is not on a fixed clock. `LEONIDA_D3D12_DRED=faults` was on in all three and still printed `device-removed data; none`. - The third session ran with `LEONIDA_SUBMIT_SENDER=1` (the new default from #3076) and died at 21 min all the same, so the submit path is not what holds it. It is not load pressure. The last per-frame line before the removal reads `the card's clock per frame: nothing of ours queued 22.8 ms (the card about 57% busy by this count), 13.4 ms of that while the submitting thread ...`, and no memory line rose. The last second of the third log (Win32 messages are in the Chinese locale; `参数错误` = `the parameter is incorrect`): ```text 16:33:56.884 host mesh pipeline shaders=[mesh a91e3fe6f391a0ce, pixel 00d00b004a894cbc masked] 16:33:56.901 shader translated stage="pixel" hash=55cf1a9737f7672f masked=true 16:33:56.920 host mesh pipeline shaders=[mesh 093c64546c55554e, pixel 55cf1a9737f7672f masked] (made in 12.5 ms; "the library did not load it: 参数错误 (0x80070057)") 16:33:56.965 ERROR leonida_gpu::draw: the host device went while textures picked by index were made ready; last: Some(Placed(false, ... 16:33:57.300 ERROR leonida_gpu::host: device-removed data; none 16:33:57.301 ERROR leonida_gpu::host: relay: the fence reports the device removed; ... (0x887A0005) ``` The first session (frame generation 3×) died 460 ms after a burst of **nine** masked pipelines made on four threads (34536, 10200, 8056, 34228), the slowest taking 369.5 ms — the same shape as the 673 ms / 1.87 s stalls above, only shorter. I have not run `LEONIDA_SAMPLE_MASK=0` yet, and ninjalegxd has just reported that turning it off did not stop the removal, so this does not separate (A) from (B) either way. I can attach the trimmed excerpt (118 KB: the settings line plus the last 150 lines of each of the three crashes) and the full logs (41, 37 and 40 MB) if useful. AI-assisted: yes (log lines pulled and timed with an assistant; the runs themselves were mine).
MoonEyes commented 2026-12-03 16:15:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T16:15:15Z.


This was generated by AI during triage.

Triage Notes

What we've established so far:

  • The RTX 4070 SUPER report records two device removals shortly after long synchronous masked-pipeline builds, but that timing alone does not establish causation.
  • A separate RTX 3090 run with masked pipelines disabled still lost the device after 24 minutes, so the mask path is not a confirmed cause.
  • The issue author said they would run a 20–30 minute test with LEONIDA_SAMPLE_MASK=0 and DRED enabled; no result from that run is present.

What we still need from you (@KOZ-7):

  • Please post the result of that planned test (or its current equivalent on main): did the device fail, and if so what DRED/fault details were recorded? A concise text summary is enough; do not attach game files.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7384527555 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3068#issuecomment-7384527555). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T16:15:15Z. --- > *This was generated by AI during triage.* ## Triage Notes **What we've established so far:** - The RTX 4070 SUPER report records two device removals shortly after long synchronous masked-pipeline builds, but that timing alone does not establish causation. - A separate RTX 3090 run with masked pipelines disabled still lost the device after 24 minutes, so the mask path is not a confirmed cause. - The issue author said they would run a 20–30 minute test with `LEONIDA_SAMPLE_MASK=0` and DRED enabled; no result from that run is present. **What we still need from you (@KOZ-7):** - Please post the result of that planned test (or its current equivalent on `main`): did the device fail, and if so what DRED/fault details were recorded? A concise text summary is enough; do not attach game files.
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#3068
No description provided.