Repository navigation
fix(ngs2): return PS5 errors for invalid voice handles - #6369
Conversation
|
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.
|
|
Reviewed the new #6680 overlap at head The shared source edits are separate: #6680 adds report data types/registration and implements geometry application; this branch changes system/rack/voice handle-error checks. #6680 does not implement those error corrections, and this PR does not build on #6680. Existing declared dependencies are unchanged. GitHub currently marks this branch MERGEABLE against |
|
Temporarily closing to stay within the 20-open-PR limit while prioritizing a newly reproduced and tested Vulkan vertex/index buffer usage fix. This change remains valid and is preserved on fix/ngs2-voice-handle-errors at 41ca241; its pending #6348 dependency is unchanged. Reopen when a slot is available. No branch is deleted. |
41ca241 to
b17406a
Compare
|
A title that stops on the throw this PR replaces: PPSA17217 (Jurassic Park Classic Games Collection). On main f1af6c5 with the A local trace of the NGS2 voice calls showed the title passing handle 0 to If it fits, "Unblocks" could list PPSA17217. AI-assisted: yes. Written with AI assistance and reviewed by me. |
What
Six implemented NGS2 voice APIs throw
NGS2: invalid voice handleinstead of returning the PS5 type-4 handle error. Return0x804A8203for rejected voice handles in Control, RunCommands, GetState, GetPortInfo, QueryInfo and GetStateFlags. Failed lookups leave output storage untouched.Control checks a null parameter list first and returns
0x804A8360. GetState resolves the voice before output validation, then checks the eight-byte minimum before the output pointer. Rack-specific exact state sizes and supported output layouts are unchanged. Other validation orders, including GetStateFlags' output-first check, retain the existing policy.The handle error follows prosper's PS5 module analysis; the Control null-list result/order and GetState order/minimum have explicit native-export annotations here. These are source-analysis results, not new console measurements. The reference's GetStateFlags order is not independently annotated as native behavior, so it is not adopted here. Full invalid-argument precedence, arbitrary-sized state copies and remaining unsupported formats/layouts stay documented debt.
Rebased as one topic commit on main
e1041f6a57; prerequisites #6348 and #5916 are merged and are no longer included in the diff.Tested
Linux x86-64, GCC 16.2.1 Release, Ryzen 9 7950X. Fresh validation of
b17406a33aon maine1041f6a57:libsand all thirteen NGS2 test executables build.ctest --test-dir build -R '^ngs2_' --timeout 30 --output-on-failure: 13/13 pass, no skips, 0.42 s.ngs2_voicehandlescovers literal return codes across six APIs, zero/unknown/wrong-kind/destroyed handles, preserved output bytes, valid operations, Control null-list precedence, and GetState handle/size/output precedence including the 7/8-byte boundary.tools/pr_overlap.py --branch refresh/ngs2-voice-e104. It could not automatically compare six already-conflicting PRs (feat(ngs2): add experimental I3DL2 reverb #1384, feat(ngs2): decode complete HE-VAG waveform blocks #5797, test: organize library tests and label CTest suites #6044, fix: complete compatibility gaps #6447, fix(libSceNgs2): keep CalcListener basis when front and up are parallel #6594, feat(libSceNgs2.native): keep a registry of report handlers #6680). Manual patch review found separate reverb, HE-VAG, test-registration and geometry/report changes, with no duplicate voice-handle implementation. Preserve both additive debt entries and test registrations when rebasing those branches. No dependency on them or combined-tree validation is claimed.Earlier validation on the old head included ten negative controls: the original Voice.cpp fails all six API cases, and four independent argument-order/minimum-size faults fail their corresponding regression checks. Those controls were not rerun on this rebase. The earlier DOOM + DOOM II PPSA21444 smoke/control reached the collection menu on both trees and reproduced corrupted menu text on both; that was startup evidence, not clean rendering or full gameplay.
No new native title run, console measurement, Windows run or full project CTest run performed by me for this refresh. No FPS gain claimed. No game assets or raw title logs attached.
External title validation: klosixgaming-arch reports PPSA17217 (Jurassic Park Classic Games Collection) on main
f1af6c5with #6878. Without this PR it aborts around six seconds in withNGS2: invalid voice handle, traced to handle 0 passed tosceNgs2VoiceRunCommands. With both PRs applied, the reporter ran through menus and games without a stop;ngs2_voicehandlesandguest_directory_rewindpass on that Windows 11 / MinGW-w64 / RTX 5090 / NVIDIA 617.42 build. The title also requires Noto Sans files inanyps5-fonts(#7370). This is the contributor's evidence, not an independently reproduced run here.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)