Skip to content

fix(libSceNet): stop Sackboy loading retries on peer sockets - #40

Open
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/5836
Open

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/5836

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#5836, originally opened by MichalSy.

Source commit: 4bb5b7753bf6b62fb179e6d89b851de18dfab672. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Sackboy: A Big Adventure (PPSA01288) repeatedly recreates its loading screen because sceNetSocket(..., family=2, type=6, protocol=0) returns EPROTONOSUPPORT (0x8041012b). After the shader preparation queues had drained, a 12-second runtime probe still observed 12 new SlateLoadingThread instances interleaved with the same failing socket request.

Translate PS5 peer socket types 6 and 10 to the existing host UDP and TCP transports, and accept the PS5 broadcast option 0x20000 alongside 0x20. The existing descriptor registry, socket lifetime and error handling stay in use. Technical debt records that this does not implement console peer negotiation or virtual-port routing.

The branch contains only this network fix, its loopback regression tests and the debt entry. No matching open PR was found for these socket types or the broadcast alias.

Tested

Arch Linux, GCC 16.2.1, Release.

  • Before the production fix, the new guest_sce_net_peer_transports test aborts at peer socket creation. The game probe independently records repeated 0x8041012b returns.
  • With the fix, guest_sce_net and guest_sce_net_peer_transports pass. The peer test sends and receives actual UDP datagrams and TCP stream data over loopback, checks both broadcast-option values, and closes all descriptors.
  • Sackboy launched through FrameRift on an NVIDIA RTX A3000 Laptop GPU, driver 615.71.09: the corresponding 12-second probe observes no repeated peer socket requests or loading-thread recreation, and the title advances into another loading phase. The runtime comparison uses the same local baseline, including fix(agc): copy a depth surface's plane through the texture's padded linear slices boykopovar/AnyPS5#4873, perf(shader): avoid redundancy traversal map copies boykopovar/AnyPS5#5511 and perf(shader): keep only evaluable branch conditions in resource plans boykopovar/AnyPS5#5181, with only this network change added. It subsequently stops on a separate renderer descriptor-range error; with fix(agc): bind a V# past the range limit by the memory behind it boykopovar/AnyPS5#5778 locally applied it reaches buffer specialization has an unsupported format. This PR does not claim that Sackboy reaches a playable menu or that the remaining graphics errors are fixed.
  • On the isolated PR branch based directly on upstream main, a fresh Release build of guest_sce_net_tests and guest_datagram_receive_tests passes all six tests: guest_sce_net, guest_sce_net_peer_transports, and the recv, recvfrom, sceNetRecv, sceNetRecvfrom datagram cases.
  • git diff --check, the conventions check including this title/body, and the open-PR overlap check pass. The branch merges cleanly into the current upstream main.
  • Windows was not tested.

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
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA01288 (Sackboy: A Big Adventure loading-screen retry loop; no existing Game bring-up discussion found)
  • GPUs tested: n/a (network-only change; game-run hardware listed above)
  • AI-assisted: yes

@Thimo188 Thimo188 closed this Dec 2, 2026
@Thimo188 Thimo188 reopened this Dec 2, 2026
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed unblocks title Names a title ID on the Unblocks line labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with main, rebase needed unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants