AGC: PPSA38500 loses the device in the open world on Windows; both checkpoints name an indirect compute dispatch (RTX 4080, NVIDIA 621.40) #28683

Open
opened 2026-12-02 21:06:41 +00:00 by anova44 · 0 comments
anova44 commented 2026-12-02 21:06:41 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by anova44 on 2026-12-02T21:06:41Z.


What happens

PPSA38500 loses the device at a random point of the open world (AGC graphics: vkQueueSubmit recorder: Vulkan result -4, or the same from vkWaitSemaphoresKHR recorder); the two losses that left a checkpoint both name a one-dimensional indirect compute dispatch, and one boot with APS5_NO_GPU_INDIRECT=1 did not lose it.

Title, test or build step

PPSA38500 01.002.001 (own dump)

AnyPS5 commit

main 184c5100c1 with the open PRs #20519, #28487, #27590, #27648, #27966, #28070, #28102, #28295, #27887, #28228, #28387, #28468, #27779, #28311, #28197, #28350, #28229 (with #28218), #28403, #28414 (with #28410), #27829, and from the fourth boot on #28465. Local additions: a populate profile, a plan census, and the reload change from https://github.com/anova44/AnyPS5/tree/perf/reload-specialized-words. The title's own watchdog is lengthened locally.

System

Windows 11 26200, Ryzen 7 5800X3D, 32 GB RAM, RTX 4080 16 GB (NVIDIA 621.40), MinGW-w64 GCC (winlibs)

Host report

AnyPS5 host report (format 1)
commit: 108aec47c981
[system]
os: Windows 10.0.26200
cpu: AMD Ryzen 7 5800X3D 8-Core Processor
cpu_threads: 16
memory_mib: 32689
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: NVIDIA GeForce RTX 4080
type: discrete
vendor_id: 0x10de
device_id: 0x2704
vulkan_api: 1.4.357
driver: NVIDIA
driver_info: 621.40
driver_version: 621.40.0.0
driver_version_raw: 0x9b4a0000
subgroup_size: 32
device_local_mib: 16048
candidates: NVIDIA GeForce RTX 4080
present_modes: fifo, fifo_latest_ready, fifo_relaxed, immediate, mailbox
present_mode_requested: default

Steps to reproduce

Warm shader and pipeline caches. Switches in every boot: APS5_BINDLESS_IMAGES=1 APS5_BINDLESS_LAZY=1 APS5_BINDLESS_STATS=1 APS5_GPU_CHECKPOINTS=1 APS5_OUTPUT_RESOLUTION=1920x1080 APS5_RESULT_MEMO_MB=2048 APS5_TEXTURE_BUDGET_DEMAND=1 APS5_HOST_IMPORT_MIB=15360 APS5_PROFILE_DRAW=1, plus APS5_PROFILE_POPULATE=1 APS5_RELOAD_SPECIALIZED=1 from the local additions. Load the save, hold Cross through the loading screens, and let the opening run. The world appears after 5 to 6 minutes; world frames are 13 to 17 s apart when no pipeline is being built.

boot extra switch indirect dispatches (last [indirect] line) end world frames minutes
1 GPU-side device loss, no checkpoint reached 45 24
2 APS5_NO_CARRIED_SHADOWS=1 47,984 GPU-side device loss, checkpoint A below 64 56
3 APS5_REGISTRATION_PREPARE_COMMIT_GB=0 73,719 GPU-side device loss, no checkpoint reached 88 50
4 as 3, with #28465 14,600 GPU-side device loss, checkpoint B below 19 11
5 as 4, with APS5_NO_GPU_INDIRECT=1 0 GPU-side, 88,659 CPU-side a refusal that is not this issue (reported on #28218) 118 87

A sixth boot, between 2 and 3, stalled at the 45th world frame on the deadlock #28465 fixes and is not counted here.

Log

Boot 4, the whole [device-fault] block without its env lines (checkpoint B):

[device-fault] gpu NVIDIA GeForce RTX 4080 vendor 0x10de device 0x2704 driver NVIDIA 621.40 commit 108aec47c981
[device-fault] queue main
[device-fault] staging shadow copies refused: 2913 (process-wide total)
[device-fault] checkpoint: token 60950 batch 37170 queue 0xfc0c0e14d0 program 0xa956c00 variant 7478 stage compute dispatch indirect at stage 0x1
[device-fault] indirect token 60950 args 3 words from 0x804a7100080+0 stride 12: 000034fc 00000001 00000001 (record-time)
[device-fault] checkpoint: token 60950 batch 37170 queue 0xfc0c0e14d0 program 0xa956c00 variant 7478 stage compute dispatch indirect observed at bottom-of-pipe
[device-fault] indirect token 60950 args 3 words from 0x804a7100080+0 stride 12: 000034fc 00000001 00000001 (record-time)
[device-fault] result 5: 
[device-fault] instruction pointer unknown at 0x226506180 (precision 0x10)
[device-fault] no guest snapshot for batch 37170
[device-fault] live resource 0xfb9ced0000 size 0x1000 texture
[device-fault] live resource 0x80410400000 size 0x160000 texture
[device-fault] live resource 0x80410400000 size 0x160000 texture
[device-fault] live resource 0x80423cc0000 size 0x16000 texture
[device-fault] residency 0x226506180 unknown
[device-fault] instruction pointer unknown at 0x226505760 (precision 0x10)
[device-fault] no guest snapshot for batch 37170
[device-fault] live resource 0xfb9ced0000 size 0x1000 texture
[device-fault] live resource 0x80410400000 size 0x160000 texture
[device-fault] live resource 0x80410400000 size 0x160000 texture
[device-fault] live resource 0x80423cc0000 size 0x16000 texture
[device-fault] residency 0x226505760 unknown
[device-fault] queue present
[device-fault] no checkpoint reached
terminate called after throwing an instance of 'std::runtime_error'
  what():  AGC graphics: vkWaitSemaphoresKHR recorder: Vulkan result -4

Boot 2, checkpoint A:

[device-fault] checkpoint: token 152392 batch 68981 queue 0xfc0c0e14d0 program 0xa906200 variant 14463 stage compute dispatch indirect at stage 0x1
[device-fault] indirect token 152392 args 3 words from 0x108187d680+0 stride 12: 00002d08 00000001 00000001 (record-time)
[device-fault] checkpoint: token 152392 batch 68981 queue 0xfc0c0e14d0 program 0xa906200 variant 14463 stage compute dispatch indirect observed at bottom-of-pipe
[device-fault] indirect token 152392 args 3 words from 0x108187d680+0 stride 12: 00002d08 00000001 00000001 (record-time)

Last [indirect] lines of boots 4 and 5:

[indirect] (cumulative): gpu-side 14600, cpu-side 0 (thread dimensions 0, fill kernel 0, pending image results 0, pending label or copied write 0, not imported 0, misaligned 0, disabled 0, device memory LDS 0); CPU argument reads took 0.0 s
[indirect] (cumulative): gpu-side 0, cpu-side 88659 (thread dimensions 0, fill kernel 0, pending image results 0, pending label or copied write 0, not imported 0, misaligned 0, disabled 88659, device memory LDS 0); CPU argument reads took 104.2 s

What was checked

  • It does not happen at a fixed point: 11, 24, 50 and 56 minutes, at the 19th to 88th world frame.
  • Both checkpoints are compute dispatch indirect with arguments N 1 1, N = 0x2d08 and 0x34fc (11,528 and 13,564 groups), on two different programs. Boots 1 and 3 reached no checkpoint, in a long run of compute dispatches in boot 3.
  • All four faults report instruction pointer unknown addresses and residency ... unknown; the present, settle and sparse queues reached no checkpoint.
  • One boot with APS5_NO_GPU_INDIRECT=1 (boot 5) ran 87 minutes without a loss, against four with one. That is one boot, so I am repeating it.
  • Next, as @oneandonlydean asked on #27914: one boot with only APS5_NO_GPU_THREAD_DIMENSIONS=1, to say which kind of indirect dispatch the loss belongs to.
  • Private bytes are 38 to 41 GiB on a 32 GB host in all of these boots, and the device heap is at 13 to 14.7 GB of 16; I have not ruled memory pressure out as a factor.
  • #25010 (indirect dispatches over the workgroup count limit) is not merged here; these counts are under the limit.

AI-assisted: yes. Claude Code ran the boots and tabulated the lines.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6754535808 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/28683). Originally posted by [anova44](https://github.com/anova44) on 2026-12-02T21:06:41Z. --- ### What happens PPSA38500 loses the device at a random point of the open world (`AGC graphics: vkQueueSubmit recorder: Vulkan result -4`, or the same from `vkWaitSemaphoresKHR recorder`); the two losses that left a checkpoint both name a one-dimensional indirect compute dispatch, and one boot with `APS5_NO_GPU_INDIRECT=1` did not lose it. ### Title, test or build step PPSA38500 01.002.001 (own dump) ### AnyPS5 commit main `184c5100c1` with the open PRs #20519, #28487, #27590, #27648, #27966, #28070, #28102, #28295, #27887, #28228, #28387, #28468, #27779, #28311, #28197, #28350, #28229 (with #28218), #28403, #28414 (with #28410), #27829, and from the fourth boot on #28465. Local additions: a populate profile, a plan census, and the reload change from https://github.com/anova44/AnyPS5/tree/perf/reload-specialized-words. The title's own watchdog is lengthened locally. ### System Windows 11 26200, Ryzen 7 5800X3D, 32 GB RAM, RTX 4080 16 GB (NVIDIA 621.40), MinGW-w64 GCC (winlibs) ### Host report ```text AnyPS5 host report (format 1) commit: 108aec47c981 [system] os: Windows 10.0.26200 cpu: AMD Ryzen 7 5800X3D 8-Core Processor cpu_threads: 16 memory_mib: 32689 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: NVIDIA GeForce RTX 4080 type: discrete vendor_id: 0x10de device_id: 0x2704 vulkan_api: 1.4.357 driver: NVIDIA driver_info: 621.40 driver_version: 621.40.0.0 driver_version_raw: 0x9b4a0000 subgroup_size: 32 device_local_mib: 16048 candidates: NVIDIA GeForce RTX 4080 present_modes: fifo, fifo_latest_ready, fifo_relaxed, immediate, mailbox present_mode_requested: default ``` ### Steps to reproduce Warm shader and pipeline caches. Switches in every boot: `APS5_BINDLESS_IMAGES=1 APS5_BINDLESS_LAZY=1 APS5_BINDLESS_STATS=1 APS5_GPU_CHECKPOINTS=1 APS5_OUTPUT_RESOLUTION=1920x1080 APS5_RESULT_MEMO_MB=2048 APS5_TEXTURE_BUDGET_DEMAND=1 APS5_HOST_IMPORT_MIB=15360 APS5_PROFILE_DRAW=1`, plus `APS5_PROFILE_POPULATE=1 APS5_RELOAD_SPECIALIZED=1` from the local additions. Load the save, hold Cross through the loading screens, and let the opening run. The world appears after 5 to 6 minutes; world frames are 13 to 17 s apart when no pipeline is being built. | boot | extra switch | indirect dispatches (last `[indirect]` line) | end | world frames | minutes | |---|---|---|---|---|---| | 1 | | GPU-side | device loss, no checkpoint reached | 45 | 24 | | 2 | `APS5_NO_CARRIED_SHADOWS=1` | 47,984 GPU-side | device loss, checkpoint A below | 64 | 56 | | 3 | `APS5_REGISTRATION_PREPARE_COMMIT_GB=0` | 73,719 GPU-side | device loss, no checkpoint reached | 88 | 50 | | 4 | as 3, with #28465 | 14,600 GPU-side | device loss, checkpoint B below | 19 | 11 | | 5 | as 4, with `APS5_NO_GPU_INDIRECT=1` | 0 GPU-side, 88,659 CPU-side | a refusal that is not this issue (reported on #28218) | 118 | 87 | A sixth boot, between 2 and 3, stalled at the 45th world frame on the deadlock #28465 fixes and is not counted here. ### Log Boot 4, the whole `[device-fault]` block without its `env` lines (checkpoint B): ```text [device-fault] gpu NVIDIA GeForce RTX 4080 vendor 0x10de device 0x2704 driver NVIDIA 621.40 commit 108aec47c981 [device-fault] queue main [device-fault] staging shadow copies refused: 2913 (process-wide total) [device-fault] checkpoint: token 60950 batch 37170 queue 0xfc0c0e14d0 program 0xa956c00 variant 7478 stage compute dispatch indirect at stage 0x1 [device-fault] indirect token 60950 args 3 words from 0x804a7100080+0 stride 12: 000034fc 00000001 00000001 (record-time) [device-fault] checkpoint: token 60950 batch 37170 queue 0xfc0c0e14d0 program 0xa956c00 variant 7478 stage compute dispatch indirect observed at bottom-of-pipe [device-fault] indirect token 60950 args 3 words from 0x804a7100080+0 stride 12: 000034fc 00000001 00000001 (record-time) [device-fault] result 5: [device-fault] instruction pointer unknown at 0x226506180 (precision 0x10) [device-fault] no guest snapshot for batch 37170 [device-fault] live resource 0xfb9ced0000 size 0x1000 texture [device-fault] live resource 0x80410400000 size 0x160000 texture [device-fault] live resource 0x80410400000 size 0x160000 texture [device-fault] live resource 0x80423cc0000 size 0x16000 texture [device-fault] residency 0x226506180 unknown [device-fault] instruction pointer unknown at 0x226505760 (precision 0x10) [device-fault] no guest snapshot for batch 37170 [device-fault] live resource 0xfb9ced0000 size 0x1000 texture [device-fault] live resource 0x80410400000 size 0x160000 texture [device-fault] live resource 0x80410400000 size 0x160000 texture [device-fault] live resource 0x80423cc0000 size 0x16000 texture [device-fault] residency 0x226505760 unknown [device-fault] queue present [device-fault] no checkpoint reached terminate called after throwing an instance of 'std::runtime_error' what(): AGC graphics: vkWaitSemaphoresKHR recorder: Vulkan result -4 ``` Boot 2, checkpoint A: ```text [device-fault] checkpoint: token 152392 batch 68981 queue 0xfc0c0e14d0 program 0xa906200 variant 14463 stage compute dispatch indirect at stage 0x1 [device-fault] indirect token 152392 args 3 words from 0x108187d680+0 stride 12: 00002d08 00000001 00000001 (record-time) [device-fault] checkpoint: token 152392 batch 68981 queue 0xfc0c0e14d0 program 0xa906200 variant 14463 stage compute dispatch indirect observed at bottom-of-pipe [device-fault] indirect token 152392 args 3 words from 0x108187d680+0 stride 12: 00002d08 00000001 00000001 (record-time) ``` Last `[indirect]` lines of boots 4 and 5: ```text [indirect] (cumulative): gpu-side 14600, cpu-side 0 (thread dimensions 0, fill kernel 0, pending image results 0, pending label or copied write 0, not imported 0, misaligned 0, disabled 0, device memory LDS 0); CPU argument reads took 0.0 s [indirect] (cumulative): gpu-side 0, cpu-side 88659 (thread dimensions 0, fill kernel 0, pending image results 0, pending label or copied write 0, not imported 0, misaligned 0, disabled 88659, device memory LDS 0); CPU argument reads took 104.2 s ``` ### What was checked - It does not happen at a fixed point: 11, 24, 50 and 56 minutes, at the 19th to 88th world frame. - Both checkpoints are `compute dispatch indirect` with arguments `N 1 1`, N = 0x2d08 and 0x34fc (11,528 and 13,564 groups), on two different programs. Boots 1 and 3 reached no checkpoint, in a long run of compute dispatches in boot 3. - All four faults report `instruction pointer unknown` addresses and `residency ... unknown`; the present, settle and sparse queues reached no checkpoint. - One boot with `APS5_NO_GPU_INDIRECT=1` (boot 5) ran 87 minutes without a loss, against four with one. That is one boot, so I am repeating it. - Next, as @oneandonlydean asked on #27914: one boot with only `APS5_NO_GPU_THREAD_DIMENSIONS=1`, to say which kind of indirect dispatch the loss belongs to. - Private bytes are 38 to 41 GiB on a 32 GB host in all of these boots, and the device heap is at 13 to 14.7 GB of 16; I have not ruled memory pressure out as a factor. - #25010 (indirect dispatches over the workgroup count limit) is not merged here; these counts are under the limit. AI-assisted: yes. Claude Code ran the boots and tabulated the lines.
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
boykopovar/AnyPS5#28683
No description provided.