fix: throw from unimplemented exports in libSceSdma, libSceSsl, libSceVideoRecordingP, and libSceVisionManager #14308
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14308"
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 JoanNugroho on 2026-11-01T09:13:35Z.
What
Convert six silent stubs to throw NotImplemented_nid_no_patch instead of returning success:
Also updated the technical debt entries for libSceSsl, libSceVideoRecordingP, and libSceVisionManager to list the newly-throwing exports.
Tested
Not tested.
Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T09:09:27Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The required PR convention check reports 16 errors, and the PR has unresolved overlaps with #11478 and #14226 that need an agreed landing order.
What I ran
Reviewed head
5cd961da1ece6f2c185a8a8809f0094ddd633d65against the PR base snapshot5c9837bfe7c5533f2c77c968dd8193157a8c342a. The exact head also previews cleanly on currentmainat26fa1212b82f76dd49cf12d65e445d6ff3e0844c. Pairwise previews against the current heads of #11478 and #14226 conflict in the files listed below. Environment: Debian GNU/Linux 12, Python 3.11.2, Git 2.39.5, GCC 12.2.0; no C++ build was run.Results
git diff --checkmaindocs/dev/debt/libSceVideoRecordingP.md; #14226 incore/libs/prx/libSceAjm/Export.cpp.conventionsandlabelsare pending.Raw PR convention-check output
Raw live GitHub check output
Negative control
Findings
Blocking
Fix/more unimplemented returns) and reports blankWhat/Testedsections, unchecked required checklist items, and missing answers forAI-assistedandDepends on. Please use a Conventional Commit title, describe the change and actual testing, complete the applicable checklist, and answer each required metadata field. The repository’s convention and template rules are documented in its contribution guide and PR template.docs/dev/debt/libSceVideoRecordingP.mdand #14226’score/libs/prx/libSceAjm/Export.cpp. The contribution guide asks authors to agree on landing order and declare dependencies. Please coordinate with those authors and fill theDepends online with the agreed PR number(s), ornoneif the authors agree no dependency is needed. Evidence: #11478 head, #14226 head, and the overlap-order rule.Non-blocking
return 0;lines appear unreachable. The PR adds thousands of returns afterNotImplemented_nid_no_patch, whose declaration at this head is[[noreturn]]. These lines do not supply a fallback return value; removing them would substantially reduce the diff and make the functional changes easier to inspect. See the declaration at the reviewed head.Sources
Not verified
To get this to a good state
Complete the required title and PR metadata, coordinate the overlapping PR order and dependency declaration, and consider removing the unreachable returns. Once the PR has a new head, I will rerun these same checks against it.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T09:47:56Z.
Review: COMMENTED
Re-checked — new head, changes requested still apply
The head moved to
b8d0173ccf6d, but the PR body is still the empty template and the title is still not Conventional Commits, so the blocking convention failures from the 09:09Z request remain.What I ran
Exact head
b8d0173ccf6d280a9da3210eb1f885c2dcfa9bcc(one commit,fix: throw from unimplemented exports in libSceSdma, libSceSsl, libSceVideoRecordingP, and libSceVisionManager). Base26fa1212b82f76dd49cf12d65e445d6ff3e0844c(currentmain). The merge preview against that base is clean.Environment: Debian GNU/Linux 12 host, Python from the precheck interpreter
/marc/Conlyse-VIEJO/.venv/bin/python3. No project build.The precheck's ABI and test-quality helpers could not run because they are absent from the head tree. I ran the ABI audit by hand from
/marc/AnyPS5/tools. The test-quality step does not apply: no test file changed.Results
git diff --checkvideoRecordingUnknown_iQS6DUtLybE. The explicit NID differs from the computed one. That alias is outside the diff (libSceVideoRecordingP/Export.cppL187-L189), so the PR does not cause itmainConventions output, unedited (precheck, head
b8d0173ccf)Findings
Blocking
### Whatand### Testedare empty, most checklist items are unchecked, andDepends on,Fixes,Unblocks,GPUs testedandAI-assistedare unanswered. The conventions check fails on this head, as it did on5cd961da1e. Fill the template so each item is true, and check only the boxes that are true.Fix/more unimplemented returnsis not Conventional Commits. The commit subject already has the right form. A title such asfix: throw from unimplemented exports in four librarieswould match.Depends on.Non-blocking
0now throw:sceSdmaInitialize,sceSdmaFinalize,sceVideoRecordingInit,sceVisionManagerLoadSettings,CRYPTO_uninitAsymmetricKeyandVLONG_freeVlongQueue. Throwing is the direction in CONTRIBUTING.md:7 and AGENTS.md:6. CONTRIBUTING.md:10 allows a success-returning stub only when it unblocks a title and is listed under Silent stubs. ForsceVideoRecordingInitspecifically,docs/dev/debt/libSceVideoRecordingP.mdlists as unverified what the console returns beforesceVideoRecordingInit. The PR body should say, for each of the six, whether it was a silent stub that some title needs. If one is, removing it can break that title.docs/dev/debt/libSceVisionManager.md:5(2033 characters) is a warning, not a failure. The base entry was already over the 1000-character limit, so this is not new.Sources
github.com/boykopovar/AnyPS5@b8d0173ccf/core/libs/prx/libSceVideoRecordingP/Export.cpp (L94-L96)andgithub.com/boykopovar/AnyPS5@b8d0173ccf/core/libs/prx/libSceSsl/Export.cpp (L1334-L1336)github.com/boykopovar/AnyPS5@26fa1212b8/CONTRIBUTING.md (L7-L10)andgithub.com/boykopovar/AnyPS5@26fa1212b8/AGENTS.md (L6)sceVideoRecordingInit, pinned to the base commit:github.com/boykopovar/AnyPS5@26fa1212b8/docs/dev/debt/libSceVideoRecordingP.md (L20)Not verified
To get this to a good state
Fill the PR body, change the title to Conventional Commits form, list the landing order with #11478 and #14226 in
Depends on, and state for each of the six functions whether it was a silent stub that unblocks a title. The same conventions check will be rerun on the next head.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-06T16:39:48Z.
Review: CHANGES_REQUESTED
Thanks for the PR. Reviewed at
b8d0173ccf.sceSdmaInitialize,sceSdmaFinalize,CRYPTO_uninitAsymmetricKey,VLONG_freeVlongQueueandsceVisionManagerLoadSettingsare not silent stubs:mainreturns 0 from them on purpose, because the firmware does (9d710abf9d, "return what the firmware returns from 29 more calls it does not implement"), andcore/libs/tests/GuestFirmwareConstantReturns.cpp(lines 107, 108, 115, 116, 160) requires== 0. Throwing here fails that test and would stop any title that calls Initialize/Finalize. Please drop these five (and theirlibSceSsl.md/libSceVisionManager.mddebt edits, which would also wrongly list them as unknown).sceVideoRecordingInit:docs/dev/debt/libSceVideoRecordingP.mdonmainalready says it throws, but the code returns 0. If you want to change it, say which one is right and what that is based on (firmware disassembly or another source); "Not tested" is not enough for a behaviour change.docs/dev/debt/libSceSsl.mdconflicts withmain, and the Conventions check fails: theDepends on,Fixes,UnblocksandGPUs testedlines are unticked/unfilled in the PR body.Depends onif you build on them.Welcome to rework it with those addressed.
Pull request closed