Repository navigation
Description
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
d4fabd3 (one crash also on ffa0f8e 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=lightthe log sayscrash 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 wasdevice-removed data; none. - Windows' System event log has no nvlddmkm, Display 4101 (TDR) or LiveKernelEvent entry for any of these crashes, and
C:\Windows\LiveKernelReportshas 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.
Activity
broveer commentedon Dec 1, 2026
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 samethe host device went while textures picked by index were made readyline (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 withplay-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 upstreammainat the commit below plus 15 of the Rust leak fixes from #2569. Thosefixes didn't change how soon it crashes.
Runs (2026-12-01, times UTC)
main640b0d0df427aa19b6(both pools at 512)427aa19b6427aa19b6e04721c7fe04721c7fEarlier builds since 2026-11-30 did the same after 7.5 to 28 minutes. "Not finished" is the new count from 0695de5
(
submissions of ours started and not yet seen finished).What these runs rule out
LEONIDA_WINDOWS_BAR_MBandLEONIDA_CARD_BUFFERS_MBat 512 (12:23), the card stayed at 4.9-6.1 GB and it still crashed (and the card's owntime went to 250-290 ms a frame, so 512 isn't a usable setting on this card).
Two shapes, each seen twice
LEONIDA_SCREEN_WAIT_MS(10 s), and the device is gone right after. Different pipelines each time.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, withits 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? Ifnobody 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 commentedon Dec 1, 2026
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 value77133.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.24Observations
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
0despite the fatal GPU error.It is unclear whether the pipeline library failures are related to the device removal.
Output
Run 1 — 21:44 UTC
Run 2 — 22:33 UTC
The localized German DXGI error messages have been replaced with their English symbolic name for readability. Log excerpts have been shortened.
Related issues
d3d12: DXGI_ERROR_DEVICE_REMOVED (0x887A0005) after 5 to 46 minutes on an RTX 4070 SUPER, every profile #2821 — Similar D3D12 device removal failures.
Game crashes when gpu usage reaches 7 GB (on 3070Ti) #2607 — GPU crashes during gameplay.
Additional information
Nebekenezzer commentedon Dec 2, 2026
System
mainsource downloaded 2026-12-01, built withscripts\build-nvidia.ps1(diag, dlss, mimalloc)Symptom
DXGI_ERROR_DEVICE_REMOVED (0x887A0005).GetDeviceRemovedReasonreturns 0x887A0005 itself (not HUNG/RESET/INVALID_CALL).LEONIDA_D3D12_DRED=light: breadcrumbs empty, "device-removed data; none" (no page fault).taking a boat out onto open water, driving fast. Two crashes in the Donnie/Doug deal mission (like d3d12: device removed during the Donnie rescue mission #3023).
Ruled out (one change at a time)
-NoFrameGen -NoSmoothMotion)LEONIDA_LIBRARY_LOCK=1host-pipelines.bin(old one moved aside, #2781 workaround)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.
GetResourceAllocationInfo4 KB alignment (~44k),CreateDescriptorHeap4194304 / 2097152 > 1000000 (twice at startup),CreateGraphicsPipelineStateRTV slot not bound (37),ClearRenderTargetViewclear value mismatch (18),PipelineLibrary::Load*Pipelinename 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.