fix(libSceNpAuth): report an async request as running on its first poll #5322
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5322"
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 lubaxe on 2026-10-13T17:12:36Z.
What
The async requests completed inside
sceNpAuthGetIdTokenV3andsceNpAuthGetAuthorizationCodeV3, so the firstsceNpAuthPollAsyncalready returned finished. On the console these requests go over the network, so a poll made right after the request still returns running (1).PPSA06694 (Remnant 2) creates an async request, calls
sceNpAuthGetIdTokenV3and polls at once (Remnant2.exe+0x12e2a0, called from+0x12e97a), during game instance initialisation:+0x12e3ffschedules+0x12e2a0again).+0x12ecf0), even when the result is an error. That handler sets the active profile from the first local player (+0x1132c0).At initialisation no local player exists yet, so the profile was set to none and nothing set it again. The main menu waits for the profile, so the title stayed on its logo screen.
The first
sceNpAuthPollAsyncof a processed async request now returns 1 (running) without writing the result; later polls return 0 with the result, as before.sceNpAuthWaitAsyncstill returns the result at once.Tested
guest_np_auth: the first poll aftersceNpAuthGetIdTokenV3returns 1 and leaves the result untouched, the next ones return 0 with the signed-out error. Onmainit fails at the first poll.guest_np_auth,guest_np_auth_authorized_app_code,guest_np_auth_authorized_app_dialogpass.ctestonmain8c772ad3with this change: 1076 of 1077 passed. The failure isagc_driver_pixel_lds, which also fails on unmodifiedmainon this GPU. Rebased ontomain61b8742b; thereagc_driver_graphics,guest_np_authandagc_driver_vertex_clip_cull_distancespass.main); without it, it stays on the logo screen (1 of 1 here, every run on the earliermain).tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-13T19:18:24Z.
Tested on Linux x86-64 (Release build), with
cb8b0caf7merged into main18c438b10:guest_np_authpasses.guest_np_authaborts.AI-assisted: yes (Claude Code)