feat(libwebrtc): return from five calls as firmware 13.42 does #15609

Merged
BunnyFl merged 4 commits from upstream-pr/15609 into main 2026-11-10 06:51:10 +00:00
BunnyFl commented 2026-11-03 21:41:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-03T21:41:15Z.


What

Five libwebrtc exports threw. In firmware 13.42 each one returns at once, and this change does the same:

Export NID Signature Returns
webrtc::PacketOptions::~PacketOptions() (D1) 3yjhuJS+93s void (void* self) nothing
webrtc::rtcp::Pli::~Pli() (D1) OWYOJU0yBRY void (void* self) nothing
webrtc::AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction(float) JBEfUOB-Xa8 void (void* self, float) nothing
webrtc::VideoFrameBuffer::GetI420() const ILLU2NiyjU8 const void* (const void* self) nullptr
unnamed libwebrtcUnknown37 Vf6lJz4-bEU int (void), unverified 0

The parameters come from the mangled names. The return types come from WebRTC 8d78f5de6c, the revision docs/dev/debt/libwebrtc.md already cites:

  • api/video/video_frame_buffer.h:91 declares virtual const I420BufferInterface* GetI420() const, and video_frame_buffer.cc:39 returns nullptr.
  • api/audio_codecs/audio_encoder.cc:94 is void AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction(float). Its body is only RTC_DCHECK_NOTREACHED(), which a release build leaves out; the firmware body at 0x3da0e0 (below) is a lone ret.

The declarations in core/libs/prx/libwebrtc/include/Api.hpp change with them.

In docs/dev/debt/libwebrtc.md, the inventory entry goes from the 268 throwing exports (60 without a name) of main 07ae6afcee to 263 (59 without a name), counted from the merged Export.cpp. A new entry says that Vf6lJz4-bEU has no known name or signature, and that the values are read from disassembly, not measured on a console.

Nine more libwebrtc exports with the same kind of body are left out of this PR. Open PRs already implement them: #14224 (RmsLevel), #15193 (AudioNetworkAdaptorImpl::Config), and #15265 to #15269 and #15272 (GetMdnsResponder, SetFecControllerOverride, and the PacketInfo, RateControlParameters, AudioEncoderRuntimeConfig and SmoothingFilterImpl destructors).

Source

Firmware 13.42 system/common/lib/libwebrtc.sprx (sha256 d59d0caf6967329b39201a2a0bd6df7b994516f21701b9801908db6735ae5314), read from disassembly, not run on a console. Export addresses come from the module's dynamic symbol table. Each body, to its return:

3ece00: ret                       ; webrtc::PacketOptions::~PacketOptions (D1)
3c6480: ret                       ; webrtc::rtcp::Pli::~Pli (D1)
3da0e0: ret                       ; AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction
150e10: xor %eax,%eax ; ret       ; VideoFrameBuffer::GetI420
3da0b0: xor %eax,%eax ; ret       ; Vf6lJz4-bEU

None of the five bodies above reads an argument or stores anything. A null or invalid this is never dereferenced, here or in firmware.

Tested

  • On 2026-11-07 adriadam10 rebased the branch onto main 8f7c957ed0 as the single commit a330a6b727. The merge bullets after this one describe heads from before that rebase, which are no longer on the branch.
  • Merged main 07ae6afcee into the branch; the head is now f585e8d6e5. The only conflict was the inventory count: main states 268 (60), which matches its Export.cpp (268 NotImplemented_nid_no_patch calls, 60 of them NID-only), and this branch's 274 (59) matched its own Export.cpp the same way. The merged number is counted from the merged Export.cpp: 263 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only. The branch's diff against main is the same five files as before.
    • On f585e8d6e5, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 47 of 47 guest_webrtc_* tests pass, none Not Run, with all 47 test executables rebuilt and the libwebrtc library target built. Three of them were added on main after the previous head: guest_webrtc_rate_tracker, guest_webrtc_copy_on_write_buffer and guest_webrtc_color_space.
    • tools/check_conventions.py --base upstream/main on the committed head f585e8d6e5: all checks pass. review-tools/sig_users.py HEAD --build lists the four changed declarations; no file outside this branch's own changes names them, and both targets that do (guest_webrtc_trivial_returns_tests, libwebrtc) build.
    • tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8 at f585e8d6e5, against 1,991 open pull requests: 23 share files with the branch, 6 of those it could compare have conflicting lines, and it lists no shared export or new file for any of them. 5 conflict only on the inventory count line (line 5 of docs/dev/debt/libwebrtc.md on main): #16850, #16870, #16894, #17313, #17725. #16893 conflicts on that line and also in core/libs/prx/libwebrtc/Export.cpp (lines 389-401 on main) and core/libs/prx/libwebrtc/include/Api.hpp (lines 148-150), next to declarations this branch changes. The run failed closed (exit 2) on 7 pull requests that conflict with main themselves and compared none of them: #14212, #17269, #17273, #17353, #17497, #17705 and #17722. All 7 were then checked by hand at this head: every added and removed line of each diff searched for the five exports: OnReceivedUplinkRecoverablePacketLossFraction, the PacketOptions and rtcp::Pli D1 destructors and VideoFrameBuffer::GetI420 by their mangled names, and Vf6lJz4-bEU by its NID and by libwebrtcUnknown37. None of them appears in any of the 7, and every diff was fetched.
  • Merged main f35f1e5eca into the branch; the head is now b6accb023f. The only conflict was the inventory count: main states 279 (60), which matches its Export.cpp (279 NotImplemented_nid_no_patch calls, 60 of them NID-only). The merged number is counted from the merged Export.cpp: 274 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only. The branch's diff against main is the same five files as before.
    • On b6accb023f, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 44 of 44 guest_webrtc_* tests pass, none Not Run, with all 44 test executables rebuilt.
    • tools/check_conventions.py --base upstream/main on the committed head b6accb023f: all checks pass. review-tools/sig_users.py HEAD --build lists the four changed declarations; no file outside this branch's own changes names them, and both targets that do (guest_webrtc_trivial_returns_tests, libwebrtc) build.
    • tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8 at b6accb023f, against 1,824 open pull requests: 7 have conflicting lines and none shares an export or a new file. 5 conflict only on the inventory count line (docs/dev/debt/libwebrtc.md:5 on main): #16381, #16485, #16850, #16870, #16894. #16893 also conflicts in core/libs/prx/libwebrtc/Export.cpp (lines 419-431 on main) and core/libs/prx/libwebrtc/include/Api.hpp (lines 145-147), and #17269 in Api.hpp (lines 297-299), next to declarations this branch changes; both implement other exports. The run failed closed (exit 2) on #14212 (the debt file) and #15189 (CMakeLists.txt, Export.cpp, Api.hpp and the debt file), which conflict with main and were not compared line by line.
  • Merged main 3aa0ac20df into the branch; the head is now bea7df18b1. The only conflict was the inventory count: main states 296 (60), which matches its Export.cpp (296 NotImplemented_nid_no_patch calls, 60 of them NID-only). The merged number is counted from the merged Export.cpp: 291 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only. The branch's diff against main is the same five files as before.
    • On bea7df18b1, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: guest_webrtc_trivial_returns and guest_webrtc_rtcp_pli pass, 2 of 2, with both test executables and the libwebrtc library target rebuilt. The rest of the guest_webrtc_* suite was not re-run at this head.
    • tools/check_conventions.py --base upstream/main on the committed head bea7df18b1: all checks pass. review-tools/sig_users.py HEAD --build builds both targets that name the three changed declarations.
    • tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8 at bea7df18b1, against 1,762 open pull requests: 15 have conflicting lines and none shares an export or a new file. 14 conflict only on the inventory count line (docs/dev/debt/libwebrtc.md:5 on main). #16893 also conflicts in core/libs/prx/libwebrtc/Export.cpp (lines 454-466 on main) and core/libs/prx/libwebrtc/include/Api.hpp (lines 139-141), next to declarations this branch changes. The run failed closed (exit 2) on #14212 (the debt file) and #15189 (CMakeLists.txt, Export.cpp, Api.hpp and the debt file), which conflict with main and were not compared line by line.
  • Merged main 23bc7c7625 into the branch; the head is now a17645b557. The only conflict was the inventory count again: #15266 and #15267 had merged and lowered it to 318 (60), which matches main's Export.cpp. The merged number is counted from the merged Export.cpp: 313 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only.
    • On a17645b557, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 93 of 93 pass, none Not Run, with the 28 guest_webrtc_* test executables rebuilt, plus public_headers and the public_headers_compile_* batches. The libwebrtc library target builds too.
    • The branch's added and removed lines against main are the same as at 521f579343 apart from the count line, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head a17645b557: all checks pass.
  • Merged main cdefa2cf7c into the branch; the head is now 521f579343. The only conflict was the inventory count again: #15195 and #15196 had merged and lowered it to 320 (60), which matches main's Export.cpp. The merged number is counted from the merged Export.cpp: 315 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only.
    • On 521f579343, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 91 of 91 pass, none Not Run, with the 26 guest_webrtc_* test executables rebuilt, plus public_headers and the public_headers_compile_* batches.
    • The branch's added and removed lines against main are the same as at e0c8c01d20 apart from the count line, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head 521f579343: all checks pass.
  • Merged main cdf371df68 into the branch; the head is now 3b4066d194. The only conflict was the inventory count in docs/dev/debt/libwebrtc.md again. The merged number is counted from the merged Export.cpp: 320 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only. The same count gives 325 and 60 on main cdf371df68, which states 326 at docs/dev/debt/libwebrtc.md:5: #15154 implemented rtc::CurrentThreadId (core/libs/prx/libwebrtc/Export.cpp:404) without lowering it.
    • On 3b4066d194, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 89 of 89 pass, none Not Run, with the 24 guest_webrtc_* test executables rebuilt (now including audio_network_adaptor_config, current_thread_id, race_checker and rtcp_transport_feedback, added on main), plus public_headers and the public_headers_compile_* batches.
    • The branch's added and removed lines against main are the same as at e0c8c01d20 apart from the count line, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head 3b4066d194: all checks pass.
  • Merged main 56374036ad into the branch; the head is now 4886fe077f. The only conflict was the inventory count in docs/dev/debt/libwebrtc.md, which #15261 had lowered to 334 when it implemented five rtc::SocketAddress accessors. The merged number is counted from the merged Export.cpp: 325 exports still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only. The same count gives 330 and 60 on main 56374036ad.
    • On 4886fe077f, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: 85 of 85 pass, none Not Run, with the 20 guest_webrtc_* test executables rebuilt (now including socket_address, added on main by #15261), plus public_headers and the 64 public_headers_compile_* batches.
    • The branch's added and removed lines against main are the same as at e0c8c01d20 apart from the count line, so the negative control below was not repeated.
    • tools/check_conventions.py --base upstream/main on the committed head 4886fe077f: all checks pass.
  • Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head e0c8c01d20 (main c9f43dfa1d merged in): 84 of 84 pass, none Not Run, with the 19 test executables built at this head. The suite is the 19 guest_webrtc_* tests registered at this head - file_wrapper (added on main by #14246) and audio_codec_info, audio_decoder, audio_device_generic, audio_encoder, audio_frame, cpu_features, exp_filter, fast_int_to_buffer, ip_address, opus, recursive_critical_section, rms_level, rtcp_common_header, rtcp_pli, task_queue_base, time, trivial_returns and vad - plus public_headers and the 64 public_headers_compile_* batches.
  • New core/libs/prx/libwebrtc/tests/TrivialReturns.cpp:
    • It calls the five and checks the two return values.
    • It checks that the object buffers passed as this are unchanged.
  • Negative control (run at the earlier head 2364923fa6; the branch's diff against main differs between that head and e0c8c01d20 only in the count at docs/dev/debt/libwebrtc.md:5 and one blank line main left after the FileWrapper entry): I put NotImplemented_nid_no_patch back at the top of the five bodies, which is main's behaviour, and kept this branch's signatures and test. The new test then aborts with _ZN6webrtc13PacketOptionsD1Ev_nid_postfix not implemented (1 of 1 failed).
  • tools/check_conventions.py --base upstream/main on the committed head e0c8c01d20: all checks pass.
  • tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8 at head e0c8c01d20, against 1,901 open pull requests: 33 share files with the branch. It lists 28 with conflicting lines, all in docs/dev/debt/libwebrtc.md: 27 on the inventory count entry (line 5) alone and #15766 on lines 5 and 13. No row reports a shared export or a shared new file. The run failed closed (exit 2) and lists 3 more (#14212, #15154, #15264) in its "Some comparisons could not be completed" table, which it does not compare line by line. I grepped the added and removed lines of all 31 listed pull requests' diffs for the five exports' names and NIDs, and none of them names any of the five. Whichever lands second recounts the inventory entry.
  • The merge of main c9f43dfa1d conflicted only next to the new debt entry. The merged number is counted from the merged Export.cpp rather than subtracted: 330 of its 338 APS5_VABI entries still throw through NotImplemented_nid_no_patch, 59 of them bound by NID only. The same count gives 335 of 338 and 60 on main c9f43dfa1d.
  • Linux and macOS were not built or run. No title was run.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5144932970 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15609). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-03T21:41:15Z. --- ### What Five libwebrtc exports threw. In firmware 13.42 each one returns at once, and this change does the same: | Export | NID | Signature | Returns | |---|---|---|---| | `webrtc::PacketOptions::~PacketOptions()` (`D1`) | `3yjhuJS+93s` | `void (void* self)` | nothing | | `webrtc::rtcp::Pli::~Pli()` (`D1`) | `OWYOJU0yBRY` | `void (void* self)` | nothing | | `webrtc::AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction(float)` | `JBEfUOB-Xa8` | `void (void* self, float)` | nothing | | `webrtc::VideoFrameBuffer::GetI420() const` | `ILLU2NiyjU8` | `const void* (const void* self)` | `nullptr` | | unnamed `libwebrtcUnknown37` | `Vf6lJz4-bEU` | `int (void)`, unverified | 0 | The parameters come from the mangled names. The return types come from WebRTC [`8d78f5de6c`](https://webrtc.googlesource.com/src/+/8d78f5de6c27b2c793039989ea381f1428fb0100), the revision `docs/dev/debt/libwebrtc.md` already cites: - `api/video/video_frame_buffer.h:91` declares `virtual const I420BufferInterface* GetI420() const`, and `video_frame_buffer.cc:39` returns `nullptr`. - `api/audio_codecs/audio_encoder.cc:94` is `void AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction(float)`. Its body is only `RTC_DCHECK_NOTREACHED()`, which a release build leaves out; the firmware body at `0x3da0e0` (below) is a lone `ret`. The declarations in `core/libs/prx/libwebrtc/include/Api.hpp` change with them. In `docs/dev/debt/libwebrtc.md`, the inventory entry goes from the 268 throwing exports (60 without a name) of `main` `07ae6afcee` to 263 (59 without a name), counted from the merged `Export.cpp`. A new entry says that `Vf6lJz4-bEU` has no known name or signature, and that the values are read from disassembly, not measured on a console. Nine more libwebrtc exports with the same kind of body are left out of this PR. Open PRs already implement them: #14224 (`RmsLevel`), #15193 (`AudioNetworkAdaptorImpl::Config`), and #15265 to #15269 and #15272 (`GetMdnsResponder`, `SetFecControllerOverride`, and the `PacketInfo`, `RateControlParameters`, `AudioEncoderRuntimeConfig` and `SmoothingFilterImpl` destructors). ### Source Firmware 13.42 `system/common/lib/libwebrtc.sprx` (sha256 `d59d0caf6967329b39201a2a0bd6df7b994516f21701b9801908db6735ae5314`), read from disassembly, not run on a console. Export addresses come from the module's dynamic symbol table. Each body, to its return: ``` 3ece00: ret ; webrtc::PacketOptions::~PacketOptions (D1) 3c6480: ret ; webrtc::rtcp::Pli::~Pli (D1) 3da0e0: ret ; AudioEncoder::OnReceivedUplinkRecoverablePacketLossFraction 150e10: xor %eax,%eax ; ret ; VideoFrameBuffer::GetI420 3da0b0: xor %eax,%eax ; ret ; Vf6lJz4-bEU ``` None of the five bodies above reads an argument or stores anything. A null or invalid `this` is never dereferenced, here or in firmware. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - On 2026-11-07 adriadam10 rebased the branch onto `main` `8f7c957ed0` as the single commit `a330a6b727`. The merge bullets after this one describe heads from before that rebase, which are no longer on the branch. - Merged `main` `07ae6afcee` into the branch; the head is now `f585e8d6e5`. The only conflict was the inventory count: `main` states 268 (60), which matches its `Export.cpp` (268 `NotImplemented_nid_no_patch` calls, 60 of them NID-only), and this branch's 274 (59) matched its own `Export.cpp` the same way. The merged number is counted from the merged `Export.cpp`: **263 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. The branch's diff against `main` is the same five files as before. - On `f585e8d6e5`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **47 of 47 `guest_webrtc_*` tests pass, none Not Run**, with all 47 test executables rebuilt and the `libwebrtc` library target built. Three of them were added on `main` after the previous head: `guest_webrtc_rate_tracker`, `guest_webrtc_copy_on_write_buffer` and `guest_webrtc_color_space`. - `tools/check_conventions.py --base upstream/main` on the committed head `f585e8d6e5`: all checks pass. `review-tools/sig_users.py HEAD --build` lists the four changed declarations; no file outside this branch's own changes names them, and both targets that do (`guest_webrtc_trivial_returns_tests`, `libwebrtc`) build. - `tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8` at `f585e8d6e5`, against 1,991 open pull requests: 23 share files with the branch, 6 of those it could compare have conflicting lines, and it lists no shared export or new file for any of them. 5 conflict only on the inventory count line (line 5 of `docs/dev/debt/libwebrtc.md` on `main`): #16850, #16870, #16894, #17313, #17725. #16893 conflicts on that line and also in `core/libs/prx/libwebrtc/Export.cpp` (lines 389-401 on `main`) and `core/libs/prx/libwebrtc/include/Api.hpp` (lines 148-150), next to declarations this branch changes. The run failed closed (exit 2) on 7 pull requests that conflict with `main` themselves and compared none of them: #14212, #17269, #17273, #17353, #17497, #17705 and #17722. **All 7 were then checked by hand at this head**: every added and removed line of each diff searched for the five exports: `OnReceivedUplinkRecoverablePacketLossFraction`, the `PacketOptions` and `rtcp::Pli` `D1` destructors and `VideoFrameBuffer::GetI420` by their mangled names, and `Vf6lJz4-bEU` by its NID and by `libwebrtcUnknown37`. None of them appears in any of the 7, and every diff was fetched. - Merged `main` `f35f1e5eca` into the branch; the head is now `b6accb023f`. The only conflict was the inventory count: `main` states 279 (60), which matches its `Export.cpp` (279 `NotImplemented_nid_no_patch` calls, 60 of them NID-only). The merged number is counted from the merged `Export.cpp`: **274 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. The branch's diff against `main` is the same five files as before. - On `b6accb023f`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **44 of 44 `guest_webrtc_*` tests pass, none Not Run**, with all 44 test executables rebuilt. - `tools/check_conventions.py --base upstream/main` on the committed head `b6accb023f`: all checks pass. `review-tools/sig_users.py HEAD --build` lists the four changed declarations; no file outside this branch's own changes names them, and both targets that do (`guest_webrtc_trivial_returns_tests`, `libwebrtc`) build. - `tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8` at `b6accb023f`, against 1,824 open pull requests: 7 have conflicting lines and none shares an export or a new file. 5 conflict only on the inventory count line (`docs/dev/debt/libwebrtc.md:5` on `main`): #16381, #16485, #16850, #16870, #16894. #16893 also conflicts in `core/libs/prx/libwebrtc/Export.cpp` (lines 419-431 on `main`) and `core/libs/prx/libwebrtc/include/Api.hpp` (lines 145-147), and #17269 in `Api.hpp` (lines 297-299), next to declarations this branch changes; both implement other exports. The run failed closed (exit 2) on #14212 (the debt file) and #15189 (`CMakeLists.txt`, `Export.cpp`, `Api.hpp` and the debt file), which conflict with `main` and were not compared line by line. - Merged `main` `3aa0ac20df` into the branch; the head is now `bea7df18b1`. The only conflict was the inventory count: `main` states 296 (60), which matches its `Export.cpp` (296 `NotImplemented_nid_no_patch` calls, 60 of them NID-only). The merged number is counted from the merged `Export.cpp`: **291 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. The branch's diff against `main` is the same five files as before. - On `bea7df18b1`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: `guest_webrtc_trivial_returns` and `guest_webrtc_rtcp_pli` pass, 2 of 2, with both test executables and the `libwebrtc` library target rebuilt. The rest of the `guest_webrtc_*` suite was not re-run at this head. - `tools/check_conventions.py --base upstream/main` on the committed head `bea7df18b1`: all checks pass. `review-tools/sig_users.py HEAD --build` builds both targets that name the three changed declarations. - `tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8` at `bea7df18b1`, against 1,762 open pull requests: 15 have conflicting lines and none shares an export or a new file. 14 conflict only on the inventory count line (`docs/dev/debt/libwebrtc.md:5` on `main`). #16893 also conflicts in `core/libs/prx/libwebrtc/Export.cpp` (lines 454-466 on `main`) and `core/libs/prx/libwebrtc/include/Api.hpp` (lines 139-141), next to declarations this branch changes. The run failed closed (exit 2) on #14212 (the debt file) and #15189 (`CMakeLists.txt`, `Export.cpp`, `Api.hpp` and the debt file), which conflict with `main` and were not compared line by line. - Merged `main` `23bc7c7625` into the branch; the head is now `a17645b557`. The only conflict was the inventory count again: #15266 and #15267 had merged and lowered it to 318 (60), which matches `main`'s `Export.cpp`. The merged number is counted from the merged `Export.cpp`: **313 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. - On `a17645b557`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **93 of 93 pass, none Not Run**, with the 28 `guest_webrtc_*` test executables rebuilt, plus `public_headers` and the `public_headers_compile_*` batches. The `libwebrtc` library target builds too. - The branch's added and removed lines against `main` are the same as at `521f579343` apart from the count line, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `a17645b557`: all checks pass. - Merged `main` `cdefa2cf7c` into the branch; the head is now `521f579343`. The only conflict was the inventory count again: #15195 and #15196 had merged and lowered it to 320 (60), which matches `main`'s `Export.cpp`. The merged number is counted from the merged `Export.cpp`: **315 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. - On `521f579343`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **91 of 91 pass, none Not Run**, with the 26 `guest_webrtc_*` test executables rebuilt, plus `public_headers` and the `public_headers_compile_*` batches. - The branch's added and removed lines against `main` are the same as at `e0c8c01d20` apart from the count line, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `521f579343`: all checks pass. - Merged `main` `cdf371df68` into the branch; the head is now `3b4066d194`. The only conflict was the inventory count in `docs/dev/debt/libwebrtc.md` again. The merged number is counted from the merged `Export.cpp`: **320 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. The same count gives 325 and 60 on `main` `cdf371df68`, which states 326 at `docs/dev/debt/libwebrtc.md:5`: #15154 implemented `rtc::CurrentThreadId` (`core/libs/prx/libwebrtc/Export.cpp:404`) without lowering it. - On `3b4066d194`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **89 of 89 pass, none Not Run**, with the 24 `guest_webrtc_*` test executables rebuilt (now including `audio_network_adaptor_config`, `current_thread_id`, `race_checker` and `rtcp_transport_feedback`, added on `main`), plus `public_headers` and the `public_headers_compile_*` batches. - The branch's added and removed lines against `main` are the same as at `e0c8c01d20` apart from the count line, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `3b4066d194`: all checks pass. - Merged `main` `56374036ad` into the branch; the head is now `4886fe077f`. The only conflict was the inventory count in `docs/dev/debt/libwebrtc.md`, which #15261 had lowered to 334 when it implemented five `rtc::SocketAddress` accessors. The merged number is counted from the merged `Export.cpp`: **325 exports still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. The same count gives 330 and 60 on `main` `56374036ad`. - On `4886fe077f`, Windows 11 Pro 10.0.26300, WinLibs GCC, Release: **85 of 85 pass, none Not Run**, with the 20 `guest_webrtc_*` test executables rebuilt (now including `socket_address`, added on `main` by #15261), plus `public_headers` and the 64 `public_headers_compile_*` batches. - The branch's added and removed lines against `main` are the same as at `e0c8c01d20` apart from the count line, so the negative control below was not repeated. - `tools/check_conventions.py --base upstream/main` on the committed head `4886fe077f`: all checks pass. - Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `e0c8c01d20` (`main` `c9f43dfa1d` merged in): **84 of 84 pass, none Not Run**, with the 19 test executables built at this head. The suite is the 19 `guest_webrtc_*` tests registered at this head - `file_wrapper` (added on `main` by #14246) and `audio_codec_info`, `audio_decoder`, `audio_device_generic`, `audio_encoder`, `audio_frame`, `cpu_features`, `exp_filter`, `fast_int_to_buffer`, `ip_address`, `opus`, `recursive_critical_section`, `rms_level`, `rtcp_common_header`, `rtcp_pli`, `task_queue_base`, `time`, `trivial_returns` and `vad` - plus `public_headers` and the 64 `public_headers_compile_*` batches. - New `core/libs/prx/libwebrtc/tests/TrivialReturns.cpp`: - It calls the five and checks the two return values. - It checks that the object buffers passed as `this` are unchanged. - **Negative control** (run at the earlier head `2364923fa6`; the branch's diff against `main` differs between that head and `e0c8c01d20` only in the count at `docs/dev/debt/libwebrtc.md:5` and one blank line `main` left after the `FileWrapper` entry): I put `NotImplemented_nid_no_patch` back at the top of the five bodies, which is `main`'s behaviour, and kept this branch's signatures and test. The new test then aborts with `_ZN6webrtc13PacketOptionsD1Ev_nid_postfix not implemented` (1 of 1 failed). - `tools/check_conventions.py --base upstream/main` on the committed head `e0c8c01d20`: all checks pass. - `tools/pr_overlap.py --branch feat/libwebrtc-free-trivial-returns --jobs 8` at head `e0c8c01d20`, against 1,901 open pull requests: 33 share files with the branch. It lists 28 with conflicting lines, all in `docs/dev/debt/libwebrtc.md`: 27 on the inventory count entry (line 5) alone and #15766 on lines 5 and 13. No row reports a shared export or a shared new file. The run **failed closed** (exit 2) and lists 3 more (#14212, #15154, #15264) in its "Some comparisons could not be completed" table, which it does not compare line by line. I grepped the added and removed lines of all 31 listed pull requests' diffs for the five exports' names and NIDs, and none of them names any of the five. Whichever lands second recounts the inventory entry. - The merge of `main` `c9f43dfa1d` conflicted only next to the new debt entry. The merged number is counted from the merged `Export.cpp` rather than subtracted: **330 of its 338 `APS5_VABI` entries still throw through `NotImplemented_nid_no_patch`, 59 of them bound by NID only**. The same count gives 335 of 338 and 60 on `main` `c9f43dfa1d`. - Linux and macOS were not built or run. No title was run. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!15609
No description provided.