ASTRO BOT (PPSA21564) on Windows / AMD RX 6600 XT: GPU hang in the first 3D frames after the start-up logos (TDR, vkQueueSubmit -4) #6284

Open
opened 2026-10-15 08:59:09 +00:00 by Cleverdee · 6 comments
Cleverdee commented 2026-10-15 08:59:09 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Cleverdee on 2026-10-15T08:59:09Z.


What happens

ASTRO BOT (PPSA21564, 01.007.000) plays the start-up logos with sound, then stops at the final ASTRO BOT logo, where the first 3D scene starts. One recorded batch never completes; Windows resets the display driver and the next submission fails:

[gpu] recorded batch still running on the GPU after 5 s
[gpu] recorded batch still running on the GPU after 10 s
[device-fault] result 0: No fault detected
terminate called after throwing an instance of 'std::runtime_error'
  what():  AGC graphics: vkQueueSubmit recorder: Vulkan result -4

System log at the same time: event 4101 (Display driver amduw23g-... stopped responding and has successfully recovered) and a LiveKernelEvent 141.

It reproduces at the same point every run:

Run Build Setting Result
1 main d92a8dad3 default, cold shader cache 1832 shaders compiled, TDR after 6 min 40 s
2 main d92a8dad3 default, warm cache 1832 cache hits, 0 misses, TDR after 3 min 38 s
4 main d92a8dad3 TdrDelay=10 (rebooted) batch still running after 5 s and 10 s, then TDR
5 main db81992c5 + #4855 APS5_PM4_RING=64, APS5_STALL_WATCHDOG_SECS=3 same stop; rings below

With the timeout raised to 10 s the batch still does not finish, so this is a hang rather than slow work at 4K. The stall watchdog did not fire: no queue was waiting on a WAIT_REG_MEM, a REWIND or queue 0.

What the queues were doing (#4855 rings, run 5)

Queue 0 at that point is rendering full frames of the title's 3D scene. Its markers per frame are Draw Geometry_N, Draw Extra Geometry_N (ClearGBuffer_0, OutputGBuffer2_0, Spray_0, Ripple_0, Wind_0), Draw Decal_N (Resolve Cmask for lighting) and Draw Shadow_N (dir_shadow_0..2, spot_shadow_0/1, decal_shadow_0). Frames start about every 350-380 ms (t=252616, 252977, 253316, 253697 ms), which matches the ~2-3 fps seen on screen just before the stop. The last frame was submitted 50 ms after the previous one (t=253749 ms, Draw Geometry_1 .. Draw Shadow_1) and nothing completes after it.

  • Queue 0x40, every frame: JsParticleUpdate_Async, ResizeDepthOnAsync, GenerateMipMapMaxDepthOnAsync (5 dispatches, 4 WAIT_REG_MEM_64).
  • Queue 0x48: Async Geometry_N with FroxelUpdate, FroxelReprojection, FroxelCopy; its last full froxel submission is at t=250254 ms, then one single-dispatch submission at t=252977 ms.

All 9 compute programs in the rings (COMPUTE_PGM_LO writes) already ran in earlier frames that completed; none is first seen in the last second. So the stuck work is not a newly prepared shader. It looks data dependent (a program that completed in earlier frames does not terminate in this one), but I can't tell which draw or dispatch it is from here.

Ruled out

  • APS5_NO_GPL=1: stops 36 s in, before the first logo, with [device-fault] result 0: GPU fault / read invalid at 0xbeefdeadc000, which is #5150, not this.
  • The 64-bit LDS lock hang from #5271 / #833: none of the 3433 cached SPIR-V modules contains the LockedLdsUpdate pattern (OpGroupNonUniformElect plus OpAtomicCompareExchange).
  • VRAM: 2.3-2.7 GB of 7.4 GB in use shortly before the stop. Process memory about 17.7 GB of 32 GB.
  • #1065 (the RADV descriptor pool overrun behind AMD ring timeouts in #357): that shows as a page fault; here the driver reports none.
  • VK_EXT_device_fault reports no fault, and APS5_GPU_CHECKPOINTS needs the NVIDIA checkpoint extension, so there is no device-side record of the hung command. Radeon GPU Detective does not support RDNA 2 or Windows 10.

Linux runs on RTX 4090 and RX 9070 XT (RADV) pass this point (#357, #5309), so this looks specific to the AMD Windows driver or the Windows path.

Setup

Windows 10 Home 22H2 (19045), Ryzen 5 5600X, Radeon RX 6600 XT 8 GB (RDNA 2, 1002:73ff), driver 32.0.21045.5002 (Adrenalin 26.8.1), Vulkan 1.4.315, 32 GB RAM. WinLibs GCC 15.2.0 r7, Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF. The eboot was unwrapped with tools/unwrap_self.py; both bundled modules are plain ELF. No other environment variables. The title renders at 3840x2160.

I can run more switches on this machine, for example APS5_BATCH_CAP=1 with APS5_TRACE_DRAW_PROGRAMS=1 to narrow the batch to one draw, if that helps.

Attached:

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5863181376 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284). Originally posted by [Cleverdee](https://github.com/Cleverdee) on 2026-10-15T08:59:09Z. --- ### What happens ASTRO BOT (PPSA21564, 01.007.000) plays the start-up logos with sound, then stops at the final ASTRO BOT logo, where the first 3D scene starts. One recorded batch never completes; Windows resets the display driver and the next submission fails: ```text [gpu] recorded batch still running on the GPU after 5 s [gpu] recorded batch still running on the GPU after 10 s [device-fault] result 0: No fault detected terminate called after throwing an instance of 'std::runtime_error' what(): AGC graphics: vkQueueSubmit recorder: Vulkan result -4 ``` System log at the same time: event 4101 (`Display driver amduw23g-... stopped responding and has successfully recovered`) and a LiveKernelEvent 141. It reproduces at the same point every run: | Run | Build | Setting | Result | |---|---|---|---| | 1 | main `d92a8dad3` | default, cold shader cache | 1832 shaders compiled, TDR after 6 min 40 s | | 2 | main `d92a8dad3` | default, warm cache | 1832 cache hits, 0 misses, TDR after 3 min 38 s | | 4 | main `d92a8dad3` | `TdrDelay=10` (rebooted) | batch still running after 5 s and 10 s, then TDR | | 5 | main `db81992c5` + #4855 | `APS5_PM4_RING=64`, `APS5_STALL_WATCHDOG_SECS=3` | same stop; rings below | With the timeout raised to 10 s the batch still does not finish, so this is a hang rather than slow work at 4K. The stall watchdog did not fire: no queue was waiting on a `WAIT_REG_MEM`, a `REWIND` or queue 0. ### What the queues were doing (#4855 rings, run 5) Queue 0 at that point is rendering full frames of the title's 3D scene. Its markers per frame are `Draw Geometry_N`, `Draw Extra Geometry_N` (`ClearGBuffer_0`, `OutputGBuffer2_0`, `Spray_0`, `Ripple_0`, `Wind_0`), `Draw Decal_N` (`Resolve Cmask for lighting`) and `Draw Shadow_N` (`dir_shadow_0..2`, `spot_shadow_0/1`, `decal_shadow_0`). Frames start about every 350-380 ms (t=252616, 252977, 253316, 253697 ms), which matches the ~2-3 fps seen on screen just before the stop. The last frame was submitted 50 ms after the previous one (t=253749 ms, `Draw Geometry_1` .. `Draw Shadow_1`) and nothing completes after it. - Queue 0x40, every frame: `JsParticleUpdate_Async`, `ResizeDepthOnAsync`, `GenerateMipMapMaxDepthOnAsync` (5 dispatches, 4 `WAIT_REG_MEM_64`). - Queue 0x48: `Async Geometry_N` with `FroxelUpdate`, `FroxelReprojection`, `FroxelCopy`; its last full froxel submission is at t=250254 ms, then one single-dispatch submission at t=252977 ms. All 9 compute programs in the rings (`COMPUTE_PGM_LO` writes) already ran in earlier frames that completed; none is first seen in the last second. So the stuck work is not a newly prepared shader. It looks data dependent (a program that completed in earlier frames does not terminate in this one), but I can't tell which draw or dispatch it is from here. ### Ruled out - `APS5_NO_GPL=1`: stops 36 s in, before the first logo, with `[device-fault] result 0: GPU fault` / `read invalid at 0xbeefdeadc000`, which is #5150, not this. - The 64-bit LDS lock hang from #5271 / #833: none of the 3433 cached SPIR-V modules contains the `LockedLdsUpdate` pattern (`OpGroupNonUniformElect` plus `OpAtomicCompareExchange`). - VRAM: 2.3-2.7 GB of 7.4 GB in use shortly before the stop. Process memory about 17.7 GB of 32 GB. - #1065 (the RADV descriptor pool overrun behind AMD ring timeouts in #357): that shows as a page fault; here the driver reports none. - `VK_EXT_device_fault` reports no fault, and `APS5_GPU_CHECKPOINTS` needs the NVIDIA checkpoint extension, so there is no device-side record of the hung command. Radeon GPU Detective does not support RDNA 2 or Windows 10. Linux runs on RTX 4090 and RX 9070 XT (RADV) pass this point (#357, #5309), so this looks specific to the AMD Windows driver or the Windows path. ### Setup Windows 10 Home 22H2 (19045), Ryzen 5 5600X, Radeon RX 6600 XT 8 GB (RDNA 2, `1002:73ff`), driver 32.0.21045.5002 (Adrenalin 26.8.1), Vulkan 1.4.315, 32 GB RAM. WinLibs GCC 15.2.0 r7, Release, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`. The eboot was unwrapped with `tools/unwrap_self.py`; both bundled modules are plain ELF. No other environment variables. The title renders at 3840x2160. I can run more switches on this machine, for example `APS5_BATCH_CAP=1` with `APS5_TRACE_DRAW_PROGRAMS=1` to narrow the batch to one draw, if that helps. Attached: - [astro-pr4855-ring-game.err.txt](https://github.com/user-attachments/files/33483650/astro-pr4855-ring-game.err.txt) (run 5, with the rings) - [astro-main-tdr10-game.err.txt](https://github.com/user-attachments/files/33483649/astro-main-tdr10-game.err.txt) (run 4) AI-assisted: yes
MarcZX10 commented 2026-10-15 09:01:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T09:01:23Z.


The ring dump narrows the stall to the last queue-0 frame but not to one draw or dispatch within that submission. In the current source, APS5_BATCH_CAP is the maximum recorded-work count before submitting (default 64), and APS5_TRACE_DRAW_PROGRAMS=1 logs draw program addresses. A warm-cache run with APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1, keeping the same title/settings, should show the last individual work item that completes before the GPU hang. If the cap changes whether it hangs, that comparison would also help distinguish a single-command hang from an interaction/order issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188425680 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284#issuecomment-6188425680). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T09:01:23Z. --- The ring dump narrows the stall to the last queue-0 frame but not to one draw or dispatch within that submission. In the current source, `APS5_BATCH_CAP` is the maximum recorded-work count before submitting (default 64), and `APS5_TRACE_DRAW_PROGRAMS=1` logs draw program addresses. A warm-cache run with `APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1`, keeping the same title/settings, should show the last individual work item that completes before the GPU hang. If the cap changes whether it hangs, that comparison would also help distinguish a single-command hang from an interaction/order issue.
Cleverdee commented 2026-10-15 10:32:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Cleverdee on 2026-10-15T10:32:38Z.


Ran it: same build (main db81992c5 + #4855), warm cache, APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1, plus the same APS5_PM4_RING=64 APS5_STALL_WATCHDOG_SECS=3, TdrDelay=10.

The cap does not change it. It hangs at the same point, only slower (13 min 53 s instead of ~4 min): recorded batch still running on the GPU after 5 s, [device-fault] result 0: No fault detected, vkQueueSubmit recorder: Vulkan result -4, event 4101.

Where it stops. All traced draws before the hang belong to queue 0 serial 9679 (queue entry 5730, 25355 dwords): the main pass of the frame (first markers JsParticleUpdate, Main_0_0_0, ClearDistortionBuffer_0, blur_dir_shadow_0, ShadowVolume_0, CaptureCubemap_0, GiProbe_0). The same pass in the two previous frames (serials 9663 and 9671) has 218 draws with identical program pairs in identical order. In 9679 the trace stops after 67 draws, and those 67 match the earlier frames exactly:

  64  vertex/main=0x5008bed00 fragment/fragment=0x5008c0200
  65  vertex/main=0x148e7cd00 fragment/fragment=0x7ffbf9c98200   (rect-list draw, host fragment program)
  66  vertex/main=0x500644f00 fragment/fragment=0x500645900       <- last draw traced
  67  mesh/main=0xbe4bf100   fragment/fragment=0x500707b00       <- never decoded in 9679
  68  vertex/main=0x5008f0300 fragment/fragment=0x5008f1a00

[draw-programs] is printed when the draw is decoded (Draw.cpp, before recording), so draw 67 (the only mesh-stage draw in that part of the pass) was never decoded and never reached the GPU. The game had already submitted serials 9682-9686 (Draw Geometry_1 .. Draw Shadow_1), so the queue worker was blocked inside 9679 between finishing draw 66 and decoding draw 67, waiting on work already on the GPU. With the cap at 1, the stuck batch should be draw 66 (0x500644f00 / 0x500645900), the rect-list draw 65, or a dispatch recorded between 66 and 67 (dispatches aren't in this trace). No program in the last 300 traced draws is new.

Rect-list draws with a host fragment program appear at indices 9, 11, 65, 101 and 160 of each full frame; this run logs the usual Rect-list draw of shader 0x148e7cd00 has no rectangle for fragment shader 0x7ff...; preparing it at draw.

Log attached (zipped, 12 MB unpacked): astro-cap1-trace-game.err.zip. Happy to run a dispatch trace or anything else around draw 66/67.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6190026670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284#issuecomment-6190026670). Originally posted by [Cleverdee](https://github.com/Cleverdee) on 2026-10-15T10:32:38Z. --- Ran it: same build (main `db81992c5` + #4855), warm cache, `APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1`, plus the same `APS5_PM4_RING=64 APS5_STALL_WATCHDOG_SECS=3`, `TdrDelay=10`. **The cap does not change it.** It hangs at the same point, only slower (13 min 53 s instead of ~4 min): `recorded batch still running on the GPU after 5 s`, `[device-fault] result 0: No fault detected`, `vkQueueSubmit recorder: Vulkan result -4`, event 4101. **Where it stops.** All traced draws before the hang belong to queue 0 serial 9679 (queue entry 5730, 25355 dwords): the main pass of the frame (first markers `JsParticleUpdate`, `Main_0_0_0`, `ClearDistortionBuffer_0`, `blur_dir_shadow_0`, `ShadowVolume_0`, `CaptureCubemap_0`, `GiProbe_0`). The same pass in the two previous frames (serials 9663 and 9671) has 218 draws with identical program pairs in identical order. In 9679 the trace stops after 67 draws, and those 67 match the earlier frames exactly: ```text 64 vertex/main=0x5008bed00 fragment/fragment=0x5008c0200 65 vertex/main=0x148e7cd00 fragment/fragment=0x7ffbf9c98200 (rect-list draw, host fragment program) 66 vertex/main=0x500644f00 fragment/fragment=0x500645900 <- last draw traced 67 mesh/main=0xbe4bf100 fragment/fragment=0x500707b00 <- never decoded in 9679 68 vertex/main=0x5008f0300 fragment/fragment=0x5008f1a00 ``` `[draw-programs]` is printed when the draw is decoded (`Draw.cpp`, before recording), so draw 67 (the only mesh-stage draw in that part of the pass) was never decoded and never reached the GPU. The game had already submitted serials 9682-9686 (`Draw Geometry_1` .. `Draw Shadow_1`), so the queue worker was blocked inside 9679 between finishing draw 66 and decoding draw 67, waiting on work already on the GPU. With the cap at 1, the stuck batch should be draw 66 (`0x500644f00` / `0x500645900`), the rect-list draw 65, or a dispatch recorded between 66 and 67 (dispatches aren't in this trace). No program in the last 300 traced draws is new. Rect-list draws with a host fragment program appear at indices 9, 11, 65, 101 and 160 of each full frame; this run logs the usual `Rect-list draw of shader 0x148e7cd00 has no rectangle for fragment shader 0x7ff...; preparing it at draw`. Log attached (zipped, 12 MB unpacked): [astro-cap1-trace-game.err.zip](https://github.com/user-attachments/files/33487689/astro-cap1-trace-game.err.zip). Happy to run a dispatch trace or anything else around draw 66/67. AI-assisted: yes
MarcZX10 commented 2026-10-15 11:21:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T11:21:52Z.


One focused next capture: add APS5_TRACE_DISPATCH_IO=1 to the same warm-cache APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1 run. In current Dispatch.cpp, this prints each compute shader address ([dispatch-io] shader ...); the draw-program trace does not include dispatches, so this can reveal whether a compute dispatch occurs between draw 66 and the point where decoding draw 67 blocks. APS5_TRACE_DISPATCH_IO=2 also prints user-data words and will be much noisier, so I would start with =1.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6190863909 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284#issuecomment-6190863909). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T11:21:52Z. --- One focused next capture: add `APS5_TRACE_DISPATCH_IO=1` to the same warm-cache `APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1` run. In current `Dispatch.cpp`, this prints each compute shader address (`[dispatch-io] shader ...`); the draw-program trace does not include dispatches, so this can reveal whether a compute dispatch occurs between draw 66 and the point where decoding draw 67 blocks. `APS5_TRACE_DISPATCH_IO=2` also prints user-data words and will be much noisier, so I would start with `=1`.
MarcZX10 commented 2026-10-15 12:29:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T12:29:24Z.


Thanks, the cap=1 trace confirms the worker stalls before decoding draw 67, but it still cannot tell whether a queued compute dispatch is involved. Could you run the same warm-cache setup once with APS5_TRACE_DISPATCH_IO=1 added, keeping APS5_BATCH_CAP=1, APS5_TRACE_DRAW_PROGRAMS=1, and the existing watchdog/ring settings? Please include the final [dispatch-io] shader lines around the last completed serial and the corresponding [gpu] execute/done serial lines if present. This should help identify the dispatch boundary without the much noisier user-data mode.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6192062933 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284#issuecomment-6192062933). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T12:29:24Z. --- Thanks, the cap=1 trace confirms the worker stalls before decoding draw 67, but it still cannot tell whether a queued compute dispatch is involved. Could you run the same warm-cache setup once with `APS5_TRACE_DISPATCH_IO=1` added, keeping `APS5_BATCH_CAP=1`, `APS5_TRACE_DRAW_PROGRAMS=1`, and the existing watchdog/ring settings? Please include the final `[dispatch-io] shader` lines around the last completed serial and the corresponding `[gpu] execute/done serial` lines if present. This should help identify the dispatch boundary without the much noisier user-data mode.
Cleverdee commented 2026-10-15 15:05:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Cleverdee on 2026-10-15T15:05:16Z.


Ran it: same build (main db81992c5 + #4855), same warm cache, APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1 APS5_PM4_RING=64 APS5_STALL_WATCHDOG_SECS=3 APS5_TRACE_DISPATCH_IO=1, plus APS5_TRACE_GPU=1 for the execute/done serial lines. AMD driver is now 26.9.2 (32.0.21045.11001); the hang is the same on it. It took 66 min to get there with these traces (0.38 fps).

Same stop: queue 0 serial 9543 (the main pass), last draw decoded vertex/main=0x500644f00 fragment/fragment=0x500645900 right after the rect-list draw, then recorded batch still running on the GPU after 5 s / 10 s, no fault, Vulkan result -4, event 4101. The watchdog did not print.

No compute dispatch between draw 66 and the stall. The last [dispatch-io] shader line comes about 60 draws earlier:

1036788 [gpu] 3963688.5 queue 0x0 waits 0x502704a00 == 0x1 (now 0x0)
1036789 [gpu] 3963694.2 queue 0x0 waits 0x502704be0 == 0x1 (now 0x0)
1036790 [dispatch-io] shader 0x500758900
1036791 [dispatch-io] 1x1x1: texture 0x556760000+0x10000(1x1 f77 t7) nz=0.00 texture 0x5704f0000+0x10000(1x1 f77 t7) nz=1.00 storage 0x556760000+0x10000(1x1 f77 t7) nz=0.00 buffer(ro) 0x502dfbe60+0x10 ...
1036792 [gpu] 3963727.9 queue 0x0 waits 0x502dfbe30 == 0xdeadbeef (now 0x0)

What sits between the last draws is queue 0 WAIT_REG_MEMs, each logged and then satisfied (the next draw is decoded):

1036852 [draw-programs] submission=9543 queue=0x0 count=2 vertex/main=0x5008bed00 fragment/fragment=0x5008c0200
1036853 [gpu] 3964476.5 queue 0x0 waits 0x502deed60 == 0xdeadbeef (now 0x0)
1036854 [gpu] 3964482.6 queue 0x0 waits 0x5027096b0 == 0x1 (now 0x0)
1036855 [gpu] 3964488.1 queue 0x0 waits 0x5027097a0 == 0x1 (now 0x0)
1036856 [gpu] 3964494.4 queue 0x0 waits 0x502709da0 == 0x1 (now 0x0)
1036857 [draw-programs] submission=9543 queue=0x0 count=2 vertex/main=0x148e7cd00 fragment/fragment=0x7ff8e2bf8200   (rect-list)
1036858 [gpu] 3964512.3 queue 0x0 waits 0x50270a0e8 == 0x1 (now 0x0)
1036859 [draw-programs] submission=9543 queue=0x0 count=2 vertex/main=0x500644f00 fragment/fragment=0x500645900
1036860 [gpu] recorded batch still running on the GPU after 5 s
1036861 [gpu] recorded batch still running on the GPU after 10 s
1036862 [device-fault] result 0: No fault detected

So the wait between the rect-list draw and draw 66 completed, draw 66 was decoded, and the next GPU completion never came. With the cap at 1 that points at draw 66's batch (or the rect-list draw just before it, if that wait didn't depend on it).

Last execute / done serial per queue before the stall:

queue last done still executing
0x0 9542 (t=3961565.0) 9543 since t=3961571.4, 25k-dword main pass
0x40 9537 (t=3963564.7) 9545 since t=3963580.5
0x48 9539 (t=3961049.0) 9547 since t=3961058.4
0x3a 6928 (t=2264775.0) none

The [dispatch-io] lines don't name their queue, so I can't tell from this log whether 9545 / 9547 got any dispatch onto the GPU after the lines above; the excerpt has every line from the last ~340 before the stall.

Attached: astro-dispatch-tail.txt (last ~340 lines before the stall) and astro-dispatch-trace-game.err.zip (full log, 90 MB unpacked).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195284045 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284#issuecomment-6195284045). Originally posted by [Cleverdee](https://github.com/Cleverdee) on 2026-10-15T15:05:16Z. --- Ran it: same build (main `db81992c5` + #4855), same warm cache, `APS5_BATCH_CAP=1 APS5_TRACE_DRAW_PROGRAMS=1 APS5_PM4_RING=64 APS5_STALL_WATCHDOG_SECS=3 APS5_TRACE_DISPATCH_IO=1`, plus `APS5_TRACE_GPU=1` for the `execute`/`done serial` lines. AMD driver is now 26.9.2 (32.0.21045.11001); the hang is the same on it. It took 66 min to get there with these traces (0.38 fps). Same stop: queue 0 serial 9543 (the main pass), last draw decoded `vertex/main=0x500644f00 fragment/fragment=0x500645900` right after the rect-list draw, then `recorded batch still running on the GPU after 5 s / 10 s`, no fault, `Vulkan result -4`, event 4101. The watchdog did not print. **No compute dispatch between draw 66 and the stall.** The last `[dispatch-io] shader` line comes about 60 draws earlier: ```text 1036788 [gpu] 3963688.5 queue 0x0 waits 0x502704a00 == 0x1 (now 0x0) 1036789 [gpu] 3963694.2 queue 0x0 waits 0x502704be0 == 0x1 (now 0x0) 1036790 [dispatch-io] shader 0x500758900 1036791 [dispatch-io] 1x1x1: texture 0x556760000+0x10000(1x1 f77 t7) nz=0.00 texture 0x5704f0000+0x10000(1x1 f77 t7) nz=1.00 storage 0x556760000+0x10000(1x1 f77 t7) nz=0.00 buffer(ro) 0x502dfbe60+0x10 ... 1036792 [gpu] 3963727.9 queue 0x0 waits 0x502dfbe30 == 0xdeadbeef (now 0x0) ``` What sits between the last draws is queue 0 `WAIT_REG_MEM`s, each logged and then satisfied (the next draw is decoded): ```text 1036852 [draw-programs] submission=9543 queue=0x0 count=2 vertex/main=0x5008bed00 fragment/fragment=0x5008c0200 1036853 [gpu] 3964476.5 queue 0x0 waits 0x502deed60 == 0xdeadbeef (now 0x0) 1036854 [gpu] 3964482.6 queue 0x0 waits 0x5027096b0 == 0x1 (now 0x0) 1036855 [gpu] 3964488.1 queue 0x0 waits 0x5027097a0 == 0x1 (now 0x0) 1036856 [gpu] 3964494.4 queue 0x0 waits 0x502709da0 == 0x1 (now 0x0) 1036857 [draw-programs] submission=9543 queue=0x0 count=2 vertex/main=0x148e7cd00 fragment/fragment=0x7ff8e2bf8200 (rect-list) 1036858 [gpu] 3964512.3 queue 0x0 waits 0x50270a0e8 == 0x1 (now 0x0) 1036859 [draw-programs] submission=9543 queue=0x0 count=2 vertex/main=0x500644f00 fragment/fragment=0x500645900 1036860 [gpu] recorded batch still running on the GPU after 5 s 1036861 [gpu] recorded batch still running on the GPU after 10 s 1036862 [device-fault] result 0: No fault detected ``` So the wait between the rect-list draw and draw 66 completed, draw 66 was decoded, and the next GPU completion never came. With the cap at 1 that points at draw 66's batch (or the rect-list draw just before it, if that wait didn't depend on it). Last `execute` / `done` serial per queue before the stall: | queue | last `done` | still executing | |---|---|---| | 0x0 | 9542 (t=3961565.0) | 9543 since t=3961571.4, 25k-dword main pass | | 0x40 | 9537 (t=3963564.7) | 9545 since t=3963580.5 | | 0x48 | 9539 (t=3961049.0) | 9547 since t=3961058.4 | | 0x3a | 6928 (t=2264775.0) | none | The `[dispatch-io]` lines don't name their queue, so I can't tell from this log whether 9545 / 9547 got any dispatch onto the GPU after the lines above; the excerpt has every line from the last ~340 before the stall. Attached: [astro-dispatch-tail.txt](https://github.com/user-attachments/files/33499772/astro-dispatch-tail.txt) (last ~340 lines before the stall) and [astro-dispatch-trace-game.err.zip](https://github.com/user-attachments/files/33499773/astro-dispatch-trace-game.err.zip) (full log, 90 MB unpacked).
MarcZX10 commented 2026-10-17 04:39:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T04:39:07Z.


I opened PR #7010, a diagnostic-only change that adds the queue ID and submission serial to each APS5_TRACE_DISPATCH_IO shader line. It does not claim to fix the GPU hang. If it lands, the same capture can identify whether later dispatches came from queues 0x40 or 0x48 while queue 0 was stalled.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6229728610 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6284#issuecomment-6229728610). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T04:39:07Z. --- I opened [PR #7010](https://github.com/boykopovar/AnyPS5/pull/7010), a diagnostic-only change that adds the queue ID and submission serial to each `APS5_TRACE_DISPATCH_IO` shader line. It does not claim to fix the GPU hang. If it lands, the same capture can identify whether later dispatches came from queues `0x40` or `0x48` while queue 0 was stalled.
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#6284
No description provided.