PRAGMATA (PPSA02530) calls sceConvertKeycodeGetCharacter with a second argument of 0x4000000, which throws "unsupported state 67108864" (follow-up to #5366) #5726
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 xXPBSXx on 2026-10-14T08:04:38Z.
What
After #5366 (
sceConvertKeycodeGetCharacterfor the US layout), PRAGMATA (PPSA02530) stops at the same export:67108864is0x4000000. The throw is incore/libs/prx/libSceConvertKeycode/Export.cpponmain(line 46:if (state != 0) throw std::runtime_error("sceConvertKeycodeGetCharacter: unsupported state " + std::to_string(state));; the function is declared as(std::uint16_t keycode, std::uint32_t state, std::uint32_t type, char16_t* character)).The #5366 description says the signature is inferred from one other title (PPSA12361), that the second argument is unknown and that the title never passed anything but 0 there. PRAGMATA passes
0x4000000as that second argument. I have not established what this value means: whether it is a flag word, a modifier state, or not an argument of this call at all (the signature itself is inferred). I am not proposing a fix or a meaning here.Log:
PPSA02530_rS/run_095418.err, line 111 (485 lines, counted with Python), followed byFATAL: abort() (SIGABRT).Tested
Windows 10 (19045), MinGW-w64 GCC 15.2, Release, NVIDIA GeForce RTX 4080 SUPER.
main1209d370723d439477ad10940ebd1163b6873501(contains #5366), no other PR merged in, no local stub;ninja -j 8 libsexit code 0 (09:52:28 to 09:54:02), 128.prx(libSceAgcDriver.prx 09:53:54, libkernel/libc 09:54:01; the oldest.prx, dated 2026-10-13 09:50, was not rebuilt byninja);nid_patcherdated 2026-10-14 08:00:09;run_title.ps1, one game at a time, 300 s requested (script times 09:54:17 to 09:58:38), one run. Title executable:PPSA02530_rS/app.exe, a hardlink of D'sPPSA02530_rO/app.exedated 2026-10-14 07:36:44; relinker commit and relink command for it are not recorded in my notes.Not tested: Linux, other GPUs, a second run, what the title does with the returned character.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-14T09:56:14Z.
Onimusha: Way of the Sword (PPSA27836 01.000.001, also RE Engine) stops at the same throw with the same value, on Windows 11, RTX 5070,
main0b97f8b9fplus #5770 and #5771:The caller is a thread started at boot (abort backtrace
app.exe+0x31cf5called fromapp.exe+0x16f4093, in the thread function started atapp.exe+0x16f4030). Like you, I have not found what0x4000000means. Ignoring only that bit locally lets the title continue to shader preparation, so the returned character does not seem to matter at this point; that is a local experiment, not a proposal. Listed in #5769.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-14T10:06:29Z.
Proposed a fix in #5776. In Onimusha the second argument is the constant
0x4000000, passed while the title loops over keycodes 0 to 0x8F to build a table of key names; it upper-casesatozitself, so it expects the unshifted character. The disassembly is in the PR. PRAGMATA was not run here; if you can, a run of #5776 on PPSA02530 would confirm it passes there too.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T18:52:04Z.
This looks fixed on
mainby #5776 (merged ase2bcee655):sceConvertKeycodeGetCharacternow masks the0x4000000state bit before theunsupported statecheck (core/libs/prx/libSceConvertKeycode/Export.cpp,kIgnoredStateBits), andGuestConvertKeycode.cppcovers states0and0x4000000.Checked by reading
mainat44df21632; I did not run PRAGMATA (PPSA02530), so a run of currentmainon that title would confirm it before closing.Written with AI assistance (Claude Code).