feat(libs): add the sceG2PDialogClose and sceNpSetTimeout exports #2872

Merged
CouchRiv merged 2 commits from upstream-pr/2872 into main 2026-10-10 18:16:16 +00:00
CouchRiv commented 2026-10-10 17:14:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CouchRiv on 2026-10-10T17:14:00Z.


What

A retail title fails eager binding on two imports that no library exports. No open pull request adds them. Same scope as #2074.

Library Export Change
libSceCdlgG2P sceG2PDialogClose Throwing stub (NotImplemented_nid_no_patch), like the other G2P exports; assumed int(void) signature
libSceNpManager sceNpSetTimeout Validates timeout arguments and checks live request IDs; invalid arguments return INVALID_ARGUMENT, unknown or deleted IDs return REQUEST_NOT_FOUND, live requests return 0

Names come from the aerolib NID list. Close's signature is assumed from sceLoginDialogClose. Timeout's signature and validation follow shadPS4; request creation/deletion now tracks live IDs. There is no network I/O, so accepted timeouts are not stored. TechnicalDebt records the G2P signature assumption and timeout behavior that has not been checked on a console.

Tested

CachyOS Linux, RTX 4070 Ti (NVIDIA 615.78.08) and Radeon 610M (RADV), based on main 57f96fd2b.

  • Full Release build and library targets passed.

  • Full ctest on both GPUs (701 registered): NVIDIA has the existing agc_driver_dcc_keys_first_write failure, 4 skipped. RADV has an agc_driver segfault, 7 skipped; it passes alone but fails again in a full rerun. Both NP guest tests pass on both GPUs.

  • Lavapipe CI environment: guest_np_manager and guest_np_reachability, 2/2 passed. Timeout checks cover argument limits, default values, live/unknown/deleted requests and synchronous/asynchronous creation.

  • check_conventions.py --base origin/main and git diff --check passed.

  • The title on main 57f96fd2b stops at:

    undefined symbol: 2pEUrnXGxys
    

    This branch's audit finds no absent imports in the executable or bundled modules. It passes eager binding and reaches guest initialization, then stops at:

    what(): pthread_attr_setsolosched_np_nid_postfix not implemented
    

G2P Close invocation, console ABI/timeout behavior, Windows and gameplay were not verified.

Checklist

  • Based on main 57f96fd2b; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4813025706 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2872). Originally posted by [CouchRiv](https://github.com/CouchRiv) on 2026-10-10T17:14:00Z. --- ### What A retail title fails eager binding on two imports that no library exports. No open pull request adds them. Same scope as #2074. | Library | Export | Change | |---|---|---| | libSceCdlgG2P | `sceG2PDialogClose` | Throwing stub (`NotImplemented_nid_no_patch`), like the other G2P exports; assumed `int(void)` signature | | libSceNpManager | `sceNpSetTimeout` | Validates timeout arguments and checks live request IDs; invalid arguments return `INVALID_ARGUMENT`, unknown or deleted IDs return `REQUEST_NOT_FOUND`, live requests return 0 | Names come from the [aerolib NID list](https://github.com/zecoxao/sce_symbols/blob/2883963a0a514ba6e77407a08ef4730a65e88254/aerolib.csv). Close's signature is assumed from [sceLoginDialogClose](https://github.com/boykopovar/AnyPS5/blob/57f96fd2b36563e8380c603a92b1ef0d9d3a6aa4/core/libs/prx/libSceLoginDialog/Export.cpp#L60). Timeout's signature and validation follow [shadPS4](https://github.com/shadps4-emu/shadPS4/blob/0fe263a4760dfbfa973366890061749b4af0de97/src/core/libraries/np/np_manager.cpp#L369-L400); request creation/deletion now tracks live IDs. There is no network I/O, so accepted timeouts are not stored. TechnicalDebt records the G2P signature assumption and timeout behavior that has not been checked on a console. ### Tested CachyOS Linux, RTX 4070 Ti (NVIDIA 615.78.08) and Radeon 610M (RADV), based on main `57f96fd2b`. - Full Release build and library targets passed. - Full ctest on both GPUs (701 registered): NVIDIA has the existing `agc_driver_dcc_keys_first_write` failure, 4 skipped. RADV has an `agc_driver` segfault, 7 skipped; it passes alone but fails again in a full rerun. Both NP guest tests pass on both GPUs. - Lavapipe CI environment: `guest_np_manager` and `guest_np_reachability`, 2/2 passed. Timeout checks cover argument limits, default values, live/unknown/deleted requests and synchronous/asynchronous creation. - `check_conventions.py --base origin/main` and `git diff --check` passed. - The title on main `57f96fd2b` stops at: ```text undefined symbol: 2pEUrnXGxys ``` This branch's audit finds no absent imports in the executable or bundled modules. It passes eager binding and reaches guest initialization, then stops at: ```text what(): pthread_attr_setsolosched_np_nid_postfix not implemented ``` G2P Close invocation, console ABI/timeout behavior, Windows and gameplay were not verified. ### Checklist - [x] Based on main `57f96fd2b`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-10 17:14:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T17:14:21Z.


Progress report (57f96fd → 2a67559)

📉 System libraries: 84.5% (-0.02%, +1 implemented, +1 declared functions)

✅ 1 implemented
Library Name
libSceNpManager sceNpSetTimeout
🆕 1 declared as stubs
Library Name
libSceCdlgG2P sceG2PDialogClose
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100114373 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2872#issuecomment-6100114373). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T17:14:21Z. --- <!-- progress-report --> ### Progress report (57f96fd → 2a67559) 📉 **System libraries**: 84.5% (-0.02%, +1 implemented, +1 declared functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpManager | `sceNpSetTimeout` | </details> <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceCdlgG2P | `sceG2PDialogClose` | </details>
xXPBSXx commented 2026-10-10 17:53:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T17:53:43Z.


Windows result for Returnal (PPSA01285 v03.000.005), on top of this PR.

The import audit before start-up (executable and all 6 modules, all registries) on main at 57f96fd2 shows 2606 unique imports: 924 implemented, 52 stubs, 2 absent. The two absent imports are exactly sceG2PDialogClose and sceNpSetTimeout, so the list here is complete on Windows as well.

I tested this branch plus the commit of #2658 (pthread_attr_setsolosched_np, closed by the intake pause) as a local branch. On Windows the title then passes eager binding and guest initialization, opens files under /app0/engine/ and /app0/tourist/ and starts its threads. It runs for about 8 minutes with 0 frames presented, compiling shaders (about 14 GB of shader cache), and then aborts with:

terminate called after throwing an instance of 'std::runtime_error'
  what():  ShaderRecompiler::Recompile: shader info collection failed: packed pixel ancillary input has an unsupported live use (used by SelectU32 ? ?)

That is the open problem of #2548. Before the abort, 6 shaders were refused with that error, and 1 more with CFG shared merge splitting exceeded budget: originalBlocks=19 currentBlocks=95 splitBudget=76.

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 (each file's SHA-256 matches the digest stored in its container). Dump from my own digital copy; no game files shared. AI-assisted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100476316 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2872#issuecomment-6100476316). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-10T17:53:43Z. --- Windows result for Returnal (PPSA01285 v03.000.005), on top of this PR. The import audit before start-up (executable and all 6 modules, all registries) on `main` at `57f96fd2` shows 2606 unique imports: 924 implemented, 52 stubs, 2 absent. The two absent imports are exactly `sceG2PDialogClose` and `sceNpSetTimeout`, so the list here is complete on Windows as well. I tested this branch plus the commit of #2658 (`pthread_attr_setsolosched_np`, closed by the intake pause) as a local branch. On Windows the title then passes eager binding and guest initialization, opens files under `/app0/engine/` and `/app0/tourist/` and starts its threads. It runs for about 8 minutes with 0 frames presented, compiling shaders (about 14 GB of shader cache), and then aborts with: ``` terminate called after throwing an instance of 'std::runtime_error' what(): ShaderRecompiler::Recompile: shader info collection failed: packed pixel ancillary input has an unsupported live use (used by SelectU32 ? ?) ``` That is the open problem of #2548. Before the abort, 6 shaders were refused with that error, and 1 more with `CFG shared merge splitting exceeded budget: originalBlocks=19 currentBlocks=95 splitBudget=76`. 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 (each file's SHA-256 matches the digest stored in its container). Dump from my own digital copy; no game files shared. AI-assisted.
Sign in to join this conversation.
No reviewers
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!2872
No description provided.