GPU device removed (0x887A0005) with VICTORY_BVH_BUILDER=1 on an 8 GB card under memory pressure; HW RT survives the same runs #4933

Open
opened 2026-12-01 14:33:39 +00:00 by github-bot · 1 comment
Owner

@⁠RomanFama592 on GitHub · 2026-12-01 14:32 UTC · original

What happened

With the software ray tracing on (VICTORY_BVH_BUILDER=1, F1 "RAY TRACING"), the host device is removed (0x887A0005) in about 1 of 5 runs, 1 to 3 minutes into the world, at different places (gas station at night, open roads). The game closes with "host GPU failure". With the same settings and plans, VICTORY_HW_RT=1 (hardware ray tracing) never lost the device, and ray tracing off never did either.

Automatic runs (victory-probe-mod, #2825), same save, same places, Series S profile:

ray tracing runs device removed fps (median) process memory on the card / PC memory the card uses
off 30+ 0 19-21 5.9 / 9.2-9.5 GB
VICTORY_BVH_BUILDER=1 15 3 10 6.4 / 9.4-10.4 GB
VICTORY_HW_RT=1 4 0 15 6.5 / 9.3-9.7 GB

In every run the card is past its own memory: about 9-10 GB of the PC's memory is used by the card (Windows "GPU Process Memory\Shared Usage"), with 3-6 GB/s of PCIe traffic. The texture queue logged "no room, new textures wait" right before the first loss. With software RT, one compute dispatch (c42a31951201f9a0) takes 18.9 ms a frame of card time (diagnostics build, VICTORY_GPU_TIMES=1); hardware RT builds its structures in 0.9 ms.

What the log says when the device went (two of the three runs):

ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 35 lists, for 4.9 ms; ... submissions started 31795 finished 31784
ERROR victory_gpu::host: relay: the device was lost before fence value 31785 was reached ... device removed: (0x887A0005)

ERROR victory_gpu::host: when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 5.2 ms; ... submissions started 48079 finished 48054
ERROR victory_gpu::host: relay: the device was lost before fence value 48055 was reached ... device removed: (0x887A0005)

No nvlddmkm TDR event was logged by Windows at those times. I have not run a diagnostics build with VICTORY_D3D12_DEBUG=1 yet.

Related, not the same evidence: #4474 (RTX 4090, both RT switches, same scene change every time), #4324 (VICTORY_HW_RT=1 only, fixed by LIFT=0).

GPU and driver

NVIDIA GeForce RTX 4060 Ti 8 GB, driver 610.88 (32.0.16.1088). DXGI budget about 7.2 GB.

CPU, RAM and Windows version

AMD Ryzen 9 5900X, 64 GB RAM, Windows 11 build 26300.

VIctory release or commit

main at 7d93ee07 (local release build).

Settings

Series S, picture 720 (DLSS quality), plus VICTORY_BVH_BUILDER=1, VICTORY_RESIDENCY_PRIORITY=1, VICTORY_FIRST_UPLOAD_GUARD=1, VICTORY_SAMPLED_EVICT=1, VICTORY_CARD_ROOM_FOR_TARGETS_MB=3072, VICTORY_CCD_SPLIT=1, VICTORY_SUBMIT_SPLIT=1, VICTORY_NATIVE_SIZE=2560x1440. Also lost at picture 540 (DLSS performance).

Logs

The ERROR lines above are from the play logs of those runs; crashes.log has the same three "host GPU failure ... 0x887A0005" entries. I can attach the full play logs.

Are you working on a fix?

No.

**@⁠RomanFama592** on GitHub · 2026-12-01 14:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4932) ### What happened With the software ray tracing on (`VICTORY_BVH_BUILDER=1`, F1 "RAY TRACING"), the host device is removed (`0x887A0005`) in about 1 of 5 runs, 1 to 3 minutes into the world, at different places (gas station at night, open roads). The game closes with "host GPU failure". With the same settings and plans, `VICTORY_HW_RT=1` (hardware ray tracing) never lost the device, and ray tracing off never did either. Automatic runs (victory-probe-mod, #2825), same save, same places, Series S profile: | ray tracing | runs | device removed | fps (median) | process memory on the card / PC memory the card uses | |---|---|---|---|---| | off | 30+ | 0 | 19-21 | 5.9 / 9.2-9.5 GB | | `VICTORY_BVH_BUILDER=1` | 15 | 3 | 10 | 6.4 / 9.4-10.4 GB | | `VICTORY_HW_RT=1` | 4 | 0 | 15 | 6.5 / 9.3-9.7 GB | In every run the card is past its own memory: about 9-10 GB of the PC's memory is used by the card (Windows "GPU Process Memory\Shared Usage"), with 3-6 GB/s of PCIe traffic. The texture queue logged "no room, new textures wait" right before the first loss. With software RT, one compute dispatch (`c42a31951201f9a0`) takes 18.9 ms a frame of card time (diagnostics build, `VICTORY_GPU_TIMES=1`); hardware RT builds its structures in 0.9 ms. What the log says when the device went (two of the three runs): ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 35 lists, for 4.9 ms; ... submissions started 31795 finished 31784 ERROR victory_gpu::host: relay: the device was lost before fence value 31785 was reached ... device removed: (0x887A0005) ERROR victory_gpu::host: when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 5.2 ms; ... submissions started 48079 finished 48054 ERROR victory_gpu::host: relay: the device was lost before fence value 48055 was reached ... device removed: (0x887A0005) No nvlddmkm TDR event was logged by Windows at those times. I have not run a diagnostics build with `VICTORY_D3D12_DEBUG=1` yet. Related, not the same evidence: #4474 (RTX 4090, both RT switches, same scene change every time), #4324 (`VICTORY_HW_RT=1` only, fixed by `LIFT=0`). ### GPU and driver NVIDIA GeForce RTX 4060 Ti 8 GB, driver 610.88 (32.0.16.1088). DXGI budget about 7.2 GB. ### CPU, RAM and Windows version AMD Ryzen 9 5900X, 64 GB RAM, Windows 11 build 26300. ### VIctory release or commit main at 7d93ee07 (local release build). ### Settings Series S, picture 720 (DLSS quality), plus `VICTORY_BVH_BUILDER=1`, `VICTORY_RESIDENCY_PRIORITY=1`, `VICTORY_FIRST_UPLOAD_GUARD=1`, `VICTORY_SAMPLED_EVICT=1`, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=3072`, `VICTORY_CCD_SPLIT=1`, `VICTORY_SUBMIT_SPLIT=1`, `VICTORY_NATIVE_SIZE=2560x1440`. Also lost at picture 540 (DLSS performance). ### Logs The ERROR lines above are from the play logs of those runs; `crashes.log` has the same three "host GPU failure ... 0x887A0005" entries. I can attach the full play logs. ### Are you working on a fix? No.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 14:33:39 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 14:35 UTC · original

I checked removal_context in host.rs at 7d93ee07. The wording “nothing of ours was running on the card” comes from the submitting thread’s phase. The relay still had an outstanding fence in both excerpts, and the submission counters had gaps of 11 and 25. Those lines alone cannot establish that the GPU queue was idle when the device was lost.

For the debug-layer run you mentioned, could you share the first D3D12 error, if any, and the device-removal reason from that same run? That would help correlate the loss with a specific command or resource. This is from static review.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 14:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4932#issuecomment-7314513204) I checked `removal_context` in `host.rs` at `7d93ee07`. The wording “nothing of ours was running on the card” comes from the submitting thread’s phase. The relay still had an outstanding fence in both excerpts, and the submission counters had gaps of 11 and 25. Those lines alone cannot establish that the GPU queue was idle when the device was lost. For the debug-layer run you mentioned, could you share the first D3D12 error, if any, and the device-removal reason from that same run? That would help correlate the loss with a specific command or resource. This is from static review. AI-assisted with OpenAI Codex.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4933
No description provided.