d3d12: Multi-second pipeline compile freezes followed by device suspended (0x887A0005) on RTX 3060 (Series S, DLSS Quality) #3255

Open
opened 2026-12-02 22:45:52 +00:00 by maleksn · 3 comments
maleksn commented 2026-12-02 22:45:52 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by maleksn on 2026-12-02T22:45:52Z.


What happens

Multi-second freezes during live pipeline creation (up to 4.88 s on compute pipelines), ending with host GPU failure: device removed: The GPU device instance has been suspended. (0x887A0005).

Commit

f3865cae8

System

Windows 11 Pro (10.0.26300.9974), Intel Core i5-12400F, 16 GB DDR4-3200 (+ 32 GB fixed pagefile on NVMe), NVIDIA GeForce RTX 3060 12 GB (Driver 621.47, Resizable BAR ON), Python 3.14.10, Rust 1.98.1 (built with diagnostics,dlss,mimalloc)

Where

pipelines

Command and steps

Command:
powershell -ExecutionPolicy Bypass -File "D:\GTA 6\mandy\scripts\play-d3d12.ps1" -Game "C:\Games\GTA6" -SeriesS -Dlss quality -PrecompileUsed -Log

Steps:

  1. Built d3d12 diag binary with DLSS and mimalloc from commit f3865cae8.
  2. Started the game with Series S + DLSS Quality (RT off, default Windows TDR values: TdrLevel/TdrDelay/TdrDdiDelay = default).
  3. Experienced repeated multi-second freezes and frame drops during gameplay as host pipelines compiled live (e.g., 3413 ms and 4883 ms on compute pipelines).
  4. After ~10 minutes, the game crashed with 0x887A0005 while compiling CS_RaytracingResolve_18a17e12_Wrapped (running for 4377.1 ms). Pagefile peak usage was only 5616 / 32768 MB (not an OOM).

play-1203-002258.log

Output

9600.5 ms before, thread 6412: pipeline library: loaded [mesh 51ac2cddc9a90c46] in 0.0 ms
  9591.7 ms before, thread 6412: pipeline library: made [mesh 444c40096b0c2048] in 0.1 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  9461.3 ms before, thread 11976: pipeline library: made [mesh babdb53af70114fe, pixel 423690bd02664d5b] in 633.2 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  9444.5 ms before, thread 10252: pipeline library: made [mesh 5611868d96681884, pixel fa296f2a382a55e2] in 341.5 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  8907.9 ms before, thread 11976: pipeline library: made [mesh 690b1a0a50bfcbe1, pixel 3ca1cad7fced9c24] in 543.3 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  8856.6 ms before, thread 9928: pipeline library: made [mesh 09a88636ff0d843c, pixel 6ef29f46456adf74] in 1237.8 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  8732.0 ms before, thread 10252: pipeline library: made [compute 1261271b20a35d1b] in 568.6 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  8441.7 ms before, thread 6412: pipeline library: made [mesh 559b5fad02b8b9a8, pixel bed1acf89bfed46a] in 405.0 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  8379.5 ms before, thread 11184: pipeline library: made [compute 96f043b62d77793b] in 338.6 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  6828.1 ms before, thread 7464: pipeline library: made [compute a31407f77c16d796] in 3413.2 ms (the library did not load it: The parameter is incorrect. (0x80070057))
  4422.2 ms before, thread 6364: pipeline library: made [compute 6a19b6c520023886] in 4883.6 ms (the library did not load it: The parameter is incorrect. (0x80070057))
2026-12-02T22:33:23.212326Z ERROR leonida_gpu::host: when the host device went: the submitting thread was between submissions (1 submission of ours started and not yet seen finished), of 0 lists, for 11.6 ms; pipeline library: make of 033f96110a11e7b40e22c7727771ded9 [compute 326652d23fe73e99] running for 4377.1 ms on thread 11976 ... submissions started 120171 finished 120170
2026-12-02T22:33:23.234511Z ERROR leonida_gpu::host: device-removed data; none
2026-12-02T22:33:23.234795Z ERROR leonida_gpu::host: relay: fence 18446744073709551615 did not reach 120171; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command
Leonida: host GPU failure: relay: fence 18446744073709551615 did not reach 120171; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6756138346 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3255). Originally posted by [maleksn](https://github.com/maleksn) on 2026-12-02T22:45:52Z. --- ### What happens Multi-second freezes during live pipeline creation (up to 4.88 s on compute pipelines), ending with host GPU failure: device removed: The GPU device instance has been suspended. (0x887A0005). ### Commit f3865cae8 ### System Windows 11 Pro (10.0.26300.9974), Intel Core i5-12400F, 16 GB DDR4-3200 (+ 32 GB fixed pagefile on NVMe), NVIDIA GeForce RTX 3060 12 GB (Driver 621.47, Resizable BAR ON), Python 3.14.10, Rust 1.98.1 (built with diagnostics,dlss,mimalloc) ### Where pipelines ### Command and steps Command: powershell -ExecutionPolicy Bypass -File "D:\GTA 6\mandy\scripts\play-d3d12.ps1" -Game "C:\Games\GTA6" -SeriesS -Dlss quality -PrecompileUsed -Log Steps: 1. Built d3d12 diag binary with DLSS and mimalloc from commit f3865cae8. 2. Started the game with Series S + DLSS Quality (RT off, default Windows TDR values: TdrLevel/TdrDelay/TdrDdiDelay = default). 3. Experienced repeated multi-second freezes and frame drops during gameplay as host pipelines compiled live (e.g., 3413 ms and 4883 ms on compute pipelines). 4. After ~10 minutes, the game crashed with 0x887A0005 while compiling CS_RaytracingResolve_18a17e12_Wrapped (running for 4377.1 ms). Pagefile peak usage was only 5616 / 32768 MB (not an OOM). [play-1203-002258.log](https://github.com/user-attachments/files/35769618/play-1203-002258.log) ### Output ```text 9600.5 ms before, thread 6412: pipeline library: loaded [mesh 51ac2cddc9a90c46] in 0.0 ms 9591.7 ms before, thread 6412: pipeline library: made [mesh 444c40096b0c2048] in 0.1 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 9461.3 ms before, thread 11976: pipeline library: made [mesh babdb53af70114fe, pixel 423690bd02664d5b] in 633.2 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 9444.5 ms before, thread 10252: pipeline library: made [mesh 5611868d96681884, pixel fa296f2a382a55e2] in 341.5 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 8907.9 ms before, thread 11976: pipeline library: made [mesh 690b1a0a50bfcbe1, pixel 3ca1cad7fced9c24] in 543.3 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 8856.6 ms before, thread 9928: pipeline library: made [mesh 09a88636ff0d843c, pixel 6ef29f46456adf74] in 1237.8 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 8732.0 ms before, thread 10252: pipeline library: made [compute 1261271b20a35d1b] in 568.6 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 8441.7 ms before, thread 6412: pipeline library: made [mesh 559b5fad02b8b9a8, pixel bed1acf89bfed46a] in 405.0 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 8379.5 ms before, thread 11184: pipeline library: made [compute 96f043b62d77793b] in 338.6 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 6828.1 ms before, thread 7464: pipeline library: made [compute a31407f77c16d796] in 3413.2 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 4422.2 ms before, thread 6364: pipeline library: made [compute 6a19b6c520023886] in 4883.6 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 2026-12-02T22:33:23.212326Z ERROR leonida_gpu::host: when the host device went: the submitting thread was between submissions (1 submission of ours started and not yet seen finished), of 0 lists, for 11.6 ms; pipeline library: make of 033f96110a11e7b40e22c7727771ded9 [compute 326652d23fe73e99] running for 4377.1 ms on thread 11976 ... submissions started 120171 finished 120170 2026-12-02T22:33:23.234511Z ERROR leonida_gpu::host: device-removed data; none 2026-12-02T22:33:23.234795Z ERROR leonida_gpu::host: relay: fence 18446744073709551615 did not reach 120171; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command Leonida: host GPU failure: relay: fence 18446744073709551615 did not reach 120171; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command ```
maleksn commented 2026-12-03 00:04:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by maleksn on 2026-12-03T00:04:19Z.


Update (Commit ef35d683e + TdrDelay=15 / TdrDdiDelay=15):

I rebuilt from commit ef35d683e (including #3178, #2965, and #3154) and raised Windows TDR delays (TdrDelay=15, TdrDdiDelay=15, keeping TdrLevel=default).

What changed:

The session lasted ~44.5 minutes (493,576 GPU submissions) instead of ~10 minutes.
However, multi-second freezes (~4s) still happened during live pipeline creation (e.g. 4047.1 ms on compute 9211a9c1bb57341b, 3871.2 ms on compute 46dc6c870454c7a6).
It still ended with 0x887A0005 (The GPU device instance has been suspended), even though TdrDelay=15 was active (delay=15 ddi_delay=15 confirmed in log) and the active pipeline compile (compute c1c7f6c2e8d5d2a5) had only been running for 341.6 ms.

Command used: powershell -ExecutionPolicy Bypass -File "D:\GTA 6\mandy\scripts\play-d3d12.ps1" -Game "C:\Games\GTA6" -SeriesS -Dlss quality -PrecompileUsed -Log

Relevant log tail (full compressed log attached):
17527.6 ms before, thread 7660: pipeline library: made [compute 9211a9c1bb57341b] in 4047.1 ms (the library did not load it: The parameter is incorrect. (0x80070057))
13631.5 ms before, thread 1528: pipeline library: made [compute 46dc6c870454c7a6] in 3871.2 ms (the library did not load it: The parameter is incorrect. (0x80070057))
743.0 ms before, thread 6632: pipeline library: made [mesh 4f1f30b048242939, pixel e1bccd62af945062] in 1441.3 ms (the library did not load it: The parameter is incorrect. (0x80070057))
45.3 ms before, thread 3220: pipeline library: made [compute 05d0579c2cacd393] in 308.8 ms (the library did not load it: The parameter is incorrect. (0x80070057))
20.8 ms before, thread 6632: pipeline library: made [mesh 47290dd65198197a, pixel 713a8abbfa3441e2] in 409.8 ms (the library did not load it: The parameter is incorrect. (0x80070057))
2026-12-02T23:56:28.184922Z 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 3 lists, for 0.9 ms; pipeline library: make of b7ac3072381e3c1197f6c0b78a40d53f [compute c1c7f6c2e8d5d2a5] running for 341.6 ms on thread 4156; its file is mapped (310062562 bytes) ... submissions started 493576 finished 493574
2026-12-02T23:56:28.186357Z ERROR leonida_gpu::host: device-removed data; none
2026-12-02T23:56:28.186498Z ERROR leonida_gpu::host: relay: the fence reports the device removed; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362761457 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3255#issuecomment-7362761457). Originally posted by [maleksn](https://github.com/maleksn) on 2026-12-03T00:04:19Z. --- **Update (Commit ef35d683e + TdrDelay=15 / TdrDdiDelay=15):** I rebuilt from commit ef35d683e (including #3178, #2965, and #3154) and raised Windows TDR delays (TdrDelay=15, TdrDdiDelay=15, keeping TdrLevel=default). What changed: <!-- Failed to upload "play-1203-011153.log" --> The session lasted ~44.5 minutes (493,576 GPU submissions) instead of ~10 minutes. However, multi-second freezes (~4s) still happened during live pipeline creation (e.g. 4047.1 ms on compute 9211a9c1bb57341b, 3871.2 ms on compute 46dc6c870454c7a6). It still ended with 0x887A0005 (The GPU device instance has been suspended), even though TdrDelay=15 was active (delay=15 ddi_delay=15 confirmed in log) and the active pipeline compile (compute c1c7f6c2e8d5d2a5) had only been running for 341.6 ms. Command used: powershell -ExecutionPolicy Bypass -File "D:\GTA 6\mandy\scripts\play-d3d12.ps1" -Game "C:\Games\GTA6" -SeriesS -Dlss quality -PrecompileUsed -Log **Relevant log tail (full compressed log attached):** 17527.6 ms before, thread 7660: pipeline library: made [compute 9211a9c1bb57341b] in 4047.1 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 13631.5 ms before, thread 1528: pipeline library: made [compute 46dc6c870454c7a6] in 3871.2 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 743.0 ms before, thread 6632: pipeline library: made [mesh 4f1f30b048242939, pixel e1bccd62af945062] in 1441.3 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 45.3 ms before, thread 3220: pipeline library: made [compute 05d0579c2cacd393] in 308.8 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 20.8 ms before, thread 6632: pipeline library: made [mesh 47290dd65198197a, pixel 713a8abbfa3441e2] in 409.8 ms (the library did not load it: The parameter is incorrect. (0x80070057)) 2026-12-02T23:56:28.184922Z 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 3 lists, for 0.9 ms; pipeline library: make of b7ac3072381e3c1197f6c0b78a40d53f [compute c1c7f6c2e8d5d2a5] running for 341.6 ms on thread 4156; its file is mapped (310062562 bytes) ... submissions started 493576 finished 493574 2026-12-02T23:56:28.186357Z ERROR leonida_gpu::host: device-removed data; none 2026-12-02T23:56:28.186498Z ERROR leonida_gpu::host: relay: the fence reports the device removed; device removed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005); a diagnostics build with LEONIDA_D3D12_DEBUG=1 names the command
timh8127 commented 2026-12-03 13:43:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by timh8127 on 2026-12-03T13:43:52Z.


The same freezes on an RTX 5070 (Series X, -PrecompileAll), without a device removal

Main at b053a1813 (the diag runtime built at d9b618f10; no d3d12/crates changes between them), started from Launcher.bat with its defaults (Series X, 2560×1440 output, DLSS and DLSS frame generation 2×, -PrecompileAll, LEONIDA_PIPELINE_WAIT_MS=10000). Windows 11 26300, Ryzen 9 9950X3D, 32 GB RAM + 32 GB fixed page file, RTX 5070 12 GB, driver 621.14, NVIDIA shader cache size Unlimited, no TDR keys set. From the runs' own log lines:

run in the world rendered fps frame median frames of 1 s or more
1, 35 min about 15 min mostly 17–27; 12–20 in the heaviest stretches 43–58 ms; up to 91 ms 4 of 4.8–6.9 s; 3.7 s at world entry; 3 more over 1 s (two of them 1.2 and 1.3 s); 1.05 s in a menu
2, 9 min about 6 min: story cutscenes, then the first boat mission mostly 15–26 57–76 ms 6.8 s; 3.4 s at world entry; 1.5 s and 1.0 s
  • Each frame of 4.8 s or more falls in one of the only five 5-second intervals of the two runs in which the recording threads report pipeline waits (27–41 s summed over the threads; no other interval reaches 1 s). All were made inside the 10 s budget: no "not made within its wait" and no "pass over the screen was waited for" lines. The frames at world entry (3.4 and 3.7 s) do not line up with pipeline waits.
  • slow-pipelines.txt on this PC (every run so far, warm-ups included): 2,904 pipelines took 1 s or more to make; median 1.75 s, p90 4.5 s, longest 21.2 s, 844 over 3 s.
  • No device removal in either run.
  • Run 1 was stopped from the launcher and did not write the pipeline library; see my finding in #3312 (https://github.com/ProjectLeonida/mandy/issues/3312#issuecomment-7380284015).

No log attached, since it names the title's shaders.

Numbers collected from the logs with Claude Opus 5.5 (AI-assisted); reviewed by me before posting.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7380290745 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3255#issuecomment-7380290745). Originally posted by [timh8127](https://github.com/timh8127) on 2026-12-03T13:43:52Z. --- **The same freezes on an RTX 5070 (Series X, `-PrecompileAll`), without a device removal** Main at `b053a1813` (the diag runtime built at `d9b618f10`; no `d3d12/crates` changes between them), started from `Launcher.bat` with its defaults (Series X, 2560×1440 output, DLSS and DLSS frame generation 2×, `-PrecompileAll`, `LEONIDA_PIPELINE_WAIT_MS=10000`). Windows 11 26300, Ryzen 9 9950X3D, 32 GB RAM + 32 GB fixed page file, RTX 5070 12 GB, driver 621.14, NVIDIA shader cache size Unlimited, no TDR keys set. From the runs' own log lines: | run | in the world | rendered fps | frame median | frames of 1 s or more | |---|---|---|---|---| | 1, 35 min | about 15 min | mostly 17–27; 12–20 in the heaviest stretches | 43–58 ms; up to 91 ms | 4 of 4.8–6.9 s; 3.7 s at world entry; 3 more over 1 s (two of them 1.2 and 1.3 s); 1.05 s in a menu | | 2, 9 min | about 6 min: story cutscenes, then the first boat mission | mostly 15–26 | 57–76 ms | 6.8 s; 3.4 s at world entry; 1.5 s and 1.0 s | - Each frame of 4.8 s or more falls in one of the only five 5-second intervals of the two runs in which the recording threads report pipeline waits (27–41 s summed over the threads; no other interval reaches 1 s). All were made inside the 10 s budget: no "not made within its wait" and no "pass over the screen was waited for" lines. The frames at world entry (3.4 and 3.7 s) do not line up with pipeline waits. - `slow-pipelines.txt` on this PC (every run so far, warm-ups included): 2,904 pipelines took 1 s or more to make; median 1.75 s, p90 4.5 s, longest 21.2 s, 844 over 3 s. - No device removal in either run. - Run 1 was stopped from the launcher and did not write the pipeline library; see my finding in #3312 (https://github.com/ProjectLeonida/mandy/issues/3312#issuecomment-7380284015). No log attached, since it names the title's shaders. _Numbers collected from the logs with Claude Opus 5.5 (AI-assisted); reviewed by me before posting._
MoonEyes commented 2026-12-03 16:31:28 +00:00 (Migrated from github.com)
Author
Contributor

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


This was generated by AI during triage.

The reports show multi-second live pipeline compilations and 0x887A0005 on an RTX 3060, including a later 44-minute run with increased TDR delays; a separate RTX 5070 report describes similar long frames without device removal. The captured evidence distinguishes this from a simple OOM, but the reports do not yet establish one shared cause. Maintainers should decide whether to track this separately from the broader live-pipeline stalls in #3103, since #3103 has its own active follow-up work.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7384984277 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3255#issuecomment-7384984277). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T16:31:28Z. --- > *This was generated by AI during triage.* The reports show multi-second live pipeline compilations and `0x887A0005` on an RTX 3060, including a later 44-minute run with increased TDR delays; a separate RTX 5070 report describes similar long frames without device removal. The captured evidence distinguishes this from a simple OOM, but the reports do not yet establish one shared cause. Maintainers should decide whether to track this separately from the broader live-pipeline stalls in #3103, since #3103 has its own active follow-up work.
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#3255
No description provided.