libSceNpManager: missing sceNpWaitAsync and incomplete request lifecycle #9277
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 UnhealthyKraken on 2026-10-21T17:18:57Z.
Observed coverage gap
At main
d34da5d694cf0803c2986473fa612934150c6708,libSceNpManagerhas nosceNpWaitAsyncexport (jyi5p9XWUSs). The name/NID association appears in the public PS5 3.20 inventory and aerolib.The related request model currently tracks only a set of live IDs:
sceNpAbortRequest(OzKvTvg3ZYU) ignores the ID and returns 0; it does not change request state.sceNpDeleteRequest(S7QTn72PrDw) erases an ID and returns 0 even when the ID never existed or was already deleted.sceNpPollAsync(uqcPJLWL08M) ignores the ID, writesSIGNED_OUTwhen its output is nonnull and reports finished. It also reports finished for a null output.sceNpCreateAsyncRequestdoes not retain an async kind or completion state.These bodies are in Export.cpp. The existing live-request check in
sceNpSetGamePresenceOnlinedoes reject an absent or deleted ID, so that request-lifetime distinction is already observable elsewhere in this library.Reproduction and validation
Windows x86-64, GCC 15.2, Release, isolated build at
65920e6fdc69f88b9d07c12e1568ceac08a6ead1(only test/debt changes over the main commit above; NP source unchanged). A native probe resolves the canonical patched exports and:0,-1,INT_MAXand that deleted ID, using a result sentinel0x5a5a5a5afor poll.jyi5p9XWUSswithGetProcAddress.For every ID, abort/delete/poll return
0x00000000; poll changes the sentinel to0x80550006. The wait export is absent. Both currentguest_np_managerandguest_np_reachabilitysuites still pass.A separate current-model probe passes 9,454 assertions, including read-only output preservation for the nine account/presence functions and 1,024 concurrent create/use/delete lifecycles. That establishes the current model's consistency, not console equivalence. No game or console run was used.
Evidence limits and implementation blocker
The pinned shadPS4 request implementation validates these absent/deleted IDs and returns
REQUEST_NOT_FOUNDwithout changing poll's result. It also distinguishes async request kind and completion/abort state. This is evidence of a PS4 emulator's model; the 12 differing native cases are not claimed as verified PS5 failures. The exact PS5 errors, validation order and synchronous-versus-asynchronous completion contract still need attributable console evidence.Adding a wait function that always reports signed out or success would leave those lifecycle questions unresolved. The missing export belongs with verified request kind/state, completion publication, abort/delete ordering and output-preservation behavior. The existing signed-out model should not invent account data or online success.
Related work
#9144 implements neighboring account queries and explicitly records that async requests are not modeled. It does not implement wait or the abort/delete/poll lifecycle. This issue tracks that separate limitation and preserves that PR's scope. Fresh exact-name and broader request-lifecycle searches found no existing report for this gap; search results are not proof that no related discussion exists.
Assistance used: Codex for research, the local probes and this report. No proprietary binaries or firmware captures are included.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T22:51:02Z.
The missing export tracked here now has a focused proposed change in #9282. That PR deliberately adds only the inventory-backed symbol as an explicit unsupported export that throws; it does not claim to implement request completion or resolve the abort/delete/poll lifecycle evidence described in this issue. The lifecycle questions in this report remain open.
Imported from boykopovar/AnyPS5. Originally posted by UnhealthyKraken on 2026-10-22T03:16:27Z.
Recorded #9282 as the focused export-declaration proposal. At current head
96ca726dccbcc6db9c98b06f3baf6a3b4e27b6e3, its stated scope is an explicit unsupportedsceNpWaitAsyncexport; it does not supply completion semantics or resolve the request lifecycle in this issue.This report should remain open after an export-only merge. Request kind, wait/poll completion publication, abort/delete ordering, validation precedence and output preservation still need PS5 evidence. The twelve differences against the pinned PS4 implementation remain comparison evidence, not verified PS5 failures; I am not treating a throwing declaration as functional async support.