fix(libSceVrTracker2): silent stub for sceVrTracker2Finalize #6271

Closed
mazen320 wants to merge 2 commits from upstream-pr/6271 into main
mazen320 commented 2026-10-15 08:37:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:37:11Z.


What

sceVrTracker2Finalize no longer calls NotImplemented_nid_no_patch. It returns 0 with no tracker state to tear down.

PPSA29866 (Tomba! 2) imports it with an unknown signature and stops when it throws (#3646). The host has no PS VR2 tracker runtime, so this matches other VR silent stubs. New docs/dev/debt/libSceVrTracker2.md and guest_vr_tracker2 cover the export; libSceHmd2 debt no longer claims every VrTracker2 export throws.

Tested

Windows 11. python tools/check_conventions.py --base upstream/main passed. Full guest_vr_tracker2 run needs a configure that picks up the new CMake test target (not re-run here against the dirty main build tree).

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 under Silent stubs in their library's technical debt file
  • 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
  • Unblocks: PPSA29866 #3646 (Finalize stop; Hmd2 SeeThrough/FlipMaster/workload follow-ups remain)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4870518369 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6271). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:37:11Z. --- ### What `sceVrTracker2Finalize` no longer calls `NotImplemented_nid_no_patch`. It returns 0 with no tracker state to tear down. PPSA29866 (Tomba! 2) imports it with an unknown signature and stops when it throws (#3646). The host has no PS VR2 tracker runtime, so this matches other VR silent stubs. New `docs/dev/debt/libSceVrTracker2.md` and `guest_vr_tracker2` cover the export; `libSceHmd2` debt no longer claims every VrTracker2 export throws. ### Tested Windows 11. `python tools/check_conventions.py --base upstream/main` passed. Full `guest_vr_tracker2` run needs a configure that picks up the new CMake test target (not re-run here against the dirty main build tree). ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Unblocks: PPSA29866 #3646 (Finalize stop; Hmd2 SeeThrough/FlipMaster/workload follow-ups remain) - [x] GPUs tested: n/a - [x] AI-assisted: yes
mazen320 commented 2026-10-15 08:37:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T08:37:33Z.


Overlap (#6269 / #6253)

Bot may flag docs/dev/debt/libSceHmd2.md (VR throw wording / PPSA15878 Finalize mention). Production change here is libSceVrTracker2/Export.cpp (sceVrTracker2Finalize returns 0) plus new libSceVrTracker2 debt/test/CMake. #6269 edits the same Hmd2 debt for SeeThrough; #6253 for FlipMaster — rebase debt hunk if either lands first. Depends on: none.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188011602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6271#issuecomment-6188011602). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T08:37:33Z. --- ### Overlap (#6269 / #6253) Bot may flag `docs/dev/debt/libSceHmd2.md` (VR throw wording / PPSA15878 Finalize mention). Production change here is `libSceVrTracker2/Export.cpp` (`sceVrTracker2Finalize` returns 0) plus new `libSceVrTracker2` debt/test/CMake. #6269 edits the same Hmd2 debt for SeeThrough; #6253 for FlipMaster — rebase debt hunk if either lands first. Depends on: none.
github-actions[bot] commented 2026-10-15 08:37:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T08:37:56Z.


Progress report (c0be1f6 → 435f081)

📈 System libraries: 88.74% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceVrTracker2 sceVrTracker2Finalize
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceVrTracker2 sceVrTracker2Finalize
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188018621 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6271#issuecomment-6188018621). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T08:37:56Z. --- <!-- progress-report --> ### Progress report (c0be1f6 → 435f081) 📈 **System libraries**: 88.74% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVrTracker2 | `sceVrTracker2Finalize` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceVrTracker2 | `sceVrTracker2Finalize` | </details>
mazen320 commented 2026-10-15 15:35:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T15:35:40Z.


Agree with the silent-stub bar from #6274 / CONTRIBUTING: need UI-only (or safe-to-ignore / never-called) evidence, not only a load stop.

This PR only established that the title fails to load without the export. Restored throwing and closing until that evidence exists.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195935309 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6271#issuecomment-6195935309). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:35:40Z. --- Agree with the silent-stub bar from #6274 / CONTRIBUTING: need UI-only (or safe-to-ignore / never-called) evidence, not only a load stop. This PR only established that the title fails to load without the export. Restored throwing and closing until that evidence exists.
mazen320 commented 2026-10-15 15:35:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-15T15:35:42Z.


Closing: silent stub withdrawn; export(s) throw again pending UI-only / never-called evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6195935964 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6271#issuecomment-6195935964). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-15T15:35:42Z. --- Closing: silent stub withdrawn; export(s) throw again pending UI-only / never-called evidence.

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