Astro's playroom chashes after intro controller tutorial #1048

Closed
opened 2026-11-26 09:41:31 +00:00 by github-bot · 7 comments
Owner

@⁠CStone6 on GitHub · 2026-10-04 16:15 UTC · original

RADV_DEBUG=hang ./kyty_run.sh 
Initialized: Config
Initialized: Log
Initialized: Timer
Initialized: Pthread
Initialized: Profiler
Initialized: Network
Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
*****************************************************************************
* WARNING: RADV_DEBUG=hang is costly and should only be used for debugging! *
*****************************************************************************
Enabled debug options: syncshaders, hang, 
Vulkan pipeline cache: loading _PipelineCache/PPSA01325.bin
Vulkan pipeline cache: loaded 29166541 bytes from _PipelineCache/PPSA01325.bin
Initialized: Graphics
Title ID: PPSA01325
version = 7
Shaders: VS 0 | PS 0 | CS 1 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 0 | PS 0 | CS 2 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 0 | PS 0 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0
Shader: emitted zero-position clip guard
Shaders: VS 1 | PS 0 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 1 | PS 1 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 2 | PS 1 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0
GPU: using buffer device address (BDA) shader memory access.
Shaders: VS 3 | PS 1 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 3 | PS 1 | CS 4 | GS 0 | LS 0 | HS 0 | TES 0

Shaders: VS 44 | PS 57 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0
Shaders: VS 44 | PS 58 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0
Shaders: VS 44 | PS 59 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0
Shaders: VS 44 | PS 60 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0
Shaders: VS 45 | PS 60 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0
radv: GPU hang detected...
radv: GPU hang report will be saved to '/home/djkitty/radv_dumps_159734_2026.10.04_11.56.08'!
radv: GPU hang report saved successfully!
./kyty_run.sh: line 2: 159734 Aborted                    (core dumped) '/mnt/fast/Downloads/KytyPS5-2026-10-04-2984c41-Linux-x86_64/kyty_emulator' '--screen-width' '1280' '--screen-height' '720' '--user-name' 'Kyty' '--user-id' '1000' '--controller-volume' '100' '--controller-vibration' '100' '--present-mode' 'Mailbox' '--readback-linear-images' 'false' '--vblank-frequency' '60' '--console-language' '1' '--vulkan-validation' 'false' '--shader-validation' 'true' '--shader-optimization-type' 'Performance' '--shader-log-direction' 'Silent' '--shader-log-folder' '_Shaders' '--command-buffer-dump' 'false' '--command-buffer-dump-folder' '_Buffers' '--printf-direction' 'Silent' '--printf-output-file' '_kyty.txt' '--spirv-debug-printf' 'false' '--game' '/mnt/fast/Documents/ps5/PPSA01325-app0/eboot.bin'
Press any key...

Full logs.txt

GPU hang (vkQueueSubmit -> ErrorDeviceLost) on RX 7900 XT / RADV while
running PPSA01325. Kernel logs "ring gfx_0.0.0 timeout" attributed to
kyty_emulator. Ring reset succeeds, then the emulator aborts.
Reproducible: on all runs, happens with and without RADV_DEBUG=hang.

i would be happy to provide any other files if needed

Version "KytyPS5-2026-10-04-2984c41-Linux-x86_64"

game dumped from PS5 "PPSA01325"

System:
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2
Kernel Version: 7.2.7-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × Intel® Core™ Ultra 7 265KF
Memory: 32 GiB of RAM (31.0 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XT
Manufacturer: ASUS

radv_dumps_159734_2026.10.04_11.56.08.zip

radv_dumps_171561_2026.10.04_12.03.07.zip

coredump_159734.txt

**@⁠CStone6** on GitHub · 2026-10-04 16:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048) ``` RADV_DEBUG=hang ./kyty_run.sh Initialized: Config Initialized: Log Initialized: Timer Initialized: Pthread Initialized: Profiler Initialized: Network Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Audio ***************************************************************************** * WARNING: RADV_DEBUG=hang is costly and should only be used for debugging! * ***************************************************************************** Enabled debug options: syncshaders, hang, Vulkan pipeline cache: loading _PipelineCache/PPSA01325.bin Vulkan pipeline cache: loaded 29166541 bytes from _PipelineCache/PPSA01325.bin Initialized: Graphics Title ID: PPSA01325 version = 7 Shaders: VS 0 | PS 0 | CS 1 | GS 0 | LS 0 | HS 0 | TES 0 Shaders: VS 0 | PS 0 | CS 2 | GS 0 | LS 0 | HS 0 | TES 0 Shaders: VS 0 | PS 0 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0 Shader: emitted zero-position clip guard Shaders: VS 1 | PS 0 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0 Shaders: VS 1 | PS 1 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0 Shaders: VS 2 | PS 1 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0 GPU: using buffer device address (BDA) shader memory access. Shaders: VS 3 | PS 1 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0 Shaders: VS 3 | PS 1 | CS 4 | GS 0 | LS 0 | HS 0 | TES 0 Shaders: VS 44 | PS 57 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0 Shaders: VS 44 | PS 58 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0 Shaders: VS 44 | PS 59 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0 Shaders: VS 44 | PS 60 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0 Shaders: VS 45 | PS 60 | CS 27 | GS 3 | LS 0 | HS 0 | TES 0 radv: GPU hang detected... radv: GPU hang report will be saved to '/home/djkitty/radv_dumps_159734_2026.10.04_11.56.08'! radv: GPU hang report saved successfully! ./kyty_run.sh: line 2: 159734 Aborted (core dumped) '/mnt/fast/Downloads/KytyPS5-2026-10-04-2984c41-Linux-x86_64/kyty_emulator' '--screen-width' '1280' '--screen-height' '720' '--user-name' 'Kyty' '--user-id' '1000' '--controller-volume' '100' '--controller-vibration' '100' '--present-mode' 'Mailbox' '--readback-linear-images' 'false' '--vblank-frequency' '60' '--console-language' '1' '--vulkan-validation' 'false' '--shader-validation' 'true' '--shader-optimization-type' 'Performance' '--shader-log-direction' 'Silent' '--shader-log-folder' '_Shaders' '--command-buffer-dump' 'false' '--command-buffer-dump-folder' '_Buffers' '--printf-direction' 'Silent' '--printf-output-file' '_kyty.txt' '--spirv-debug-printf' 'false' '--game' '/mnt/fast/Documents/ps5/PPSA01325-app0/eboot.bin' Press any key... ``` [Full logs.txt](https://github.com/user-attachments/files/33028969/full.logs.txt) GPU hang (vkQueueSubmit -> ErrorDeviceLost) on RX 7900 XT / RADV while running PPSA01325. Kernel logs "ring gfx_0.0.0 timeout" attributed to kyty_emulator. Ring reset succeeds, then the emulator aborts. Reproducible: on all runs, happens with and without RADV_DEBUG=hang. i would be happy to provide any other files if needed Version "KytyPS5-2026-10-04-2984c41-Linux-x86_64" game dumped from PS5 "PPSA01325" System: Operating System: Fedora Linux 44 KDE Plasma Version: 6.7.5 KDE Frameworks Version: 6.30.0 Qt Version: 6.11.2 Kernel Version: 7.2.7-200.fc44.x86_64 (64-bit) Graphics Platform: Wayland Processors: 20 × Intel® Core™ Ultra 7 265KF Memory: 32 GiB of RAM (31.0 GiB usable) Graphics Processor: AMD Radeon RX 7900 XT Manufacturer: ASUS [radv_dumps_159734_2026.10.04_11.56.08.zip](https://github.com/user-attachments/files/33028746/radv_dumps_159734_2026.10.04_11.56.08.zip) [radv_dumps_171561_2026.10.04_12.03.07.zip](https://github.com/user-attachments/files/33028874/radv_dumps_171561_2026.10.04_12.03.07.zip) [coredump_159734.txt](https://github.com/user-attachments/files/33028846/coredump_159734.txt)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:41:31 +00:00
Author
Owner

@⁠BannedPenta01 on GitHub · 2026-10-09 00:25 UTC · original

Disclaimer: this comment was generated by an AI assistant from instrumented test runs. A human (game owner) hit this crash in normal play and asked me to report it.

Reproducing here with extra bisect data that may help isolate it:

Signature (3 occurrences, two builds): amdgpu: ring gfx_0.0.0 timeout in dmesg, then vkQueueSubmit failed: ErrorDeviceLost (-4), tick=... debug_op=3 ..., then Kyty Fatal Error ... commandScheduler.cpp:386. Kernel message says device wedged, but recovered through reset — the ring recovers, only the emulator exits. Game: Astro's Playroom PPSA01325 01.905.000, happens at light scene/video transitions a few minutes in (boot logos/title/menu all fine).

Bisect matrix (Ryzen Z1 handheld, RADV 25.3, 1280x720):

  • stock emulator + 1080p internal-resolution game patch: CRASH
  • patched emulator (video-decode threading + unrelated launcher work) + same patch: CRASH
  • stock emulator, no patch: clean 400s+
  • stock emulator + patch subsets (resolution-config writes only, selector writes only): clean 300s+ each
  • stock emulator + same patch, tiny 640x360 window: clean 300s+

So no single variable deterministically explains it — same config crashes and passes across runs. Looks intermittent (timing/thermal/load dependent) rather than caused by any one change. Crash runs cluster later in sessions (device heat-soaked ~90C); cold runs stay clean. Unproven, but a cold-vs-hot A/B would be cheap to confirm.

Two suggestions:

  1. Consider handling ErrorDeviceLost as recoverable (device + swapchain recreate) instead of fatal, since the kernel demonstrably resets the ring successfully.
  2. If anyone else hits this, dmesg | grep -E "ring gfx.*timeout|device wedged" distinguishes a real GPU hang from other fatal paths.
**@⁠BannedPenta01** on GitHub · 2026-10-09 00:25 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6071724191) Disclaimer: this comment was generated by an AI assistant from instrumented test runs. A human (game owner) hit this crash in normal play and asked me to report it. Reproducing here with extra bisect data that may help isolate it: **Signature** (3 occurrences, two builds): `amdgpu: ring gfx_0.0.0 timeout` in dmesg, then `vkQueueSubmit failed: ErrorDeviceLost (-4), tick=... debug_op=3 ...`, then Kyty `Fatal Error ... commandScheduler.cpp:386`. Kernel message says `device wedged, but recovered through reset` — the ring recovers, only the emulator exits. Game: Astro's Playroom PPSA01325 01.905.000, happens at light scene/video transitions a few minutes in (boot logos/title/menu all fine). **Bisect matrix** (Ryzen Z1 handheld, RADV 25.3, 1280x720): - stock emulator + 1080p internal-resolution game patch: CRASH - patched emulator (video-decode threading + unrelated launcher work) + same patch: CRASH - stock emulator, no patch: clean 400s+ - stock emulator + patch subsets (resolution-config writes only, selector writes only): clean 300s+ each - stock emulator + same patch, tiny 640x360 window: clean 300s+ So no single variable deterministically explains it — same config crashes and passes across runs. Looks intermittent (timing/thermal/load dependent) rather than caused by any one change. Crash runs cluster later in sessions (device heat-soaked ~90C); cold runs stay clean. Unproven, but a cold-vs-hot A/B would be cheap to confirm. **Two suggestions:** 1. Consider handling `ErrorDeviceLost` as recoverable (device + swapchain recreate) instead of fatal, since the kernel demonstrably resets the ring successfully. 2. If anyone else hits this, `dmesg | grep -E "ring gfx.*timeout|device wedged"` distinguishes a real GPU hang from other fatal paths.
Author
Owner

@⁠BannedPenta01 on GitHub · 2026-10-09 17:56 UTC · original

Disclaimer: AI-assisted follow-up to my comment above.

Update from further testing: I merged the Jetsku U59 tree (shader fixes: BVH traversal budgets, null-SRT rules, BDA-write handling) with our local handheld work, built it, and ran Astro's Playroom (PPSA01325, 720p internal patch) for a full 500 s session through boot, logos, title and tutorial prompts: no crash, no device loss, steady ~24 fps in the tutorial zones. The same session length reliably produced the ring hang on the older tree.

That points at the shader compiler (runaway traversal / bad resource read in a transition effect) rather than the resolution patch or video path. The merged branch is public if anyone wants to compare: bannedps5 branch with the same game patch applied.

**@⁠BannedPenta01** on GitHub · 2026-10-09 17:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6086371273) Disclaimer: AI-assisted follow-up to my comment above. Update from further testing: I merged the Jetsku U59 tree (shader fixes: BVH traversal budgets, null-SRT rules, BDA-write handling) with our local handheld work, built it, and ran Astro's Playroom (PPSA01325, 720p internal patch) for a full 500 s session through boot, logos, title and tutorial prompts: **no crash, no device loss**, steady ~24 fps in the tutorial zones. The same session length reliably produced the ring hang on the older tree. That points at the shader compiler (runaway traversal / bad resource read in a transition effect) rather than the resolution patch or video path. The merged branch is public if anyone wants to compare: `bannedps5` branch with the same game patch applied.
Author
Owner

@⁠BannedPenta01 on GitHub · 2026-10-09 22:26 UTC · original

[AI-generated — written by an AI coding assistant with the user's approval]

Update from a Ryzen Z1 / Radeon 780M (RADV, Batocera handheld): both the black-3D problem (issue #19 symptoms on Playroom) and the ring gfx timeout → device wedged crash were traced to two environment knobs, no code changes needed:

  1. KYTY_SRT_VARIANT_READS=1 — the GI lighting kernels read SRT pointers that no pre-dispatch evaluation can prove, so their dispatches were skipped: every lit surface renders black while 2D/HUD is fine.
  2. KYTY_RT_NODE_BUDGET — the 8192 default starves every software-BVH traversal on Astro's Playroom (still black). But a huge budget (tested 1e6 and 4e9) makes the BVH kernels long enough to trip the amdgpu ring timeout: on this APU that is exactly the intermittent vkQueueSubmit failed: ErrorDeviceLost (-4) / ring gfx_0.0.0 timeout / device wedged, recovered through reset crash after the intro. 262144 renders the scene lit and finished a 7-minute run with zero device losses.

So on RADV the hang is a runaway-compute timeout, not a driver reset bug: the same knob that fixed the black lighting also caused the GPU hang when set too high. Suggested follow-up: clamp the default node budget per-ray rather than per-dispatch, or scale it with a driver quirk for RADV.

Environment also sources the full u59-preset.json (RSS ~9.0 GB → ~6.8 GB on an 11 GB handheld). Verified on PortaS5 branch bannedps5, commit b10df297.

**@⁠BannedPenta01** on GitHub · 2026-10-09 22:26 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6090284419) **[AI-generated — written by an AI coding assistant with the user's approval]** Update from a Ryzen Z1 / Radeon 780M (RADV, Batocera handheld): both the black-3D problem (issue #19 symptoms on Playroom) and the `ring gfx timeout → device wedged` crash were traced to two environment knobs, no code changes needed: 1. `KYTY_SRT_VARIANT_READS=1` — the GI lighting kernels read SRT pointers that no pre-dispatch evaluation can prove, so their dispatches were skipped: every lit surface renders black while 2D/HUD is fine. 2. `KYTY_RT_NODE_BUDGET` — the 8192 default starves every software-BVH traversal on Astro's Playroom (still black). But a huge budget (tested 1e6 and 4e9) makes the BVH kernels long enough to trip the amdgpu ring timeout: on this APU that is exactly the intermittent `vkQueueSubmit failed: ErrorDeviceLost (-4)` / `ring gfx_0.0.0 timeout` / `device wedged, recovered through reset` crash after the intro. **262144 renders the scene lit and finished a 7-minute run with zero device losses.** So on RADV the hang is a runaway-compute timeout, not a driver reset bug: the same knob that fixed the black lighting also caused the GPU hang when set too high. Suggested follow-up: clamp the default node budget per-ray rather than per-dispatch, or scale it with a driver quirk for RADV. Environment also sources the full `u59-preset.json` (RSS ~9.0 GB → ~6.8 GB on an 11 GB handheld). Verified on PortaS5 branch `bannedps5`, commit `b10df297`.
Author
Owner

@⁠BannedPenta01 on GitHub · 2026-10-10 00:58 UTC · original

Correction to my earlier comment (AI-generated, take with a grain of salt):

My earlier suggestion to use KYTY_RT_NODE_BUDGET=262144 for Astro's Playroom on RADV handhelds is only half right, and my "no device loss over 7 minutes" claim only covered the intro scene. Full findings after longer testing on a Radeon 780M (Ryzen Z1, Batocera):

  • Black 3D fix confirmed: KYTY_SRT_VARIANT_READS=1 is required (the GI kernels read SRT pointers no pre-pass can prove, so their dispatches were skipped). Lighting also needs a node budget above the 8192 default — 262144 renders the title/hub lit.
  • The GPU hang is NOT solved by the budget knob. In the heavier scenes the software-BVH lighting dispatches do more node-test work than amdgpu's ~10 s ring watchdog allows: ring gfx_0.0.0 timeout → repeated resets → device wedged → vkQueueSubmit ErrorDeviceLost. It reproduced at both 65536 and 262144 (at 65536, ~100k invocations exhausted the budget in one run), so lowering the budget does not reliably avoid it.
  • Ruled out: VRAM (1.4 GiB of 6.6 GiB used, 0 evictions) and the SRT: reads unmapped address 0x28 warnings (present identically in crash-free runs).
  • amdgpu.lockup_timeout is read-only at runtime on this kernel, so the watchdog cannot be raised from userspace. A real fix likely needs the lighting dispatch split or shrunk upstream.

I've corrected my notes in BannedPenta01/PortaS5 (docs/EXPERIMENTAL.md, branch bannedps5, commit ec970dd8). Sorry for the earlier over-optimistic report.

**@⁠BannedPenta01** on GitHub · 2026-10-10 00:58 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6091896142) **Correction to my earlier comment** (AI-generated, take with a grain of salt): My earlier suggestion to use `KYTY_RT_NODE_BUDGET=262144` for Astro's Playroom on RADV handhelds is only half right, and my "no device loss over 7 minutes" claim only covered the intro scene. Full findings after longer testing on a Radeon 780M (Ryzen Z1, Batocera): - **Black 3D fix confirmed:** `KYTY_SRT_VARIANT_READS=1` is required (the GI kernels read SRT pointers no pre-pass can prove, so their dispatches were skipped). Lighting also needs a node budget above the 8192 default — 262144 renders the title/hub lit. - **The GPU hang is NOT solved by the budget knob.** In the heavier scenes the software-BVH lighting dispatches do more node-test work than amdgpu's ~10 s ring watchdog allows: `ring gfx_0.0.0 timeout` → repeated resets → `device wedged` → `vkQueueSubmit ErrorDeviceLost`. It reproduced at both 65536 and 262144 (at 65536, ~100k invocations exhausted the budget in one run), so lowering the budget does not reliably avoid it. - **Ruled out:** VRAM (1.4 GiB of 6.6 GiB used, 0 evictions) and the `SRT: reads unmapped address 0x28` warnings (present identically in crash-free runs). - `amdgpu.lockup_timeout` is read-only at runtime on this kernel, so the watchdog cannot be raised from userspace. A real fix likely needs the lighting dispatch split or shrunk upstream. I've corrected my notes in BannedPenta01/PortaS5 (docs/EXPERIMENTAL.md, branch `bannedps5`, commit ec970dd8). Sorry for the earlier over-optimistic report.
Author
Owner

@⁠RobbieBruh on GitHub · 2026-10-11 01:21 UTC · original

Got the same crash on AMD 6700XT, the GPU driver also crashes

**@⁠RobbieBruh** on GitHub · 2026-10-11 01:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6104148957) Got the same crash on AMD 6700XT, the GPU driver also crashes
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-16 12:00 UTC · original

@⁠CStone6 (or anyone who hits this on Linux): could you capture the hang after the controller tutorial again with RADV_DEBUG=hang and umr installed? Both attached dumps have no wave PCs (umr_waves.log: umr: command not found; pipeline.log: "The number of active waves = 0"). With umr, the dump records them. If they fall between BB306 and BB413 in pipeline.log (my mapping of the loop below; BB413 is the i + 1 and the jump back), this loop is the hang.

Why that loop: in both dumps (build 2984c41), the dispatch after RADV's last reached trace point is DISPATCH_DIRECT 1x2048x1, pipeline 2a4cf9cc3c549016, wave64. Its shader has a loop that can run forever under Kyty's memory rules:

  • OpLoopMerge %84 %83 walks a list of 8-byte entries read with the guest's s_buffer_load. The index goes up by one per pass (%2748), and the only exit is %2746 = OpSLessThan %bool %2637 %uint_0: a negative "link" word.
  • Both loads return 0 when the read is past max(stride, 1) * num_records or get_bda_pointer finds no page (LoadIndirectScalarBuffer, LoadBdaDword in spirvEmitterMemory.cpp, unchanged at 3ff6606f). 0 is never negative, so if the list's page isn't in the BDA table, the loop never ends.
  • The miss is recorded in the fault buffer, but FaultManager::ProcessFaultBuffer reads it only after waiting for the submission to complete, which a hung dispatch never does. That fits #1054 (same game, same spot): its log is from a run that didn't hang and shows 3 "Accessed non-GPU cached memory" faults.

I reproduced the mechanism on an RX 9070 XT with a wave64 compute test of the same shape (descriptor loaded with s_buffer_load_dwordx4, stride 8, {node, link} pairs read with s_buffer_load_dwordx2 until the link is negative, capped at 4096 passes). With the page mapped it stops after 4 entries. With the page missing from the BDA table, every read returns 0 and it runs to the cap, while the page's fault bit is set.

#1506 (open) wouldn't cover this as described: its Limits section says offsets it can't bound (loop counters, values read from memory) still use the fault path, and here the index is a loop counter and the descriptor itself is loaded through get_bda_pointer (%2007, %2024, %2344).

Until the wave PCs are in, this is a hypothesis. A local diagnostic, not a proposed change, for anyone with the game and a build: make those two loads return 0x80000000 instead of 0. If the hang goes away, the 0 came from Kyty (unmapped page or out of range); a 0 actually stored in memory isn't affected by this.

Written with Claude Code (AI). It read the dumps and the code, ran the GPU test on my PC and checked the results; I reviewed this comment before posting it.

**@⁠Nawid3333** on GitHub · 2026-10-16 12:00 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6215026891) @⁠CStone6 (or anyone who hits this on Linux): could you capture the hang after the controller tutorial again with `RADV_DEBUG=hang` and `umr` installed? Both attached dumps have no wave PCs (`umr_waves.log`: `umr: command not found`; `pipeline.log`: "The number of active waves = 0"). With `umr`, the dump records them. If they fall between `BB306` and `BB413` in `pipeline.log` (my mapping of the loop below; `BB413` is the `i + 1` and the jump back), this loop is the hang. Why that loop: in both dumps (build 2984c41), the dispatch after RADV's last reached trace point is `DISPATCH_DIRECT` 1x2048x1, pipeline `2a4cf9cc3c549016`, wave64. Its shader has a loop that can run forever under Kyty's memory rules: - `OpLoopMerge %84 %83` walks a list of 8-byte entries read with the guest's `s_buffer_load`. The index goes up by one per pass (`%2748`), and the only exit is `%2746 = OpSLessThan %bool %2637 %uint_0`: a negative "link" word. - Both loads return 0 when the read is past `max(stride, 1) * num_records` or `get_bda_pointer` finds no page (`LoadIndirectScalarBuffer`, `LoadBdaDword` in `spirvEmitterMemory.cpp`, unchanged at 3ff6606f). 0 is never negative, so if the list's page isn't in the BDA table, the loop never ends. - The miss is recorded in the fault buffer, but `FaultManager::ProcessFaultBuffer` reads it only after waiting for the submission to complete, which a hung dispatch never does. That fits #1054 (same game, same spot): its log is from a run that didn't hang and shows 3 "Accessed non-GPU cached memory" faults. I reproduced the mechanism on an RX 9070 XT with a wave64 compute test of the same shape (descriptor loaded with `s_buffer_load_dwordx4`, stride 8, `{node, link}` pairs read with `s_buffer_load_dwordx2` until the link is negative, capped at 4096 passes). With the page mapped it stops after 4 entries. With the page missing from the BDA table, every read returns 0 and it runs to the cap, while the page's fault bit is set. #1506 (open) wouldn't cover this as described: its Limits section says offsets it can't bound (loop counters, values read from memory) still use the fault path, and here the index is a loop counter and the descriptor itself is loaded through `get_bda_pointer` (`%2007`, `%2024`, `%2344`). Until the wave PCs are in, this is a hypothesis. A local diagnostic, not a proposed change, for anyone with the game and a build: make those two loads return `0x80000000` instead of 0. If the hang goes away, the 0 came from Kyty (unmapped page or out of range); a 0 actually stored in memory isn't affected by this. Written with Claude Code (AI). It read the dumps and the code, ran the GPU test on my PC and checked the results; I reviewed this comment before posting it.
Author
Owner

@⁠Nmzik on GitHub · 2026-10-18 16:45 UTC · original

Duplicate of #1552.

Consolidating compatibility evidence for PPSA01325 in the newer report #1552. This older report has no posted screenshots or video in its body or comments. Its logs and discussion remain available here; this closure consolidates reports and does not mark the reported behavior as fixed.

**@⁠Nmzik** on GitHub · 2026-10-18 16:45 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1048#issuecomment-6252471264) Duplicate of #1552. Consolidating compatibility evidence for PPSA01325 in the newer report #1552. This older report has no posted screenshots or video in its body or comments. Its logs and discussion remain available here; this closure consolidates reports and does not mark the reported behavior as fixed.
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/KytyPS5--KytyPS5#1048
No description provided.