[NVIDIA RTX 3060 Ti] GPU hang (0x887A0006) ~50s after entering world / first mission subtitles #625

Open
opened 2026-11-26 04:10:30 +00:00 by github-bot · 6 comments
Owner

@⁠ppq45321 on GitHub · 2026-11-24 05:50 UTC · original

Environment

  • OS: Windows 11 x64
  • CPU: Intel i5-12400F
  • GPU: NVIDIA RTX 3060 Ti 8GB (GDDR6X)
  • RAM: 32 GB (with expanded pagefile on D:)
  • Build: diag profile (--features diagnostics)
  • Env Vars: VICTORY_D3D12_DRED=1, VICTORY_D3D12_DEBUG=1

Behavior

  • Boot, initial brightness/settings screens, and menus run smoothly at 30 fps.
  • Once entering the first mission / world and subtitles appear, framerate drops to 0 fps with heavy stuttering.
  • After ~20 seconds, the GPU hangs (0x887A0006 / DXGI_ERROR_DEVICE_HUNG) and the process exits.

Crash Log Excerpt (crashes.log)

list 31 of 32, of its 354: indirect kind 10 max 1 at 0x15cf40bc0 [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]
...
device removed: DXGI_ERROR_DEVICE_HUNG (0x887A0006)

crashes.log

**@⁠ppq45321** on GitHub · 2026-11-24 05:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/625) ### Environment - **OS:** Windows 11 x64 - **CPU:** Intel i5-12400F - **GPU:** NVIDIA RTX 3060 Ti 8GB (GDDR6X) - **RAM:** 32 GB (with expanded pagefile on D:) - **Build:** `diag` profile (`--features diagnostics`) - **Env Vars:** `VICTORY_D3D12_DRED=1`, `VICTORY_D3D12_DEBUG=1` ### Behavior - Boot, initial brightness/settings screens, and menus run smoothly at 30 fps. - Once entering the first mission / world and subtitles appear, framerate drops to 0 fps with heavy stuttering. - After ~20 seconds, the GPU hangs (`0x887A0006` / `DXGI_ERROR_DEVICE_HUNG`) and the process exits. ### Crash Log Excerpt (`crashes.log`) ```text list 31 of 32, of its 354: indirect kind 10 max 1 at 0x15cf40bc0 [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d] ... device removed: DXGI_ERROR_DEVICE_HUNG (0x887A0006) ``` [crashes.log](https://github.com/user-attachments/files/35313767/crashes.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:10:30 +00:00
Author
Owner

@⁠ppq45321 on GitHub · 2026-11-24 06:01 UTC · original

Update: Tested with VICTORY_SHADER_LOOP_LIMIT=1024

  • Correction to the original post: the previous run actually lasted ~50s before hanging (not ~20s).
  • With VICTORY_SHADER_LOOP_LIMIT=1024, the screen still remains black after entering the world, but it survived noticeably longer: background protagonist voiceover continued up to ~1m 16s (~76s).
  • It still eventually hit DXGI_ERROR_DEVICE_HUNG (0x887A0006), this time at a different draw (list 29 of 30, of its 11: indirect kind 10 max 1 at 0x3a353b84 [mesh 8c0c0024c3c557dc, pixel cb4f0bf6d720abbc]).
**@⁠ppq45321** on GitHub · 2026-11-24 06:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/625#issuecomment-7123506141) ### Update: Tested with `VICTORY_SHADER_LOOP_LIMIT=1024` - Correction to the original post: the previous run actually lasted ~50s before hanging (not ~20s). - With `VICTORY_SHADER_LOOP_LIMIT=1024`, the screen still remains black after entering the world, **but it survived noticeably longer**: background protagonist voiceover continued up to **~1m 16s** (~76s). - It still eventually hit `DXGI_ERROR_DEVICE_HUNG (0x887A0006)`, this time at a different draw (`list 29 of 30, of its 11: indirect kind 10 max 1 at 0x3a353b84 [mesh 8c0c0024c3c557dc, pixel cb4f0bf6d720abbc]`).
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 07:56 UTC · original

### Root Cause Identified for the [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d] GPU Hang (0x887A0006)

Comparing the crash logs in #619 and #625 reveals the exact same indirect mesh dispatch and pipeline failing across both systems:
indirect kind 10 max 1 at ... [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]

Notice the exact diagnostic output for the pixel shader:
633c1f8872ed8c6d: u8=0xa13a00 [heap 330192: null]

The Bug

  1. u8=0xa13a00 is a descriptor table offset 10,566,144 bytes into the view heap, which indexes host descriptor slot 330,192 (0xa13a00 / 32 = 330,192).
  2. In crates/victory-gpu/src/descriptor/host.rs (lines 343-353):
    let later = !for_draw && view.is_buffer();
    made[index as usize] = if later { 0 } else { key };
    let kept = if later {
        None
    } else {
        make(&view, self.cpu(index))
    };
    if kept.is_none() && !self.sampler {
        null_for(&view, self.cpu(index));
    }
    
  3. When the title writes a buffer descriptor to slot 330,192, mirror() is called with for_draw: false.
  4. Because view.is_buffer() is true, later is set to true:
    • It skips calling make(&view, self.cpu(index)).
    • It executes null_for(&view, self.cpu(index)), populating slot 330,192 with a null view (DXGI_FORMAT_R8G8B8A8_UNORM dummy 2D texture or empty buffer).
    • It sets made[330,192] = 0.
  5. When the draw runs, table_entry is only invoked for resources statically declared in UsedResource. Dynamically indexed buffer descriptors or descriptors indexed via root constants/user data that were not in used never get mirror(..., for_draw: true) called on them.
  6. When the mesh dispatch runs [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d], pixel shader 633c1f8872ed8c6d executes a typed/raw buffer operation against heap slot 330,192 (which is still a null view). On NVIDIA hardware (RTX 3060 / 3060 Ti), this invalid memory access halts the hardware queue and triggers DXGI_ERROR_DEVICE_HUNG (0x887A0006).

Eliminating the artificial later deferral for buffer views or ensuring dynamically referenced heap slots are realized before execution resolves this crash.

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 07:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/625#issuecomment-7125549587) ### Root Cause Identified for the `[mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]` GPU Hang (`0x887A0006`) Comparing the crash logs in #619 and #625 reveals the exact same indirect mesh dispatch and pipeline failing across both systems: `indirect kind 10 max 1 at ... [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]` Notice the exact diagnostic output for the pixel shader: `633c1f8872ed8c6d: u8=0xa13a00 [heap 330192: null]` #### The Bug 1. `u8=0xa13a00` is a descriptor table offset `10,566,144` bytes into the view heap, which indexes host descriptor slot `330,192` (`0xa13a00 / 32 = 330,192`). 2. In `crates/victory-gpu/src/descriptor/host.rs` (lines 343-353): ```rust let later = !for_draw && view.is_buffer(); made[index as usize] = if later { 0 } else { key }; let kept = if later { None } else { make(&view, self.cpu(index)) }; if kept.is_none() && !self.sampler { null_for(&view, self.cpu(index)); } ``` 3. When the title writes a buffer descriptor to slot `330,192`, `mirror()` is called with `for_draw: false`. 4. Because `view.is_buffer()` is true, `later` is set to `true`: - It **skips** calling `make(&view, self.cpu(index))`. - It executes `null_for(&view, self.cpu(index))`, populating slot `330,192` with a **null view** (`DXGI_FORMAT_R8G8B8A8_UNORM` dummy 2D texture or empty buffer). - It sets `made[330,192] = 0`. 5. When the draw runs, `table_entry` is only invoked for resources statically declared in `UsedResource`. Dynamically indexed buffer descriptors or descriptors indexed via root constants/user data that were not in `used` never get `mirror(..., for_draw: true)` called on them. 6. When the mesh dispatch runs `[mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]`, pixel shader `633c1f8872ed8c6d` executes a typed/raw buffer operation against heap slot `330,192` (which is still a null view). On NVIDIA hardware (RTX 3060 / 3060 Ti), this invalid memory access halts the hardware queue and triggers `DXGI_ERROR_DEVICE_HUNG (0x887A0006)`. Eliminating the artificial `later` deferral for buffer views or ensuring dynamically referenced heap slots are realized before execution resolves this crash.
Author
Owner

@⁠LAKSHYA-cmd-tech on GitHub · 2026-11-24 08:23 UTC · original

Identical root cause to #619:
Crash occurs at [mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]\ attempting to read dynamically indexed view heap slot [heap 330192: null]\ (passed via user data register \u8 = 0xa13a00).

Because \crates/victory-gpu/src/descriptor/host.rs\ deferred buffer view mirroring on creation (\let later = !for_draw && view.is_buffer();), slot 330192 was populated with a null descriptor. Shaders dynamically computing heap offsets at runtime bypass static descriptor tables and therefore never triggered instantiation of the real SRV/UAV before the draw.

The fix mirrors buffer views immediately upon creation if their host shadow exists, and keeps \made[index] = 0\ as a null fallback only when backing memory is not yet registered.

Full technical details and branch:
#619
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/mirror-buffer-views-for-dynamic-indexing

**@⁠LAKSHYA-cmd-tech** on GitHub · 2026-11-24 08:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/625#issuecomment-7126079752) Identical root cause to #619: Crash occurs at \[mesh 413144fb9d62e37e, pixel 633c1f8872ed8c6d]\ attempting to read dynamically indexed view heap slot \[heap 330192: null]\ (passed via user data register \u8 = 0xa13a00\). Because \crates/victory-gpu/src/descriptor/host.rs\ deferred buffer view mirroring on creation (\let later = !for_draw && view.is_buffer();\), slot 330192 was populated with a null descriptor. Shaders dynamically computing heap offsets at runtime bypass static descriptor tables and therefore never triggered instantiation of the real SRV/UAV before the draw. The fix mirrors buffer views immediately upon creation if their host shadow exists, and keeps \made[index] = 0\ as a null fallback only when backing memory is not yet registered. Full technical details and branch: https://git.gtahub.st/github/Marvisak--VIctory/issues/619 https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/mirror-buffer-views-for-dynamic-indexing
Author
Owner

@⁠Vaximous on GitHub · 2026-11-24 11:01 UTC · original

A likely cause of this NVIDIA world hang, with a fix: #307

Short version:

  • Pixel shaders with waterfall loops over a per-lane descriptor index (v_readfirstlane → v_cmpx_eq → s_andn2_wrexec) rely on whole-quad mode putting helper lanes in EXEC on the console. On the host, WaveReadLaneFirst skips helper lanes. Once only helper lanes are left, no lane matches, and each one runs to the translator's loop limit.
  • On an RTX 4070 Ti this showed up as world submissions of ~1.16 s every frame (single draws of 0.3-1.3 s), until one passed the 2 s TDR: DEVICE_HUNG 200-260 s into the world. DRED stopped at the same instanced draws each time.
  • Fix: in pixel shaders, a helper lane's v_readfirstlane takes its own value. After the fix there were zero slow submissions, and two runs of 363 s and 366 s in the world with no device removal.
  • Upstream main still lowers v_readfirstlane to a plain WaveReadLaneFirst, so this should apply there too.
**@⁠Vaximous** on GitHub · 2026-11-24 11:01 UTC · [original](https://github.com/Marvisak/VIctory/issues/625#issuecomment-7129546628) A likely cause of this NVIDIA world hang, with a fix: https://git.gtahub.st/github/Marvisak--VIctory/pulls/307 Short version: - Pixel shaders with waterfall loops over a per-lane descriptor index (`v_readfirstlane` → `v_cmpx_eq` → `s_andn2_wrexec`) rely on whole-quad mode putting helper lanes in EXEC on the console. On the host, `WaveReadLaneFirst` skips helper lanes. Once only helper lanes are left, no lane matches, and each one runs to the translator's loop limit. - On an RTX 4070 Ti this showed up as world submissions of ~1.16 s every frame (single draws of 0.3-1.3 s), until one passed the 2 s TDR: `DEVICE_HUNG` 200-260 s into the world. DRED stopped at the same instanced draws each time. - Fix: in pixel shaders, a helper lane's `v_readfirstlane` takes its own value. After the fix there were zero slow submissions, and two runs of 363 s and 366 s in the world with no device removal. - Upstream main still lowers `v_readfirstlane` to a plain `WaveReadLaneFirst`, so this should apply there too.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:46 UTC · original · edited 2026-11-25 03:47 UTC

Automated triage for the maintainers.

Thanks for retesting. On 940d32f, which is current main, this run now stops before the menus. The device is removed with DXGI_ERROR_INVALID_CALL (0x887A0001) after a submission of one list with empty breadcrumbs, shortly after the host refuses castable formats / no host texture for a 2560x1440 format-115 render target.

That is the NVIDIA boot-time INVALID_CALL removal seen since 70564ae. It is tracked in #1753, the oldest complete report. #1754, #1758 and #1781 show the same format-115 lines and depth-twin lines as this run. Open PRs that address it: #1926, #1780 and #1763 (typed UAVs in formats the host cannot store to).

Your build has VICTORY_D3D12_DEBUG=1, so the D3D12 debug-layer message just before RemoveDevice would name the rejected call. Please post that message on #1753 if it is in your log. The earlier world hang (0x887A0006) is still tracked in #71. It can only be retested once the boot removal is fixed.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/625#issuecomment-7149947360) · edited 2026-11-25 03:47 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T02:28:28Z at=2026-11-25T03:47:14Z --> Automated triage for the maintainers. Thanks for retesting. On `940d32f`, which is current `main`, this run now stops before the menus. The device is removed with `DXGI_ERROR_INVALID_CALL` (`0x887A0001`) after a submission of one list with empty breadcrumbs, shortly after `the host refuses castable formats` / `no host texture` for a 2560x1440 format-115 render target. That is the NVIDIA boot-time `INVALID_CALL` removal seen since `70564ae`. It is tracked in #1753, the oldest complete report. #1754, #1758 and #1781 show the same format-115 lines and depth-twin lines as this run. Open PRs that address it: #1926, #1780 and #1763 (typed UAVs in formats the host cannot store to). Your build has `VICTORY_D3D12_DEBUG=1`, so the D3D12 debug-layer message just before `RemoveDevice` would name the rejected call. Please post that message on #1753 if it is in your log. The earlier world hang (`0x887A0006`) is still tracked in #71. It can only be retested once the boot removal is fixed. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠ppq45321 on GitHub · 2026-11-25 02:28 UTC · original

Retested on latest main with shader cache cleared and updated NVIDIA driver:

  • Commit: 940d32f
  • NVIDIA Driver: 621.40
  • Env Vars: VICTORY_D3D12_DRED=1, VICTORY_D3D12_DEBUG=1 (diag build)

Result

It now fails much earlier before reaching the menus or world: black screen with no audio for ~16s, then exits with DXGI_ERROR_INVALID_CALL (0x887A0001) instead of 0x887A0006.

DRED breadcrumbs are empty ([]), so there is no list ... of ... line. Relevant log excerpt right before the crash:

WARN victory_gpu::resource: the host refuses castable formats: textures of one memory in other formats get their own host texture error=E_INVALIDARG (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 }
WARN victory_gpu::resource: no host texture error=E_INVALIDARG (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 }
...
INFO victory_gpu::twin: an unordered view of a depth texture, made on its writable twin console=118 view=56 plane=0
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) []; device removed: DXGI_ERROR_INVALID_CALL (0x887A0001)
**@⁠ppq45321** on GitHub · 2026-11-25 02:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/625#issuecomment-7150769201) Retested on latest `main` with shader cache cleared and updated NVIDIA driver: - **Commit:** `940d32f` - **NVIDIA Driver:** `621.40` - **Env Vars:** `VICTORY_D3D12_DRED=1`, `VICTORY_D3D12_DEBUG=1` (`diag` build) ### Result It now fails much earlier before reaching the menus or world: black screen with no audio for ~16s, then exits with **`DXGI_ERROR_INVALID_CALL (0x887A0001)`** instead of `0x887A0006`. DRED breadcrumbs are empty (`[]`), so there is no `list ... of ...` line. Relevant log excerpt right before the crash: ```text WARN victory_gpu::resource: the host refuses castable formats: textures of one memory in other formats get their own host texture error=E_INVALIDARG (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 } WARN victory_gpu::resource: no host texture error=E_INVALIDARG (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 } ... INFO victory_gpu::twin: an unordered view of a depth texture, made on its writable twin console=118 view=56 plane=0 ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) []; device removed: DXGI_ERROR_INVALID_CALL (0x887A0001)
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/Marvisak--VIctory#625
No description provided.