Repository navigation
fix(libScePlayGo): take the chunk set from sce_sys/playgo-chunk.dat - #3435
Conversation
Without playgo-chunkdefs.xml every chunk id was accepted, so a title that probes chunk ids until SCE_PLAYGO_ERROR_BAD_CHUNK_ID never stops. RIDE 4 (PPSA01599, Unreal Engine 4) grows its chunk list until it runs out of memory. The package's chunk table header holds the chunk count at offset 0x0A; ids below it are valid. Every id is still accepted only when neither file exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A child process runs from a root whose app0/sce_sys/playgo-chunk.dat declares 3 chunks: ids 0-2 are local, id 3 is rejected with SCE_PLAYGO_ERROR_BAD_CHUNK_ID and scePlayGoGetChunkId counts 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Checked build and ctest (libs/PlayGo, 19 tests) on the PR merged onto main, and that |
|
Checked on Guardians of the Galaxy (PPSA01748): it keeps working. Its dump has neither Run check: So for these three dumps the new path is never taken. I couldn't test the Tested and written by Claude (AI assistant) on a contributor's machine. |
What
Since #3238, a dump without
playgo-chunkdefs.xmlaccepts every chunk id. Unreal Engine 4 titles find their chunks by callingscePlayGoGetLocusfor ids 0, 1, 2, ... until it returnsSCE_PLAYGO_ERROR_BAD_CHUNK_ID(0x80B2000C). That error never comes now, so the loop never ends.Title: RIDE 4 (PPSA01599, UE4) on main 8ec0e13 adds a chunk entry on every pass of that loop, on the main thread during engine pre-init. It stops a few seconds in, before any window, with:
Under gdb, the loop is a virtual call per chunk index at
app.elf+0x254f73f. That call returns 0 (stop) only whenscePlayGoGetLocusreturns0x80B2000C. Its loop counter is anintwhile the chunk ids areuint16_t, so it wraps and never ends.Fix
PS5 dumps do carry the package's chunk table:
sce_sys/playgo-chunk.dat, magicplgx. The 16-bit value at offset 0x0A is the chunk count. In four dumps, exactly that many 0x20-byte chunk entries follow from offset 0x100, and the field at 0x10 is the file size:The chunk set is now taken from these sources, in order:
playgo-chunkdefs.xml, unchanged.sce_sys/playgo-chunk.dat: ids 0 to count - 1 are valid, everything else returnsBAD_CHUNK_ID, andscePlayGoGetChunkIdreports the same set.The comment block above the chunk table described only the XML source, so it is removed. The TechnicalDebt entry now says where the set comes from and what is assumed about the
plgxformat.Tested
Linux (Arch), GCC, Release, on main 99c1c26.
guest_playgogets a new case. A child process runs from a root whoseapp0/sce_sys/playgo-chunk.datdeclares 3 chunks:{1, 3}returns0x80B2000C;scePlayGoGetChunkIdcounts 3.selecton stdin, libSceNet Sockets implementation issue #2811) gets past pre-init. It renders the Unreal Engine logo and the legal screen, then stops at a Recompiler: packed pixel ancillary word read whole after its VGPR is reused ("unsupported live use (used by BitFieldUExtract 16 11, SelectU32 ...)") #2548 shader.tools/check_conventions.pypasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code