[Crash] Astro Bot (PPSA21567): Null pointer dereference in runtimeLinker.cpp after update #1268

Closed
opened 2026-11-26 09:50:43 +00:00 by github-bot · 13 comments
Owner

@⁠Meph1stok on GitHub · 2026-10-09 02:02 UTC · original

Summary

Astro Bot (PPSA21567) crashes immediately during launch due to unresolved network stubs (NpCppWebApi_v1) leading to a host memory exception in runtimeLinker.cpp:720.

(Note: The game booted fine on the base release, but regression occurs after applying the latest emulator update).

System Information

  • OS: CachyOS x86_64 (Linux 7.2.9)
  • CPU: Intel Core (16+8 cores) @ 4.40 GHz
  • GPU: NVIDIA GeForce RTX 3070 Ti
  • Desktop Environment: KDE Plasma 6.7.5 (Wayland)
  • KytyPS5 Commit / Build: 7b9997b

Expected Behavior

The game should launch past the initialization phase or gracefully ignore/stub missing web API calls without causing a host exception.

Actual Behavior

The emulator encounters unresolved imports from NpCppWebApi_v1, leading to a guest fault context (Null pointer dereference at 0x0000000000000018) and unhandled host exception at src/loader/runtimeLinker.cpp:720.

Log Output

Title ID: PPSA21567
version = 13
Unresolved import stub called: Y295ygEccqk[NpCppWebApi_v1][NpCppWebApi_v1.1][Func]
Unresolved import stub called: 8x++mBOUeso[NpCppWebApi_v1][NpCppWebApi_v1.1][Func]
Unresolved import stub called: UYPxv8MIzGo[NpCppWebApi_v1][NpCppWebApi_v1.1][Func]
Unresolved import stub called: 52AlYvq+dmk[NpCppWebApi_v1][NpCppWebApi_v1.1][Func]
...
--- Guest fault context ---
thread: (host thread)
rax=00007f93e57f9158 rbx=0000000000000004 rcx=0000000000000001 rdx=0000000000000004
rsi=0000000000000018 rdi=00007f93e57f9158 rbp=00007f93e57f9120 rsp=00007f93e57f90d8
r8 =000000000000007c r9 =00007f93d8000880 r10=0000000000000030 r11=00007f93da3f9bc4
r12=0000000000000018 r13=00007f93e57f9560 r14=00007f93da1e4b30 r15=00007f93e57f9670
...
--- Build ---
Source build 7b9997b
--- Error ---
Unhandled host exception: type=1 code=11 pc=0x00007f97a51b19d5 access=1 address=0x0000000000000018
 in /home/hernan/KytyPS5/src/loader/runtimeLinker.cpp:720

Steps to Reproduce: 

1. Load PPSA21567 (Astro Bot) with the latest update patch applied.
2. Launch the emulator executable.
3. Observe crash right after Vulkan pipeline cache initialization.
**@⁠Meph1stok** on GitHub · 2026-10-09 02:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268) ### Summary Astro Bot (`PPSA21567`) crashes immediately during launch due to unresolved network stubs (`NpCppWebApi_v1`) leading to a host memory exception in `runtimeLinker.cpp:720`. *(Note: The game booted fine on the base release, but regression occurs after applying the latest emulator update).* ### System Information - **OS:** CachyOS x86_64 (Linux 7.2.9) - **CPU:** Intel Core (16+8 cores) @ 4.40 GHz - **GPU:** NVIDIA GeForce RTX 3070 Ti - **Desktop Environment:** KDE Plasma 6.7.5 (Wayland) - **KytyPS5 Commit / Build:** `7b9997b` ### Expected Behavior The game should launch past the initialization phase or gracefully ignore/stub missing web API calls without causing a host exception. ### Actual Behavior The emulator encounters unresolved imports from `NpCppWebApi_v1`, leading to a guest fault context (Null pointer dereference at `0x0000000000000018`) and unhandled host exception at `src/loader/runtimeLinker.cpp:720`. ### Log Output ```text Title ID: PPSA21567 version = 13 Unresolved import stub called: Y295ygEccqk[NpCppWebApi_v1][NpCppWebApi_v1.1][Func] Unresolved import stub called: 8x++mBOUeso[NpCppWebApi_v1][NpCppWebApi_v1.1][Func] Unresolved import stub called: UYPxv8MIzGo[NpCppWebApi_v1][NpCppWebApi_v1.1][Func] Unresolved import stub called: 52AlYvq+dmk[NpCppWebApi_v1][NpCppWebApi_v1.1][Func] ... --- Guest fault context --- thread: (host thread) rax=00007f93e57f9158 rbx=0000000000000004 rcx=0000000000000001 rdx=0000000000000004 rsi=0000000000000018 rdi=00007f93e57f9158 rbp=00007f93e57f9120 rsp=00007f93e57f90d8 r8 =000000000000007c r9 =00007f93d8000880 r10=0000000000000030 r11=00007f93da3f9bc4 r12=0000000000000018 r13=00007f93e57f9560 r14=00007f93da1e4b30 r15=00007f93e57f9670 ... --- Build --- Source build 7b9997b --- Error --- Unhandled host exception: type=1 code=11 pc=0x00007f97a51b19d5 access=1 address=0x0000000000000018 in /home/hernan/KytyPS5/src/loader/runtimeLinker.cpp:720 Steps to Reproduce: 1. Load PPSA21567 (Astro Bot) with the latest update patch applied. 2. Launch the emulator executable. 3. Observe crash right after Vulkan pipeline cache initialization.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:50:43 +00:00
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-09 09:53 UTC · original

Thanks for the full context. The registers (rsi=0x18, size 4 in rbx, return address in the Kyty binary) point at the shader resource walker copying a 4-byte scalar from a table whose base is 0, during pipeline creation on the GPU thread. So it is not NpCppWebApi.
To find out why that table is read at all, the compute shader is needed. Could someone on a Linux source build run with --graphics-debug-dump true --printf-direction File under gdb -ex run -ex bt --args ./kyty_emulator ..., then attach the backtrace, _kyty.txt and the last _Shaders/original/*_cs_*.bin?

**@⁠overlordxrz-source** on GitHub · 2026-10-09 09:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6078582980) Thanks for the full context. The registers (`rsi=0x18`, size 4 in `rbx`, return address in the Kyty binary) point at the shader resource walker copying a 4-byte scalar from a table whose base is 0, during pipeline creation on the GPU thread. So it is not NpCppWebApi. To find out why that table is read at all, the compute shader is needed. Could someone on a Linux source build run with `--graphics-debug-dump true --printf-direction File` under `gdb -ex run -ex bt --args ./kyty_emulator ...`, then attach the backtrace, `_kyty.txt` and the last `_Shaders/original/*_cs_*.bin`?
Author
Owner

@⁠carbonimax on GitHub · 2026-10-09 15:32 UTC · original

Same crash here with the official Windows build KytyPS5-2026-10-08-aa3b2cd (Astro Bot PPSA21564, Windows 11, Ryzen 7 9800X3D, RX 6900 XT, Adrenalin 26.6.4), right after Shaders: VS 3 | PS 2 | CS 15. It reproduces with all implicit Vulkan layers disabled, so it is not a layer or driver issue.

There is no PDB, but disassembling the release binary maps the two return addresses from the fault context to these sources at aa3b2cd:

  • 0x140a312ed → SrtWalker::EvaluateRawRead (src/graphics/shader/recompiler/ir/passes/SrtWalker.cpp:457–532, indirect reader call at line 524)
  • 0x140a04bde → CaptureOrdinaryRead (src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp:158–166), which has no ordinary reader on this path and falls back to the raw copy at line 163
  • that copy is the VCRUNTIME140.dll!memcpy import, reading 4 bytes from 0x18

So the walker evaluates a one-dword read from an SRT pair whose base is 0, and the fallback copy dereferences it. In both of my runs the last compute shader prepared before the fault is CS hash=0x503d7f066a496c3c (3596 code words, 159 blocks, 12 loops); its SPIR-V emission never starts. I can attach the _kyty.txt and the matching _Shaders dump if that helps.

#1194 (closed without merging) installs an ordinary reader that returns zero for unmapped dwords and covers exactly this path; its diff still applies to 4c8fc53a. In a local macOS branch, refusing raw reads below the null page (< 0x10000) before any copy, and ending only the speculative branch that hit it, also avoids the crash. I have not checked which of those two semantics is correct for this shader, since the walker explores both successors when the predicate is not evaluated.

**@⁠carbonimax** on GitHub · 2026-10-09 15:32 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6084040025) Same crash here with the official Windows build `KytyPS5-2026-10-08-aa3b2cd` (Astro Bot PPSA21564, Windows 11, Ryzen 7 9800X3D, RX 6900 XT, Adrenalin 26.6.4), right after `Shaders: VS 3 | PS 2 | CS 15`. It reproduces with all implicit Vulkan layers disabled, so it is not a layer or driver issue. There is no PDB, but disassembling the release binary maps the two return addresses from the fault context to these sources at `aa3b2cd`: - `0x140a312ed` → `SrtWalker::EvaluateRawRead` (`src/graphics/shader/recompiler/ir/passes/SrtWalker.cpp:457–532`, indirect reader call at line 524) - `0x140a04bde` → `CaptureOrdinaryRead` (`src/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cpp:158–166`), which has no ordinary reader on this path and falls back to the raw copy at line 163 - that copy is the `VCRUNTIME140.dll!memcpy` import, reading 4 bytes from `0x18` So the walker evaluates a one-dword read from an SRT pair whose base is 0, and the fallback copy dereferences it. In both of my runs the last compute shader prepared before the fault is `CS hash=0x503d7f066a496c3c` (3596 code words, 159 blocks, 12 loops); its SPIR-V emission never starts. I can attach the `_kyty.txt` and the matching `_Shaders` dump if that helps. #1194 (closed without merging) installs an ordinary reader that returns zero for unmapped dwords and covers exactly this path; its diff still applies to `4c8fc53a`. In a local macOS branch, refusing raw reads below the null page (`< 0x10000`) before any copy, and ending only the speculative branch that hit it, also avoids the crash. I have not checked which of those two semantics is correct for this shader, since the walker explores both successors when the predicate is not evaluated.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-09 23:50 UTC · original

Thanks @⁠carbonimax, that mapping is very useful. The same raw copy is still on current main (59183dbf): it moved into SrtReadCapture::ReadOrdinary in SrtWalker.cpp, and EvaluateRawRead keeps its own fallback. Production still only installs the specialization reader.

Yes, please attach the _kyty.txt and the _Shaders dump for CS 0x503d7f066a496c3c. Its branch condition is what decides between your two options. If that predicate should be decidable on the host, neither "read as zero" nor "drop the speculative branch" is the real fix. If it truly depends on per-wave state, the speculative-block handling already in open #1162 (imported from #1102) is the candidate. A retest on a build from 59183dbf or newer would also help, since predicate capture changed today in 3b1a94707.

AI-assisted: yes

**@⁠overlordxrz-source** on GitHub · 2026-10-09 23:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6091237721) Thanks @⁠carbonimax, that mapping is very useful. The same raw copy is still on current main (59183dbf): it moved into `SrtReadCapture::ReadOrdinary` in `SrtWalker.cpp`, and `EvaluateRawRead` keeps its own fallback. Production still only installs the specialization reader. Yes, please attach the `_kyty.txt` and the `_Shaders` dump for `CS 0x503d7f066a496c3c`. Its branch condition is what decides between your two options. If that predicate should be decidable on the host, neither "read as zero" nor "drop the speculative branch" is the real fix. If it truly depends on per-wave state, the speculative-block handling already in open #1162 (imported from #1102) is the candidate. A retest on a build from 59183dbf or newer would also help, since predicate capture changed today in 3b1a94707. AI-assisted: yes
Author
Owner

@⁠theantipopau on GitHub · 2026-10-10 01:46 UTC · original

Additional data point from Windows + a 4-game run matrix on our fork build (749fc1bd, current main plus PR #1328's kernel handle-lifetime fixes and the #1175/#1186/#1166/AGC wiring picks):

  • Hollow Knight: Silksong (PPSA12544), Terminator 2D: No Fate (PPSA25872), Paw Patrol World (PPSA05521) and Stray (PPSA02101) all survive 120-180s timeout runs (exit 124) with no faults, and AvPlayer intro video plays on Silksong.
  • Stray, Silksong, Terminator 2D and Paw Patrol all hit the exact same four Unresolved import stub called: [...][NpCppWebApi_v1][NpCppWebApi_v1.1][Func] stubs (Y295ygEccqk, 8x++mBOUeso, UYPxv8MIzGo, 52AlYvq+dmk) reported here; the stub returns 0 and the games continue, so the NpCppWebApi_v1 library itself is the missing piece for titles that dereference its result (including Astro Bot per #1310).

So on Windows the immediate crash in this issue looks specific to how the unresolved stub result propagates in that build path; a minimal NpCppWebApi_v1 stub library returning proper NP error codes instead of 0 would be the systematic fix. We're happy to test a candidate quickly on the four titles above.

**@⁠theantipopau** on GitHub · 2026-10-10 01:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6092342309) Additional data point from Windows + a 4-game run matrix on our fork build (`749fc1bd`, current main plus PR #1328's kernel handle-lifetime fixes and the #1175/#1186/#1166/AGC wiring picks): - Hollow Knight: Silksong (PPSA12544), Terminator 2D: No Fate (PPSA25872), Paw Patrol World (PPSA05521) and Stray (PPSA02101) all survive 120-180s timeout runs (exit 124) with no faults, and `AvPlayer` intro video plays on Silksong. - Stray, Silksong, Terminator 2D and Paw Patrol all hit the exact same four `Unresolved import stub called: [...][NpCppWebApi_v1][NpCppWebApi_v1.1][Func]` stubs (`Y295ygEccqk`, `8x++mBOUeso`, `UYPxv8MIzGo`, `52AlYvq+dmk`) reported here; the stub returns 0 and the games continue, so the NpCppWebApi_v1 library itself is the missing piece for titles that dereference its result (including Astro Bot per #1310). So on Windows the immediate crash in this issue looks specific to how the unresolved stub result propagates in that build path; a minimal NpCppWebApi_v1 stub library returning proper NP error codes instead of 0 would be the systematic fix. We're happy to test a candidate quickly on the four titles above.
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-10 03:37 UTC · original

Thanks @⁠theantipopau, that matrix helps. Those four NIDs are sce::Np::CppWebApi::Common::LibContext(), InitParams(), ~InitParams() and Common::initialize(InitParams const&, LibContext&): the library's setup calls, not sign-in requests, and real initialize succeeds offline. So returning NP error codes there would be the wrong behaviour. libSceNpCppWebApi.prx ships in each game's sce_module, and open #1266 loads it from there so these imports bind to the game's own module. If you can retest your four titles on #1266, please tell us whether the NpCppWebApi_v1 lines go away and whether anything changes after them. Astro Bot's crash here is in the shader SRT walker (see above), separate from this.

AI-assisted: yes

**@⁠overlordxrz-source** on GitHub · 2026-10-10 03:37 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6093369456) Thanks @⁠theantipopau, that matrix helps. Those four NIDs are `sce::Np::CppWebApi::Common::LibContext()`, `InitParams()`, `~InitParams()` and `Common::initialize(InitParams const&, LibContext&)`: the library's setup calls, not sign-in requests, and real `initialize` succeeds offline. So returning NP error codes there would be the wrong behaviour. `libSceNpCppWebApi.prx` ships in each game's `sce_module`, and open #1266 loads it from there so these imports bind to the game's own module. If you can retest your four titles on #1266, please tell us whether the `NpCppWebApi_v1` lines go away and whether anything changes after them. Astro Bot's crash here is in the shader SRT walker (see above), separate from this. AI-assisted: yes
Author
Owner

@⁠placintaalexandru on GitHub · 2026-10-10 11:24 UTC · original · edited 2026-10-10 12:37 UTC

@⁠overlordxrz-source I hope this helps

I am running the game PPSA21564 v01.007.000

OS: 7.2.9-2-cachyos
CPU: i7-9700K
GPU: RTX 2080S

kyty_run.sh
backtrace.txt
0020_new_shader_cs_503d7f066a496c3c.bin.txt

LE: after applying the patch from here I was able to launch the game, but it crashes after 5 minutes

--- Error ---
failed to create image: extent=4096x4096x1 format=146 layers=1 levels=13
 in /home/runner/work/KytyPS5/KytyPS5/src/graphics/host_gpu/renderer/image/image.cpp:727

**@⁠placintaalexandru** on GitHub · 2026-10-10 11:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6096992084) · edited 2026-10-10 12:37 UTC @⁠overlordxrz-source I hope this helps I am running the game `PPSA21564` `v01.007.000` OS: 7.2.9-2-cachyos CPU: i7-9700K GPU: RTX 2080S [kyty_run.sh](https://github.com/user-attachments/files/33281325/kyty_run.sh) [backtrace.txt](https://github.com/user-attachments/files/33281326/backtrace.txt) [0020_new_shader_cs_503d7f066a496c3c.bin.txt](https://github.com/user-attachments/files/33281332/0020_new_shader_cs_503d7f066a496c3c.bin.txt) LE: after applying the patch from [here](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/745) I was able to launch the game, but it crashes after 5 minutes ```txt --- Error --- failed to create image: extent=4096x4096x1 format=146 layers=1 levels=13 in /home/runner/work/KytyPS5/KytyPS5/src/graphics/host_gpu/renderer/image/image.cpp:727 ```
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-11 00:57 UTC · original

@⁠placintaalexandru thank you, the shader dump was exactly what was missing.

CS 0x503d7f066a496c3c reads null + 0x18 inside its ray-traced BVH traversal. That is the block that ends in image_bvh_intersect_ray, and it only runs for some lanes. The shader walker evaluates both sides of that branch while building the pipeline, and the pointer it loads from user data is 0. The non-RT patch from #745 switches that renderer off, which is why it gets you in game. Open PR #1365 fixes the crash itself: the walk reads unmapped guest memory as zeros instead of dereferencing it on the host. I posted the disassembly there.

If you can, please test two things:

  1. Without the non-RT patch, on a build with #1365 (a 10-line change in pipelineCache.cpp, applies cleanly on current main). Does it still stop after Shaders: VS 3 | PS 2 | CS 15? If it stops somewhere else, please attach the end of the log.
  2. The 5-minute crash with the patch (failed to create image: extent=4096x4096x1 format=146 layers=1 levels=13). Format 146 is BC7 sRGB, a normal 4096² texture with a full mip chain, so this looks like the 8 GB card running out of video memory. Kyty prints VMA heap N: usage=… budget=… lines just before that error, but your kyty_run.sh uses --printf-direction Silent, so they were dropped. Please run once with --printf-direction File and attach the last ~300 lines of _kyty.txt. Those lines would tell whether it really is VRAM exhaustion or a leak.

About the gdb trace: it stopped on a SIGILL in game code on the DrawThread. Kyty catches that signal itself and emulates instructions the host CPU lacks, and it also uses SIGSEGV for GPU page tracking. So that stop is expected and not the crash. You don't need gdb for these runs. Kyty's own --- Guest fault context --- / --- Error --- block at the end of the log has what we need.

AI-assisted: yes

**@⁠overlordxrz-source** on GitHub · 2026-10-11 00:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6103971159) @⁠placintaalexandru thank you, the shader dump was exactly what was missing. `CS 0x503d7f066a496c3c` reads `null + 0x18` inside its ray-traced BVH traversal. That is the block that ends in `image_bvh_intersect_ray`, and it only runs for some lanes. The shader walker evaluates both sides of that branch while building the pipeline, and the pointer it loads from user data is 0. The non-RT patch from #745 switches that renderer off, which is why it gets you in game. Open PR #1365 fixes the crash itself: the walk reads unmapped guest memory as zeros instead of dereferencing it on the host. I posted the disassembly there. If you can, please test two things: 1. **Without the non-RT patch, on a build with #1365** (a 10-line change in `pipelineCache.cpp`, applies cleanly on current main). Does it still stop after `Shaders: VS 3 | PS 2 | CS 15`? If it stops somewhere else, please attach the end of the log. 2. **The 5-minute crash with the patch** (`failed to create image: extent=4096x4096x1 format=146 layers=1 levels=13`). Format 146 is BC7 sRGB, a normal 4096² texture with a full mip chain, so this looks like the 8 GB card running out of video memory. Kyty prints `VMA heap N: usage=… budget=…` lines just before that error, but your `kyty_run.sh` uses `--printf-direction Silent`, so they were dropped. Please run once with `--printf-direction File` and attach the last ~300 lines of `_kyty.txt`. Those lines would tell whether it really is VRAM exhaustion or a leak. About the gdb trace: it stopped on a `SIGILL` in game code on the `DrawThread`. Kyty catches that signal itself and emulates instructions the host CPU lacks, and it also uses `SIGSEGV` for GPU page tracking. So that stop is expected and not the crash. You don't need gdb for these runs. Kyty's own `--- Guest fault context ---` / `--- Error ---` block at the end of the log has what we need. AI-assisted: yes
Author
Owner

@⁠placintaalexandru on GitHub · 2026-10-11 08:56 UTC · original · edited 2026-10-11 11:56 UTC

I'll check today. Regarding VRAM exahastion, I am pretty sure it happens in my case: I have an RTX 2080S 8GB and I was following VRAM with nvtop and before the game crashes the values reported are around 7.95 GB.

I wanted to open another issue regarding shader compilation and VRAM exhaustiom, but I check your way today.

LE:

1.I managed to build the #1365 and ran the emulator using the following command: ./kyty_emulator --graphics-debug-dump true --printf-direction File --game MY_PATH. The result: I end up with a black screen and GPU is stuck at 5GB VRAM usage (judged again by nvtop). These are the he files:

2.I ran using the following command: ./kyty_emulator --graphics-debug-dump true --printf-direction File --game-patch ./_Patches/PPSA21564.json --game MY_PATH

emulator-logs-2.txt
_kyty-last-300.txt

**@⁠placintaalexandru** on GitHub · 2026-10-11 08:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6107342535) · edited 2026-10-11 11:56 UTC I'll check today. Regarding VRAM exahastion, I am pretty sure it happens in my case: I have an RTX 2080S 8GB and I was following VRAM with `nvtop` and before the game crashes the values reported are around `7.95 GB`. I wanted to open another issue regarding shader compilation and VRAM exhaustiom, but I check your way today. LE: 1.I managed to build the #1365 and ran the emulator using the following command: `./kyty_emulator --graphics-debug-dump true --printf-direction File --game MY_PATH`. The result: I end up with a black screen and GPU is stuck at 5GB VRAM usage (judged again by `nvtop`). These are the he files: - [emulator-logs-1.txt](https://github.com/user-attachments/files/33302067/emulator-logs-1.txt) - The `_kyty.txt` file is huge so I am pasting the wetransfer [link](https://we.tl/t-W7ZGi4BBLZnU6qgN) 2.I ran using the following command: `./kyty_emulator --graphics-debug-dump true --printf-direction File --game-patch ./_Patches/PPSA21564.json --game MY_PATH` [emulator-logs-2.txt](https://github.com/user-attachments/files/33302367/emulator-logs-2.txt) [_kyty-last-300.txt](https://github.com/user-attachments/files/33302363/_kyty-last-300.txt)
Author
Owner

@⁠kavg13 on GitHub · 2026-10-11 19:18 UTC · original

Same crash on Windows with the latest official build, Astro Bot PPSA21564 v01.018.000:

Build: KytyPS5-2026-10-11-e51de54
Unhandled host exception: type=1 code=3221225477 pc=0x00007fff6a12c12a access=1 address=0x0000000000000018 in src\loader\runtimeLinker.cpp:711
Crashes about 13 s after launch, during the first shader compiles, before any logo. Default debug settings (Vulkan/shader validation, RenderDoc and command-buffer dumps off).
Windows 11 Pro 25H2, Ryzen 9 5900X, RTX 4070 Ti SUPER (driver 617.42, 16 GB VRAM), 32 GB RAM
Full log attached. Happy to retest once #1365 is merged.

_kyty.txt

**@⁠kavg13** on GitHub · 2026-10-11 19:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6112735358) Same crash on Windows with the latest official build, Astro Bot PPSA21564 v01.018.000: Build: KytyPS5-2026-10-11-e51de54 Unhandled host exception: type=1 code=3221225477 pc=0x00007fff6a12c12a access=1 address=0x0000000000000018 in src\loader\runtimeLinker.cpp:711 Crashes about 13 s after launch, during the first shader compiles, before any logo. Default debug settings (Vulkan/shader validation, RenderDoc and command-buffer dumps off). Windows 11 Pro 25H2, Ryzen 9 5900X, RTX 4070 Ti SUPER (driver 617.42, 16 GB VRAM), 32 GB RAM Full log attached. Happy to retest once #1365 is merged. [_kyty.txt](https://github.com/user-attachments/files/33310919/_kyty.txt)
Author
Owner

@⁠ASOwnerYT on GitHub · 2026-10-16 05:21 UTC · original

Retest of #1365 on the same hardware as @⁠placintaalexandru: same freeze.

Setup: Astro Bot PPSA21564 v01.007.000, CachyOS (kernel 7.2.9), Ryzen 5 7600, RTX 2080 SUPER 8 GB, --amd-cpu.

1. Official KytyPS5-2026-10-16-3ff6606, no patch: still crashes right after Shaders: VS 3 | PS 2 | CS 15:

--- Error ---
Unhandled host exception: type=1 code=11 pc=0x00007fc2f09b7af7 access=1 address=0x0000000000000018
 in /home/runner/work/KytyPS5/KytyPS5/src/loader/runtimeLinker.cpp:711

rsi=0x18, and the faulting bytes are the 4-byte memcpy path (8b 0e 8b 34 16), so it matches the SRT walker read described above.

2. 3ff6606 + #1365 (cherry-picked cleanly, clang Release build), no patch: the crash is gone. Shader building gets past CS 15 and reaches Shaders: VS 15 | PS 22 | CS 42 | GS 1 about 25 s after launch. Then everything stops:

  • no more guest output, file I/O or new shaders for the remaining ~200 s, only host input events
  • black screen; GPU usage about 10%, VRAM flat around 4.7–4.9 GB (nvidia-smi every 20 s)
  • the process ignored the window close / SIGINT (Event: quit logged) and had to be killed

The last thing logged before the freeze is a compute pipeline that was created successfully (vkCreateComputePipelines done result=Success).

3. Official 3ff6606 + the non-RT patch from #745 (both mods applied): no fault in a 4-minute run; reaches VS 35 | PS 49 | CS 38 | GS 4 and gameplay, but it runs at low FPS and in slow motion.

So #1365 fixes the host crash, but on this NVIDIA card the ray-traced path then freezes instead of rendering. I can attach the full logs or a --graphics-debug-dump run if that's useful.

AI-assisted: yes (diagnosis, build and test runs done with Claude Code; I reviewed this comment)

**@⁠ASOwnerYT** on GitHub · 2026-10-16 05:21 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6208694245) Retest of #1365 on the same hardware as @⁠placintaalexandru: same freeze. **Setup:** Astro Bot PPSA21564 v01.007.000, CachyOS (kernel 7.2.9), Ryzen 5 7600, RTX 2080 SUPER 8 GB, `--amd-cpu`. **1. Official `KytyPS5-2026-10-16-3ff6606`, no patch:** still crashes right after `Shaders: VS 3 | PS 2 | CS 15`: ``` --- Error --- Unhandled host exception: type=1 code=11 pc=0x00007fc2f09b7af7 access=1 address=0x0000000000000018 in /home/runner/work/KytyPS5/KytyPS5/src/loader/runtimeLinker.cpp:711 ``` `rsi=0x18`, and the faulting bytes are the 4-byte `memcpy` path (`8b 0e 8b 34 16`), so it matches the SRT walker read described above. **2. `3ff6606` + #1365 (cherry-picked cleanly, clang Release build), no patch:** the crash is gone. Shader building gets past CS 15 and reaches `Shaders: VS 15 | PS 22 | CS 42 | GS 1` about 25 s after launch. Then everything stops: - no more guest output, file I/O or new shaders for the remaining ~200 s, only host input events - black screen; GPU usage about 10%, VRAM flat around 4.7–4.9 GB (`nvidia-smi` every 20 s) - the process ignored the window close / SIGINT (`Event: quit` logged) and had to be killed The last thing logged before the freeze is a compute pipeline that was created successfully (`vkCreateComputePipelines done result=Success`). **3. Official `3ff6606` + the non-RT patch from #745 (both mods applied):** no fault in a 4-minute run; reaches `VS 35 | PS 49 | CS 38 | GS 4` and gameplay, but it runs at low FPS and in slow motion. So #1365 fixes the host crash, but on this NVIDIA card the ray-traced path then freezes instead of rendering. I can attach the full logs or a `--graphics-debug-dump` run if that's useful. AI-assisted: yes (diagnosis, build and test runs done with Claude Code; I reviewed this comment)
Author
Owner

@⁠theantipopau on GitHub · 2026-10-17 22:53 UTC · original

For anyone able to retest the Astro Bot startup crash: my open PR #1549 takes the same direction as #1365 (SRT walk zero-fills unmapped guest ranges instead of faulting on the host dereference, e.g. the null+0x18 BVH read in CS 0x503d7f066a496c3c). It is a 10-line change in pipelineCache.cpp with green CI on all three platforms. If you can build it, please report whether the crash after Shaders: VS 3 | PS 2 | CS 15 moves or disappears, and attach the tail of the log.

**@⁠theantipopau** on GitHub · 2026-10-17 22:53 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6242620633) For anyone able to retest the Astro Bot startup crash: my open PR #1549 takes the same direction as #1365 (SRT walk zero-fills unmapped guest ranges instead of faulting on the host dereference, e.g. the null+0x18 BVH read in CS 0x503d7f066a496c3c). It is a 10-line change in pipelineCache.cpp with green CI on all three platforms. If you can build it, please report whether the crash after `Shaders: VS 3 | PS 2 | CS 15` moves or disappears, and attach the tail of the log.
Author
Owner

@⁠placintaalexandru on GitHub · 2026-10-18 13:19 UTC · original

On my side I'd gladly test, but I do not have a good enough GPU, 8GB of VRAM is not enough

**@⁠placintaalexandru** on GitHub · 2026-10-18 13:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1268#issuecomment-6250399028) On my side I'd gladly test, but I do not have a good enough GPU, 8GB of VRAM is not enough
Author
Owner

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

Duplicate of #1623.

Consolidating compatibility evidence for PPSA21567 in the newer report #1623. 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/1268#issuecomment-6252476099) Duplicate of #1623. Consolidating compatibility evidence for PPSA21567 in the newer report #1623. 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#1268
No description provided.