libSceNpWebApi2: sceNpWebApi2PushEventAbortHandle throws (Planet Coaster); fix branch ready #4174
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 screamm on 2026-10-12T00:35:53Z.
libSceNpWebApi2's
sceNpWebApi2PushEventAbortHandle(NID1OLgvahaSco) throws; Planet Coaster (PPSA01736) imports it (import evidence from merged #3399; the call has not been observed executing).Fix branch ready:
screamm:feat/npwebapi2-push-event-abort(2d9c2e45, one commit onmainbab7b328). I cannot open it as a PR under the intake rule; anyone eligible is welcome to carry it, keeping the commit as is.sceNpWebApi2SetRequestTimeout, the library's other pending export, is left to the open #2853 and #4064.np_web_api2_internal.cpp(abortPushEventHandle),np_web_api2_context.cppandnp_web_api2_push_event.cppate0a46675:CreateHandlereturnsLIB_CONTEXT_NOT_FOUND(0x80553404) for an unknown context and registers the handle;AbortHandlereturnsLIB_CONTEXT_NOT_FOUND/HANDLE_NOT_FOUND(0x8055340D) for an unknown context or handle and otherwise marks the handle aborted (idempotent, 0);CreateFilteron an aborted handle returnsABORTED(0x80553409);DeleteHandlevalidates the same way and removes the handle;Terminatedrops the context's handles. In shadPS4 the only effect of abort is thatABORTEDresult, so registered callbacks are left alone; handle timeouts are not modelled. The codes are PS4 numbering, unverified on PS5 (TechnicalDebt). Note for reviewers:CreateHandle,DeleteHandleandCreateFilterpreviously accepted any id and now return these errors; the siblingGetMemoryPoolStatsstill throws for an unknown context, and the existingSCE_NP_WEBAPI2_ERROR_UNAVAILABLE(0x80553406) is shadPS4'sREQUEST_NOT_FOUND, left unchanged.guest_np_web_api2covers two handles (abort one twice, filter creationABORTEDon it and unaffected on the other), the wrong-context, unknown-handle and unknown-context codes, delete then abort/delete again, and abort afterTerminate.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs(with open #4021'sSocket.cppguard applied locally):guest_np_web_api23/3;ctest -j8 -E "^agc_driver_|^video_out_flip"under heavy host load: beyond the known Windows failures on currentmain(agc_write_tracking#4087,guest_kernel_stack_protect#4088) the timeouts (conventions_function_bodies,guest_pthread_rwlock,guest_raise_exception,tls_function_coverage_register_address_loads,guest_pthread_start,host_thread_local) andaudio_out2_timingpass when rerun serially; withmain'sExport.cppthe extended test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-12T08:13:08Z.
Carried as #4375 with your commit as is (cherry-picked onto current
main, author unchanged). I added a Linux run there: on Ubuntu 24.04 with GCC 13.3,guest_np_web_api2passes 3/3 and fails withmain'sExport.cpp. Thanks for the fix!Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T16:38:22Z.
Carried the implementation into PR #5292: https://github.com/boykopovar/AnyPS5/pull/5292. The Linux
guest_np_web_api2regression test passes (1/1), and conventions pass. PS5 behavior for the PS4-derived codes remains unverified.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T23:53:15Z.
Closing: no title is seen calling
sceNpWebApi2PushEventAbortHandle(same reason as #4375 and #5085). Comment here with the log line if a title stops at it on current main.