Road of Death (PPSA07286) fails on startup: missing libSceXml.prx #2591
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 LightStorm72 on 2026-10-10T07:35:43Z.
Description
When attempting to run the converted executable for Road of Death (
PPSA07286) on Windows, the application halts immediately during startup becauselibSceXml.prxis missing from the system libraries directory.libSceXml.prxis currently not built or implemented in thecore/libs/prxtree. Creating an initial implementation or throwing stub forlibSceXml.prxwould allow the loader to resolve this system module and proceed further into the boot sequence.Steps to Reproduce
4.Launch .\app.exe via PowerShell. The application immediately fails with Error 126 attempting to locate libSceXml.prx .
Environment & Specifications
OS: Windows 11 64-bit
CPU: AMD Ryzen 5 3600 (6-Core / 12-Thread)
GPU: NVIDIA GeForce RTX 2070 SUPER
RAM: 32 GB DDR4 @ 3200 MHz
Shell: PowerShell 7
AnyPS5 Build: Latest main (Compiled via MinGW-w64)
Console Output
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T09:28:40Z.
libSceXmlis not on main yet. Please post the output ofpython3 tools/import_audit.py app.registry.json --libs build/core/libs/libs --modules <game>/sce_modulefrom one current main build. It lists thelibSceXmlfunctions PPSA07286 imports and anything else that is missing.Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T09:34:51Z.
1182 references, 1119 unique imports
implemented 513 imports 513 references
stub 27 imports 27 references
absent 2 imports 2 references
module 577 imports 640 references
Absent: no built library exports these, so the loader fails (2)
[libSceHttp.prx]
7WcNoAI9Zcw
gcUjwU3fa0M
Stub: exported but throws when called (27)
[libSceAgc.prx]
0o3VDdtA6nM sceAgcDcbSetIndexIndirectArgs
7Wa3aeJgeVU sceAgcBranchPatchSetThenTarget_0300
AAeX-U5-P3M sceAgcGetDefaultCxStateFlat
AFIh8SQkYlQ sceAgcDcbSetIndexIndirectArgsGetSize
FcgdDM3MB+k sceAgcAcbSetWorkloadStreamInactive
FneFypEDRgY sceAgcDcbSetWorkloadStreamInactive
GPbUp9jXQa8 sceAgcAcbWaitUntilSafeForRendering
LFSPFmGc9Hg sceAgcDcbSetWorkloadsActive
P1CugZ99Uzc sceAgcDcbEndOcclusionQueryGetSize
T6xuVw0KUJo sceAgcDebugRaiseException
ebixW91gpPw sceAgcAcbSetFlip
gQkqkLttcpw sceAgcAcbAtomicGds_0900
hEK26Wdny6s sceAgcDcbSetWorkloadComplete
k0E7vkgqAuE sceAgcUpdateInterpolantMapping_0100
ms1xVoZ-Vwc sceAgcDcbBeginOcclusionQueryGetSize
opR1JeJZCBU sceAgcAcbSetWorkloadComplete
rP5xLdOf26k sceAgcBranchPatchSetElseTarget_0300
rVOmPz2RBlg sceAgcAcbSetWorkloadsActive
zARR5aCmkoY sceAgcDcbA_zARR5aCmkoY
[libSceAgcDriver.prx]
FOwvmNlFLjM sceAgcDriverRequestCaptureStop
SAfhzJPcjuk sceAgcDriverRequestCaptureStart
Xq5WmbwPTnQ sceAgcDriverTriggerCapture
rJUyMrDdxJg sceAgcDriverGetShaderDebuggingStatus
[libSceAudioIn.prx]
5NE8Sjc7VC8 sceAudioInOpen
[libSceHttp.prx]
qISjDHrxONc sceHttpWaitRequest
[libSceNpSessionSignaling.prx]
n1fn2KFeLDA sceNpSessionSignalingGetConnectionStatus
[libSceSsl.prx]
kLB5aGoUJXg sceSslGetPem
Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-10T10:08:19Z.
@oneandonlydean I updated the AnyPS5 build to latest and this is what I got, still same error and I provided the output of the Python command.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T17:37:13Z.
Your import audit shows something useful: nothing in the game imports from
libSceXmlat all. It's only in the executable'sDT_NEEDEDlist. The Windows start-up stub loads every needed library and stops at the first one that's missing, even when nothing could ever bind to it. #2776 hits the same wall withParty.prx.I have a branch that lets the start-up carry on in exactly that case:
Silverash-i8/AnyPS5-fork:fix/windows-skip-missing-unused-library, one commitce0b99aconmain57f96fd2.WindowsEntryStubBuilderalready works out, for every import, which libraries it may be searched in. If a host library isn't in any of those lists andLoadLibraryExAfails with 126 (module not found), the stub now printsand moves on with a null handle, which nothing reads. Anything else still stops as before: a missing library that something imports from, a load that fails with any other error, or a missing guest module. (126 also covers a library that exists but whose own dependency is missing; when nothing imports from it, that's skipped too.)
Tested on Windows 11, WinLibs GCC 15.2.0 r7:
windows_import_modules: an executable that needsunused.prxwith nothing imported from it. Onmainit stops withFailed to load module: ...\unused.prx/GetLastError: 126, the same as your log. With the branch it prints the line above and runs to the expected exit code. The existingmissing-dependencycase, where the missing library is imported from, still fails the same way.ctest -j6: 709/709 pass (5 skips), andtools/check_conventions.pypasses.One thing to expect if you try it: your audit also lists two absent
libSceHttpimports (7WcNoAI9Zcw,gcUjwU3fa0M), so the next stop will probably beunresolved ELF importfor one of those, not this. Linux output isn't changed by this; there the needed list goes to the system loader.AI-assisted (Claude Code); I ran everything above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T19:45:42Z.
Tested
ce0b99acfrom the branch above on two more titles that list a library they import nothing from: Record of Lodoss War (PPSA05347, needslibSceXml.prx) and Resident Evil 4 (PPSA07411, needsParty.prx, see #2776). As it stands, the commit does not change the start-up for either of them.On Lodoss the import audit (executable and both modules, all registries) shows 1218 unique imports and 0 absent, and no import names
libSceXml. Withce0b99acapplied and the relinker rebuilt,app.execontains the new message but the start still stops at:The reason is in
WindowsEntryStubBuilder::Build. A library is marked as used for every index in an import's search list, and an import whoseLibraryis empty is searched in all libraries (import.Library.empty() || name == import.Library || guestName). All titles I looked at have such imports (registry entries with"library": ""): 59 in Lodoss's executable plus 37 inlibSceNpCppWebApi, 118 in RE4, 132 in Returnal. So every host library counts as used and the new branch is never taken.A one-line change on top of the commit, counting a library as used only for imports that name one:
With it, Lodoss prints
...\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it, runs the title's own code (save data mount, trophy set-up) and stops later at an unrelated point:AGC graphics: polygon mode, depth bias or nonstandard rasterization is unsupported (register 0x205 = 0x00010244). RE4 prints the same message forParty.prx(without any placeholder library inlibs) and then stops atunresolved ELF import 84MgU4MMTLQ from libSceNet.prx, which is the export from #1808.With the one-line change on top of
ce0b99ac, the 8 Windows relinker tests I ran pass (windows_import_moduleswith the newmissing-unused-dependencycase,windows_dependency_diagnostics,windows_working_directory,windows_address_space,windows_bss,windows_gui,windows_exceptions,windows_diagnostic_fixture_isolation), andtools/check_conventions.py --base upstream/mainpasses. I did not run the fullctest, and the test case in the commit has no import with an empty library, so it does not cover this. I did not check whether an unnamed import could legitimately need the skipped library (if one does, it ends asunresolved ELF import, as before).Windows 10 (19045), NVIDIA GeForce RTX 4080 SUPER, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, on
main57f96fd2plus #2872, #2658 andce0b99ac. Dumps from my own digital copies; no game files shared. AI-assisted.Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T19:55:48Z.
@xXPBSXx thank you, that's a real hole in my commit, and it's great that you tested it on Lodoss and RE4.
I applied your one-liner on the branch (
49cae1f7, credited to you) and added a case with an unnamed import towindows_import_modules. Then the full relinker tests turned up a conflict, so I've reverted it again (7939cd1e) and the branch is back toce0b99acfor now.The conflict is in
guest_module_identity, in the case that requestslibGuest.xyzwith an import declared from modulelibGuest.ImportModulecan't matchlibGuesttolibGuest.xyz, so that import'sLibraryis empty too. The test expects the start to stop withFailed to load module:. With the one-liner,libGuest.xyzis skipped as unused and the import binds torenamed.prx, the guest module that declareslibGuest, and the run exits 22. That test seems to be there exactly to stop a declared-but-unmatched module from binding somewhere else, so I don't want to change it.So an empty
Librarycovers two different things:ImportModulereturns early for a symbol without#).Case 2 can belong to the missing library, so it should keep counting against every library. Case 1 never named one, so ignoring it for this check seems safe. Could you check which kind the unnamed imports in Lodoss and RE4 are? In the registry, do their symbols carry a
#lib#modulesuffix? If they're all case 1, I'll carry that distinction through toPeImportand only skip when every unnamed import is case 1, and both your titles and the identity test should be fine.AI-assisted (Claude Code); I ran the tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T21:07:01Z.
@Silverash-i8 thanks for testing it and for reverting cleanly. I checked which kind the unnamed imports are, in four titles (Lodoss, RE4, PRAGMATA PPSA02530, Returnal).
In the executables they are all your case 2: every registry entry with an empty
libraryinapp.registry.jsoncarries a#lib#modulesuffix (Lodoss 59, RE4 118, Returnal 95, PRAGMATA 124). Case 1 (no#at all) only appears in modules (libSceNpCppWebApi, 37 entries in several titles, andlibfmod, 16), never in an executable. So a rule that skips only when every unnamed import is case 1 would not change the start of any of these titles.What the suffixes name. The two characters are the library ID and the module ID in the alphabet
A-Za-z0-9+-(A=0 ...Z=25 ...). I decoded them against the ELF's0x61000049list (library IDs, names at an offset in the dynlib segment) and0x61000045list (module IDs). The list tags are read from this dump format only and I did not check them against any other title or documentation. For Lodoss:#Y#Z#e#f#Q#R#L#MRE4 and PRAGMATA add
libSceAjm,libSceAppContent(modulelibSceAppContentUtil) and, for PRAGMATA,libScePsml; Returnal has the same kind. Every one of these library names exists as a file inbuild/core/libs/libs(libSceJson2.prx,libSceAjm.prx,libSceAvPlayer.prx,libSceMsgDialog.native.prx,libSceSaveDataDialog.native.prx,libSceAppContent.prx,libScePsml.prx). The module nameslibSceJsonandlibSceAppContentUtilmatch no file, which looks like whyImportModuleleavesLibraryempty. None of the suffixes nameslibSceXmlorParty.So for the unnamed imports of these titles the suffix is enough to say that they do not belong to the missing library. A rule in your direction that fits both this and
guest_module_identitycould be: an unnamed import with a suffix counts against a missing library only when its library or module name equals that library's name (libGuestvslibGuest.xyzwould then still count, andlibSceJson2would not count againstlibSceXml). I have not written or tested that; I am only reporting what the data shows. If you push a version, I can run it against these four titles.Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7). No game files shared. AI-assisted.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T21:16:12Z.
@xXPBSXx that decode was exactly what was needed, thanks. I've implemented your rule.
Branch:
Silverash-i8/AnyPS5-fork:fix/windows-start-without-unused-library, two commits onmain57f96fd2:ce0b99ac(the skip itself) and01e65cfb(your rule). It's the same tree as the tip of the old branch, without the revert pair in the history.What
01e65cfbdoes:ImportModulecan't match an import's declared module to a needed library, the relinker now keeps that declared module name. It does this for the executable and for each guest module (newDeclaredImportModulehelper, split out ofImportModulewithout changing what it returns).libGueststill keeps a missinglibGuest.xyzrequired, whilelibSceJsondoesn't count againstlibSceXml.prx.I compared module names rather than the library IDs you decoded from
0x61000049, since the relinker only reads the module list today. For your four titles that gives the same answer: none of the module names (libSceJson,libSceAvPlayer,libSceAppContentUtiland so on) matcheslibSceXmlorParty.Tested on Windows 11, WinLibs GCC 15.2.0 r7:
windows_import_modulesnow covers a missing unused library next to a named import, an import with no module ID, and an import declared fromlibSceJsonthat matches no library. Both new cases fail once0b99acalone and pass with01e65cfb.guest_module_identitypasses, including thelibGuest.xyzcase.ctest -j6: 709/709.tools/check_conventions.pypasses.If you can run it against Lodoss, RE4, PRAGMATA and Returnal like you offered, that would be great.
AI-assisted (Claude Code); I ran everything above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T21:26:06Z.
@Silverash-i8 I ran
01e65cfb(on top ofce0b99ac, fetched from your branch) against the four titles. It works for the two that need it and changes nothing for the others....\libs\libSceXml.prx -> not found; nothing is imported from it, continuing without it, then the title runs its own code....\libs\Party.prx -> not found; nothing is imported from it, continuing without it, with no placeholder library inlibs. It then stops atsce::Json::InitParameter2::setSpecialFloatFormatType(#2776).malloc(#3043), which is a separate problem.unresolved ELF import 2pEUrnXGxysfromlibSceCdlgG2P.prx(the export from #2872), as before.On your branch the 19 relinker tests I ran pass (
windows_*,guest_module_*,guest_needed_*,guest_offline_imports,amd64_only_*), includingguest_module_identity, andtools/check_conventions.pypasses. I did not run the fullctest. Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7).I wrote the same rule locally before I saw your branch. It only carried the declared module name for the executable, not for guest modules, so yours is the better version and I am not pushing mine. Thanks for crediting the decode.
No game files shared. AI-assisted.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-10T21:30:55Z.
@xXPBSXx thanks for running all four, that's exactly the check this needed: the two titles that list a library they don't import from get past it, and the two that don't are unchanged.
So for the maintainers,
fix/windows-start-without-unused-library(ce0b99ac+01e65cfbonmain57f96fd2) should be ready for review. It fixes thelibSceXml.prxstop here and theParty.prxstop in #2776. It's 709/709 in a fullcteston Windows, and Record of Lodoss War and Resident Evil 4 start with it. The intake gate closes PRs from me for now, so I'm leaving it as a branch; happy to open a PR or rebase if that's more convenient.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T06:25:49Z.
Update: with the start-without-unused-library branch (
01e65cfb), the libSceXml stop is gone on Road of Death, and the title now runs.The two absent
libSceHttpimports from the audit are7WcNoAI9Zcw=sceHttpsFreeCaListandgcUjwU3fa0M=sceHttpsGetCaList.I derived the names by hashing candidate sceHttp names (SHA-1 with the PS NID salt). The same method gives
qISjDHrxONc=sceHttpWaitRequest, which matches the stub reported in the audit.I added them locally as stubs in
Export.cpp:sceHttpsGetCaListreturnsERROR_NETWORKwithout writing to thelist (I do not know the
SceHttpsCaListlayout), andsceHttpsFreeCaListreturns 0. With them, the title getspast the loader and runs its main loop. The signatures are from memory of the PS4 SDK, so please verify them.
Further stops after this are tracked in #3163 (AGC register 0x205), with a fix that works for this title.
AI-assisted (Claude).
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T06:39:57Z.
@LightStorm72 great, thanks for testing it. That makes Road of Death the third title the branch gets past start-up, after Lodoss and RE4.
On the two Https stubs, I checked them against shadPS4's
libSceHttp(src/core/libraries/network/http.cpp/http.h):7WcNoAI9ZcwassceHttpsFreeCaListandgcUjwU3fa0MassceHttpsGetCaList, so your hashing matches.int sceHttpsGetCaList(int httpCtxId, OrbisHttpsCaList* list)andint sceHttpsFreeCaList(int libhttpCtxId, OrbisHttpsCaList* caList).OrbisHttpsCaListisOrbisSslCaList, which shadPS4 declares as{ void* certs; int certsNum; }.sceHttpsGetCaListdoesn't fail. After checking init, the context ID and a null pointer, it setslist->certsNum = 0and returns OK (an empty CA list).sceHttpsFreeCaListdoes the same checks, setscertsNum = 0and returns OK.So instead of
ERROR_NETWORK, returning an empty list (certsNum = 0, return 0) might be closer to what titles expect, since with no TLS there are no CA certificates to list. With your title running past it either way, that's your call; I'd just note the source in TechnicalDebt if you put it on a branch.AI-assisted (Claude Code); I read the shadPS4 source for the above.
Imported from boykopovar/AnyPS5. Originally posted by LightStorm72 on 2026-10-11T06:58:40Z.
@Silverash-i8
Thanks for checking this against shadPS4. I changed both stubs to return an empty CA list as suggested:
sceHttpsGetCaListsetscerts = nullptrandcertsNum = 0and returns 0, andsceHttpsFreeCaListdoes the same. A nullca_listreturnsERROR_INVALID_VALUEin both.After rebuilding and relinking, Road of Death (PPSA07286) still gets past the loader and runs as before.
AI-assisted (Claude).