crash: random DEVICE_HUNG (0x887A0006) TDR timeouts on RTX 5060 8 GB, oldest submission, no fixed scene #4505

Open
opened 2026-11-30 21:31:47 +00:00 by eipastel · 6 comments
eipastel commented 2026-11-30 21:31:47 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eipastel on 2026-11-30T21:31:47Z.


What happens

Random DEVICE_HUNG (0x887A0006) on an RTX 5060 8 GB: "relay: the device was lost before fence value N was reached". 15 times across 29–30/11, about 1 run in 3 on some days, including runs with no switches beyond the texture cap. It is not tied to a scene or a time: between 93 and 283 s after start, before, during and after the driver's shader compile. Unlike #4473 (0x887A0005 at the same frame every time), this one moves around.

Setup

  • RTX 5060 8 GB, Ryzen 5 7600X, 32 GB RAM, Windows 11 26200.
  • main at c71899d9 (30/11) and the commits before it, release and diag, Series S, DLSS Performance, no frame generation, VICTORY_TEXTURE_BUDGET_MB=2000.

What the logs and Windows say

  • Every hang has, at the same time, 2–3 nvlddmkm event 153 entries and a LiveKernelEvent 141 report with a dump in C:\Windows\LiveKernelReports\WATCHDOG. !analyze -v on one of them: VIDEO_ENGINE_TIMEOUT_DETECTED (141), stack dxgmms2!VidSchiCheckHwProgress -> VidSchiResetEngines -> TdrCollectDbgInfoStage1. So it is a TDR timeout (an engine made no progress for 2 s), not a page fault.
  • In 7 logs checked, the fence waited for is always "completed + 1" (the oldest submission), with 20–24 submissions in flight and the submit thread stopped for 4.5–5.7 s. The relay report says "between submissions (nothing of ours was running on the card)".
  • The "last 96 things done" in the report are only sweep clean-ups, so the log does not say which list hung.
  • VRAM does not separate runs that hung from runs that did not (119 logs compared): some hangs were well under the budget, many runs over it never hung. A weak pattern, not significant with these numbers: hangs were more frequent in sessions where the DXGI budget kept flickering (400–900 changes a minute), i.e. while other programs were using the card.
  • Three diag runs with VICTORY_D3D12_DRED=light, 300 s each, did not hang, so there is no DRED breadcrumb yet.

Logs available on request.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6706687991 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505). Originally posted by [eipastel](https://github.com/eipastel) on 2026-11-30T21:31:47Z. --- ### What happens Random `DEVICE_HUNG` (0x887A0006) on an RTX 5060 8 GB: "relay: the device was lost before fence value N was reached". 15 times across 29–30/11, about 1 run in 3 on some days, including runs with no switches beyond the texture cap. It is not tied to a scene or a time: between 93 and 283 s after start, before, during and after the driver's shader compile. Unlike #4473 (0x887A0005 at the same frame every time), this one moves around. ### Setup - RTX 5060 8 GB, Ryzen 5 7600X, 32 GB RAM, Windows 11 26200. - `main` at `c71899d9` (30/11) and the commits before it, release and diag, Series S, DLSS Performance, no frame generation, `VICTORY_TEXTURE_BUDGET_MB=2000`. ### What the logs and Windows say - Every hang has, at the same time, 2–3 `nvlddmkm` event 153 entries and a `LiveKernelEvent 141` report with a dump in `C:\Windows\LiveKernelReports\WATCHDOG`. `!analyze -v` on one of them: `VIDEO_ENGINE_TIMEOUT_DETECTED (141)`, stack `dxgmms2!VidSchiCheckHwProgress -> VidSchiResetEngines -> TdrCollectDbgInfoStage1`. So it is a TDR timeout (an engine made no progress for 2 s), not a page fault. - In 7 logs checked, the fence waited for is always "completed + 1" (the oldest submission), with 20–24 submissions in flight and the submit thread stopped for 4.5–5.7 s. The relay report says "between submissions (nothing of ours was running on the card)". - The "last 96 things done" in the report are only `sweep` clean-ups, so the log does not say which list hung. - VRAM does not separate runs that hung from runs that did not (119 logs compared): some hangs were well under the budget, many runs over it never hung. A weak pattern, not significant with these numbers: hangs were more frequent in sessions where the DXGI budget kept flickering (400–900 changes a minute), i.e. while other programs were using the card. - Three diag runs with `VICTORY_D3D12_DRED=light`, 300 s each, did not hang, so there is no DRED breadcrumb yet. Logs available on request.
github-actions[bot] commented 2026-11-30 21:32:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-30T21:32:01Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7292540409 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505#issuecomment-7292540409). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T21:32:01Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
eipastel commented 2026-11-30 23:11:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eipastel on 2026-11-30T23:11:54Z.


Play log of one of the hangs (a base run with no switches beyond VICTORY_TEXTURE_BUDGET_MB=2000; the relay report with the fence values and the 'last 96 things done' is at the end): https://gist.github.com/eipastel/27fb84669ecfd2c1240860c789b2cc56 (raw: https://gist.githubusercontent.com/eipastel/27fb84669ecfd2c1240860c789b2cc56/raw/30505b99d3566de282c1a728d0205a820fcfaec3/victory-nvidia-20261130-160931.log). Posted as a gist because the file is 5.5 MB.

There is no crash log for this run: crashes.log was last written on 27/11 and no *.crash.log was made, since a device loss ends through the relay report rather than the crash reporter.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7294829271 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505#issuecomment-7294829271). Originally posted by [eipastel](https://github.com/eipastel) on 2026-11-30T23:11:54Z. --- Play log of one of the hangs (a base run with no switches beyond `VICTORY_TEXTURE_BUDGET_MB=2000`; the relay report with the fence values and the 'last 96 things done' is at the end): https://gist.github.com/eipastel/27fb84669ecfd2c1240860c789b2cc56 (raw: https://gist.githubusercontent.com/eipastel/27fb84669ecfd2c1240860c789b2cc56/raw/30505b99d3566de282c1a728d0205a820fcfaec3/victory-nvidia-20261130-160931.log). Posted as a gist because the file is 5.5 MB. There is no crash log for this run: `crashes.log` was last written on 27/11 and no `*.crash.log` was made, since a device loss ends through the relay report rather than the crash reporter.
tyr0nsur commented 2026-11-30 23:31:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T23:31:45Z.


The attached relay log is useful. It reports 90,651 submissions started and 90,627 marked finished, with fence 90,628 the first the relay could not reach. The between submissions phase describes the CPU submitting thread. Its parenthetical about no GPU work was misleading in this path, since earlier submissions can still be outstanding. #4594 corrects that line and prints the unfinished submission count. The fence and DRED records are still needed to identify the work that stalled.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7295222142 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505#issuecomment-7295222142). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T23:31:45Z. --- The attached relay log is useful. It reports 90,651 submissions started and 90,627 marked finished, with fence 90,628 the first the relay could not reach. The `between submissions` phase describes the CPU submitting thread. Its parenthetical about no GPU work was misleading in this path, since earlier submissions can still be outstanding. #4594 corrects that line and prints the unfinished submission count. The fence and DRED records are still needed to identify the work that stalled.
eipastel commented 2026-11-30 23:59:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eipastel on 2026-11-30T23:59:37Z.


@tyr0nsur here is a hang caught with DRED (diag build of main at 43a32461, VICTORY_D3D12_DRED=light, same RTX 5060 8 GB, Series S, DLSS Performance, prison save, VICTORY_TEXTURE_BUDGET_MB=2000). It took 3 runs of 300 s; this one hung about 3 minutes into the world.

What the device-removed data says:

  • 680 lists in the breadcrumbs. Exactly one stopped part way: command 233 of 704 (op 5, ExecuteIndirect) of victory host list 710. Every list after it is at command 0, i.e. never started.
  • The command it stopped at ran [compute 0452fc2d2e2fc4c3] as an indirect dispatch (indirect kind 2, max 1, the list's indirect execution 1), user data [0, 0, 0, 0, 16e4080, 20, 11, 26cf, 26ce, 0, 0, 0]. The commands around it (232 and 234) are the indirect dispatches of [compute fc5e66f8f873d3bb] and [compute 9146291b38ea9ce1], all between the same barriers.
  • No page fault data was reported, which fits the TDR timeout in the dumps rather than a bad address.
  • The relay line: fence 116624 not reached, 0x887A0006.

My reading, not verified: an indirect compute dispatch that never finishes (an argument buffer with a huge or stale group count, or a shader that loops on data that isn't there yet) rather than anything to do with memory.

DRED section on its own (dred-20261130-205532.txt) and the full play log: https://gist.github.com/eipastel/3bb94c4d588c039291fd36a67e6486bc

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7295789964 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505#issuecomment-7295789964). Originally posted by [eipastel](https://github.com/eipastel) on 2026-11-30T23:59:37Z. --- @tyr0nsur here is a hang caught with DRED (diag build of `main` at 43a32461, `VICTORY_D3D12_DRED=light`, same RTX 5060 8 GB, Series S, DLSS Performance, prison save, `VICTORY_TEXTURE_BUDGET_MB=2000`). It took 3 runs of 300 s; this one hung about 3 minutes into the world. What the device-removed data says: - 680 lists in the breadcrumbs. Exactly one stopped part way: **command 233 of 704 (op 5, ExecuteIndirect) of `victory host list 710`**. Every list after it is at command 0, i.e. never started. - The command it stopped at ran **`[compute 0452fc2d2e2fc4c3]`** as an indirect dispatch (indirect kind 2, max 1, the list's indirect execution 1), user data `[0, 0, 0, 0, 16e4080, 20, 11, 26cf, 26ce, 0, 0, 0]`. The commands around it (232 and 234) are the indirect dispatches of `[compute fc5e66f8f873d3bb]` and `[compute 9146291b38ea9ce1]`, all between the same barriers. - No page fault data was reported, which fits the TDR timeout in the dumps rather than a bad address. - The relay line: fence 116624 not reached, 0x887A0006. My reading, not verified: an indirect compute dispatch that never finishes (an argument buffer with a huge or stale group count, or a shader that loops on data that isn't there yet) rather than anything to do with memory. DRED section on its own (`dred-20261130-205532.txt`) and the full play log: https://gist.github.com/eipastel/3bb94c4d588c039291fd36a67e6486bc
eipastel commented 2026-12-01 02:45:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eipastel on 2026-12-01T02:45:22Z.


The DRED result above looks like the same case as #3222 / #3686, on another program:

  • #3222: the hang is in an indirect compute dispatch of 4fb416369fc50b6e, user data [0, 0, 0, 0, 12ba3e0, 0, 10, 0], no page fault.
  • Here: an indirect compute dispatch (ExecuteIndirect, command 233 of 704) of 0452fc2d2e2fc4c3, user data [0, 0, 0, 0, 16e4080, 20, 11, 26cf, 26ce, 0, 0, 0], no page fault.

Both have a table address at word 4 and small values at words 5-7, the layout #3686 describes (a descriptor table at word 4, root constants at words 5-7, the heap at word 8). #3686 says host::indirects::slots takes small root constants for heap slots. I have not checked 0452fc2d2e2fc4c3's root layout or tested #3686 here, so this is a pointer, not a confirmation. If it helps, I can run #3686 on this card with VICTORY_D3D12_DRED=light and report whether the hangs stop.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7298961633 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505#issuecomment-7298961633). Originally posted by [eipastel](https://github.com/eipastel) on 2026-12-01T02:45:22Z. --- The DRED result above looks like the same case as #3222 / #3686, on another program: - #3222: the hang is in an indirect compute dispatch of `4fb416369fc50b6e`, user data `[0, 0, 0, 0, 12ba3e0, 0, 10, 0]`, no page fault. - Here: an indirect compute dispatch (ExecuteIndirect, command 233 of 704) of `0452fc2d2e2fc4c3`, user data `[0, 0, 0, 0, 16e4080, 20, 11, 26cf, 26ce, 0, 0, 0]`, no page fault. Both have a table address at word 4 and small values at words 5-7, the layout #3686 describes (a descriptor table at word 4, root constants at words 5-7, the heap at word 8). #3686 says `host::indirects::slots` takes small root constants for heap slots. I have not checked `0452fc2d2e2fc4c3`'s root layout or tested #3686 here, so this is a pointer, not a confirmation. If it helps, I can run #3686 on this card with `VICTORY_D3D12_DRED=light` and report whether the hangs stop.
eipastel commented 2026-12-01 05:12:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eipastel on 2026-12-01T05:12:26Z.


Tested #3686 on this card: 0 hangs in 6 runs of 300 s with DRED (against 1 in 6 on main yesterday). Details: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3686 (latest comment). Too few runs to call it fixed.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7301528748 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4505#issuecomment-7301528748). Originally posted by [eipastel](https://github.com/eipastel) on 2026-12-01T05:12:26Z. --- Tested #3686 on this card: 0 hangs in 6 runs of 300 s with DRED (against 1 in 6 on `main` yesterday). Details: https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3686 (latest comment). Too few runs to call it fixed.
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
trustno1-coder/VIctory-NVIDIA#4505
No description provided.