Onimusha WotS (PPSA27836): Missing NID YNw9Xk5iNWo in libSceVideoOut #5595

Open
opened 2026-10-14 00:39:15 +00:00 by amiraction0938 · 5 comments
amiraction0938 commented 2026-10-14 00:39:15 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-14T00:39:15Z.


Game

Onimusha Way of the Sword (PPSA27836)

Error

Failed to load module: ...\libs\libSceVideoOut.prx
GetLastError: 127 - The specified procedure could not be found.
The procedure entry point YNw9Xk5iNWo could not be located in the dynamic link library ...\libs\libSceVideoOut.prx

Environment

  • AnyPS5: pr-5140-new branch (latest)
  • OS: Windows 11 (Build 28000)
  • Compiler: MinGW-w64 GCC 15.2.0 (WinLibs)
  • GPU: RTX 5070 Ti

Investigation

The game imports the NID YNw9Xk5iNWo from libSceVideoOut, but I couldn't find it in the aerolib NID database at %TEMP%/anyps5-nid-db/aerolib.csv.

I also calculated the NIDs for all known sceVideoOut* functions, but none of them matched the missing NID. For reference:

  • sceVideoOutGetOutputStatusWithVrr → gWT7X8H0bYs
  • sceVideoOutGetOutputStatus → utPrVdxio-8

This makes me suspect that YNw9Xk5iNWo belongs to a newer PS5 SDK and isn't currently documented in aerolib.

Progress so far

I've been working on getting this game running and have already:

  • Fixed five unresolved libc NIDs, including wcsncpy_s, wcsncat, __throw_bad_variant_access, and num_put::_Getcat.
  • Worked around the Unsupported memory protection bits: -14 error (prot=0xfffffff2).
  • Reached Vulkan initialization, swapchain creation, and shader compilation.

The game now gets stuck on the missing libSceVideoOut NID.

Request

Would it be possible to add this NID to the database? Alternatively, is there a way to manually define a NID-to-function mapping in the nid_patcher?

Any guidance on how to handle this would be appreciated.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5839923013 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5595). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-14T00:39:15Z. --- ## Game Onimusha Way of the Sword (`PPSA27836`) ## Error ```text Failed to load module: ...\libs\libSceVideoOut.prx GetLastError: 127 - The specified procedure could not be found. The procedure entry point YNw9Xk5iNWo could not be located in the dynamic link library ...\libs\libSceVideoOut.prx ``` ## Environment - AnyPS5: `pr-5140-new` branch (latest) - OS: Windows 11 (Build 28000) - Compiler: MinGW-w64 GCC 15.2.0 (WinLibs) - GPU: RTX 5070 Ti ## Investigation The game imports the NID `YNw9Xk5iNWo` from `libSceVideoOut`, but I couldn't find it in the aerolib NID database at `%TEMP%/anyps5-nid-db/aerolib.csv`. I also calculated the NIDs for all known `sceVideoOut*` functions, but none of them matched the missing NID. For reference: - `sceVideoOutGetOutputStatusWithVrr` → `gWT7X8H0bYs` - `sceVideoOutGetOutputStatus` → `utPrVdxio-8` This makes me suspect that `YNw9Xk5iNWo` belongs to a newer PS5 SDK and isn't currently documented in aerolib. ## Progress so far I've been working on getting this game running and have already: - Fixed five unresolved libc NIDs, including `wcsncpy_s`, `wcsncat`, `__throw_bad_variant_access`, and `num_put::_Getcat`. - Worked around the `Unsupported memory protection bits: -14` error (`prot=0xfffffff2`). - Reached Vulkan initialization, swapchain creation, and shader compilation. The game now gets stuck on the missing `libSceVideoOut` NID. ## Request Would it be possible to add this NID to the database? Alternatively, is there a way to manually define a NID-to-function mapping in the `nid_patcher`? Any guidance on how to handle this would be appreciated.
hossiendehghan989 commented 2026-10-14 01:09:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hossiendehghan989 on 2026-10-14T01:09:27Z.


I reproduced and validated the export-side fix locally.

The change is intentionally limited to making YNw9Xk5iNWo available from libSceVideoOut; it does not claim to implement the unknown console behavior. If a title reaches the function, the stub reports NotImplemented_nid_no_patch rather than silently returning success. That keeps the next runtime blocker observable and avoids guessing the output structure.

Validation performed against the PR branch:

  • git diff --check
  • python3 tools/check_conventions.py --base origin/main --head HEAD
  • strict syntax and object compilation with GCC C++20 and -Wall -Wextra -Wpedantic -Werror
  • readelf -Ws confirmed both YNw9Xk5iNWo_nid_no_patch_cut and sceVideoOutUnknown_YNw9Xk5iNWo

The observed (handle, status) shape is recorded as provisional only. A full Windows/CMake title bring-up was not possible in this Linux sandbox, so I am not claiming that the game is fully running. The open PR is therefore a focused missing-export fix; the remaining ABI and behavior investigation should stay open until call-site or console evidence identifies the function.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158607138 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5595#issuecomment-6158607138). Originally posted by [hossiendehghan989](https://github.com/hossiendehghan989) on 2026-10-14T01:09:27Z. --- I reproduced and validated the export-side fix locally. The change is intentionally limited to making `YNw9Xk5iNWo` available from `libSceVideoOut`; it does not claim to implement the unknown console behavior. If a title reaches the function, the stub reports `NotImplemented_nid_no_patch` rather than silently returning success. That keeps the next runtime blocker observable and avoids guessing the output structure. Validation performed against the PR branch: - `git diff --check` - - `python3 tools/check_conventions.py --base origin/main --head HEAD` - - strict syntax and object compilation with GCC C++20 and `-Wall -Wextra -Wpedantic -Werror` - - `readelf -Ws` confirmed both `YNw9Xk5iNWo_nid_no_patch_cut` and `sceVideoOutUnknown_YNw9Xk5iNWo` - The observed `(handle, status)` shape is recorded as provisional only. A full Windows/CMake title bring-up was not possible in this Linux sandbox, so I am not claiming that the game is fully running. The open PR is therefore a focused missing-export fix; the remaining ABI and behavior investigation should stay open until call-site or console evidence identifies the function.
amiraction0938 commented 2026-10-14 01:31:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-14T01:31:55Z.


@hossiendehghan989 Thanks for the quick response and the focused PR #5608!

I want to give you an update on my testing since then:

I switched from the Patch version (v01.000.002) to the Base version (v01.000.001) because the Patch version was causing unrelated issues.

Good news: The Base version does NOT import YNw9Xk5iNWo. I verified this with strings eboot.bin | grep YNw9Xk5iNWo on the properly unwrapped ELF, and it returns nothing. So for the Base version at least, PR #5608 is not needed.

That said, the fix is still valuable for anyone testing the Patch version of this game or other titles that may hit the same NID. Thanks for the work — I've subscribed to #5608 and will test it if I go back to the Patch version.

Unrelated to this NID, the Base version now crashes at the ELF entry point with a NULL-pointer write. I've opened a separate issue for that.

Thanks again!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158873217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5595#issuecomment-6158873217). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-14T01:31:55Z. --- @hossiendehghan989 Thanks for the quick response and the focused PR #5608! I want to give you an update on my testing since then: I switched from the Patch version (v01.000.002) to the **Base version (v01.000.001)** because the Patch version was causing unrelated issues. Good news: **The Base version does NOT import `YNw9Xk5iNWo`**. I verified this with `strings eboot.bin | grep YNw9Xk5iNWo` on the properly unwrapped ELF, and it returns nothing. So for the Base version at least, PR #5608 is not needed. That said, the fix is still valuable for anyone testing the Patch version of this game or other titles that may hit the same NID. Thanks for the work — I've subscribed to #5608 and will test it if I go back to the Patch version. Unrelated to this NID, the Base version now crashes at the ELF entry point with a NULL-pointer write. I've opened a separate issue for that. Thanks again!
hossiendehghan989 commented 2026-10-14 01:37:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hossiendehghan989 on 2026-10-14T01:37:57Z.


Thanks for verifying this against the properly unwrapped Base build. That narrows the scope clearly: YNw9Xk5iNWo is not imported by Base v01.000.001, while the import remains relevant to Patch v01.000.002 and potentially other titles or SDK revisions.

PR #5608 is intentionally an export-only compatibility fix. It does not claim to implement the unknown console behavior or make the Base build run. If you return to the Patch build, the most useful next signal will be whether module loading proceeds past this import and which unresolved NID or runtime failure appears next.

The NULL-pointer write in the Base build is correctly tracked separately; it should not be conflated with this VideoOut NID issue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158943370 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5595#issuecomment-6158943370). Originally posted by [hossiendehghan989](https://github.com/hossiendehghan989) on 2026-10-14T01:37:57Z. --- Thanks for verifying this against the properly unwrapped Base build. That narrows the scope clearly: `YNw9Xk5iNWo` is not imported by Base v01.000.001, while the import remains relevant to Patch v01.000.002 and potentially other titles or SDK revisions. PR #5608 is intentionally an export-only compatibility fix. It does not claim to implement the unknown console behavior or make the Base build run. If you return to the Patch build, the most useful next signal will be whether module loading proceeds past this import and which unresolved NID or runtime failure appears next. The NULL-pointer write in the Base build is correctly tracked separately; it should not be conflated with this VideoOut NID issue.
jotitadev commented 2026-10-15 18:52:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T18:52:07Z.


Status note: the export from #5608 is no longer on main. It was reverted in 6b4d3c8ae the same day. Dreaming Sarah (PPSA02929) calls YNw9Xk5iNWo during start-up and aborted on the stub's "YNw9Xk5iNWo not implemented" about 2 s in, so the revert waits for a real implementation. git grep YNw9Xk5iNWo on main 44df21632 finds nothing, so libSceVideoOut again has no export for the NID that the Onimusha patch build (v01.000.002) imports.

Checked by reading main at 44df21632; nothing was run.

Written with AI assistance (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6199821934 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5595#issuecomment-6199821934). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T18:52:07Z. --- Status note: the export from #5608 is no longer on `main`. It was reverted in `6b4d3c8ae` the same day. Dreaming Sarah (PPSA02929) calls `YNw9Xk5iNWo` during start-up and aborted on the stub's "YNw9Xk5iNWo not implemented" about 2 s in, so the revert waits for a real implementation. `git grep YNw9Xk5iNWo` on `main` `44df21632` finds nothing, so `libSceVideoOut` again has no export for the NID that the Onimusha patch build (v01.000.002) imports. Checked by reading `main` at `44df21632`; nothing was run. Written with AI assistance (Claude Code).
MarcZX10 commented 2026-10-17 18:11:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T18:11:38Z.


I traced the history of YNw9Xk5iNWo: it is the NID hash for AnyPS5’s former internal MouseIsOpen helper. Until #5936 renamed that helper to MouseIsOpen_nid_no_patch, libSceVideoOut imported the NID from libSceMouse; #5608 then added an export and was reverted after Dreaming Sarah reached the throwing stub. The later review of #6866 confirmed current main no longer imports that helper NID.

Your report lists pr-5140-new, so this may be an older branch or a relinker/library version mismatch. Could you retest with the relinker and libraries built from the same current main commit, and attach the exact module’s import-table entry for YNw9Xk5iNWo? If a current title module still imports it, please include the title version and module path; then it may be a genuine console import that needs its signature identified. Until that distinction is established, re-adding the old export risks restoring the internal-name collision.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6238345304 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5595#issuecomment-6238345304). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T18:11:38Z. --- I traced the history of `YNw9Xk5iNWo`: it is the NID hash for AnyPS5’s former internal `MouseIsOpen` helper. Until #5936 renamed that helper to `MouseIsOpen_nid_no_patch`, `libSceVideoOut` imported the NID from `libSceMouse`; #5608 then added an export and was reverted after Dreaming Sarah reached the throwing stub. The later review of #6866 confirmed current `main` no longer imports that helper NID. Your report lists `pr-5140-new`, so this may be an older branch or a relinker/library version mismatch. Could you retest with the relinker and libraries built from the same current `main` commit, and attach the exact module’s import-table entry for `YNw9Xk5iNWo`? If a current title module still imports it, please include the title version and module path; then it may be a genuine console import that needs its signature identified. Until that distinction is established, re-adding the old export risks restoring the internal-name collision.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#5595
No description provided.