fix(libScePlayerInvitationDialog): check common dialog use during initialization #14300
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14300"
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 Teemac42 on 2026-11-01T07:23:52Z.
What
When the player invitation dialog is uninitialized and the common dialog system is already in use, return
BUSY(0x80B80008) fromscePlayerInvitationDialogInitializebefore changing its state. The firmware 13.42 report observed this return value withsceCommonDialogIsUsedstubbed to 1, in three identical native x86-64 module runs.Preserve main's existing
ALREADY_INITIALIZEDcheck first. The report does not establish ordering when both conditions hold, or the complete ownership protocol; these remain in technical debt. The implementation only queries common-dialog use and adds no acquire/release behavior.Openkeeps main's behavior, and repeated-open results remain unverified in debt.Add the busy-initialization regression and explicit common-dialog link dependencies. Exported signatures are unchanged.
Tested
player_invitation_dialog_testsandguest_common_dialog_testsbuilt, and both focused tests passed. Successful run. The tested CI commit contains contribution commit29b225791bad583ea110daea7088c4d202e5188eplus only the validation workflow change. The full repository build and test suite were not run.player_invitation_dialogandguest_common_dialogboth pass. This is not a full repository build.expected 0x80b80008, got 0x00000000at busy initialization.git diff --checkpass.No new hardware observation or title test is claimed; the behavior source is the published native firmware-module report.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T07:34:42Z.
Review: COMMENTED
Reviewed — no blocking findings
The change matches the cited 13.42 firmware report for the busy case, keeps the existing
ALREADY_INITIALIZEDcheck first, adds no exports, and I found no blocking defect in the source, but nothing was built or run here.What I ran
29b225791bad583ea110daea7088c4d202e5188e, PR base3e29acc3805f15e19a0c8f55eedb0c93e92f2f90. Head and base were unchanged at posting.python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14300. It reported failed only becausepr_abi_audit.pyandpr_test_quality.pyare absent from its isolated checkout; that is not a finding. Its diff check, conventions and live stack/mergeability checks passed.Results
git diff --check(precheck)tools/check_conventions.py(precheck)possible-unregistered-cpp-testfinding; false positive, see Findingslabels,conventionsintakecompleted with successplayer_invitation_dialogtestUnedited command output
Findings
Blocking: none.
Non-blocking:
core/libs/prx/libScePlayerInvitationDialog/CMakeLists.txtline 7 (add_test_executable(player_invitation_dialog_tests ${LIBS_INCLUDE_DIR}/tests/PlayerInvitationDialog.cpp)) and run at line 11 (add_test(NAME player_invitation_dialog ...)). The heuristic missed the${LIBS_INCLUDE_DIR}prefix.InitializereadssceCommonDialogIsUsed()and does not acquire common-dialog ownership, unlike the siblinglibSceInvitationDialog, which callsCommonDialogAcquire_nid_no_patch()in the same position. The debt entry records this choice. I consider it acceptable because the firmware evidence covers only the query. Noting the difference so it stays deliberate.docs/dev/debt/libScePlayerInvitationDialog.md, as open PR #13585 does. The live stack check passed against current main; this is a merge-order note only.Sources
g_usedflag.Initialize()withsceCommonDialogIsUsedanswering 1 as0x80B80008, from native x86-64 runs of the firmware module with stubbed imports._nid_no_patchsuffix; thestatusrename follows that rule.Not verified
player_invitation_dialogtest were not run here. The Windows run and the Linux standalone run in the PR body are author-provided and not confirmed by me.ALREADY_INITIALIZEDandBUSYwhen both hold is untested, as the PR's debt entry states.labelsandconventionswere queued when I checked; I did not wait for them.