feat(libSceJobManager): add the library with throwing exports #2924
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2924"
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 fma-rc on 2026-10-10T18:31:09Z.
Superseded: #3186 contains everything in this PR and in #3170 (the real implementation, CPU and compute). Only that one needs reading.
What
Adds
libSceJobManagerwith the 11 exports the library is known to have, each callingNotImplemented_nid_no_patch. Fixes #2476: a title that imports the library and does not ship it can now load, and stops with the export's name if it ever calls one.Astro's Playroom (PPSA01325) imports seven of them and has no
libSceJobManager.prxin itssce_module, so nothing resolved them and the loader failed. I have no title that ships its own copy, so that case is not run;tools/import_audit.pyclasses an import whose library is a bundled module asmodulewhatever the built libraries export, as it does for this title's ownlibc.prx.The exports are all members of
sce::Job::JobManager: both constructor and destructor variants,calculateRequiredMemorySize, the 7- and 5-argumentinitialize,setPersistentThreadCount,getSequenceFactoryInterface,getUnifiedSequenceFactoryInterfaceandshutdown. Every name was resolved from its NID withtools/nid_names.py(allrename-ready).They throw instead of doing anything because I found no source for the behaviour. The jobs themselves must run through whatever
getSequenceFactoryInterfacereturns, and none of the 11 exports submits or waits for one. In Astro's Playroom the seven imports have eight call sites, all in two adjacent functions at0x1b040a0and0x1b043f0(disassembly of the executable, not a trace); the run below did not reach them.The assumed parts are recorded in TechnicalDebt: parameter types follow the mangled names, return types are assumed except the 64-bit result of
calculateRequiredMemorySizeand theintof the 7-argumentinitialize, which the title uses that way.Tested
Arch Linux 7.2.9, GCC 16.2.1, Release,
main57f96fd2, RTX 5080 (NVIDIA 615.78.08). Astro's Playroom PPSA01325 v01.905.000, relinker and libraries from the same build.maintools/import_audit.pyerror while loading shared libraries: libSceJobManager.prxlibSceJobManagerexport is called; stops later atsceLibcInternalHeapErrorReportForGame_nid_postfix not implementedcmake --build build --target libsbuilds the library;python3 tools/check_conventions.py --base origin/mainpasses. No test added: the exports only throw.Not tested: Windows, macOS, any other title.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T18:40:43Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed