feat(libSceVideoOut): stub sceVideoOutUnknown_YNw9Xk5iNWo as silent success #6866

Closed
pushkarreddyy wants to merge 1 commit from upstream-pr/6866 into main
pushkarreddyy commented 2026-10-16 14:58:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-16T14:58:52Z.


What

Exports sceVideoOutUnknown_YNw9Xk5iNWo (NID YNw9Xk5iNWo) in libSceVideoOut/Unimplemented.cpp as a silent success stub returning 0, and documents it under silent stubs in docs/dev/debt/libSceVideoOut.md.

In Wobbly Life (PPSA29413), the title previously required a local re-add of YNw9Xk5iNWo (Discussion #2211) to reach streaming without failing at start-up, observed called with arguments (67072176, 0x1). In Dreaming Sarah (PPSA02929), the earlier throwing stub in #5608 aborted start-up about 2 s in ("YNw9Xk5iNWo not implemented", reverted in #5738). Stubbing it as success allows start-up to progress without aborting.

Adds unit tests in core/libs/tests/GuestVideoOutUnknown.cpp verifying success on null status, valid pointer, non-zero handle, and negative handle.

Tested

  • python tools/check_conventions.py --base origin/main passes with 0 findings and 0 errors.
  • Unit test coverage added in core/libs/tests/GuestVideoOutUnknown.cpp and registered in libSceVideoOut/CMakeLists.txt.

Checklist

  • Based on current main; 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
  • Unblocks: PPSA29413 #2211, PPSA02929 #5738
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4890193370 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-16T14:58:52Z. --- ### What Exports `sceVideoOutUnknown_YNw9Xk5iNWo` (NID `YNw9Xk5iNWo`) in `libSceVideoOut/Unimplemented.cpp` as a silent success stub returning `0`, and documents it under silent stubs in `docs/dev/debt/libSceVideoOut.md`. In Wobbly Life (PPSA29413), the title previously required a local re-add of `YNw9Xk5iNWo` (Discussion #2211) to reach streaming without failing at start-up, observed called with arguments `(67072176, 0x1)`. In Dreaming Sarah (PPSA02929), the earlier throwing stub in #5608 aborted start-up about 2 s in ("YNw9Xk5iNWo not implemented", reverted in #5738). Stubbing it as success allows start-up to progress without aborting. Adds unit tests in `core/libs/tests/GuestVideoOutUnknown.cpp` verifying success on null status, valid pointer, non-zero handle, and negative handle. ### Tested - `python tools/check_conventions.py --base origin/main` passes with 0 findings and 0 errors. - Unit test coverage added in `core/libs/tests/GuestVideoOutUnknown.cpp` and registered in `libSceVideoOut/CMakeLists.txt`. ### Checklist - [x] Based on current `main`; 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 - [x] Unblocks: PPSA29413 #2211, PPSA02929 #5738
github-actions[bot] commented 2026-10-16 14:59:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:59:34Z.


Progress report (896e1b2 → 76b8547)

➖ System libraries: 88.83% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceVideoOut sceVideoOutUnknown_YNw9Xk5iNWo
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceVideoOut sceVideoOutUnknown_YNw9Xk5iNWo
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218279869 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6218279869). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T14:59:34Z. --- <!-- progress-report --> ### Progress report (896e1b2 → 76b8547) ➖ **System libraries**: 88.83% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutUnknown_YNw9Xk5iNWo` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceVideoOut | `sceVideoOutUnknown_YNw9Xk5iNWo` | </details>
pushkarreddyy commented 2026-10-16 15:05:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-16T15:05:30Z.


@oneandonlydean @adriadam10 All CI checks are green (conventions, intake, eligibility, report) and ready for review whenever convenient!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218391138 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6218391138). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-16T15:05:30Z. --- @oneandonlydean @adriadam10 All CI checks are green (conventions, intake, eligibility, report) and ready for review whenever convenient!
github-actions[bot] commented 2026-10-16 15:12:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T15:12:17Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 674 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 4040 docs/dev/debt/libSceVideoOut.md
PR 5021 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 6044 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 6447 core/libs/prx/libSceVideoOut/Unimplemented.cpp
PR 6507 core/libs/prx/libSceVideoOut/CMakeLists.txt
docs/dev/debt/libSceVideoOut.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218519248 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6218519248). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T15:12:17Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 674](https://www.github.com/boykopovar/AnyPS5/pull/674) | `core/libs/prx/libSceVideoOut/CMakeLists.txt` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `docs/dev/debt/libSceVideoOut.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceVideoOut/CMakeLists.txt` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceVideoOut/CMakeLists.txt` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceVideoOut/Unimplemented.cpp` | | [PR 6507](https://www.github.com/boykopovar/AnyPS5/pull/6507) | `core/libs/prx/libSceVideoOut/CMakeLists.txt`<br>`docs/dev/debt/libSceVideoOut.md` |
jotitadev commented 2026-10-16 16:22:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T16:22:21Z.

Review: COMMENTED


YNw9Xk5iNWo looks like the NID of AnyPS5's own former MouseIsOpen helper, not of a console function. If so, this export would not be reached on current main.

  • tools/nid_names.py: compute_nid("MouseIsOpen") is YNw9Xk5iNWo.
  • Until #5936 (f6e9cd6ea, merged 10-14 18:00 UTC), libSceVideoOut/src/MouseInput.cpp called MouseIsOpen_nid_postfix(), which libSceMouse exported. So every build had libSceVideoOut importing YNw9Xk5iNWo. This is the cause #5608's revert and #6268 describe: Dreaming Sarah's 2 s abort came from VideoOut's own call reaching the stub.
  • The Wobbly Life note in #2211 that this PR cites was taken on main 66f8947 at 10:20 UTC on 10-14, before #5936. That 66f8947 still has MouseIsOpen_nid_postfix in both files. The (67072176, 0x1) arguments would then be leftover registers: MouseIsOpen takes no arguments.
  • On main 452494439 (Linux, full build), none of the 129 patched .prx under build/core/libs/libs/ import or export YNw9Xk5iNWo. With this PR, libSceVideoOut.prx exports it (FUNC GLOBAL ... YNw9Xk5iNWo), and nothing in the tree imports it.

So on current main, Wobbly Life and Dreaming Sarah should not stop on this NID, with or without the stub. Could you check whether either title still stops on YNw9Xk5iNWo on a build that includes #5936? If one does, the module list from that run would show which module imports it.

Test run: Intel i7-8700, Ubuntu 26.04, GCC 15.2, CMake 4.2.3, Release. Head 76b854744ba6e8d8832e8591d3fb5ab2508b525b merged on 452494439. guest_video_out_unknown passes. The non-GPU suite is 648/650, the same as main: only file_writer_binary and file_writer_text fail, and they also fail on main here. I did not run any title.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5550620413 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#pullrequestreview-5550620413). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T16:22:21Z. **Review:** COMMENTED --- `YNw9Xk5iNWo` looks like the NID of AnyPS5's own former `MouseIsOpen` helper, not of a console function. If so, this export would not be reached on current `main`. - `tools/nid_names.py`: `compute_nid("MouseIsOpen")` is `YNw9Xk5iNWo`. - Until #5936 (`f6e9cd6ea`, merged 10-14 18:00 UTC), `libSceVideoOut/src/MouseInput.cpp` called `MouseIsOpen_nid_postfix()`, which libSceMouse exported. So every build had `libSceVideoOut` importing `YNw9Xk5iNWo`. This is the cause #5608's revert and #6268 describe: Dreaming Sarah's 2 s abort came from VideoOut's own call reaching the stub. - The Wobbly Life note in #2211 that this PR cites was taken on `main` `66f8947` at 10:20 UTC on 10-14, before #5936. That `66f8947` still has `MouseIsOpen_nid_postfix` in both files. The `(67072176, 0x1)` arguments would then be leftover registers: `MouseIsOpen` takes no arguments. - On `main` `452494439` (Linux, full build), none of the 129 patched `.prx` under `build/core/libs/libs/` import or export `YNw9Xk5iNWo`. With this PR, `libSceVideoOut.prx` exports it (`FUNC GLOBAL ... YNw9Xk5iNWo`), and nothing in the tree imports it. So on current `main`, Wobbly Life and Dreaming Sarah should not stop on this NID, with or without the stub. Could you check whether either title still stops on `YNw9Xk5iNWo` on a build that includes #5936? If one does, the module list from that run would show which module imports it. Test run: Intel i7-8700, Ubuntu 26.04, GCC 15.2, CMake 4.2.3, Release. Head `76b854744ba6e8d8832e8591d3fb5ab2508b525b` merged on `452494439`. `guest_video_out_unknown` passes. The non-GPU suite is 648/650, the same as `main`: only `file_writer_binary` and `file_writer_text` fail, and they also fail on `main` here. I did not run any title. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
blawesom commented 2026-10-16 17:43:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-16T17:43:41Z.


History worth having in view for review: this NID (YNw9Xk5iNWo) was previously implemented as a throwing stub in #5608 (a3aeaf884) and then reverted by 6b4d3c8ae because the throw aborted Dreaming Sarah at startup. This PR retries it as a silent-success stub, which would not have that failure mode — so it is a different answer to the same problem rather than a straight reverts-of-a-revert. The prior revert's rationale (a throwing stub is worse than an unimplemented call for this title) is the context a reviewer may want when choosing what this stub should do.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221301998 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6221301998). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-16T17:43:41Z. --- **History worth having in view for review:** this NID (`YNw9Xk5iNWo`) was previously implemented as a *throwing* stub in #5608 (`a3aeaf884`) and then reverted by `6b4d3c8ae` because the throw aborted Dreaming Sarah at startup. This PR retries it as a *silent-success* stub, which would not have that failure mode — so it is a different answer to the same problem rather than a straight reverts-of-a-revert. The prior revert's rationale (a throwing stub is worse than an unimplemented call for this title) is the context a reviewer may want when choosing what this stub should do.
pushkarreddyy commented 2026-10-16 18:01:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-16T18:01:42Z.


@blawesom Thank you for providing that valuable context and history! Exactly � returning silent success (0) ensures titles probing this display/video-out attribute (like Dreaming Sarah) do not abort, while allowing titles halting on the unresolved symbol to proceed past startup without fatal regressions.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221633349 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6221633349). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-16T18:01:42Z. --- @blawesom Thank you for providing that valuable context and history! Exactly � returning silent success (0) ensures titles probing this display/video-out attribute (like Dreaming Sarah) do not abort, while allowing titles halting on the unresolved symbol to proceed past startup without fatal regressions.
MarcZX10 commented 2026-10-17 00:26:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T00:26:49Z.


I checked this against current main. #5936 (f6e9cd6ea) is an ancestor of the current branch; it renamed the internal helper to MouseIsOpen_nid_no_patch, and MouseInput.cpp now calls that helper directly. The repository's NID tool confirms MouseIsOpen hashes to YNw9Xk5iNWo, and current source no longer imports or exports that helper NID.

The Wobbly Life observation cited here was from main 66f8947, before #5936, and the Dreaming Sarah abort followed the same internal-helper collision. The added tests call the proposed stub directly; they don't show that a current-main title imports this NID. Could you confirm an affected title/module still imports YNw9Xk5iNWo on current main before adding the export? As submitted, this appears to restore the accidental helper NID that #5936 removed, while the cited runs don't establish that the titles still need it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227319557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6227319557). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T00:26:49Z. --- I checked this against current `main`. #5936 (`f6e9cd6ea`) is an ancestor of the current branch; it renamed the internal helper to `MouseIsOpen_nid_no_patch`, and `MouseInput.cpp` now calls that helper directly. The repository's NID tool confirms `MouseIsOpen` hashes to `YNw9Xk5iNWo`, and current source no longer imports or exports that helper NID. The Wobbly Life observation cited here was from `main` `66f8947`, before #5936, and the Dreaming Sarah abort followed the same internal-helper collision. The added tests call the proposed stub directly; they don't show that a current-main title imports this NID. Could you confirm an affected title/module still imports `YNw9Xk5iNWo` on current `main` before adding the export? As submitted, this appears to restore the accidental helper NID that #5936 removed, while the cited runs don't establish that the titles still need it.
pushkarreddyy commented 2026-10-17 10:39:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-17T10:39:42Z.


@MarcZX100 Thank you for the thorough check and trace back to #5936 ( 6e9cd6ea)! You're completely right � the stop was an artifact of the earlier internal helper name hashing to YNw9Xk5iNWo, which #5936 resolved by using _nid_no_patch. Since current main no longer has that internal collision and titles do not import this symbol natively, this stub is not needed. Closing this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232921499 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6866#issuecomment-6232921499). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-17T10:39:42Z. --- @MarcZX100 Thank you for the thorough check and trace back to #5936 ( 6e9cd6ea)! You're completely right � the stop was an artifact of the earlier internal helper name hashing to YNw9Xk5iNWo, which #5936 resolved by using _nid_no_patch. Since current main no longer has that internal collision and titles do not import this symbol natively, this stub is not needed. Closing this PR.

Pull request closed

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!6866
No description provided.