[GAME STATUS]: Astro Bot (PPSA21564) - boot crash on official builds; with local fixes, GPU hang (DEVICE_LOST) after intro on RTX 5070 #1498

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

@⁠waffleman159 on GitHub · 2026-10-14 01:02 UTC · original

Game title

Astro Bot

Game ID / serial

PPSA21564

KytyPS5 version

Official KytyPS5-2026-10-12-df5b9b9 (also KytyPS5-2026-10-05-dc3cd2d); source build 9e41d83 with the attached patch

Compatibility status

Doesn't boot

Last working build / first broken build

None found; 2026-10-05 and 2026-10-12 official builds both crash at the same point.

Result details

Official builds crash during startup, right after the 3rd vertex shader is compiled:

Unhandled host exception: type=1 code=3221225477 access=1 address=0x0000000000000018
in src/loader/runtimeLinker.cpp (the generic host exception reporter)

Investigating with a source build of 9e41d83 turned up five issues. Patches for the first three are attached (kytyps5-astrobot-nvidia-fixes.patch).

  1. Host null-pointer read in the SRT walker (boot crash)
    The faulting code is the CRT memcpy called from SrtReadCapture::ReadOrdinary
    (SrtWalker.cpp). pipelineCache.cpp sets only read_specialization_memory, so ordinary
    SRT reads fall back to a raw memcpy from the guest address. For several compute shaders
    the resource table pointer in user data is 0, so the walker reads 0x18, 0x30/0x34 and
    0x58/0x5c directly. Same crash on 2026-10-05 and 2026-10-12 official builds.
    Patch: reads through the first page (address < 0x1000) evaluate as zero on the unchecked
    raw paths (ReadOrdinary, EvaluateRawRead, and the SRT JIT, which redirects a null table
    pointer to a static zero table). Reads through a supplied reader keep the existing
    "unreadable = failure" behaviour, so the existing tests that check that still pass.

  2. Null resource tables for compute dispatches (ray-tracing shaders)
    The null tables in (1) come from many compute dispatches throughout startup (first at
    CS 16-19, then repeatedly during the intro). As an experiment I skipped those
    dispatches; it did not change issue (5).
    The Jetsku fork (see below) logs the same reads for this game, e.g.
    SRT: compute shader 0x503d7f066a496c3c reads unmapped address 0x30 before its
    dispatch; the read returns 0, as the GPU reads an unmapped page, and the dispatch runs.
    and identifies those shaders as containing BVH intersection instructions. So these are
    Astro Bot's ray-tracing compute shaders, which the fork runs through a software RT path.
    The fork's handling of the null read (evaluate as zero, keep the dispatch) matches the
    patch for (1). No separate patch for this one.

  3. windeployqt step breaks when the install path contains a space
    src/launcher/CMakeLists.txt passes ${QT_WINDEPLOYQT} unquoted inside install(CODE).
    With Qt under "C:/Users//Downloads/New folder/...", execute_process tries to run
    "C:/Users//Downloads/New" and fails silently. The install then has no Qt6*.dll and
    launcher.exe fails with "Qt6Core.dll was not found".
    Patch: quote the path, and fail the install if windeployqt returns non-zero.

  4. Null depth-compare texture uses an R32_SFLOAT dummy (Vulkan validation error on NVIDIA)
    With Vulkan validation enabled:
    vkCmdDispatch(): the sampled image descriptor [Set 0, Binding 24, Index 0,
    "image_24"] has VkImageView with format VK_FORMAT_R32_SFLOAT which doesn't support
    VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT (VUID-vkCmdDispatch-None-06479)
    The binding is a null texture: NullTextureDesc always creates an R32_SFLOAT dummy for
    float images. AMD supports depth compare on R32_SFLOAT; NVIDIA does not.
    Patch: when the null resource is sampled with depth_compare, create the dummy as
    D32_SFLOAT with a depth aspect. After this, plain validation runs past that point with
    no errors.

  5. GPU hang after the intro video (not fixed)
    With 1-4 applied, the game plays the intro video, compiles ~40-48 compute shaders, then:
    Not implemented (result != vk::Result::eSuccess) in masterSemaphore.cpp:53
    That is waitSemaphores() failing, i.e. VK_ERROR_DEVICE_LOST. Windows logs nvlddmkm
    Event 153 (GPU reset after a hang/timeout) at the same moment. The exact point varies
    slightly between runs (CS 42-48).
    GPU-assisted validation (--gpu-assisted-validation true, made non-fatal locally so it
    could run to the hang) reports no out-of-bounds or invalid memory accesses. It reports
    only shared-memory races on "lds_dwords", almost all in one compute shader (layer
    internal shader ID 23), between lanes like 0/31, 1/3, 2/6, 4/12. The last finding
    before the hang is a race against an OpAtomicExchange on lds_dwords in that shader.
    Hypothesis: the shader takes an LDS spin lock. On this GPU the host subgroup is 32, so
    a wave64 shader runs with lane_count = 2 (one invocation emulates two lanes). If two
    lanes emulated by the same invocation contend for the lock, the spin can never finish,
    causing a TDR and DEVICE_LOST. AMD hosts with native wave64 would not hit this path.
    I have not confirmed this hypothesis.

Comparison: on the same PC, GPU and driver, the Jetsku fork runs this game fine.
Build u59-windows-20261003-rtx50test2 (int4b plus the swapchain fix from PR #1001) goes
through the intro into gameplay and runs for several minutes at ~60 fps ("last 60 s,
59.8 fps"), with no device lost and a clean exit. Its release notes list possible
RTX 40/50 device-lost fixes (real GPU clock for S_MEMREALTIME, a DPP/EXEC fix, and a
dispatcher loop cap of 4096 block transitions), plus a software RT path for the BVH
shaders in (2). One of those is probably what avoids (5) in mainline.

Steps to reproduce the result

  1. Open KytyPS5 (official 2026-10-12-df5b9b9) and boot Astro Bot (PPSA21564).
  2. It crashes during startup with the 0x18 host exception (issue 1).
  3. With the attached patch applied to 9e41d83: the intro video plays, then the GPU hangs
    with DEVICE_LOST in masterSemaphore.cpp:53 a few seconds later (issue 5).
  4. For issue 5 diagnostics: run kyty_emulator.exe --game --gpu-assisted-validation true

Expected behavior

The game boots past the intro into gameplay. It does on this same PC with the Jetsku fork (u59-windows-20261003-rtx50test2, ~60 fps), and the compatibility database reports Astro Bot in-game on Windows + NVIDIA (PPSA21567).

OS

Windows 11 25H2 (build 10.0.26200), VBS/HVCI enabled

CPU

Intel Core Ultra 7 270k Plus

GPU

NVIDIA GeForce RTX 5070 (Blackwell, device 0x2f04), driver 617.42, Vulkan 1.4.351

RAM / VRAM

32 GB DDR5 RAM / 12 GB VRAM

Log file upload

06_jetsku_u59-rtx50test2_working_60fps.txt
03_patched_9e41d83_device_lost.txt
04_patched_vulkan_validation_depth_compare_error.txt
05_patched_gpu_assisted_validation_to_hang.txt
01_official_2026-10-12-df5b9b9_boot_crash.txt
02_official_2026-10-05-dc3cd2d_boot_crash.txt
README.txt

Screenshots/video

No response

Extra notes

  • Patch attached: kytyps5-astrobot-nvidia-fixes.patch (applies to 9e41d83; 3 files, +47/-3).
    Covers issues 1, 3 and 4 only.
  • Testing: built locally with clang-cl. With the patch the game boots past the original
    crash and plain Vulkan validation is clean up to the hang. Shader unit tests
    scalar_provenance_tests and resource_tracking_tests pass with the patch.
  • AI disclosure: the investigation and patches were done with help from an AI assistant
    (Claude). It disassembled the official build to locate the crash and wrote and tested the
    patches and diagnostics. I built and ran every change on my
    machine and reviewed this report before posting.
  • Vulkan/overlay layers loaded on this PC (from the fork's log): RTSS, OBS graphics hook,
    Overwolf, and the Khronos validation layer (Vulkan SDK installed for the testing above).
    They are present in both the failing mainline runs and the working fork run.
  • Happy to test changes on NVIDIA.
**@⁠waffleman159** on GitHub · 2026-10-14 01:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1498) ### Game title Astro Bot ### Game ID / serial PPSA21564 ### KytyPS5 version Official KytyPS5-2026-10-12-df5b9b9 (also KytyPS5-2026-10-05-dc3cd2d); source build 9e41d83 with the attached patch ### Compatibility status Doesn't boot ### Last working build / first broken build None found; 2026-10-05 and 2026-10-12 official builds both crash at the same point. ### Result details Official builds crash during startup, right after the 3rd vertex shader is compiled: Unhandled host exception: type=1 code=3221225477 access=1 address=0x0000000000000018 in src/loader/runtimeLinker.cpp (the generic host exception reporter) Investigating with a source build of 9e41d83 turned up five issues. Patches for the first three are attached (kytyps5-astrobot-nvidia-fixes.patch). 1) Host null-pointer read in the SRT walker (boot crash) The faulting code is the CRT memcpy called from SrtReadCapture::ReadOrdinary (SrtWalker.cpp). pipelineCache.cpp sets only read_specialization_memory, so ordinary SRT reads fall back to a raw memcpy from the guest address. For several compute shaders the resource table pointer in user data is 0, so the walker reads 0x18, 0x30/0x34 and 0x58/0x5c directly. Same crash on 2026-10-05 and 2026-10-12 official builds. Patch: reads through the first page (address < 0x1000) evaluate as zero on the unchecked raw paths (ReadOrdinary, EvaluateRawRead, and the SRT JIT, which redirects a null table pointer to a static zero table). Reads through a supplied reader keep the existing "unreadable = failure" behaviour, so the existing tests that check that still pass. 2) Null resource tables for compute dispatches (ray-tracing shaders) The null tables in (1) come from many compute dispatches throughout startup (first at CS 16-19, then repeatedly during the intro). As an experiment I skipped those dispatches; it did not change issue (5). The Jetsku fork (see below) logs the same reads for this game, e.g. SRT: compute shader 0x503d7f066a496c3c reads unmapped address 0x30 before its dispatch; the read returns 0, as the GPU reads an unmapped page, and the dispatch runs. and identifies those shaders as containing BVH intersection instructions. So these are Astro Bot's ray-tracing compute shaders, which the fork runs through a software RT path. The fork's handling of the null read (evaluate as zero, keep the dispatch) matches the patch for (1). No separate patch for this one. 3) windeployqt step breaks when the install path contains a space src/launcher/CMakeLists.txt passes ${QT_WINDEPLOYQT} unquoted inside install(CODE). With Qt under "C:/Users/<me>/Downloads/New folder/...", execute_process tries to run "C:/Users/<me>/Downloads/New" and fails silently. The install then has no Qt6*.dll and launcher.exe fails with "Qt6Core.dll was not found". Patch: quote the path, and fail the install if windeployqt returns non-zero. 4) Null depth-compare texture uses an R32_SFLOAT dummy (Vulkan validation error on NVIDIA) With Vulkan validation enabled: vkCmdDispatch(): the sampled image descriptor [Set 0, Binding 24, Index 0, "image_24"] has VkImageView with format VK_FORMAT_R32_SFLOAT which doesn't support VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT (VUID-vkCmdDispatch-None-06479) The binding is a null texture: NullTextureDesc always creates an R32_SFLOAT dummy for float images. AMD supports depth compare on R32_SFLOAT; NVIDIA does not. Patch: when the null resource is sampled with depth_compare, create the dummy as D32_SFLOAT with a depth aspect. After this, plain validation runs past that point with no errors. 5) GPU hang after the intro video (not fixed) With 1-4 applied, the game plays the intro video, compiles ~40-48 compute shaders, then: Not implemented (result != vk::Result::eSuccess) in masterSemaphore.cpp:53 That is waitSemaphores() failing, i.e. VK_ERROR_DEVICE_LOST. Windows logs nvlddmkm Event 153 (GPU reset after a hang/timeout) at the same moment. The exact point varies slightly between runs (CS 42-48). GPU-assisted validation (--gpu-assisted-validation true, made non-fatal locally so it could run to the hang) reports no out-of-bounds or invalid memory accesses. It reports only shared-memory races on "lds_dwords", almost all in one compute shader (layer internal shader ID 23), between lanes like 0/31, 1/3, 2/6, 4/12. The last finding before the hang is a race against an OpAtomicExchange on lds_dwords in that shader. Hypothesis: the shader takes an LDS spin lock. On this GPU the host subgroup is 32, so a wave64 shader runs with lane_count = 2 (one invocation emulates two lanes). If two lanes emulated by the same invocation contend for the lock, the spin can never finish, causing a TDR and DEVICE_LOST. AMD hosts with native wave64 would not hit this path. I have not confirmed this hypothesis. Comparison: on the same PC, GPU and driver, the Jetsku fork runs this game fine. Build u59-windows-20261003-rtx50test2 (int4b plus the swapchain fix from PR #1001) goes through the intro into gameplay and runs for several minutes at ~60 fps ("last 60 s, 59.8 fps"), with no device lost and a clean exit. Its release notes list possible RTX 40/50 device-lost fixes (real GPU clock for S_MEMREALTIME, a DPP/EXEC fix, and a dispatcher loop cap of 4096 block transitions), plus a software RT path for the BVH shaders in (2). One of those is probably what avoids (5) in mainline. ### Steps to reproduce the result 1. Open KytyPS5 (official 2026-10-12-df5b9b9) and boot Astro Bot (PPSA21564). 2. It crashes during startup with the 0x18 host exception (issue 1). 3. With the attached patch applied to 9e41d83: the intro video plays, then the GPU hangs with DEVICE_LOST in masterSemaphore.cpp:53 a few seconds later (issue 5). 4. For issue 5 diagnostics: run kyty_emulator.exe --game <game folder> --gpu-assisted-validation true ### Expected behavior The game boots past the intro into gameplay. It does on this same PC with the Jetsku fork (u59-windows-20261003-rtx50test2, ~60 fps), and the compatibility database reports Astro Bot in-game on Windows + NVIDIA (PPSA21567). ### OS Windows 11 25H2 (build 10.0.26200), VBS/HVCI enabled ### CPU Intel Core Ultra 7 270k Plus ### GPU NVIDIA GeForce RTX 5070 (Blackwell, device 0x2f04), driver 617.42, Vulkan 1.4.351 ### RAM / VRAM 32 GB DDR5 RAM / 12 GB VRAM ### Log file upload [06_jetsku_u59-rtx50test2_working_60fps.txt](https://github.com/user-attachments/files/33411237/06_jetsku_u59-rtx50test2_working_60fps.txt) [03_patched_9e41d83_device_lost.txt](https://github.com/user-attachments/files/33411238/03_patched_9e41d83_device_lost.txt) [04_patched_vulkan_validation_depth_compare_error.txt](https://github.com/user-attachments/files/33411235/04_patched_vulkan_validation_depth_compare_error.txt) [05_patched_gpu_assisted_validation_to_hang.txt](https://github.com/user-attachments/files/33411236/05_patched_gpu_assisted_validation_to_hang.txt) [01_official_2026-10-12-df5b9b9_boot_crash.txt](https://github.com/user-attachments/files/33411234/01_official_2026-10-12-df5b9b9_boot_crash.txt) [02_official_2026-10-05-dc3cd2d_boot_crash.txt](https://github.com/user-attachments/files/33411232/02_official_2026-10-05-dc3cd2d_boot_crash.txt) [README.txt](https://github.com/user-attachments/files/33411233/README.txt) ### Screenshots/video _No response_ ### Extra notes - Patch attached: kytyps5-astrobot-nvidia-fixes.patch (applies to 9e41d83; 3 files, +47/-3). Covers issues 1, 3 and 4 only. - Testing: built locally with clang-cl. With the patch the game boots past the original crash and plain Vulkan validation is clean up to the hang. Shader unit tests scalar_provenance_tests and resource_tracking_tests pass with the patch. - AI disclosure: the investigation and patches were done with help from an AI assistant (Claude). It disassembled the official build to locate the crash and wrote and tested the patches and diagnostics. I built and ran every change on my machine and reviewed this report before posting. - Vulkan/overlay layers loaded on this PC (from the fork's log): RTSS, OBS graphics hook, Overwolf, and the Khronos validation layer (Vulkan SDK installed for the testing above). They are present in both the failing mainline runs and the working fork run. - Happy to test changes on NVIDIA.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:58:03 +00:00
Author
Owner

@⁠devklex on GitHub · 2026-10-18 04:21 UTC · original

I hit what looks like the same DEVICE_LOST on an RTX 4090, about 45 s after New Game, and tracked it down. In case it helps:

  • Kyty emulates LDS in vertex and pixel shaders with a per-invocation private array of 8192 dwords (32 KB). NVIDIA keeps such arrays in local memory, which the driver reserves for every thread that can be in flight.
  • Astro Bot's pixel shader 0xab3583abbc20f2ae spills registers to LDS (DS_WRITE_ADDTID_B32 / DS_READ_ADDTID_B32) and only touches the first 192 dwords. With 32 KB per thread, a VK_EXT_device_fault report (from my local logging) shows WriteInvalid at addresses that no buffer or image ever owned. The reported fault location also changed from build to build, so the crash looked random. My reading is that 32 KB per thread overruns the local memory the driver reserves.
  • Sizing that array to the highest LDS address the shader can reach (193 dwords for this shader; still 8192 when no bound can be proven) fixed it here. Runs of 10 and 12 minutes went through the opening into the first playable scene, the crash-site tutorial, without a device loss. I didn't change anything for the compute-shader LDS race in item 5.

The boot crash in this report is the null SRT-table read that #1365 addresses.

I can open a PR with the LDS change if that's useful. (Investigated with Claude Code, an AI assistant, which also drafted this comment. I read it before posting.)

**@⁠devklex** on GitHub · 2026-10-18 04:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1498#issuecomment-6245599512) I hit what looks like the same DEVICE_LOST on an RTX 4090, about 45 s after New Game, and tracked it down. In case it helps: - Kyty emulates LDS in vertex and pixel shaders with a per-invocation private array of 8192 dwords (32 KB). NVIDIA keeps such arrays in local memory, which the driver reserves for every thread that can be in flight. - Astro Bot's pixel shader `0xab3583abbc20f2ae` spills registers to LDS (`DS_WRITE_ADDTID_B32` / `DS_READ_ADDTID_B32`) and only touches the first 192 dwords. With 32 KB per thread, a `VK_EXT_device_fault` report (from my local logging) shows `WriteInvalid` at addresses that no buffer or image ever owned. The reported fault location also changed from build to build, so the crash looked random. My reading is that 32 KB per thread overruns the local memory the driver reserves. - Sizing that array to the highest LDS address the shader can reach (193 dwords for this shader; still 8192 when no bound can be proven) fixed it here. Runs of 10 and 12 minutes went through the opening into the first playable scene, the crash-site tutorial, without a device loss. I didn't change anything for the compute-shader LDS race in item 5. The boot crash in this report is the null SRT-table read that #1365 addresses. I can open a PR with the LDS change if that's useful. (Investigated with Claude Code, an AI assistant, which also drafted this comment. I read it before posting.)
Author
Owner

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

Duplicate of #1511.

Consolidating compatibility evidence for PPSA21564 in the newer report #1511. 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:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1498#issuecomment-6252482488) Duplicate of #1511. Consolidating compatibility evidence for PPSA21564 in the newer report #1511. 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.
Author
Owner

@⁠cnyunguo on GitHub · 2026-10-20 11:45 UTC · original

Retest on a newer official Windows build; reproduces the same boot crash.

Game: ASTRO BOT, PPSA21564, APP_VER 01.007.000
KytyPS5: Official build KytyPS5-2026-10-20-1a053f9
Host: Windows 64-bit, AMD Ryzen 7 5700G (16 threads); Vulkan device detected as AMD Radeon(TM) Graphics. GPU warning: fragmentShaderBarycentric is unavailable.
Launch: kyty_emulator.exe --game "D:\\PS5-roms\\astr\\PPSA21564-app" --amd-cpu

The game reaches its first screen, then crashes immediately after compiling CS shader 0x503d7f066a496c3c (the log reaches Shaders: VS 3 | PS 2 | CS 15). Reproduced locally with the command above. The fault is the same null SRT read pattern: access violation at address 0x58, faulting host memcpy path, reported at src\\loader\\runtimeLinker.cpp:715.

The game files and save data were not modified.

**@⁠cnyunguo** on GitHub · 2026-10-20 11:45 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1498#issuecomment-6290105829) Retest on a newer official Windows build; reproduces the same boot crash. **Game:** ASTRO BOT, PPSA21564, APP_VER 01.007.000 **KytyPS5:** Official build `KytyPS5-2026-10-20-1a053f9` **Host:** Windows 64-bit, AMD Ryzen 7 5700G (16 threads); Vulkan device detected as AMD Radeon(TM) Graphics. GPU warning: `fragmentShaderBarycentric is unavailable`. **Launch:** `kyty_emulator.exe --game "D:\\PS5-roms\\astr\\PPSA21564-app" --amd-cpu` The game reaches its first screen, then crashes immediately after compiling CS shader `0x503d7f066a496c3c` (the log reaches `Shaders: VS 3 | PS 2 | CS 15`). Reproduced locally with the command above. The fault is the same null SRT read pattern: access violation at address `0x58`, faulting host memcpy path, reported at `src\\loader\\runtimeLinker.cpp:715`. The game files and save data were not modified.
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#1498
No description provided.