Demon Slayer -Kimetsu no Yaiba- The Hinokami Chronicles (PPSA03490 v01.000.000) on Windows: start-up needs seven sceRudp* imports that no library exports; with them it runs until the packed pixel ancillary error (#2548) #3073
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 xXPBSXx on 2026-10-10T21:39:13Z.
Demon Slayer -Kimetsu no Yaiba- The Hinokami Chronicles (PPSA03490 v01.000.000) on Windows: start-up needs seven
sceRudp*imports that no library exports; with them it runs until the packed pixel ancillary error (#2548)1. Seven missing imports
The import audit (executable and its six modules, all registries, libraries built from
mainat262c0316) shows 2358 unique imports, 880 implemented, 34 stubs and 7 absent, all inlibSceRudp:sceRudpNetFlush,sceRudpProcessEvents,sceRudpGetNumberOfPacketsToRead,sceRudpGetSizeWritable,sceRudpGetSizeReadable,sceRudpNetReceived,sceRudpGetMaxSegmentSize.None of these names is in the code or in a pull request.
libSceRudpexists and implements an offline reliable-UDP library; these seven are missing from it.2. What the title does with them. It calls them from a thread named
ccs P2PService Client Thread. I traced the call sites with gdb on the running process:sceRudpGetMaxSegmentSize: passes a pointer to a 16-bit value it has set to 0, and treats a nonzero result as failure (it cleans up). On success it reads the 16-bit value.sceRudpProcessEvents(0)followed bysceRudpNetFlush()in one pump function. The result of the first call is ignored.Fix: one commit on my fork, based on
mainat262c0316:https://github.com/xXPBSXx/AnyPS5/tree/fix/rudp-exports-ppsa03490
sceRudpGetMaxSegmentSize,sceRudpProcessEventsandsceRudpNetFlushare implemented for the offline library from the way the title calls them: success aftersceRudpInit,RUDP_ERROR_NOT_INITIALIZEDbefore it,RUDP_ERROR_INVALID_ARGUMENTfor a null size pointer. The real maximum segment size is unknown, so nothing is written and the title keeps its 0 (listed in TechnicalDebt, with the shadPS4 stubs that return OK as the precedent). The other four are declared without parameters and throwNotImplemented.guest_offline_importsis extended (before and aftersceRudpInit, null pointer, the size is not written) andguest_rudp_unimplementedchecks the four throwing ones.tools/check_conventions.pyand the test registration check pass.3. What happens next. With these in place the title opens its
/app0/apk/...files, creates its threads, registers shaders and aborts after about 34 seconds:after 5 refused pixel shaders of the same kind. That is #2548 (see my comment there). There are also 6 lines
has unsupported registered shader type 8; it is not prepared at registrationthat I have not looked into.Windows 10 (19045), NVIDIA GeForce RTX 4080 SUPER, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. The executable and modules were relinked from ELF files rebuilt from the dump's containers. Dump from my own digital copy; no game files shared. AI-assisted.
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-11T00:54:03Z.
Measured on a PS5 (firmware 13.60), with a payload that calls the system's
libSceRudp, for the values left open here:sceRudpInitsceRudpGetMaxSegmentSize(&v)0x80770001,vuntouchedv= 1410 (0x582), also whenvstarts at 0sceRudpGetMaxSegmentSize(NULL)0x807700010x80770004sceRudpProcessEvents(0),(1000)0x80770001sceRudpNetFlush()0x80770001After
sceRudpEnd()all three return0x80770001again.I called the per-context queries with one
intcontext id. An unknown id returns0x80770003(INVALID_CONTEXT_ID), so the first argument is the id:sceRudpGetNumberOfPacketsToRead0x807700030x80770004sceRudpGetSizeWritable0x807700110x807700030x80770004sceRudpGetSizeReadable0x807700110x807700030x807700040x80770011isNOT_ACCEPTABLEin the PS3 numbering, which matches the other codes (RPCS3).Two differences from the fork commit: the console checks initialization before the null pointer, so
GetMaxSegmentSize(NULL)beforesceRudpInitreturnsNOT_INITIALIZED, and it writes 1410.Heads-up: I'm preparing a change to
sceRudpInitandsceRudpGetStatusin the same file, also measured on the console. It changes two lines ofGuestOfflineImports.cpp, so our branches may conflict there.AI-assisted.
Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-11T01:36:33Z.
Windows validation for this branch.
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, branch 5766b3963: guest_offline_imports and guest_rudp_unimplemented pass 2/2.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T08:27:26Z.
Refreshed the Demon Slayer Rudp branch on current
main(1be0a7ce): https://github.com/xXPBSXx/AnyPS5/tree/fix/rudp-exports-ppsa03490-v2 (one commit;sceRudpGetMaxSegmentSize,sceRudpProcessEventsandsceRudpNetFlushanswer by the library's initialised state like the other calls, four more imports are declared-only; I adapted the offline-imports test to the newsceRudpInitwith a pool;guest_rudp_unimplemented,guest_offline_importsand the conventions check pass). All seven functions are still absent frommain.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T11:51:14Z.
#3467 implements
sceRudpGetNumberOfPacketsToRead,sceRudpGetSizeWritableandsceRudpGetSizeReadablewith the measured disconnected-context results, covered byguest_rudp_context_queries; the other four imports are still open.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T14:37:55Z.
Update:
mainnow implementssceRudpGetNumberOfPacketsToRead,sceRudpGetSizeWritableandsceRudpGetSizeReadableitself (Rudp context queries), so my earlier-v2branch conflicts with it. Rebuilt on currentmainwith only what is still missing: https://github.com/xXPBSXx/AnyPS5/tree/fix/rudp-exports-ppsa03490-v3 (one commit:sceRudpProcessEvents,sceRudpNetFlushandsceRudpGetMaxSegmentSizeanswer by the library's initialised state,sceRudpNetReceivedis declared and throws; new testguest_rudp_pump, therudpctest targets and the conventions check pass). Please use this one, not-v2.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:26:13Z.
Closing: all seven sceRudp* imports are on main (#3467, #3823). The End/Terminate swap is in #3973.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T23:33:30Z.
Partly fixed. The seven missing
sceRudp*imports are onmainnow (#3467 for the three context queries and #3823 for the rest, both merged): onmainf9905068bthe import audit of Demon Slayer's relinked executable and its six modules has 0 absent imports (2358 unique imports). I could not confirm the second part (running up to the packed pixel ancillary error), because onmainthe title now stops earlier in Unreal's start-up:PS5 Out of Memory ... UsedPhysical 9278849024, AvailablePhysical 4902027264, thenLowLevelFatalError ... Ran out of memory allocating 5565054976 bytes with alignment 65536and a fault in the title'slibc.prx(+0x141b0), 4 of 4 runs of 90 s. Sifu (PPSA03001) shows the same allocation size on the same build, and with the libraries ofmaina11c8f7f7and ofca4ab0d5das well (Demon Slayer's runs with those two library sets were silent in my 90 s runs, so I cannot say for them). This is not caused by #3292: with a local revert of it Demon Slayer still stops the same way (2 of 2 runs). Leaving the issue open for it.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T02:05:34Z.
Demon Slayer (PPSA03490) on current
maind371ed307, relinked with the current relinker (6 modules, 0 absent imports), with the old PlayGo chunk check restored locally (the same one-line change as for Sifu in #3209, not committed):FAIL: unresolved ELF import vfrL8gPlm2Y from libSceRudp.prx(sceRudpGetMaxSegmentSize) with libraries older than the Rudp merges. With libraries ofmainthey start.Ran out of memoryany more (same mechanism as Sifu: the title enumerates PlayGo chunk ids and #3238 makes every id valid). The title then mounts its pak directories (28 opens) and aborts:what(): sceRudpGetMaxSegmentSize not implemented,FATAL: abort(), in the title's ownlibc.prx. That function throws on purpose since the review of #3823 (the real maximum segment size is unknown and the title passes a pointer to a 16-bit value it set to 0 and treats a nonzero result as failure); no emulator source I found documents its value (shadPS4, Vita3K and RPCSX only stub it).So Demon Slayer still stops on
main: first on the PlayGo allocation (with #3238's change), then onsceRudpGetMaxSegmentSize. This issue's first part (the imports) is fixed; I did not reach the packed pixel ancillary error mentioned in the title.AI-assisted (Claude Code).