fix(libSceSysmodule): recognize the Acm module id #3769
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3769"
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 danzaio on 2026-10-11T16:36:45Z.
What
Dungeons (PPSA16064) logs
unknown id: 267insceSysmoduleLoadModuleon main, as reported in #2811 at5edae353. Decimal 267 is0x10b;libSceAcmexists in the tree, but the module table had no entry for that ID. This adds the mapping tokModuleTableand tests its loaded/load/unload/unloaded cycle inGuestSysmodule.cpp.The report's fatal stop in #2811 is in
select, not this module load; this PR does not claim to fix that crash or prove gameplay. A Demon's Souls PPSA01342 test in this PR also hit an audio-copy failure on unmodified main; no menu was verified.The ID is listed in libNidResolver's module table. This replaces #3203 and carries the evidence posted on #2952.
Tested
main,5fe4bebe(5fe4bebec60ae1295aea301be28def2019b332ae); head290c17b00(290c17b0028bc2b7f64b6878a4e06ec1135b0705).guest_sysmodule_testsandlibSceSysmodule(-j1).ctest --test-dir anyps5-build-acm --output-on-failure --no-tests=error --timeout 30 -R '^guest_sysmodule$': 1/1 passed (0.02s), zero skips.0x10btable entry abortedguest_sysmodulewithunknown id: 267; restoring it passed 1/1.python tools/check_conventions.py --base 5fe4bebec60ae1295aea301be28def2019b332ae --head HEADpassed cleanly.git diff --check 5fe4bebec60ae1295aea301be28def2019b332ae...HEADclean with zero warnings.Checklist
mainNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-11T19:26:29Z.
Rebased and pushed 9cf90ba11 onto
a11c8f7f7. GitHub now reports MERGEABLE. Windows MinGW 15.2: guest_sysmodule passes 1/1; removing only the Acm mapping makes it abort with unknown id: 267; restoring it passes again. Local conventions pass, and the new GitHub conventions run is green. The body now distinguishes the Acm log from the unrelated select crash in #2811. I cannot remove the stale needs rebase label with my permissions. Could a collaborator remove it and dispatch the full build for this head? The automatic linux/windows jobs were skipped.Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-11T20:36:11Z.
Tested all three commits of this PR alone on main
a11c8f7f7, Windows Release, ANYPS5_ENABLE_SPIRV_TOOLS=OFF, with a legal Demon's Souls PPSA01342 v1.04 copy (BuildVersion 2020-12-09.781263). guest_sysmodule passed (1/1).The title reached
[MSG-Init] Main loop started: 15.1976s, and a later debugger sample showed audio submitted/completed serials both at 4. It subsequently failed with:The input base was 0x2f840f010; the faulting instruction is in the guest audio sample-copy loop. Unmodified main also faults in that loop. This registers the module but does not resolve this v1.04 startup failure, and I did not verify a main menu. I have not tested this PR on Linux or with the v1.005 game update.
AI-assisted testing and report.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:16:41Z.
Conflicts with main in
core/libs/tests/GuestSysmodule.cpp; please rebase. The red Linux build on 9cf90ba11 wasagc_driver_depth_fast_clear_submit, not this change.Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-12T02:42:06Z.
Rebased cleanly onto main
ceb342b94with conflict resolved in GuestSysmodule.cpp (preserving both kAgcModuleId and kAcmModuleId). Local conventions pass, git diff --check clean, and guest_sysmodule passes 1/1 on Windows MinGW 15.2.Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-12T03:23:12Z.
Rebased onto main
5fe4bebe(head290c17b00). Preserves the upstream Agc lines in GuestSysmodule.cpp cleanly. Conventions pass, diff check is clean, and guest_sysmodule passes 1/1 on Windows MinGW 15.2. Could a collaborator dispatch the full CI workflow for this head?Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-12T04:22:14Z.
#4068 also adds the Acm mapping. I left the duplicate checklist item unchecked rather than claim otherwise; that is the only finding in the conventions run. Could a maintainer choose which PR should carry this fix? The local guest_sysmodule test passed 1/1; full CI still needs collaborator dispatch.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:24:11Z.
This one carries it: it was opened first, and #4068 conflicts with main. Please tick the "no other open PR" item so conventions passes; that is its only finding.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T23:30:47Z.
Closing: both module IDs (
0x10band0x137) went in with #4068. That is my mistake to own: I told you here that this one would carry the fix and asked #4068 to rebase in the same minute, and #4068 was ready first. Your removal test (dropping the Acm mapping makesguest_sysmoduleabort withunknown id: 267) is what showed the entry was needed. Thanks for the three rebases.Pull request closed