libSceNpManager: missing sceNpWaitAsync and incomplete request lifecycle #9277

Open
opened 2026-10-21 17:18:57 +00:00 by UnhealthyKraken · 2 comments
UnhealthyKraken commented 2026-10-21 17:18:57 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by UnhealthyKraken on 2026-10-21T17:18:57Z.


Observed coverage gap

At main d34da5d694cf0803c2986473fa612934150c6708, libSceNpManager has no sceNpWaitAsync export (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, writes SIGNED_OUT when its output is nonnull and reports finished. It also reports finished for a null output.
  • sceNpCreateAsyncRequest does not retain an async kind or completion state.

These bodies are in Export.cpp. The existing live-request check in sceNpSetGamePresenceOnline does 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:

  1. Creates a request and deletes it.
  2. Calls abort, delete and poll with each of 0, -1, INT_MAX and that deleted ID, using a result sentinel 0x5a5a5a5a for poll.
  3. Looks up canonical jyi5p9XWUSs with GetProcAddress.

For every ID, abort/delete/poll return 0x00000000; poll changes the sentinel to 0x80550006. The wait export is absent. Both current guest_np_manager and guest_np_reachability suites 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_FOUND without 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.

#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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5965203041 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9277). Originally posted by [UnhealthyKraken](https://github.com/UnhealthyKraken) on 2026-10-21T17:18:57Z. --- ### Observed coverage gap At main `d34da5d694cf0803c2986473fa612934150c6708`, `libSceNpManager` has no `sceNpWaitAsync` export (`jyi5p9XWUSs`). The name/NID association appears in the [public PS5 3.20 inventory](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceNpManager.c) and [aerolib](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv). 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, writes `SIGNED_OUT` when its output is nonnull and reports finished. It also reports finished for a null output. - `sceNpCreateAsyncRequest` does not retain an async kind or completion state. These bodies are in [Export.cpp](https://github.com/boykopovar/AnyPS5/blob/d34da5d694cf0803c2986473fa612934150c6708/core/libs/prx/libSceNpManager/Export.cpp). The existing live-request check in `sceNpSetGamePresenceOnline` does 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: 1. Creates a request and deletes it. 2. Calls abort, delete and poll with each of `0`, `-1`, `INT_MAX` and that deleted ID, using a result sentinel `0x5a5a5a5a` for poll. 3. Looks up canonical `jyi5p9XWUSs` with `GetProcAddress`. For every ID, abort/delete/poll return `0x00000000`; poll changes the sentinel to `0x80550006`. The wait export is absent. Both current `guest_np_manager` and `guest_np_reachability` suites 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](https://github.com/shadps4-emu/shadPS4/blob/81be949167d0060b08f26dc3e055a0b640d129c8/src/core/libraries/np/np_manager.cpp#L349-L469) validates these absent/deleted IDs and returns `REQUEST_NOT_FOUND` without 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.
MarcZX10 commented 2026-10-21 22:51:02 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328305204 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9277#issuecomment-6328305204). Originally posted by [MarcZX10](https://github.com/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.
UnhealthyKraken commented 2026-10-22 03:16:27 +00:00 (Migrated from github.com)
Author
Contributor

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 unsupported sceNpWaitAsync export; 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331807619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9277#issuecomment-6331807619). Originally posted by [UnhealthyKraken](https://github.com/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 unsupported `sceNpWaitAsync` export; 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#9277
No description provided.