libSceNgs2: Dead Cells (PPSA15552) crashes at startup — 'NGS2: rack id 0x4001 is not implemented' #4334
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by KingDarkHN on 2026-10-12T06:55:34Z.
Game: Dead Cells 01.005 (PPSA15552)
Host: Linux (Hyprland/Wayland), AnyPS5 @ main
2ccbd376Vulkan: swapchain created 1536x864
Steps to reproduce:
relinker source/input.elf app.elf(input: eboot.bin.esbak + sce_module/libc.prx)build/core/libs/libs/*.prxtolibs/, game resources toapp0/./app.elfResult: Vulkan device and swapchain initialize, 1192 shaders load, then the process aborts:
Source location:
core/libs/prx/libSceNgs2.native/src/Rack.cpp:30(RackOptionSizeswitch default).Currently implemented rack ids:
Dead Cells requests rack id 0x4001, which is not handled, so the title exits during startup (audio rack creation).
Full startup log:
Imported from boykopovar/AnyPS5. Originally posted by Jnbla6 on 2026-10-12T10:43:56Z.
I implemented a fix for the crash caused by missing NGS2 custom sampler rack support.
Root cause
During startup, rack ID
0x4001(SCE_NGS2_RACK_ID_CUSTOM_SAMPLER). SinceRackOptionSize()did not recognize this ID, the buffer-size query failed withNGS2: rack id 0x4001 is not implemented, causing the game to abort.Fix
I implemented custom sampler rack support in commit
faf788e98on branchfix/ngs2-rack-4001.The changes include:
0x4001, sampler voice parameter IDs, and the 1304-byteNgs2CustomSamplerRackOptionlayout.0x4001and0x4002.I also added a permanent
TestCustomSampler()regression test covering rack buffer-size queries and creation, rack info, PCM waveform setup, pitch and loop controls, and rendering through a UserFx2 module chain.Verification
The following checks passed:
I can’t open a PR myself, so I’m sharing the commit here for review and carry. Could a maintainer review the rack layout, parameter handling, and rendering integration, run the dedicated test in CI, and carry the change into the upstream repository if everything looks good?
Imported from boykopovar/AnyPS5. Originally posted by KingDarkHN on 2026-10-12T13:19:48Z.
AnyPS5 — Dead Cells (PPSA15552) on libSceNgs2: status and patch
Result
Dead Cells boots and no longer aborts on NGS2. With the patch applied the game runs at a stable ~60 fps (59.94 per the window-title counter) for 4+ minutes with no crash. The only remaining blocker was patching a voice to a rack handle, which this work resolves in
Patch().Background (chain of errors fixed)
NGS2: rack id 0x4001 is not implemented(Rack.cpp) → addressed by PR #3793 (custom sampler + custom mastering racks).NGS2: custom module id 0x13 is not implemented(Custom.cpp) → addressed by #3793 (accepts and skips built-in modules; logs[NGS2] built-in custom module 0x13 is not emulated).sceNgs2GeomCalcListener not implemented→ addressed by PR #1021 (Geom family, 4 functions).Patch: invalid argument→ remaining blocker, resolved here.The final blocker
voicepatched withdest_handle= a rack handle (not a voice): the game routes the custom sampler rack0x4001voices (and the submixer rack0x2000) into the mastering rack0x3000handle.Ngs2FindVoice()does not resolve rack handles →dest == nullptr→APS5_INVALID_ARG_EXinVoice.cpp(~line 113).Changes applied
Cherry-picks from upstream (existing PRs)
2f89a01aa7da823449ff2f80a4c0e583f7d0c0f56474dcdb8)917e0ec52941344f04c31a7256435fa3abfd76287d5599e79)Our own fix
Commit
d713835f7—core/libs/prx/libSceNgs2.native/src/Voice.cpp,Patch():dest_handleis not a voice, try to resolve it as a rack (Ngs2FindRack()).rack->voices.front()), preserving thesystemcheck and the sampler-rack rejection (samplers do not accept inputs).dest_input_id != 0is kept.Run evidence
0x4001= custom sampler,0x2000= submixer,0x3000= mastering.Remaining / proposal for upstream
dest_input_id != 0(routing by rack input index) for titles using multiple inputs.voices.front()).Patch()with a rack destination.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:08:24Z.
Closing: duplicate of #3553, same title and same stop (
NGS2: rack id 0x4001 is not implemented). The open PRs for it are #3793, #4254 and #4417; the listener stop that followed is fixed by #4598.