[GAME STATUS]: Demon's Souls (PPSA01341) - host exception, null write at 0x18 (pc 0x900ad92d6) in BPE JobWorkerThread, same as #1512 #2002

Open
opened 2026-11-26 10:10:57 +00:00 by github-bot · 1 comment
Owner

@⁠orydoroha-mykhailo on GitHub · 2026-10-30 13:52 UTC · original

Game title

Demon's Souls (Deluxe Edition)

Game ID / serial

PPSA01341

KytyPS5 version

Source build 4919fdb (main, 2026-10-30), built locally with clang-cl 19.1.5

Compatibility status

Main menu

Last working build / first broken build

No response

Result details

The game starts, initialization finishes (~2.2 s), the main loop starts and shaders keep compiling (roughly CS 210-233 / PS 27-70 / VS 16-40 at the time of the crash). Then the emulator dies with an unhandled host exception:

Unhandled host exception: type=1 code=3221225477 pc=0x0000000900ad92d6 access=2 address=0x0000000000000018
thread: BPE JobWorkerThread CPU7
rax=0000000000000000 rcx=ffffffffffffffff

The faulting code is mov [rax+0x18], ebp right after a helper whose failure path returns -1/0, i.e. the guest writes through a null result.

This is the same pc / address / thread as #1512. That report was closed as a duplicate of #1660, but #1660 tracks a different crash ("scalar resource reads overlap a shader buffer write", fixed separately in #1747), so the null write at 0x18 does not seem to be tracked anywhere else. It still reproduces on current main (4919fdb), on two separate launches with identical pc and address.

Steps to reproduce the result

  1. Unpack the game to a short path (D:\Games\DemonsSouls, eboot.bin in the root).
  2. Run: kyty_emulator.exe --game "D:\Games\DemonsSouls"
  3. Wait about a minute while shaders compile; the host exception is thrown.

Expected behavior

The game should keep running past this point (no host exception) and reach the menu / gameplay.

OS

Windows 11 Pro 10.0.26300

CPU

Intel Core i7-12700H

GPU

NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.01 (Intel Iris Xe iGPU is also present)

RAM / VRAM

64 GB RAM / 8 GB VRAM

Log file upload

_kyty.txt

Screenshots/video

No response

Extra notes

Release build, clang-cl 19.1.5 (VS 2022 Build Tools), Vulkan SDK 1.4.363, Qt 6.12.0. Game folder unpacked from the PKG with PSVIETHOA-FPKG-Builder; fakelib contains only libSceAgc / libSceAgcDriver / libScePsml. Earlier "File::GatherFileInfo failed to resolve" errors were caused by paths over 260 characters and disappeared after moving the game to a short path; the crash remains.

**@⁠orydoroha-mykhailo** on GitHub · 2026-10-30 13:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2002) ### Game title Demon's Souls (Deluxe Edition) ### Game ID / serial PPSA01341 ### KytyPS5 version Source build 4919fdb (main, 2026-10-30), built locally with clang-cl 19.1.5 ### Compatibility status Main menu ### Last working build / first broken build _No response_ ### Result details The game starts, initialization finishes (~2.2 s), the main loop starts and shaders keep compiling (roughly CS 210-233 / PS 27-70 / VS 16-40 at the time of the crash). Then the emulator dies with an unhandled host exception: ``` Unhandled host exception: type=1 code=3221225477 pc=0x0000000900ad92d6 access=2 address=0x0000000000000018 thread: BPE JobWorkerThread CPU7 rax=0000000000000000 rcx=ffffffffffffffff ``` The faulting code is `mov [rax+0x18], ebp` right after a helper whose failure path returns -1/0, i.e. the guest writes through a null result. This is the same pc / address / thread as #1512. That report was closed as a duplicate of #1660, but #1660 tracks a different crash ("scalar resource reads overlap a shader buffer write", fixed separately in #1747), so the null write at 0x18 does not seem to be tracked anywhere else. It still reproduces on current main (4919fdb), on two separate launches with identical pc and address. ### Steps to reproduce the result 1. Unpack the game to a short path (D:\Games\DemonsSouls, eboot.bin in the root). 2. Run: kyty_emulator.exe --game "D:\Games\DemonsSouls" 3. Wait about a minute while shaders compile; the host exception is thrown. ### Expected behavior The game should keep running past this point (no host exception) and reach the menu / gameplay. ### OS Windows 11 Pro 10.0.26300 ### CPU Intel Core i7-12700H ### GPU NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.01 (Intel Iris Xe iGPU is also present) ### RAM / VRAM 64 GB RAM / 8 GB VRAM ### Log file upload [_kyty.txt](https://github.com/user-attachments/files/34185901/_kyty.txt) ### Screenshots/video _No response_ ### Extra notes Release build, clang-cl 19.1.5 (VS 2022 Build Tools), Vulkan SDK 1.4.363, Qt 6.12.0. Game folder unpacked from the PKG with PSVIETHOA-FPKG-Builder; fakelib contains only libSceAgc / libSceAgcDriver / libScePsml. Earlier "File::GatherFileInfo failed to resolve" errors were caused by paths over 260 characters and disappeared after moving the game to a short path; the crash remains.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:10:57 +00:00
Author
Owner

@⁠Nawid3333 on GitHub · 2026-10-30 19:39 UTC · original

This looks like the same crash as #1512 and #821: mov rax, [rsp-0x10] followed by mov [rax+0x18], ebp with rax = 0, so the function reloads a pointer from 16 bytes below rsp (the SysV red zone) and gets 0. On Windows, a host exception handled on that thread, such as an emulator memory-tracking fault, writes its frame below rsp and can overwrite that area (measurements in #1421).

Could you try once with red zone protection on? It is the launcher's "Windows SysV red zone crash protection (experimental)" checkbox, or --redzone on the command line. On #821, volan3 reported that Demon's Souls no longer crashed there with it enabled.

**@⁠Nawid3333** on GitHub · 2026-10-30 19:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2002#issuecomment-6531933632) This looks like the same crash as #1512 and #821: `mov rax, [rsp-0x10]` followed by `mov [rax+0x18], ebp` with rax = 0, so the function reloads a pointer from 16 bytes below rsp (the SysV red zone) and gets 0. On Windows, a host exception handled on that thread, such as an emulator memory-tracking fault, writes its frame below rsp and can overwrite that area (measurements in #1421). Could you try once with red zone protection on? It is the launcher's "Windows SysV red zone crash protection (experimental)" checkbox, or `--redzone` on the command line. On #821, volan3 reported that Demon's Souls no longer crashed there with it enabled.
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#2002
No description provided.