Host GPU device removed when entering the world on NVIDIA (RTX 4050 Laptop) #314

Open
opened 2026-11-26 03:58:57 +00:00 by github-bot · 3 comments
Owner

@⁠phoebusevil on GitHub · 2026-11-24 02:14 UTC · original

Hardware: NVIDIA GeForce RTX 4050 Laptop GPU, driver 621.01, Windows 11
Build: diag build (--features diagnostics), env VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1
Title version: GTA6 Xbox v1.0.2.1

What works: boot, first-boot screens, intro, start screen, menus at 30 fps.
What happens: after loading into the world the host GPU device is removed.

Observed from crashes.log (DRED breadcrumbs): device removed after a submission
of 1 lists; 5 compute dispatches in flight:

  • dispatch 2x1x1 [compute 91b10a73e48b2192] (heap 84: null)
  • dispatch 1x1x1 [compute 24317e785c8688e3]
  • dispatch 2x1x1 [compute b83629b90cd2b7bc] (Uav s0+0: uav None, heap 0 shader entries)
  • dispatch 1x1x1 [compute 24317e785c8688e3]
  • dispatch 1x1x1 [compute c1488f485ad606fb] (Srv + 2x Uav + Cbv)
    Error codes: 0x887A0007 (device removed), earlier non-DRED run also showed 0x887A0004.
    Debug layer: "Kernel memory failure. There might be a memory leak."

Possibly related: the README mentions compute programs needing 64-lane waves;
NVIDIA runs 32-lane waves. Unverified.

Happy to test patches or provide more logs (shader cache, DRED output).

**@⁠phoebusevil** on GitHub · 2026-11-24 02:14 UTC · [original](https://github.com/Marvisak/VIctory/issues/314) Hardware: NVIDIA GeForce RTX 4050 Laptop GPU, driver 621.01, Windows 11 Build: diag build (--features diagnostics), env VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1 Title version: GTA6 Xbox v1.0.2.1 What works: boot, first-boot screens, intro, start screen, menus at 30 fps. What happens: after loading into the world the host GPU device is removed. Observed from crashes.log (DRED breadcrumbs): device removed after a submission of 1 lists; 5 compute dispatches in flight: - dispatch 2x1x1 [compute 91b10a73e48b2192] (heap 84: null) - dispatch 1x1x1 [compute 24317e785c8688e3] - dispatch 2x1x1 [compute b83629b90cd2b7bc] (Uav s0+0: uav None, heap 0 shader entries) - dispatch 1x1x1 [compute 24317e785c8688e3] - dispatch 1x1x1 [compute c1488f485ad606fb] (Srv + 2x Uav + Cbv) Error codes: 0x887A0007 (device removed), earlier non-DRED run also showed 0x887A0004. Debug layer: "Kernel memory failure. There might be a memory leak." Possibly related: the README mentions compute programs needing 64-lane waves; NVIDIA runs 32-lane waves. Unverified. Happy to test patches or provide more logs (shader cache, DRED output).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:58:57 +00:00
Author
Owner

@⁠phoebusevil on GitHub · 2026-11-24 03:32 UTC · original

Follow-up with data from a longer run (RTX 4050 Laptop, driver 621.01, release build,
output captured with > run.log 2>&1). 62 shaders did not translate; by reason:

31 compute an address in an SGPR that is no root parameter
8 compute a structured buffer of unknown stride
7 mesh a descriptor neither loaded nor built
4 compute image_gather4_l
3 pixel (was image_sample_d_cl, see below)
3 compute a hardware SGPR input
2 vertex a scalar memory read as data
1 mesh a structured buffer of unknown stride
1 compute a descriptor neither loaded nor built
1 compute a lane-mask join of an untracked mask
1 compute a descriptor read only as data

Counts vary between runs (translation warnings only appear on first translation,
and depend on how far the title gets), so treat them as rough.

I also tried the cheapest one, image_sample_d_cl (pixel shaders 7bdefdfde461f6e3,
ee41ebc3eb3fbbdc, 2deec721a63fe8a5): mapping it to sampleGrad and reading the
clamp from the address VGPR after the coordinates. The instruction is then
accepted, but the same three shaders fail with "an image address is not supported",
so a coordinate or gradient register has no tracked value. A clamp-specific error
tag I added never fired, so the failure is before the clamp is read. Not enough
for a PR; reverted. Hypothesis only: the gradients come from derivative
instructions the translator does not follow.

This is separate from the device-removed crash above: the four compute shaders
in the DRED breadcrumbs do translate.

**@⁠phoebusevil** on GitHub · 2026-11-24 03:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/314#issuecomment-7121194026) Follow-up with data from a longer run (RTX 4050 Laptop, driver 621.01, release build, output captured with `> run.log 2>&1`). 62 shaders did not translate; by reason: 31 compute an address in an SGPR that is no root parameter 8 compute a structured buffer of unknown stride 7 mesh a descriptor neither loaded nor built 4 compute image_gather4_l 3 pixel (was image_sample_d_cl, see below) 3 compute a hardware SGPR input 2 vertex a scalar memory read as data 1 mesh a structured buffer of unknown stride 1 compute a descriptor neither loaded nor built 1 compute a lane-mask join of an untracked mask 1 compute a descriptor read only as data Counts vary between runs (translation warnings only appear on first translation, and depend on how far the title gets), so treat them as rough. I also tried the cheapest one, image_sample_d_cl (pixel shaders 7bdefdfde461f6e3, ee41ebc3eb3fbbdc, 2deec721a63fe8a5): mapping it to sampleGrad and reading the clamp from the address VGPR after the coordinates. The instruction is then accepted, but the same three shaders fail with "an image address is not supported", so a coordinate or gradient register has no tracked value. A clamp-specific error tag I added never fired, so the failure is before the clamp is read. Not enough for a PR; reverted. Hypothesis only: the gradients come from derivative instructions the translator does not follow. This is separate from the device-removed crash above: the four compute shaders in the DRED breadcrumbs do translate.
Author
Owner

@⁠r4tedx on GitHub · 2026-11-24 04:30 UTC · original

Several rows of your list have open PRs, two of them measured on the title's shaders, and you offered to test.

Your row PR What is known
image_gather4_l (4) #160 offline on the retail shaders, all 12 such programs translate
image_sample_d_cl (3) #160 23 of the 27 such programs translate; I do not know whether your three are among them
a descriptor neither loaded nor built (7 + 1) #307 298 to 3 over the corpus, but most then stop one step later (a descriptor read from the first lane of a phi)
an address in an SGPR that is no root parameter (31) #302, #489 clears the first failure; a defect found in review is being fixed in #489
a structured buffer of unknown stride (8 + 1) #193 not measured in the title that I know of

On your image_sample_d_cl experiment: what stopped those programs at an image address turned out to be the operand layout, not untracked derivatives. They sample a cube with eight address registers: two gradients per direction (the face coordinates'), then s, t, the face and the clamp, where the translator expected three per direction. #160 has that since b540f51.

The integration/testers tree (what is in it) has #160, #307 and the wave64 PRs (#223 + #233). The same by-reason list from a run of that tree, next to the one above, would show which rows clear on your card, and whether your three pixel shaders are among the 23.

I have no copy of the title; the corpus numbers are EduAzevedo's. AI-assisted.

**@⁠r4tedx** on GitHub · 2026-11-24 04:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/314#issuecomment-7122075925) Several rows of your list have open PRs, two of them measured on the title's shaders, and you offered to test. | Your row | PR | What is known | |---|---|---| | `image_gather4_l` (4) | #160 | offline on the retail shaders, [all 12 such programs translate](https://git.gtahub.st/github/Marvisak--VIctory/pulls/160) | | `image_sample_d_cl` (3) | #160 | 23 of the 27 such programs translate; I do not know whether your three are among them | | a descriptor neither loaded nor built (7 + 1) | #307 | 298 to 3 over the corpus, but most then stop one step later (`a descriptor read from the first lane of a phi`) | | an address in an SGPR that is no root parameter (31) | #302, #489 | clears the first failure; a defect found in review is being fixed in #489 | | a structured buffer of unknown stride (8 + 1) | #193 | not measured in the title that I know of | On your `image_sample_d_cl` experiment: what stopped those programs at `an image address` turned out to be the operand layout, not untracked derivatives. They sample a cube with eight address registers: two gradients per direction (the face coordinates'), then s, t, the face and the clamp, where the translator expected three per direction. #160 has that since `b540f51`. The `integration/testers` tree ([what is in it](https://git.gtahub.st/github/Marvisak--VIctory/issues/293)) has #160, #307 and the wave64 PRs (#223 + #233). The same by-reason list from a run of that tree, next to the one above, would show which rows clear on your card, and whether your three pixel shaders are among the 23. I have no copy of the title; the corpus numbers are EduAzevedo's. AI-assisted.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:48 UTC · original

Automated triage for the maintainers.

  • This is a device removal on world entry on NVIDIA. Its signature differs from the other reports: 0x887A0007 with the debug layer's "Kernel memory failure", and only compute dispatches in flight. I found no earlier open report with the same signature, so it is tracked here for now. The broader NVIDIA world-entry hang (vertex buffer left in the UAV state) is #199, with #264 as a further report.
  • Since this report, main has merged several fixes in this area: dynamic descriptor slot exhaustion (#336, edf64e2, then c1c3281) and table constants read in place (683ad7a). The untranslated-shader rows in the follow-up are covered by the PRs listed in the comment above.
  • @⁠phoebusevil: please retry on current main and add the VIctory commit (git rev-parse HEAD) and the Windows build number. If it still fails, post the crashes.log lines of the removal (the DRED part, and any no free dynamic descriptor slots warning before it).

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/314#issuecomment-7149982387) <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-24T04:30:03Z at=2026-11-25T01:48:28Z --> Automated triage for the maintainers. - This is a device removal on world entry on NVIDIA. Its signature differs from the other reports: `0x887A0007` with the debug layer's "Kernel memory failure", and only compute dispatches in flight. I found no earlier open report with the same signature, so it is tracked here for now. The broader NVIDIA world-entry hang (vertex buffer left in the UAV state) is #199, with #264 as a further report. - Since this report, `main` has merged several fixes in this area: dynamic descriptor slot exhaustion (#336, `edf64e2`, then `c1c3281`) and table constants read in place (`683ad7a`). The untranslated-shader rows in the follow-up are covered by the PRs listed in the comment above. - @⁠phoebusevil: please retry on current `main` and add the VIctory commit (`git rev-parse HEAD`) and the Windows build number. If it still fails, post the `crashes.log` lines of the removal (the DRED part, and any `no free dynamic descriptor slots` warning before it). --- _Generated by [Claude Code](https://claude.ai/code)_
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#314
No description provided.