fix(libScePlayGo): let users answer unlisted chunks #6236
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6236"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-15T06:19:26Z.
What
Carry the title-backed configurable answer for unlisted PlayGo chunk ids from #6205. For a dump with no PlayGo metadata, APS5_PLAYGO_UNLISTED_CHUNKS=installed reports unlisted ids as LOCAL_FAST, and =absent returns SCE_PLAYGO_ERROR_BAD_CHUNK_ID. The unset default continues to stop with an actionable message; invalid values stop. Packages that provide metadata are unchanged.
Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release full-build configuration.
Export.cppcompiled. Theguest_playgo_testsexecutable could not link because the existinglibctarget fails first on unresolved MinGWstd::codecvtsymbols, so the focused CTest could not run locally. The carried branch's reporter ranguest_playgo; it fails on main with the new regression cases and passes with this change.python tools/check_conventions.py --base origin/mainandgit diff --checkpass locally.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T08:43:29Z.
I opened #6263 with the same PlayGo setting from #6205 before noticing this PR. Comparing the diffs, they appear functionally equivalent. I flagged the overlap on #6263 as well; I am not asking for parallel review and will follow maintainer direction on how to handle the duplicate.
Imported from boykopovar/AnyPS5. Originally posted by zaryabzip on 2026-10-15T09:19:24Z.
Windows run of
guest_playgo, which the description says could not link there. Windows 11 (26200), RTX 3060 Laptop GPU (NVIDIA 617.42; the test uses no GPU), WinLibs GCC 15.2.0 r7 (UCRT), Release full build,BUILD_TESTING=ON. Heade088fd874merged ontomainc0be1f69b(clean).guest_playgo_testslinks. Thestd::codecvtlink failure did not reproduce with this toolchain, andguest_playgoalso links and passes onmainhere.guest_playgopasses 3 of 3, andguest_playgo_dialogpasses.Export.cppfrommainand the PR's test:guest_playgoaborts (0xc0000409) in 2 of 2 runs.main'sExport.cpp:--no-file,--no-file-installed,--no-file-absentand--no-file-unknown-answerall abort. The installed and absent runs abort onchunk ID 1 cannot be checked._putenv_sreachesgetenvin the module on this CRT.Not run: PPSA15388, PPSA03001, PPSA01746. #6263 makes the same change and was not run.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-15T09:29:00Z.
Thanks @zaryabzip for running the full build and confirming the
guest_playgo_testsintegration behavior and differential test passes across all four modes on Windows! Much appreciated. :)Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-15T09:33:14Z.
Thanks @MarcZX100 for the heads-up and for flagging the overlap! Much appreciated. :)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:17:14Z.
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.
core/libs/tests/GuestPlayGo.cppImported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-15T17:02:12Z.
Windows run, since the description couldn't link the test. Windows 11, WinLibs GCC 15.2.0 r7 (MinGW), Release. Head
e088fd874merged intomain0029e62f9, with #6452 so the test tree builds on MinGW.guest_playgo_testsbuilds and links here, andguest_playgopasses on an RTX 4080 (NVIDIA 617.42) and an Intel UHD 770 (101.6129).core/libs/prx/libScePlayGofrommainfails.mainwith the chunk ID 1 throw. WithAPS5_PLAYGO_UNLISTED_CHUNKS=absentit boots, reaches the title screen, loads its save and plays its first level for about 5 minutes on the RTX 4080, including a death and a checkpoint reload.I didn't try
installedwith this title. #6263 implements the same setting, so this run should apply to it too, but I tested only this branch.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by billythemenace2 on 2026-10-15T18:37:08Z.
Another title that needs
absent: Sackboy: A Big Adventure (PPSA01289, 01.024.000, UE4). Itssce_syshas no PlayGo file. Windows 11, AMD Radeon RX 5700 XT (driver 32.0.21045.5002), MinGW-w64 GCC 15, Release,mainb7cedd900plus this PR (4416c7aaais the local merge).scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked.APS5_PLAYGO_UNLISTED_CHUNKS=installed: Unreal runs out of memory before the first frame:PS5 Out of Memory: AvailablePhysical: 4901830656 UsedPhysical: 9279045632, thenLowLevelFatalError ... Ran out of memory allocating 5565054976 bytes with alignment 65536. These are the same numbers Demon Slayer (PPSA03490) showed in #3073 when every chunk id was reported installed.APS5_PLAYGO_UNLISTED_CHUNKS=absent: startup goes through, and the title runs for about 50 s, until a mesh-shader stop that only concerns this GPU (it has noVK_EXT_mesh_shader).So for this title, as for Epic Mickey,
absent(the pre-#5494 answer) is the one that works, andinstalledis harmful.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T20:47:31Z.
Data points for the unlisted-chunk setting, five dumps that have no
playgo-chunk.dat/playgo-scenario.json. Tree:78ba13d86359c13b2812e6f3348d00bd7cb8ceb9=main03c4cb5e7+ this heade088fd874(the Hello Neighbor 2 and DRAGON QUEST III runs are on latermain+ this head,9fb5a6cdfand an earlier build), Windows 10, freshlibsand relinker, no input, one or two runs per cell:APS5_PLAYGO_UNLISTED_CHUNKSabsentFPS: 59.94); after about 2 min a GPU device loss:[gpu] driver failure: vkWaitForFences present: Vulkan result -4,PPSA03685_rV/run_214042.errline 395installedabort()after about 38 s (unhandled exception 0xc0000005),run_214311.errline 3; same in a second run,run_214903.errline 3absent[gpu] queue 0x20 WAIT_REG_MEM at 0x10214a3820 timed out after 1000ms (function 3 ref 0x1 mask 0xffffffff value 0x0)(PPSA03001_rV/run_214415.errline 38) and the title's ownabort()(line 49)absentqueue 0x20 WAIT_REG_MEM … timed outline (PPSA01746_rY/run_223149.err; the run was stopped by me)absent[device-fault] write invalid at 0x0(line 96) andvkQueueSubmit clear: Vulkan result -4(line 100),PPSA07426_rK2/run_223953.errabsentabortorwhat()(PPSA20612_rX/run_220208.err,run_220713.err)Without the setting the same dumps stop at
scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked: GhostrunnerPPSA03685_rM/run_185020.errline 4 (main0029e62f9), SifuPPSA03001_rR/run_113728.errline 4 (maind92a8dad3plus the #5957 commit, not plainmain). For these titlesabsentis the answer that gets further;installedmade Ghostrunner abort, which fits #4491 (Sifu needs the id walk to end withBAD_CHUNK_ID) and #5487 (High on Life needsinstalled), so no single default fits and an explicit setting like this one is needed. I did not test High on Life.I looked for the PlayGo files in the source of these dumps and found neither. 25 of the 44 dumps I have lack all
playgo-*files, and none of those 25 has alicense.dateither; I do not know why (probably how they were extracted).The stops after the chunk query are separate topics (the Sifu
queue 0x20 WAIT_REG_MEMline looks like the one in #5983 and #6558).AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T20:52:50Z.
Correction to the table above for Hello Neighbor 2 (PPSA07426): the GPU device loss after 22 s (
PPSA07426_rK2/run_223953.err, line 96) did not repeat in another run withAPS5_PLAYGO_UNLISTED_CHUNKS=absenton the tree78ba13d86(main03c4cb5e7+ this head):PPSA07426_rX/run_224046.errhas 118 lines and noFATAL,what()or[device-fault]line (the last log write is 53 s after its start). So the device loss is not seen in every run; the chunk query passes in both. For DRAGON QUEST III a third run (PPSA20612_rX/run_224555.err, 35 lines) is also without a stop.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-15T21:21:44Z.
Another UE4 title that needs
absent: Horizon Call of the Mountain (PPSA05666, v01.004.011, PS VR2 title, bring-up thread #6214). Itssce_syshas no PlayGo file (about, icon0/pic0/pic1/pic2 in png and dds, keystone, nptitle.dat, param.json, pfs-version.dat, snd0.at9, trophy2, uds; noplaygo-chunkdefs.xmlat the root). For comparison, an Astro Bot (PPSA21564) dump extracted here from its PKG does haveplaygo-chunk.dat,playgo-ficm.datandplaygo-hash-table.dat, so the Horizon dump was made differently.Tree:
maine16b2bcce+ this heade088fd874(local merge 12416ea99), Windows 11 (26200), RTX 4090 (NVIDIA 616.92), WinLibs GCC 15.2.0 r7 (UCRT), Releaselibs, fresh build each. The tree also carries a local one-line change inlibSceHmd2(sceHmd2GetDeviceInformationreturnsUNSUPPORTED_FEATUREinstead of throwing, the experiment from #6214); it is reached only after the PlayGo query, so it does not affect the rows below. Desktop session, no input, one run per row, 180 s cap:APS5_PLAYGO_UNLISTED_CHUNKSmain7663bc63b, same HMD change)scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked,FATAL: abort() (SIGABRT)fromlibScePlayGo.prx+0x1df13installedPS5 Out of Memory: AvailablePhysical: 4839636992 UsedPhysical: 9278324736, thenRan out of memory allocating 5565054976 bytes with alignment 65536, thenunhandled exception 0xc0000005inlibc.prx.guest.prx+0x14770, 28 s after launch. The allocation size is the one Sackboy (above) and Demon Slayer (#3073) showedabsentsceHmd2ReprojectionSetAllowPositionalReprojection not implemented), which is #6214's topic, not PlayGo'sBefore #5494 the title also got past PlayGo with the
BAD_CHUNK_IDanswer: the 10/14 run in #6214 was onmainfa539dd9blibsand reached the firstlibSceHmd2stop 30 s in. So for this title, as for Epic Mickey, Sackboy, Ghostrunner and Sifu,absentis the answer andinstalledis harmful.Not tested: Linux, other GPUs, #6263 (same change, not run). Logs and the run details are in the #6214 update: https://github.com/boykopovar/AnyPS5/discussions/6214#discussioncomment-18958999
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:08:28Z.
Merged as
e751dd205. @MarcZX100 thanks for flagging the overlap; I closed #6263 as the duplicate of this one. The per-title results above (Stray, Sackboy, Hello Neighbor 2, Horizon Call of the Mountain and the others that needabsent) are useful for the docs follow-up: a short table indocs/user/USAGE.mdnext to the setting would save the next person a run.