Void Terrarium (PPSA03061) crashes on unresolved libc.prx import BKSCW2bCACA #5055

Closed
opened 2026-10-13 10:00:09 +00:00 by amiraction0938 · 32 comments
amiraction0938 commented 2026-10-13 10:00:09 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T10:00:09Z.


Void Terrarium (PPSA03061) crashes on unresolved libc.prx import BKSCW2bCACA

Hi,

I'm trying to get Void Terrarium (PPSA03061) running on AnyPS5. I built the latest main branch from source today on Windows using MinGW-w64 GCC 15.2.0.

The relinker completes successfully and produces app.exe, but the game crashes at runtime with:

FAIL: unresolved ELF import BKSCW2bCACA from libc.prx
GetLastError: 127 - The specified procedure could not be found.

Environment

  • Game: Void Terrarium
  • Title ID: PPSA03061
  • AnyPS5: latest main, commit bb9a4d8a2
  • OS: Windows
  • Compiler: MinGW-w64 GCC 15.2.0
  • Build type: Release

I'm using:

relinker.exe --windows --skip-sce-module eboot.bin app.exe

What I've checked so far

The game's eboot.bin is properly decrypted:

ELF 64-bit LSB x86-64, FreeBSD

The relinker also processes all the NIDs successfully:

423 NID references
423 -> 423 filtered
no filtering applied

The game's bundled sce_module/libc.prx appears to be truncated. Its e_shoff points past the end of the file, so the section headers aren't available. This seems to be a limitation of the tool I used to dump the game rather than necessarily an issue with the original file.

Because of that, I used:

--skip-sce-module

and let AnyPS5 use the libc.prx built from its source tree instead.

All 124 system .prx libraries build successfully and are present in libs/.

At runtime, however, the only unresolved import I'm getting is:

BKSCW2bCACA

from:

libc.prx

libSceAudioIn.prx also fails to build with:

no exported names

but since that's related to audio input/microphone functionality, I don't think it's relevant to this game.

Questions

  1. Does anyone know what function/NID BKSCW2bCACA corresponds to?
  2. Is this function already known and planned for implementation in AnyPS5?
  3. Would a simple stub be sufficient to get past this import, or does the game actually depend on the function's behavior?
  4. If I can obtain a proper dump of the game's original libc.prx with its section headers intact, would using that be a viable workaround?

Void Terrarium is a relatively simple 2D roguelike, so it seems like it could potentially be a useful compatibility target. Dreaming Sarah is currently the only verified game I've seen in a similar range of complexity.

If needed, I can provide the NID list, param.json, logs, or any other files/info that would help track down the missing import.

Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5828322228 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T10:00:09Z. --- ## Void Terrarium (PPSA03061) crashes on unresolved libc.prx import `BKSCW2bCACA` Hi, I'm trying to get **Void Terrarium (PPSA03061)** running on AnyPS5. I built the latest main branch from source today on Windows using MinGW-w64 GCC 15.2.0. The relinker completes successfully and produces `app.exe`, but the game crashes at runtime with: ```text FAIL: unresolved ELF import BKSCW2bCACA from libc.prx GetLastError: 127 - The specified procedure could not be found. ``` ### Environment - **Game:** Void Terrarium - **Title ID:** PPSA03061 - **AnyPS5:** latest main, commit `bb9a4d8a2` - **OS:** Windows - **Compiler:** MinGW-w64 GCC 15.2.0 - **Build type:** Release I'm using: ```text relinker.exe --windows --skip-sce-module eboot.bin app.exe ``` ### What I've checked so far The game's `eboot.bin` is properly decrypted: ```text ELF 64-bit LSB x86-64, FreeBSD ``` The relinker also processes all the NIDs successfully: ```text 423 NID references 423 -> 423 filtered no filtering applied ``` The game's bundled `sce_module/libc.prx` appears to be truncated. Its `e_shoff` points past the end of the file, so the section headers aren't available. This seems to be a limitation of the tool I used to dump the game rather than necessarily an issue with the original file. Because of that, I used: ```text --skip-sce-module ``` and let AnyPS5 use the `libc.prx` built from its source tree instead. All 124 system `.prx` libraries build successfully and are present in `libs/`. At runtime, however, the **only unresolved import I'm getting is:** ```text BKSCW2bCACA ``` from: ```text libc.prx ``` `libSceAudioIn.prx` also fails to build with: ```text no exported names ``` but since that's related to audio input/microphone functionality, I don't think it's relevant to this game. ### Questions 1. Does anyone know what function/NID `BKSCW2bCACA` corresponds to? 2. Is this function already known and planned for implementation in AnyPS5? 3. Would a simple stub be sufficient to get past this import, or does the game actually depend on the function's behavior? 4. If I can obtain a proper dump of the game's original `libc.prx` with its section headers intact, would using that be a viable workaround? Void Terrarium is a relatively simple 2D roguelike, so it seems like it could potentially be a useful compatibility target. Dreaming Sarah is currently the only verified game I've seen in a similar range of complexity. If needed, I can provide the NID list, `param.json`, logs, or any other files/info that would help track down the missing import. Thanks!
MarcZX10 commented 2026-10-13 10:19:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T10:19:09Z.


Resolved the reported NID BKSCW2bCACA to __cxa_thread_atexit and opened #5065 to export it through the existing thread-local destructor registration implementation. The focused Linux callback ABI regression passes, and the built libc.prx contains the NID export. I have not run Void Terrarium, so the game-level result is still unverified.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6143387196 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6143387196). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T10:19:09Z. --- Resolved the reported NID `BKSCW2bCACA` to `__cxa_thread_atexit` and opened #5065 to export it through the existing thread-local destructor registration implementation. The focused Linux callback ABI regression passes, and the built `libc.prx` contains the NID export. I have not run Void Terrarium, so the game-level result is still unverified.
amiraction0938 commented 2026-10-13 11:13:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:13:50Z.


Thanks for fixing the previous issue! BKSCW2bCACA is now resolved, and the game gets past that import.

Now I'm running into another unresolved import:

FAIL: unresolved ELF import ZiDCxUUGbec
GetLastError: 127 - The specified procedure could not be found.

One thing I noticed is that this error doesn't mention a library, unlike the previous one. I'm not sure if that's expected or if it makes the import harder to identify.

Could you help me figure out which library exports ZiDCxUUGbec, what function it maps to, and whether it's already known or planned for implementation?

Thanks again for the help!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144288664 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6144288664). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T11:13:50Z. --- Thanks for fixing the previous issue! `BKSCW2bCACA` is now resolved, and the game gets past that import. Now I'm running into another unresolved import: ```text FAIL: unresolved ELF import ZiDCxUUGbec GetLastError: 127 - The specified procedure could not be found. ``` One thing I noticed is that this error doesn't mention a library, unlike the previous one. I'm not sure if that's expected or if it makes the import harder to identify. Could you help me figure out which library exports `ZiDCxUUGbec`, what function it maps to, and whether it's already known or planned for implementation? Thanks again for the help!
amiraction0938 commented 2026-10-13 11:17:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:17:46Z.


I ran the project's tools/nid_names.py and found an entry for the missing NID:

NID            STUB STATUS    SUGGESTION
ZiDCxUUGbec    <cli> rename-ready sceCesUcsProfileInitSJis1997Cp932

So it looks like ZiDCxUUGbec maps to sceCesUcsProfileInitSJis1997Cp932 from libSceCesCs. I'm guessing rename-ready means the function is already identified and just needs to be exported, but I wanted to check before making any changes.

Would it be helpful if I submitted a PR to add it, or is this already on your list?

One other thing I noticed: the game's libs/ search list references libSceCesCs-module.prx, while the library built from the source is named libSceCesCs.prx. Is the -module variant supposed to be a separate library, or should this be handled through an alias?

Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144353031 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6144353031). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T11:17:46Z. --- I ran the project's `tools/nid_names.py` and found an entry for the missing NID: ```text NID STUB STATUS SUGGESTION ZiDCxUUGbec <cli> rename-ready sceCesUcsProfileInitSJis1997Cp932 ``` So it looks like `ZiDCxUUGbec` maps to `sceCesUcsProfileInitSJis1997Cp932` from `libSceCesCs`. I'm guessing `rename-ready` means the function is already identified and just needs to be exported, but I wanted to check before making any changes. Would it be helpful if I submitted a PR to add it, or is this already on your list? One other thing I noticed: the game's `libs/` search list references `libSceCesCs-module.prx`, while the library built from the source is named `libSceCesCs.prx`. Is the `-module` variant supposed to be a separate library, or should this be handled through an alias? Thanks!
amiraction0938 commented 2026-10-13 11:28:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:28:12Z.


The ZiDCxUUGbec import is now resolved. I added sceCesUcsProfileInitSJis1997Cp932 to libSceCesCs with a CP932 profile and copied the library as libSceCesCs-module.prx to match the name the game expects.

The game now gets much further, but it crashes on an assertion in the MinGW runtime:

Assertion failed!
Program: ...\libs\libc.prx
File: .../mingw-w64-crt/crt/tls_atexit.c
Line: 70
Expression: ldso || dso == &__dso_handle

From what I can tell, this happens inside __cxa_thread_atexit, which was exposed by PR #5065. The MinGW implementation seems to expect dso to match the host's __dso_handle, but the game passes its own guest-side __dso_handle.

I'm not sure what the right approach is here. A few possibilities come to mind:

  • Relax the assertion in the wrapper so it accepts the guest's dso value.
  • Map the guest's __dso_handle to the host's equivalent.
  • Implement a custom version of __cxa_thread_atexit that handles guest-side DSO pointers without relying on the MinGW runtime's assumptions.

Would any of these approaches make sense for AnyPS5, or is there a better way to handle this? I'm happy to test a fix if needed.

Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144520809 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6144520809). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T11:28:12Z. --- The `ZiDCxUUGbec` import is now resolved. I added `sceCesUcsProfileInitSJis1997Cp932` to `libSceCesCs` with a CP932 profile and copied the library as `libSceCesCs-module.prx` to match the name the game expects. The game now gets much further, but it crashes on an assertion in the MinGW runtime: ```text Assertion failed! Program: ...\libs\libc.prx File: .../mingw-w64-crt/crt/tls_atexit.c Line: 70 Expression: ldso || dso == &__dso_handle ``` From what I can tell, this happens inside `__cxa_thread_atexit`, which was exposed by PR #5065. The MinGW implementation seems to expect `dso` to match the host's `__dso_handle`, but the game passes its own guest-side `__dso_handle`. I'm not sure what the right approach is here. A few possibilities come to mind: - Relax the assertion in the wrapper so it accepts the guest's `dso` value. - Map the guest's `__dso_handle` to the host's equivalent. - Implement a custom version of `__cxa_thread_atexit` that handles guest-side DSO pointers without relying on the MinGW runtime's assumptions. Would any of these approaches make sense for AnyPS5, or is there a better way to handle this? I'm happy to test a fix if needed. Thanks!
amiraction0938 commented 2026-10-13 11:36:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:36:01Z.


Great progress! I worked around the __cxa_thread_atexit assertion locally by ignoring the dso parameter and passing nullptr instead:

int APS5_VABI __cxa_thread_atexit_nid_postfix(
    void (APS5_VABI **func)(void*),
    void* arg,
    void* dso)
{
    (void)dso;
    return __cxa_thread_atexit_impl_nid_postfix(func, arg, nullptr);
}

With this change, the game gets much further. It reaches the ELF entry point and creates 19 threads, including file, sound, and job workers, before crashing with a new error:

[libc] unhandled exception 'St13runtime_error' thrown from 00007ffaaae172ea
terminate called after throwing an instance of 'std::runtime_error'
  what(): NGS2: custom module id 0x1d is not implemented
FATAL: abort() (SIGABRT)

The crash appears to come from libSceNgs2.prx. It looks like the game is trying to use an NGS2 custom module with ID 0x1d that AnyPS5 doesn't currently implement.

A couple of questions:

  1. Is custom module ID 0x1d already identified, and if so, what does it do?
  2. Would it be possible to stub this module or return an error gracefully so the game can continue, at least for testing?
  3. Does the __cxa_thread_atexit workaround look reasonable, or could ignoring the guest's dso value cause problems with thread-local destructors later on?

I'm happy to test any suggested changes and share more logs if that helps.

Thanks again!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144650053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6144650053). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T11:36:01Z. --- Great progress! I worked around the `__cxa_thread_atexit` assertion locally by ignoring the `dso` parameter and passing `nullptr` instead: ```cpp int APS5_VABI __cxa_thread_atexit_nid_postfix( void (APS5_VABI **func)(void*), void* arg, void* dso) { (void)dso; return __cxa_thread_atexit_impl_nid_postfix(func, arg, nullptr); } ``` With this change, the game gets much further. It reaches the ELF entry point and creates 19 threads, including file, sound, and job workers, before crashing with a new error: ```text [libc] unhandled exception 'St13runtime_error' thrown from 00007ffaaae172ea terminate called after throwing an instance of 'std::runtime_error' what(): NGS2: custom module id 0x1d is not implemented FATAL: abort() (SIGABRT) ``` The crash appears to come from `libSceNgs2.prx`. It looks like the game is trying to use an NGS2 custom module with ID `0x1d` that AnyPS5 doesn't currently implement. A couple of questions: 1. Is custom module ID `0x1d` already identified, and if so, what does it do? 2. Would it be possible to stub this module or return an error gracefully so the game can continue, at least for testing? 3. Does the `__cxa_thread_atexit` workaround look reasonable, or could ignoring the guest's `dso` value cause problems with thread-local destructors later on? I'm happy to test any suggested changes and share more logs if that helps. Thanks again!
amiraction0938 commented 2026-10-13 11:42:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:42:41Z.


I dug a bit deeper into the source and found where the crash is coming from.

In core/libs/prx/libSceNgs2.native/src/Custom.cpp:20, the code throws an exception for any custom module ID other than SCE_NGS2_CUSTOM_MODULE_ID_USER_FX2:

if (info.module_id != SCE_NGS2_CUSTOM_MODULE_ID_USER_FX2)
    throw std::runtime_error(
        "NGS2: custom module id " + Ngs2Hex(info.module_id) + " is not implemented");

The constant is defined in core/libs/prx/libSceNgs2.native/include/Ngs2Types.hpp:65:

static constexpr std::uint32_t SCE_NGS2_CUSTOM_MODULE_ID_USER_FX2 = 0x1f;

So AnyPS5 currently only handles 0x1f, while Void Terrarium requests 0x1d.

Does anyone know if 0x1d is a known NGS2 module, perhaps an older UserFx variant or a different effect type?

I'm wondering what the best approach would be:

  1. Alias 0x1d to USER_FX2, if they're compatible.
  2. Add a temporary no-op implementation to see whether the game can get further.
  3. Implement 0x1d separately if it has different behavior.

I can test any of these approaches locally. I'd rather avoid introducing an incorrect alias if the two module IDs have different layouts or behavior.

Any pointers would be appreciated. Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144762571 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6144762571). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T11:42:41Z. --- I dug a bit deeper into the source and found where the crash is coming from. In `core/libs/prx/libSceNgs2.native/src/Custom.cpp:20`, the code throws an exception for any custom module ID other than `SCE_NGS2_CUSTOM_MODULE_ID_USER_FX2`: ```cpp if (info.module_id != SCE_NGS2_CUSTOM_MODULE_ID_USER_FX2) throw std::runtime_error( "NGS2: custom module id " + Ngs2Hex(info.module_id) + " is not implemented"); ``` The constant is defined in `core/libs/prx/libSceNgs2.native/include/Ngs2Types.hpp:65`: ```cpp static constexpr std::uint32_t SCE_NGS2_CUSTOM_MODULE_ID_USER_FX2 = 0x1f; ``` So AnyPS5 currently only handles `0x1f`, while Void Terrarium requests `0x1d`. Does anyone know if `0x1d` is a known NGS2 module, perhaps an older UserFx variant or a different effect type? I'm wondering what the best approach would be: 1. Alias `0x1d` to `USER_FX2`, if they're compatible. 2. Add a temporary no-op implementation to see whether the game can get further. 3. Implement `0x1d` separately if it has different behavior. I can test any of these approaches locally. I'd rather avoid introducing an incorrect alias if the two module IDs have different layouts or behavior. Any pointers would be appreciated. Thanks!
pushkarreddyy commented 2026-10-13 12:31:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T12:31:14Z.


Working on a fix for NGS2 custom module ID 0x1d (\SCE_NGS2_CUSTOM_MODULE_ID_USER_FX) in \libSceNgs2.native\ unblocking Void Terrarium (\PPSA03061). Will add unit tests and link the PR shortly.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6145594328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6145594328). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T12:31:14Z. --- Working on a fix for NGS2 custom module ID 0x1d (\SCE_NGS2_CUSTOM_MODULE_ID_USER_FX\) in \libSceNgs2.native\ unblocking *Void Terrarium* (\PPSA03061\). Will add unit tests and link the PR shortly.
pushkarreddyy commented 2026-10-13 12:47:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T12:47:22Z.


Opened #5140 to support custom submixer rack module ID �x1d (SCE_NGS2_CUSTOM_MODULE_ID_USER_FX) alongside �x1f in libSceNgs2.native, plus voice parameter ID �x40001d00. Passes all local conventions and CI checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6145883472 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6145883472). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T12:47:22Z. --- Opened #5140 to support custom submixer rack module ID �x1d (SCE_NGS2_CUSTOM_MODULE_ID_USER_FX) alongside �x1f in libSceNgs2.native, plus voice parameter ID �x40001d00. Passes all local conventions and CI checks.
amiraction0938 commented 2026-10-13 13:31:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T13:31:30Z.


Thanks for the quick response and for opening the PRs! I'll wait for #5139, #5140, #5153, and #5155 to land before testing again.

In the meantime, I continued testing with my local workarounds (skipping NGS2 module 0x1d, ignoring the dso parameter, and adding CP932 support), and the game has made some significant progress:

  • Vulkan initializes successfully on my RTX 5070 Ti.
  • The swapchain is created at 1484×835 with 2 images.
  • 260 shaders have been compiled, with a 26.8 MiB disk cache.
  • The sound, video, RenderJob, FairyThread, SaveUtil, TrophyUnlock, and UDS threads are all spawned.

However, I've hit another blocker:

sceAgcDcbEventWrite: this event does not use an address

This comes from libSceAgc.prx, and the game stops progressing shortly afterward. It seems like the next thing to investigate, although I haven't confirmed whether this is the actual reason rendering fails.

Would you prefer that I open a separate issue for this, keep investigating in this thread, or look into the implementation locally first?

I'm happy to dig into the relevant code and provide logs or a minimal reproduction if that would help.

Thanks again for all the work on this!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146709723 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6146709723). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T13:31:30Z. --- Thanks for the quick response and for opening the PRs! I'll wait for #5139, #5140, #5153, and #5155 to land before testing again. In the meantime, I continued testing with my local workarounds (skipping NGS2 module `0x1d`, ignoring the `dso` parameter, and adding CP932 support), and the game has made some significant progress: - Vulkan initializes successfully on my RTX 5070 Ti. - The swapchain is created at 1484×835 with 2 images. - 260 shaders have been compiled, with a 26.8 MiB disk cache. - The sound, video, RenderJob, FairyThread, SaveUtil, TrophyUnlock, and UDS threads are all spawned. However, I've hit another blocker: ```text sceAgcDcbEventWrite: this event does not use an address ``` This comes from `libSceAgc.prx`, and the game stops progressing shortly afterward. It seems like the next thing to investigate, although I haven't confirmed whether this is the actual reason rendering fails. Would you prefer that I open a separate issue for this, keep investigating in this thread, or look into the implementation locally first? I'm happy to dig into the relevant code and provide logs or a minimal reproduction if that would help. Thanks again for all the work on this!
MarcZX10 commented 2026-10-13 13:38:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T13:38:16Z.


Thanks for the detailed update. Let’s keep the report here while we investigate locally; a separate issue would make sense once the event’s behavior is identified.

I traced the failure to the current sceAgcDcbEventWrite validation, which only accepts a non-null address for event types 0x38 and 0x39. Could you share the eventType value and address passed by the game (plus a few surrounding log lines or a call stack if available)? That will tell us whether this is an unsupported address-bearing event or a mismatch in our handling of an event type that should not take an address. Please also confirm whether the message is emitted by AnyPS5 itself or by the game’s own logging.

I haven’t changed the implementation yet because the current report doesn’t include the event type or enough context to safely choose the packet format.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146839845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6146839845). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T13:38:16Z. --- Thanks for the detailed update. Let’s keep the report here while we investigate locally; a separate issue would make sense once the event’s behavior is identified. I traced the failure to the current `sceAgcDcbEventWrite` validation, which only accepts a non-null address for event types `0x38` and `0x39`. Could you share the `eventType` value and address passed by the game (plus a few surrounding log lines or a call stack if available)? That will tell us whether this is an unsupported address-bearing event or a mismatch in our handling of an event type that should not take an address. Please also confirm whether the message is emitted by AnyPS5 itself or by the game’s own logging. I haven’t changed the implementation yet because the current report doesn’t include the event type or enough context to safely choose the packet format.
pushkarreddyy commented 2026-10-13 13:39:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T13:39:04Z.


Update on SCE_NGS2_CUSTOM_MODULE_ID_USER_FX (�x1d):

Updated PR #5140 to implement the dedicated legacy UserFx callback ABI matching shadPS4's ngs2_custom.h:

  • Custom submixer rack creation accepts 0x1d with nullptr or standard Ngs2CustomModuleOption header.
  • Voice parameter 0x40001d00 | index installs the 40-byte legacy callback struct Ngs2CustomVoiceUserFxParam ({header, handler, user_data0, user_data1, user_data2}).
  • Executes the legacy callback per-grain across planar channel buffers during mixing in Ngs2ProcessUserFx, honoring full flag progression (flags = 1 on initial process, flags = 2 on parameter change, flags = 0 on continuation) and updating hasSamples.
  • Unit tests added in Ngs2Custom.cpp (TestCustomLegacyUserFx), passing all local conventions and CI checks with 100% green.

@amiraction0938 feel free to test this branch against your Void Terrarium setup!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146855132 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6146855132). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T13:39:04Z. --- Update on SCE_NGS2_CUSTOM_MODULE_ID_USER_FX (�x1d): Updated [PR #5140](https://github.com/boykopovar/AnyPS5/pull/5140) to implement the dedicated legacy `UserFx` callback ABI matching `shadPS4`'s `ngs2_custom.h`: - Custom submixer rack creation accepts `0x1d` with `nullptr` or standard `Ngs2CustomModuleOption` header. - Voice parameter `0x40001d00 | index` installs the 40-byte legacy callback struct `Ngs2CustomVoiceUserFxParam` (`{header, handler, user_data0, user_data1, user_data2}`). - Executes the legacy callback per-grain across planar channel buffers during mixing in `Ngs2ProcessUserFx`, honoring full flag progression (`flags = 1` on initial process, `flags = 2` on parameter change, `flags = 0` on continuation) and updating `hasSamples`. - Unit tests added in `Ngs2Custom.cpp` (`TestCustomLegacyUserFx`), passing all local conventions and CI checks with 100% green. @amiraction0938 feel free to test this branch against your *Void Terrarium* setup!
pushkarreddyy commented 2026-10-13 13:48:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T13:48:01Z.


@MarcZX100 To confirm your second question: the error message is 100% emitted by AnyPS5 itself.

Specifically in core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:39:

if ((eventType & 0xfeu) == 0x38u) {
    const auto guestAddress = reinterpret_cast<std::uintptr_t>(address);
    Agc::Command::CheckAddress(guestAddress, 8, __func__);
    return Agc::Command::Emit(buf, 0x46u, {0x100u | eventType, static_cast<std::uint32_t>(guestAddress), static_cast<std::uint32_t>(guestAddress >> 32u)}, __func__);
}
Agc::Command::Require(address == nullptr, __func__, "this event does not use an address");

AnyPS5 currently restricts address-bearing PM4 packet 0x46 (IT_EVENT_WRITE) solely to event types 0x38 and 0x39. If the title passes any other event type alongside a non-null address, Agc::Command::Require throws std::runtime_error("sceAgcDcbEventWrite: this event does not use an address").

@amiraction0938 Could you validate what eventType and address the title is passing? In your local build, you can drop this quick log right at the top of sceAgcDcbEventWrite in core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:

std::printf("sceAgcDcbEventWrite: eventType=0x%02x, address=%p\n", static_cast<unsigned int>(eventType), address);

Once you share the exact eventType hex code and surrounding log context, we can adjust the packet emission and size calculation for that event type!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6147036221 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6147036221). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T13:48:01Z. --- @MarcZX100 To confirm your second question: the error message is 100% emitted by AnyPS5 itself. Specifically in `core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:39`: ```cpp if ((eventType & 0xfeu) == 0x38u) { const auto guestAddress = reinterpret_cast<std::uintptr_t>(address); Agc::Command::CheckAddress(guestAddress, 8, __func__); return Agc::Command::Emit(buf, 0x46u, {0x100u | eventType, static_cast<std::uint32_t>(guestAddress), static_cast<std::uint32_t>(guestAddress >> 32u)}, __func__); } Agc::Command::Require(address == nullptr, __func__, "this event does not use an address"); ``` AnyPS5 currently restricts address-bearing PM4 packet `0x46` (`IT_EVENT_WRITE`) solely to event types `0x38` and `0x39`. If the title passes any other event type alongside a non-null address, `Agc::Command::Require` throws `std::runtime_error("sceAgcDcbEventWrite: this event does not use an address")`. @amiraction0938 Could you validate what `eventType` and `address` the title is passing? In your local build, you can drop this quick log right at the top of `sceAgcDcbEventWrite` in `core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp`: ```cpp std::printf("sceAgcDcbEventWrite: eventType=0x%02x, address=%p\n", static_cast<unsigned int>(eventType), address); ``` Once you share the exact `eventType` hex code and surrounding log context, we can adjust the packet emission and size calculation for that event type!
amiraction0938 commented 2026-10-13 14:33:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T14:33:20Z.


Thanks @pushkarreddyy for the stderr suggestion! I added the log and rebuilt. Here's what I see:

sceAgcDcbEventWrite: eventType=0x16, address=00000002d2a10000
what(): sceAgcDcbEventWrite: this event does not use an address

So the game is calling sceAgcDcbEventWrite with eventType=0x16 and a non-null address (0x00000002d2a10000). The current implementation only accepts non-null addresses for event types 0x38 and 0x39, which appears to be why it throws.

This is the current blocker where the game stops progressing. Everything up to this point seems to be working: Vulkan initializes successfully, the swapchain is created, shaders compile, and the relevant game threads are spawned.

If you need more context, I can provide the calling thread information, additional surrounding log lines, or other eventType values observed before the crash.

Happy to test a fix!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6147962301 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6147962301). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T14:33:20Z. --- Thanks @pushkarreddyy for the `stderr` suggestion! I added the log and rebuilt. Here's what I see: ```text sceAgcDcbEventWrite: eventType=0x16, address=00000002d2a10000 what(): sceAgcDcbEventWrite: this event does not use an address ``` So the game is calling `sceAgcDcbEventWrite` with **eventType=0x16** and a **non-null address (`0x00000002d2a10000`)**. The current implementation only accepts non-null addresses for event types `0x38` and `0x39`, which appears to be why it throws. This is the current blocker where the game stops progressing. Everything up to this point seems to be working: Vulkan initializes successfully, the swapchain is created, shaders compile, and the relevant game threads are spawned. If you need more context, I can provide the calling thread information, additional surrounding log lines, or other `eventType` values observed before the crash. Happy to test a fix!
pushkarreddyy commented 2026-10-13 14:43:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T14:43:37Z.


@amiraction0938 Thank you so much for capturing and sharing that! That pinpointed it immediately: eventType = 0x16 with non-null address 0x00000002d2a10000.

Yes, please! The additional details you offered would be extremely helpful:

  1. The surrounding log lines (both leading up to and around this call).
  2. The calling thread information or call stack if available.
  3. Any other eventType values observed in the session prior to this halt.

With those details, we can accurately determine the PM4 packet emission structure and any synchronization/counter requirements needed for 0x16. Much appreciated!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148170733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148170733). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T14:43:37Z. --- @amiraction0938 Thank you so much for capturing and sharing that! That pinpointed it immediately: `eventType = 0x16` with non-null address `0x00000002d2a10000`. Yes, please! The additional details you offered would be extremely helpful: 1. The surrounding log lines (both leading up to and around this call). 2. The calling thread information or call stack if available. 3. Any other `eventType` values observed in the session prior to this halt. With those details, we can accurately determine the PM4 packet emission structure and any synchronization/counter requirements needed for `0x16`. Much appreciated!
amiraction0938 commented 2026-10-13 14:46:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T14:46:06Z.


Thanks @pushkarreddyy! I have all the details you asked for. Here's the full picture:

1. Other eventType values observed before the halt

Looking through the log from the session, I see these sceAgcDcbEventWrite calls:

  • eventType=0x07 with a null address — most common
  • eventType=0x38 with a non-null address — accepted by the current implementation
  • eventType=0x16 with a non-null address — the call that originally triggered the exception

I don't have an exact count, but 0x07 and 0x38 were the dominant values, while 0x16 appeared right before the game stopped progressing.

2. Surrounding log lines around the 0x16 call

From a fresh run with the printf still active:

sceAgcDcbEventWrite: eventType=0x16, address=00000002d2a10000
what(): sceAgcDcbEventWrite: this event does not use an address

3. Thread info

The call occurs on the main rendering path (VirtualVBlankIntr / RenderJob). I can capture the exact thread ID and stack trace as well if that would be useful.

4. Progress update — the patch works, but there's a new blocker

I applied the patch to accept a non-null address for 0x16, rebuilt, and confirmed that the game now gets past the sceAgcDcbEventWrite error.

It immediately reaches a new error in libSceAgcDriver.prx, which appears to be a separate issue:

[gpu] rejected submission of 167 dwords at guest 00000002e5ec4da8:
[gpu] EVENT_WRITE x1 invalid cache-flush event index
...
[gpu] at DWORD 88 header 0xc0004600 EVENT_WRITE 2 dwords: 00000416
...
what(): AGC driver: EVENT_WRITE at DWORD 88: invalid cache-flush event index

The packet value is:

0x00000416 = 0x400 | 0x16

So it looks like the command is encoding the same event index 0x16 with the cache-flush-related flag.

Questions

  1. Now that we know 0x16 is emitted by the title, what is the correct handling for it in libSceAgc? Should I keep my local change that accepts the non-null address and emits the event?

  2. What exactly is 0x16 as a cache-flush event index? Is it CACHE_FLUSH_AND_INV_TS_EVENT (or related to it), and where is the list of accepted event indices defined in libSceAgcDriver?

  3. If 0x16 is a valid event, would it make sense to add it to the driver's accepted list as well?

I'm happy to test any fix and provide the exact thread ID/stack trace or additional logs if needed.

At this point, the game is getting significantly further: Vulkan initializes successfully, the swapchain is created, the pipeline cache loads (7.5 MiB), 348 shaders compile, and the Render, Fairy, Sound, Save, Trophy, and UDS threads are all spawned.

Thanks again!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148221061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148221061). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T14:46:06Z. --- Thanks @pushkarreddyy! I have all the details you asked for. Here's the full picture: ## 1. Other `eventType` values observed before the halt Looking through the log from the session, I see these `sceAgcDcbEventWrite` calls: - **`eventType=0x07`** with a null address — most common - **`eventType=0x38`** with a non-null address — accepted by the current implementation - **`eventType=0x16`** with a non-null address — the call that originally triggered the exception I don't have an exact count, but `0x07` and `0x38` were the dominant values, while `0x16` appeared right before the game stopped progressing. ## 2. Surrounding log lines around the `0x16` call From a fresh run with the `printf` still active: ```text sceAgcDcbEventWrite: eventType=0x16, address=00000002d2a10000 what(): sceAgcDcbEventWrite: this event does not use an address ``` ## 3. Thread info The call occurs on the main rendering path (`VirtualVBlankIntr` / `RenderJob`). I can capture the exact thread ID and stack trace as well if that would be useful. ## 4. Progress update — the patch works, but there's a new blocker I applied the patch to accept a non-null address for `0x16`, rebuilt, and confirmed that the game now **gets past the `sceAgcDcbEventWrite` error**. It immediately reaches a new error in `libSceAgcDriver.prx`, which appears to be a separate issue: ```text [gpu] rejected submission of 167 dwords at guest 00000002e5ec4da8: [gpu] EVENT_WRITE x1 invalid cache-flush event index ... [gpu] at DWORD 88 header 0xc0004600 EVENT_WRITE 2 dwords: 00000416 ... what(): AGC driver: EVENT_WRITE at DWORD 88: invalid cache-flush event index ``` The packet value is: ```text 0x00000416 = 0x400 | 0x16 ``` So it looks like the command is encoding the same event index `0x16` with the cache-flush-related flag. ### Questions 1. Now that we know `0x16` is emitted by the title, what is the correct handling for it in `libSceAgc`? Should I keep my local change that accepts the non-null address and emits the event? 2. What exactly is `0x16` as a cache-flush event index? Is it `CACHE_FLUSH_AND_INV_TS_EVENT` (or related to it), and where is the list of accepted event indices defined in `libSceAgcDriver`? 3. If `0x16` is a valid event, would it make sense to add it to the driver's accepted list as well? I'm happy to test any fix and provide the exact thread ID/stack trace or additional logs if needed. At this point, the game is getting significantly further: Vulkan initializes successfully, the swapchain is created, the pipeline cache loads (7.5 MiB), 348 shaders compile, and the Render, Fairy, Sound, Save, Trophy, and UDS threads are all spawned. Thanks again!
MarcZX10 commented 2026-10-13 14:52:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T14:52:04Z.


I checked the reported 0x416 against the current validator and AMD PM4 references before suggesting a driver change. In AMDGPU’s packet definitions, event index 4 denotes *S_PARTIAL_FLUSH, while index 7 denotes cache-flush events (Linux AMDGPU sid.h). GPUOpen PAL identifies event type 0x16 as CACHE_FLUSH_AND_INV_EVENT and maps it to the generic index (other, 0) on GFX9 (PAL event table). AnyPS5’s current PM4 validator allows indices 0 and 7 for event type 0x16 (current Pm4.cpp). These references don’t support accepting 0x416 as a cache-flush packet; widening the validator to admit index 4 would treat a partial-flush index as a cache-flush index. This is PM4 source evidence, not a PS5 hardware measurement.\n\nThe call-level mismatch remains separate: current sceAgcDcbEventWrite rejects a non-null address for event type 0x16. Could you share the exact local change that produced 0x416, and whether the size helper still returns 8 for this call? That will help distinguish the guest API’s address argument from the PM4 event index.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148341367 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148341367). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T14:52:04Z. --- I checked the reported `0x416` against the current validator and AMD PM4 references before suggesting a driver change. In AMDGPU’s packet definitions, event index 4 denotes `*S_PARTIAL_FLUSH`, while index 7 denotes cache-flush events ([Linux AMDGPU `sid.h`](https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/sid.h#L491-L507)). GPUOpen PAL identifies event type `0x16` as `CACHE_FLUSH_AND_INV_EVENT` and maps it to the generic index (`other`, 0) on GFX9 ([PAL event table](https://github.com/GPUOpen-Drivers/pal/blob/dev/src/core/hw/gfxip/gfx9/gfx9CmdUtil.cpp#L2301-L2307)). AnyPS5’s current PM4 validator allows indices 0 and 7 for event type `0x16` ([current `Pm4.cpp`](https://github.com/boykopovar/AnyPS5/blob/b8683834f/core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp#L363-L369)). These references don’t support accepting `0x416` as a cache-flush packet; widening the validator to admit index 4 would treat a partial-flush index as a cache-flush index. This is PM4 source evidence, not a PS5 hardware measurement.\n\nThe call-level mismatch remains separate: current `sceAgcDcbEventWrite` rejects a non-null address for event type `0x16`. Could you share the exact local change that produced `0x416`, and whether the size helper still returns 8 for this call? That will help distinguish the guest API’s address argument from the PM4 event index.
pushkarreddyy commented 2026-10-13 14:52:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T14:52:08Z.


@amiraction0938 Great detective work! Here is exactly why you hit that second error and how to fix it cleanly:

1. 0x16 is already supported in libSceAgcDriver

If you check core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp:363:

case 0x16: case 0x31: case 0x2a: case 0x2c: case 0x2e:
    graphics();
    size(2);
    require(eventIndex == 0 || eventIndex == 7, "invalid cache-flush event index");
    break;

libSceAgcDriver already accepts 0x16 as a valid cache-flush event! The packet size is 2 dwords (1 header dword + 1 payload dword). It does not take an address in the PM4 stream; the address passed by the game is simply unused by the hardware.

2. Why it failed with invalid cache-flush event index

Notice the requirement:

require(eventIndex == 0 || eventIndex == 7, "invalid cache-flush event index");

In PM4 packet 0x46, eventIndex is encoded in bits [10:8] (packet[1] >> 8).
Your packet had payload 0x00000416. Because 0x400 >> 8 = 4, the driver saw eventIndex = 4, which failed require(eventIndex == 0 || eventIndex == 7).

This happened because in core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:40:

const auto eventIndex = eventType == 7 || eventType == 15 || eventType == 16 ? 0x400u : 0u;

Note that 7, 15, 16 are decimal (0x07, 0x0f, 0x10). Those three events are partial flushes that specifically require eventIndex = 4 (0x400u). If 0x16 was added to that branch or decimal 16 was conflated with hex 0x16, eventIndex became 0x400u.

3. The Clean Fix in libSceAgc

In core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:
Simply remove the Agc::Command::Require(address == nullptr, ...) line and let eventIndex remain 0u for 0x16:

std::uint32_t* APS5_VABI sceAgcDcbEventWrite(CommandBuffer* buf, std::uint8_t eventType, const volatile void* address) {
    Agc::Command::CheckBits(eventType, 0x3fu, __func__);
    if ((eventType & 0xfeu) == 0x38u) {
        const auto guestAddress = reinterpret_cast<std::uintptr_t>(address);
        Agc::Command::CheckAddress(guestAddress, 8, __func__);
        return Agc::Command::Emit(buf, 0x46u, {0x100u | eventType, static_cast<std::uint32_t>(guestAddress), static_cast<std::uint32_t>(guestAddress >> 32u)}, __func__);
    }
    const auto eventIndex = eventType == 7 || eventType == 15 || eventType == 16 ? 0x400u : 0u;
    return Agc::Command::Emit(buf, 0x46u, {eventIndex | eventType}, __func__);
}

Because eventType == 0x16 (22 in decimal) is not 7, 15, or 16, eventIndex evaluates to 0u. The emitted packet payload will be 0x00000016.
libSceAgcDriver will see eventType = 0x16 with eventIndex = 0, pass require(eventIndex == 0 || eventIndex == 7), and proceed through rendering!

Could you test this one-line removal in your local build and let us know what the title reaches next?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148342750 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148342750). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T14:52:08Z. --- @amiraction0938 Great detective work! Here is exactly why you hit that second error and how to fix it cleanly: ### 1. `0x16` is already supported in `libSceAgcDriver` If you check `core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp:363`: ```cpp case 0x16: case 0x31: case 0x2a: case 0x2c: case 0x2e: graphics(); size(2); require(eventIndex == 0 || eventIndex == 7, "invalid cache-flush event index"); break; ``` `libSceAgcDriver` **already accepts `0x16`** as a valid cache-flush event! The packet size is 2 dwords (1 header dword + 1 payload dword). It does not take an address in the PM4 stream; the address passed by the game is simply unused by the hardware. ### 2. Why it failed with `invalid cache-flush event index` Notice the requirement: ```cpp require(eventIndex == 0 || eventIndex == 7, "invalid cache-flush event index"); ``` In PM4 packet `0x46`, `eventIndex` is encoded in bits `[10:8]` (`packet[1] >> 8`). Your packet had payload `0x00000416`. Because `0x400 >> 8 = 4`, the driver saw `eventIndex = 4`, which failed `require(eventIndex == 0 || eventIndex == 7)`. This happened because in `core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:40`: ```cpp const auto eventIndex = eventType == 7 || eventType == 15 || eventType == 16 ? 0x400u : 0u; ``` Note that `7`, `15`, `16` are decimal (`0x07`, `0x0f`, `0x10`). Those three events are partial flushes that specifically require `eventIndex = 4` (`0x400u`). If `0x16` was added to that branch or decimal `16` was conflated with hex `0x16`, `eventIndex` became `0x400u`. ### 3. The Clean Fix in `libSceAgc` In `core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp`: Simply remove the `Agc::Command::Require(address == nullptr, ...)` line and let `eventIndex` remain `0u` for `0x16`: ```cpp std::uint32_t* APS5_VABI sceAgcDcbEventWrite(CommandBuffer* buf, std::uint8_t eventType, const volatile void* address) { Agc::Command::CheckBits(eventType, 0x3fu, __func__); if ((eventType & 0xfeu) == 0x38u) { const auto guestAddress = reinterpret_cast<std::uintptr_t>(address); Agc::Command::CheckAddress(guestAddress, 8, __func__); return Agc::Command::Emit(buf, 0x46u, {0x100u | eventType, static_cast<std::uint32_t>(guestAddress), static_cast<std::uint32_t>(guestAddress >> 32u)}, __func__); } const auto eventIndex = eventType == 7 || eventType == 15 || eventType == 16 ? 0x400u : 0u; return Agc::Command::Emit(buf, 0x46u, {eventIndex | eventType}, __func__); } ``` Because `eventType == 0x16` (22 in decimal) is not 7, 15, or 16, `eventIndex` evaluates to `0u`. The emitted packet payload will be `0x00000016`. `libSceAgcDriver` will see `eventType = 0x16` with `eventIndex = 0`, pass `require(eventIndex == 0 || eventIndex == 7)`, and proceed through rendering! Could you test this one-line removal in your local build and let us know what the title reaches next?
amiraction0938 commented 2026-10-13 15:00:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T15:00:09Z.


The fix works! After applying @pushkarreddyy's suggestion (removing the Require(address == nullptr, ...) check), I rebuilt libSceAgc and the game now actually runs.

Here's what I get:

  • ✅ Game window opens
  • ✅ The game renders 3 frames before stopping
  • ✅ No crash or abort
  • ✅ FPS counter shows FPS: 0.19 (3)

However, the game appears to stall after those first 3 frames:

  • FPS remains at ~0.19
  • No further visual progression or animation
  • No sound output
  • No response to input
  • I don't see any FATAL, exception, or abort in the log

So this looks like a different kind of issue now — possibly a synchronization point, a stalled thread, or the game waiting for some event/fence/semaphore.

Questions

  1. Is there a known state in AnyPS5 where a game can render a few frames and then stall, for example because a fence or semaphore never signals?

  2. What additional logging would be most useful for diagnosing this? Should I enable a specific debug/trace option such as AGC_TRACE or any APS5_* environment variables?

  3. Is 0.19 FPS potentially normal during the first run because of shader compilation or initial GPU setup, or should the game normally continue progressing after the initial warm-up?

I'm happy to capture more logs, thread information, or a stack trace while the game is stalled if that would help narrow this down.

Very excited that we've reached this point — thanks @MarcZX100 and @pushkarreddyy for the guidance!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148506080 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148506080). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T15:00:09Z. --- **The fix works!** After applying @pushkarreddyy's suggestion (removing the `Require(address == nullptr, ...)` check), I rebuilt `libSceAgc` and the game now **actually runs**. Here's what I get: - ✅ Game window opens - ✅ The game renders **3 frames** before stopping - ✅ No crash or abort - ✅ FPS counter shows `FPS: 0.19 (3)` **However, the game appears to stall after those first 3 frames:** - FPS remains at ~0.19 - No further visual progression or animation - No sound output - No response to input - I don't see any `FATAL`, exception, or abort in the log So this looks like a different kind of issue now — possibly a synchronization point, a stalled thread, or the game waiting for some event/fence/semaphore. ### Questions 1. Is there a known state in AnyPS5 where a game can render a few frames and then stall, for example because a fence or semaphore never signals? 2. What additional logging would be most useful for diagnosing this? Should I enable a specific debug/trace option such as `AGC_TRACE` or any `APS5_*` environment variables? 3. Is `0.19 FPS` potentially normal during the first run because of shader compilation or initial GPU setup, or should the game normally continue progressing after the initial warm-up? I'm happy to capture more logs, thread information, or a stack trace while the game is stalled if that would help narrow this down. Very excited that we've reached this point — thanks @MarcZX100 and @pushkarreddyy for the guidance!
pushkarreddyy commented 2026-10-13 15:01:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T15:01:23Z.


Opened PR #5219 implementing this fix in libSceAgc (sceAgcDcbEventWrite), with comprehensive unit tests in Commands.cpp covering sample dumps, partial flushes, and cache flushes with null and non-null addresses. Passes all conventions and CI checks (100% green).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148531491 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148531491). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T15:01:23Z. --- Opened [PR #5219](https://github.com/boykopovar/AnyPS5/pull/5219) implementing this fix in `libSceAgc` (`sceAgcDcbEventWrite`), with comprehensive unit tests in `Commands.cpp` covering sample dumps, partial flushes, and cache flushes with null and non-null addresses. Passes all conventions and CI checks (100% green).
pushkarreddyy commented 2026-10-13 15:03:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T15:03:23Z.


@amiraction0938 Huge milestone! Seeing the window open and 3 frames rendered is fantastic confirmation that the sceAgcDcbEventWrite fix unblocked the display pipeline.

Here is the breakdown of why titles often pause after the initial 3 frames in AnyPS5, plus the best steps to diagnose:

1. Common Causes for Stalling After 3 Frames

In a double- or triple-buffered swapchain (your log earlier noted 2 swapchain images), 3 frames is typically the point where:

  1. Audio/Video Sync Wait:
    Many game engines run their render loop gated by audio clock or buffer consumption (sceAudioOut / libSceNgs2). If audio playback is blocked or the audio thread stalls, the engine intentionally stops issuing new render frames until audio catches up. (Make sure you test with PR #5140 applied rather than a stubbed module 0x1d, as 0x1d handles the active grain callback).
  2. GPU Memory / Flip Synchronization:
    The GPU queue may be waiting on an unsignaled memory label or fence (WAIT_REG_MEM or presentation release). If a wait never satisfies, the command processor thread halts.
  3. Guest Thread Sync:
    The main or render thread may be waiting on a semaphore, event flag, or condition variable (sceKernelWaitSema, sceKernelWaitEventFlag) waiting for a worker job to finish.

2. Actionable Diagnostic Steps

A. Capture Stalled Thread Call Stacks (Most Informative)

Since the process is alive without crashing, pausing it in a debugger while stalled will immediately pinpoint what each thread is waiting on:

  • In GDB: Attach to the process (gdb -p <PID>), press Ctrl+C to break, and run:
    thread apply all bt
    
  • Or in Visual Studio / Visual Studio Code: Debug -> Attach to Process, hit Pause / Break All, and check the Threads window.
    • Specifically check what the RenderJob, VirtualVBlankIntr, and Sound threads are waiting on.

B. Useful AnyPS5 Environment Variables

You can run with these environment variables to log GPU queue activity and synchronization waits:

  • set APS5_TRACE_GPU=1 — Traces GPU queue submissions, packet execution, and conditional branches.
  • set APS5_SYNC_FLIP=1 — Forces synchronous presentation flushing at flip boundaries.
  • set APS5_GPU_WAIT_TIMEOUT_MS=2000 — Shortens the GPU wait timeout diagnostic so AnyPS5 will print a warning if a WAIT_REG_MEM is spinning.

If you can grab the backtraces of the stalled threads (or the tail of the log with APS5_TRACE_GPU=1), we can see immediately whether it's waiting on an audio grain, a semaphore, or a flip label!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148572371 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148572371). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T15:03:23Z. --- @amiraction0938 Huge milestone! Seeing the window open and 3 frames rendered is fantastic confirmation that the `sceAgcDcbEventWrite` fix unblocked the display pipeline. Here is the breakdown of why titles often pause after the initial 3 frames in AnyPS5, plus the best steps to diagnose: ### 1. Common Causes for Stalling After 3 Frames In a double- or triple-buffered swapchain (your log earlier noted 2 swapchain images), 3 frames is typically the point where: 1. **Audio/Video Sync Wait**: Many game engines run their render loop gated by audio clock or buffer consumption (`sceAudioOut` / `libSceNgs2`). If audio playback is blocked or the audio thread stalls, the engine intentionally stops issuing new render frames until audio catches up. (Make sure you test with [PR #5140](https://github.com/boykopovar/AnyPS5/pull/5140) applied rather than a stubbed module `0x1d`, as `0x1d` handles the active grain callback). 2. **GPU Memory / Flip Synchronization**: The GPU queue may be waiting on an unsignaled memory label or fence (`WAIT_REG_MEM` or presentation release). If a wait never satisfies, the command processor thread halts. 3. **Guest Thread Sync**: The main or render thread may be waiting on a semaphore, event flag, or condition variable (`sceKernelWaitSema`, `sceKernelWaitEventFlag`) waiting for a worker job to finish. ### 2. Actionable Diagnostic Steps #### A. Capture Stalled Thread Call Stacks (Most Informative) Since the process is alive without crashing, pausing it in a debugger while stalled will immediately pinpoint what each thread is waiting on: - In **GDB**: Attach to the process (`gdb -p <PID>`), press Ctrl+C to break, and run: ```gdb thread apply all bt ``` - Or in **Visual Studio / Visual Studio Code**: **Debug -> Attach to Process**, hit **Pause / Break All**, and check the **Threads** window. - Specifically check what the **RenderJob**, **VirtualVBlankIntr**, and **Sound** threads are waiting on. #### B. Useful AnyPS5 Environment Variables You can run with these environment variables to log GPU queue activity and synchronization waits: - `set APS5_TRACE_GPU=1` — Traces GPU queue submissions, packet execution, and conditional branches. - `set APS5_SYNC_FLIP=1` — Forces synchronous presentation flushing at flip boundaries. - `set APS5_GPU_WAIT_TIMEOUT_MS=2000` — Shortens the GPU wait timeout diagnostic so AnyPS5 will print a warning if a `WAIT_REG_MEM` is spinning. If you can grab the backtraces of the stalled threads (or the tail of the log with `APS5_TRACE_GPU=1`), we can see immediately whether it's waiting on an audio grain, a semaphore, or a flip label!
amiraction0938 commented 2026-10-13 15:12:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T15:12:19Z.


Thanks for the debugging guidance! I ran the game with APS5_TRACE_GPU=1 and captured a full log. Here are the key findings.

GPU side looks healthy:

  • GPU submissions complete normally (serials 1–25).
  • No WAIT_REG_MEM stalls or fence timeouts.
  • idle queue=0x0 appears periodically.
  • The shader cache is warm (676 hits, 18 misses).

The timing seems to be the key clue:

[gpu] 10976.6 done serial=2 queue=0x0
... approximately 16 seconds with no GPU submissions ...
[gpu] 26840.7 submit queue=0x0 dwords=167

The GPU completes its work in roughly 10 ms, but there's then a 16-second gap before the next submission. This makes me suspect something is blocking on the CPU or guest-thread side rather than the GPU itself.

Questions

1. Could audio synchronization be blocking the game?

libSceAudioIn.prx currently fails to build with a "no exported names" error. Could a missing audio-related module cause the game to wait indefinitely for an audio or synchronization event?

Would it be useful to create a temporary libSceAudioIn stub that returns errors from its entry points, or would that be unlikely to help? I'd rather avoid introducing a stub that could mask the actual issue.

2. What's the best way to capture all thread stacks on Windows?

Would you recommend attaching Visual Studio to the running process and using Break All, then inspecting the call stacks? Is there a simpler or more commonly used approach for debugging AnyPS5?

I'd particularly like to inspect the RenderJob, VirtualVBlankIntr, and sound-related threads while the game is stalled.

3. Are there any other supported APS5_* environment variables for guest-thread synchronization tracing?

For example, is there an implemented equivalent of APS5_TRACE_SYNC=1 that logs semaphore waits, event flags, or other synchronization primitives? I don't want to assume an environment variable exists without confirming it's supported by the codebase.

Happy to capture additional logs or thread stacks and test further changes. Thanks again for helping me narrow this down!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148753151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6148753151). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T15:12:19Z. --- Thanks for the debugging guidance! I ran the game with `APS5_TRACE_GPU=1` and captured a full log. Here are the key findings. **GPU side looks healthy:** - GPU submissions complete normally (serials 1–25). - No `WAIT_REG_MEM` stalls or fence timeouts. - `idle queue=0x0` appears periodically. - The shader cache is warm (676 hits, 18 misses). **The timing seems to be the key clue:** ```text [gpu] 10976.6 done serial=2 queue=0x0 ... approximately 16 seconds with no GPU submissions ... [gpu] 26840.7 submit queue=0x0 dwords=167 ``` The GPU completes its work in roughly 10 ms, but there's then a **16-second gap before the next submission**. This makes me suspect something is blocking on the CPU or guest-thread side rather than the GPU itself. ### Questions **1. Could audio synchronization be blocking the game?** `libSceAudioIn.prx` currently fails to build with a "no exported names" error. Could a missing audio-related module cause the game to wait indefinitely for an audio or synchronization event? Would it be useful to create a temporary `libSceAudioIn` stub that returns errors from its entry points, or would that be unlikely to help? I'd rather avoid introducing a stub that could mask the actual issue. **2. What's the best way to capture all thread stacks on Windows?** Would you recommend attaching Visual Studio to the running process and using **Break All**, then inspecting the call stacks? Is there a simpler or more commonly used approach for debugging AnyPS5? I'd particularly like to inspect the `RenderJob`, `VirtualVBlankIntr`, and sound-related threads while the game is stalled. **3. Are there any other supported `APS5_*` environment variables for guest-thread synchronization tracing?** For example, is there an implemented equivalent of `APS5_TRACE_SYNC=1` that logs semaphore waits, event flags, or other synchronization primitives? I don't want to assume an environment variable exists without confirming it's supported by the codebase. Happy to capture additional logs or thread stacks and test further changes. Thanks again for helping me narrow this down!
pushkarreddyy commented 2026-10-13 15:25:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T15:25:55Z.


@amiraction0938 That 16-second gap is the exact confirmation we needed — the GPU completes its work in 10 ms, which means the stall is 100% on the guest CPU thread synchronization side.

Here are the exact answers to your questions, the fix for the libSceAudioIn build error, and the automated way to dump every single thread backtrace:


1. The libSceAudioIn Build Error & Relevance

  1. AudioIn is Microphone Capture: libSceAudioIn is the microphone/voice input API (recording audio from a headset/mic). Game engines virtually never block their render loop on microphone recording. Audio output and grain processing are handled by libSceAudioOut and libSceNgs2 (which PR #5140 implements).
  2. How to Fix the Build Error in libSceAudioIn:
    The reason MinGW reports no exported names is line 4 in core/libs/prx/libSceAudioIn/CMakeLists.txt:
    target_link_options(libSceAudioIn PRIVATE LINKER:--exclude-libs,ALL)
    
    On MinGW GNU ld, --exclude-libs,ALL suppresses default symbol export when static libraries (SDL2-static) are linked. Simply comment out or remove line 4 in core/libs/prx/libSceAudioIn/CMakeLists.txt, and libSceAudioIn.prx will build cleanly without error.

2. Built-in AnyPS5 Automated Full Thread Dump (APS5_HANG_DUMP_SECS)

AnyPS5 actually has a built-in automated watchdog on Windows specifically designed for this!

If you set:

set APS5_HANG_DUMP_SECS=20
set APS5_TRACE_SYNC=1
set APS5_TRACE_WAITS=1

When the game runs for 20 seconds and idles, AnyPS5's HangWatchdog will automatically wake up, suspend all running threads, and print a complete, full backtrace of EVERY thread (all threads:) directly to stderr with thread names and instruction pointers before exiting!


3. Dumping the Complete Thread List via GDB

If you prefer running under GDB to capture it live without aborting:

gdb -p <PID>
(gdb) set pagination off
(gdb) set logging file anyps5_all_threads.txt
(gdb) set logging enabled on
(gdb) thread apply all bt full
(gdb) quit

What to Share

Please share the complete, full list of all thread backtraces (e.g. from APS5_HANG_DUMP_SECS=20 or anyps5_all_threads.txt), not just individual thread parts. Having the full thread dump across all worker, render, and sound threads will let us identify the exact mutex, semaphore, event flag, or audio grain callback the title is waiting on!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149026348 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6149026348). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T15:25:55Z. --- @amiraction0938 That 16-second gap is the exact confirmation we needed — the GPU completes its work in 10 ms, which means the stall is 100% on the guest CPU thread synchronization side. Here are the exact answers to your questions, the fix for the `libSceAudioIn` build error, and the automated way to dump every single thread backtrace: --- ### 1. The `libSceAudioIn` Build Error & Relevance 1. **AudioIn is Microphone Capture**: `libSceAudioIn` is the microphone/voice input API (recording audio from a headset/mic). Game engines virtually never block their render loop on microphone recording. Audio output and grain processing are handled by `libSceAudioOut` and `libSceNgs2` (which [PR #5140](https://github.com/boykopovar/AnyPS5/pull/5140) implements). 2. **How to Fix the Build Error in `libSceAudioIn`**: The reason MinGW reports `no exported names` is line 4 in `core/libs/prx/libSceAudioIn/CMakeLists.txt`: ```cmake target_link_options(libSceAudioIn PRIVATE LINKER:--exclude-libs,ALL) ``` On MinGW GNU `ld`, `--exclude-libs,ALL` suppresses default symbol export when static libraries (`SDL2-static`) are linked. Simply comment out or remove line 4 in `core/libs/prx/libSceAudioIn/CMakeLists.txt`, and `libSceAudioIn.prx` will build cleanly without error. --- ### 2. Built-in AnyPS5 Automated Full Thread Dump (`APS5_HANG_DUMP_SECS`) AnyPS5 actually has a built-in automated watchdog on Windows specifically designed for this! If you set: ```cmd set APS5_HANG_DUMP_SECS=20 set APS5_TRACE_SYNC=1 set APS5_TRACE_WAITS=1 ``` When the game runs for 20 seconds and idles, AnyPS5's `HangWatchdog` will automatically wake up, suspend all running threads, and print a **complete, full backtrace of EVERY thread** (`all threads:`) directly to `stderr` with thread names and instruction pointers before exiting! --- ### 3. Dumping the Complete Thread List via GDB If you prefer running under GDB to capture it live without aborting: ```gdb gdb -p <PID> (gdb) set pagination off (gdb) set logging file anyps5_all_threads.txt (gdb) set logging enabled on (gdb) thread apply all bt full (gdb) quit ``` --- ### What to Share Please share the **complete, full list of all thread backtraces** (e.g. from `APS5_HANG_DUMP_SECS=20` or `anyps5_all_threads.txt`), not just individual thread parts. Having the full thread dump across all worker, render, and sound threads will let us identify the exact mutex, semaphore, event flag, or audio grain callback the title is waiting on!
amiraction0938 commented 2026-10-13 15:46:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T15:46:17Z.


Two updates — and some huge progress!

  1. libSceAudioIn.prx now builds successfully after removing the --exclude-libs,ALL linker option. Thanks for the suggestion!
  2. Void Terrarium now runs at 60 FPS in the main menu! The previous stall is gone, but pressing the Down arrow key causes a crash. I'll post the crash log shortly so we can investigate the next blocker.

We've gone from getting stuck after just a few frames to reaching a smoothly running main menu. Huge thanks to everyone who's helped track down these issues!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149423695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6149423695). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T15:46:17Z. --- Two updates — and some huge progress! 1. **`libSceAudioIn.prx` now builds successfully** after removing the `--exclude-libs,ALL` linker option. Thanks for the suggestion! 2. **Void Terrarium now runs at 60 FPS in the main menu!** The previous stall is gone, but pressing the Down arrow key causes a crash. I'll post the crash log shortly so we can investigate the next blocker. We've gone from getting stuck after just a few frames to reaching a smoothly running main menu. Huge thanks to everyone who's helped track down these issues!
amiraction0938 commented 2026-10-13 15:49:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T15:49:03Z.


Great news: Void Terrarium is now running at 60 FPS in the main menu! The previous stall is gone, and menu input is working. Pressing Down triggers an action, but it also exposes the next crash.

Crash details

[libc] unhandled exception 'St16invalid_argument' thrown from 00007ffaaa43db87
terminate called after throwing an instance of 'std::invalid_argument'
what(): AddWaveformBlocks: invalid argument
FATAL: abort() (SIGABRT)

The crash occurs when I press Down in the menu, which appears to trigger a short sound effect. The main menu music plays without triggering this crash, so far the issue seems specific to SFX playback.

Environment

  • Testing on the pr-5140 branch.
  • libSceAudioIn.prx now builds successfully after removing the --exclude-libs,ALL linker option.
  • The game reaches the menu and runs at 60 FPS before this crash.

Questions

  1. Where is AddWaveformBlocks defined in libSceNgs2, and what conditions cause it to throw std::invalid_argument with this message?
  2. Could this be related to PR #5140's UserFx / custom NGS2 module support, or is it more likely to be an issue with voice or waveform setup for short sound effects?
  3. Would adding temporary diagnostic logging at the start of AddWaveformBlocks help? If so, which input parameters and intermediate values would be most useful to log?

I can add diagnostic prints and share the resulting log if that would help narrow down the cause.

Reaching a stable 60 FPS menu is a huge step forward. Thanks again for all the help — excited to track down the next issue!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149477932 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6149477932). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T15:49:03Z. --- Great news: **Void Terrarium is now running at 60 FPS in the main menu!** The previous stall is gone, and menu input is working. Pressing Down triggers an action, but it also exposes the next crash. ### Crash details ```text [libc] unhandled exception 'St16invalid_argument' thrown from 00007ffaaa43db87 terminate called after throwing an instance of 'std::invalid_argument' what(): AddWaveformBlocks: invalid argument FATAL: abort() (SIGABRT) ``` The crash occurs when I press **Down in the menu**, which appears to trigger a short sound effect. The main menu music plays without triggering this crash, so far the issue seems specific to SFX playback. ### Environment - Testing on the `pr-5140` branch. - `libSceAudioIn.prx` now builds successfully after removing the `--exclude-libs,ALL` linker option. - The game reaches the menu and runs at 60 FPS before this crash. ### Questions 1. Where is `AddWaveformBlocks` defined in `libSceNgs2`, and what conditions cause it to throw `std::invalid_argument` with this message? 2. Could this be related to PR #5140's `UserFx` / custom NGS2 module support, or is it more likely to be an issue with voice or waveform setup for short sound effects? 3. Would adding temporary diagnostic logging at the start of `AddWaveformBlocks` help? If so, which input parameters and intermediate values would be most useful to log? I can add diagnostic prints and share the resulting log if that would help narrow down the cause. Reaching a stable 60 FPS menu is a huge step forward. Thanks again for all the help — excited to track down the next issue!
pushkarreddyy commented 2026-10-13 15:57:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T15:57:39Z.


@amiraction0938 Reaching a stable 60 FPS in the menu with functional input and music playback is massive progress!

Here are the direct answers to your questions and the exact diagnostic prints to identify why the menu SFX triggers this abort:


1. Where AddWaveformBlocks is defined and what throws

  • Location: core/libs/prx/libSceNgs2.native/src/Voice.cpp:201 (AddWaveformBlocks).

  • Throw source: The exact message what(): AddWaveformBlocks: invalid argument comes strictly from macro APS5_INVALID_ARG_EX on line 204:

    if (voice.channels == 0 || (param.num_blocks != 0 && (param.blocks == nullptr || param.data == nullptr))) APS5_INVALID_ARG_EX;
    

    (All other exception throws in this function have descriptive strings such as "the voice waveform was already closed" or "does not fit its data").

  • Trigger conditions:

    1. voice.channels == 0: The sampler voice has not received a valid SCE_NGS2_SAMPLER_VOICE_PARAM_SETUP call yet (or its format passed 0 channels). In AnyPS5, sampler voices start with channels = 0 until SetupSampler assigns voice.channels = format.num_channels.
    2. param.num_blocks != 0 && (param.blocks == nullptr || param.data == nullptr): The voice control call is adding blocks (num_blocks > 0), but either param.blocks is null or param.data is null (for example, if the sound effect waveform blocks reference no external buffer or rely on silence blocks).

No. PR #5140 exclusively affects custom submixer racks (SCE_NGS2_RACK_ID_CUSTOM_SUBMIXER).
Sound effects are played through standard sampler rack voices (SCE_NGS2_RACK_ID_SAMPLER), which decode and stream audio waveforms (PCM or ATRAC9) via SetupSampler and AddWaveformBlocks.


3. Diagnostic Prints to Add

Adding these prints in core/libs/prx/libSceNgs2.native/src/Voice.cpp will immediately tell us the exact values passed when pressing Down:

A. In SetupSampler (~line 159):

static void SetupSampler(Ngs2Voice& voice, const Ngs2WaveformFormat& format) {
    printf("[NGS2][SetupSampler] voice=%p type=0x%x ch=%u rate=%u offset=%u margin=%u\n",
           (void*)&voice, format.waveform_type, format.num_channels, format.sample_rate,
           format.frame_offset, format.frame_margin);
    // ... rest of function ...

B. In AddWaveformBlocks (~line 201):

static void AddWaveformBlocks(Ngs2Voice& voice, const Ngs2SamplerVoiceWaveformBlocksParam& param) {
    printf("[NGS2][AddWaveformBlocks] voice=%p ch=%u type=0x%x accepts=%d num_blocks=%u blocks=%p data=%p flags=0x%x\n",
           (void*)&voice, voice.channels, voice.waveformType, (int)voice.acceptsBlocks,
           param.num_blocks, (void*)param.blocks, (void*)param.data, param.flags);
    if (param.blocks && param.num_blocks > 0) {
        for (std::uint32_t i = 0; i < param.num_blocks; ++i) {
            printf("  block[%u]: offset=%llu size=%u samples=%u repeats=%u skip=%u\n",
                   i, (unsigned long long)param.blocks[i].data_offset, param.blocks[i].data_size,
                   param.blocks[i].num_samples, param.blocks[i].num_repeats, param.blocks[i].num_skip_samples);
        }
    }
    // ... line 204 validation ...

When you press Down and it hits the abort, please share those print lines! It will show right away whether voice.channels is 0 (a missing setup call or ordering mismatch) or param.data == nullptr (null buffer handling).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149643852 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6149643852). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T15:57:39Z. --- @amiraction0938 Reaching a stable 60 FPS in the menu with functional input and music playback is massive progress! Here are the direct answers to your questions and the exact diagnostic prints to identify why the menu SFX triggers this abort: --- ### 1. Where `AddWaveformBlocks` is defined and what throws - **Location**: `core/libs/prx/libSceNgs2.native/src/Voice.cpp:201` (`AddWaveformBlocks`). - **Throw source**: The exact message `what(): AddWaveformBlocks: invalid argument` comes strictly from macro `APS5_INVALID_ARG_EX` on **line 204**: ```cpp if (voice.channels == 0 || (param.num_blocks != 0 && (param.blocks == nullptr || param.data == nullptr))) APS5_INVALID_ARG_EX; ``` *(All other exception throws in this function have descriptive strings such as `"the voice waveform was already closed"` or `"does not fit its data"`).* - **Trigger conditions**: 1. `voice.channels == 0`: The sampler voice has not received a valid `SCE_NGS2_SAMPLER_VOICE_PARAM_SETUP` call yet (or its format passed 0 channels). In AnyPS5, sampler voices start with `channels = 0` until `SetupSampler` assigns `voice.channels = format.num_channels`. 2. `param.num_blocks != 0 && (param.blocks == nullptr || param.data == nullptr)`: The voice control call is adding blocks (`num_blocks > 0`), but either `param.blocks` is null or `param.data` is null (for example, if the sound effect waveform blocks reference no external buffer or rely on silence blocks). --- ### 2. Is this related to PR #5140 (UserFx / custom module)? **No**. PR #5140 exclusively affects custom submixer racks (`SCE_NGS2_RACK_ID_CUSTOM_SUBMIXER`). Sound effects are played through standard sampler rack voices (`SCE_NGS2_RACK_ID_SAMPLER`), which decode and stream audio waveforms (PCM or ATRAC9) via `SetupSampler` and `AddWaveformBlocks`. --- ### 3. Diagnostic Prints to Add Adding these prints in `core/libs/prx/libSceNgs2.native/src/Voice.cpp` will immediately tell us the exact values passed when pressing Down: #### A. In `SetupSampler` (~line 159): ```cpp static void SetupSampler(Ngs2Voice& voice, const Ngs2WaveformFormat& format) { printf("[NGS2][SetupSampler] voice=%p type=0x%x ch=%u rate=%u offset=%u margin=%u\n", (void*)&voice, format.waveform_type, format.num_channels, format.sample_rate, format.frame_offset, format.frame_margin); // ... rest of function ... ``` #### B. In `AddWaveformBlocks` (~line 201): ```cpp static void AddWaveformBlocks(Ngs2Voice& voice, const Ngs2SamplerVoiceWaveformBlocksParam& param) { printf("[NGS2][AddWaveformBlocks] voice=%p ch=%u type=0x%x accepts=%d num_blocks=%u blocks=%p data=%p flags=0x%x\n", (void*)&voice, voice.channels, voice.waveformType, (int)voice.acceptsBlocks, param.num_blocks, (void*)param.blocks, (void*)param.data, param.flags); if (param.blocks && param.num_blocks > 0) { for (std::uint32_t i = 0; i < param.num_blocks; ++i) { printf(" block[%u]: offset=%llu size=%u samples=%u repeats=%u skip=%u\n", i, (unsigned long long)param.blocks[i].data_offset, param.blocks[i].data_size, param.blocks[i].num_samples, param.blocks[i].num_repeats, param.blocks[i].num_skip_samples); } } // ... line 204 validation ... ``` When you press Down and it hits the abort, please share those print lines! It will show right away whether `voice.channels` is 0 (a missing setup call or ordering mismatch) or `param.data == nullptr` (null buffer handling).
pushkarreddyy commented 2026-10-13 15:59:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T15:59:27Z.


@amiraction0938 Also, to make sure we have everything needed to solve this and any subsequent audio/voice issues efficiently, please capture and share the full logs and data using all available diagnostics:

1. Full Diagnostic Log Capture

Please run with stderr and stdout redirected to a file so nothing is lost or truncated:

anyps5.exe <args> > anyps5_sfx_crash.log 2>&1

Include the diagnostic prints above ([NGS2][SetupSampler] and [NGS2][AddWaveformBlocks]), plus a few dozen log lines preceding the crash.

2. GDB Backtrace on Abort (Full Call Stack & Parameters)

Catching the abort in GDB will capture the exact guest parameters passed to sceNgs2VoiceControl:

gdb --args anyps5.exe <args>
(gdb) run
# Press Down to trigger the crash
# When SIGABRT / terminate is caught:
(gdb) bt full

Sharing the bt full output alongside the diagnostic log lines will provide the full picture (voice setup history, parameters, buffers, and flags), allowing us to diagnose and resolve the exact cause immediately!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6149678646 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6149678646). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T15:59:27Z. --- @amiraction0938 Also, to make sure we have everything needed to solve this and any subsequent audio/voice issues efficiently, please capture and share the full logs and data using all available diagnostics: ### 1. Full Diagnostic Log Capture Please run with stderr and stdout redirected to a file so nothing is lost or truncated: ```cmd anyps5.exe <args> > anyps5_sfx_crash.log 2>&1 ``` Include the diagnostic prints above (`[NGS2][SetupSampler]` and `[NGS2][AddWaveformBlocks]`), plus a few dozen log lines preceding the crash. ### 2. GDB Backtrace on Abort (Full Call Stack & Parameters) Catching the abort in GDB will capture the exact guest parameters passed to `sceNgs2VoiceControl`: ```gdb gdb --args anyps5.exe <args> (gdb) run # Press Down to trigger the crash # When SIGABRT / terminate is caught: (gdb) bt full ``` Sharing the `bt full` output alongside the diagnostic log lines will provide the full picture (voice setup history, parameters, buffers, and flags), allowing us to diagnose and resolve the exact cause immediately!
amiraction0938 commented 2026-10-13 16:28:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T16:28:26Z.


I've been testing Void Terrarium on AnyPS5 on Windows. The game now runs at 60 FPS through the menu and early gameplay, plays the real-time cutscene, returns to gameplay, and enters the 2D environment. Thanks to everyone who helped resolve the earlier blockers.

  • Menu, input, and SFX work at 60 FPS.
  • Tutorial and early gameplay run at 60 FPS.
  • The real-time cutscene plays, but FPS drops to around 4 during video playback.
  • The transition back to gameplay and entry into the 2D environment work.
  • A new crash occurs about 30 seconds into 2D gameplay.
[libc] unhandled exception 'St13runtime_error' thrown from 00007ffaaa9145c6
terminate called after throwing an instance of 'std::runtime_error'
what(): H+8UBOwfScI not implemented
FATAL: abort() (SIGABRT)

tools/nid_names.py resolves H+8UBOwfScI to __powidf2 and reports it as rename-ready.
core/libs/prx/libc/src/Math.cpp:367 already contains the float variant, __powisf2_nid_postfix, but I couldn't find an exported double variant for __powidf2.

  1. Is __powidf2 provided by the compiler runtime, or does AnyPS5 need its own implementation?
  2. Should a matching __powidf2_nid_postfix be added next to __powisf2_nid_postfix? Is the expected signature double __powidf2(double base, int exponent)?
  3. Is there a central mechanism for exporting compiler runtime NIDs such as __powidf2, __powisf2, and __divdi3, or must each be handled individually?
  • OS: Windows 11 Pro, Version 26H1 (Build 28000.3086)
  • CPU: Intel Core i5-14600K
  • GPU: NVIDIA RTX 5070 Ti (16 GB)
  • RAM: 32 GB
  • Branch: pr-5140 with local patches
    The game is now reaching actual 2D gameplay, so this appears to be the next compatibility blocker. I can provide additional logs or test a proposed fix.
    One other observation: video playback drops performance to around 4 FPS before gameplay resumes at 60 FPS. This may be worth investigating separately.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6150227518 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6150227518). Originally posted by [amiraction0938](https://github.com/amiraction0938) on 2026-10-13T16:28:26Z. --- I've been testing Void Terrarium on AnyPS5 on Windows. The game now runs at 60 FPS through the menu and early gameplay, plays the real-time cutscene, returns to gameplay, and enters the 2D environment. Thanks to everyone who helped resolve the earlier blockers. - Menu, input, and SFX work at 60 FPS. - Tutorial and early gameplay run at 60 FPS. - The real-time cutscene plays, but FPS drops to around 4 during video playback. - The transition back to gameplay and entry into the 2D environment work. - A new crash occurs about 30 seconds into 2D gameplay. ``` [libc] unhandled exception 'St13runtime_error' thrown from 00007ffaaa9145c6 terminate called after throwing an instance of 'std::runtime_error' what(): H+8UBOwfScI not implemented FATAL: abort() (SIGABRT) ``` tools/nid_names.py resolves H+8UBOwfScI to __powidf2 and reports it as rename-ready. core/libs/prx/libc/src/Math.cpp:367 already contains the float variant, __powisf2_nid_postfix, but I couldn't find an exported double variant for __powidf2. 1. Is __powidf2 provided by the compiler runtime, or does AnyPS5 need its own implementation? 2. Should a matching __powidf2_nid_postfix be added next to __powisf2_nid_postfix? Is the expected signature double __powidf2(double base, int exponent)? 3. Is there a central mechanism for exporting compiler runtime NIDs such as __powidf2, __powisf2, and __divdi3, or must each be handled individually? - OS: Windows 11 Pro, Version 26H1 (Build 28000.3086) - CPU: Intel Core i5-14600K - GPU: NVIDIA RTX 5070 Ti (16 GB) - RAM: 32 GB - Branch: pr-5140 with local patches The game is now reaching actual 2D gameplay, so this appears to be the next compatibility blocker. I can provide additional logs or test a proposed fix. One other observation: video playback drops performance to around 4 FPS before gameplay resumes at 60 FPS. This may be worth investigating separately.
pushkarreddyy commented 2026-10-13 16:49:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-13T16:49:15Z.


@amiraction0938 Reaching 30 seconds into active 2D gameplay with cutscenes, menus, input, and SFX working at 60 FPS is an incredible milestone!

1. H+8UBOwfScI (__powidf2) is Already Fixed on main!

To answer your questions:

  1. Compiler runtime implementation: Yes, because AnyPS5 implements libc.prx natively, compiler-rt/libgcc runtime helpers like __powisf2 and __powidf2 are implemented natively in AnyPS5.
  2. Signature & Location: The exact matching function double APS5_VABI __powidf2_nid_postfix(double base, int exponent) was implemented in core/libs/prx/libc/src/Math.cpp with comprehensive test coverage.
  3. NID Export Mechanism: Functions ending in _nid_postfix have their names hashed automatically by AnyPS5's post-build tool (nid_patcher), mapping __powidf2 to H+8UBOwfScI.

How to get the fix right now:
__powidf2 was just merged into upstream origin/main in PR #5174!
I have also cleanly rebased PR #5140 onto latest main. If you pull the latest origin/main (or the updated pr-5140 branch), H+8UBOwfScI is already present and will resolve immediately!


2. Request for Continued Comprehensive Logs & Details

Please continue to always provide all details and logs you can extract, using both AnyPS5's built-in tools and host diagnostics:

  • Full logs to file: Always capture full logs without truncation (anyps5.exe <args> > anyps5_run.log 2>&1).
  • Full thread backtraces: Set APS5_HANG_DUMP_SECS=20, APS5_TRACE_SYNC=1, APS5_TRACE_WAITS=1 whenever a hang/stall occurs to dump every thread state.
  • GDB dumps on crashes: Run under gdb and capture bt full whenever an abort or exception is thrown.
  • Hardware & environment info: OS build, GPU driver, and sync flags (e.g. your note on the 4 FPS video playback drop is super helpful and points to video decoder pacing or presentation queue pacing during video stream decode).

Having every piece of diagnostic information makes pinpointing and solving these issues lightning fast!


3. Maintainer Heads-Up

cc @adriadam10 @MarcZX100:
With @amiraction0938's testing, Void Terrarium (PPSA03061) is now confirmed advancing through start-up, past menus and audio SFX, through cutscenes, and into 60 FPS 2D gameplay.

The two pull requests unblocking this progression are ready and 100% CI green:

  • PR #5219: feat(libSceAgc): ignore address argument on non-sample-dump events in sceAgcDcbEventWrite (resolves the initial render stall).
  • PR #5140: feat(libSceNgs2): support custom rack module id 0x1d (UserFx) and legacy callback dispatch (includes legacy callback dispatch, parameter validation, and unit tests, cleanly rebased on main and addressing the overlap with #5139).

Could you please review and merge #5219 and #5140 to land these title unblocks on main?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6150608019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6150608019). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-13T16:49:15Z. --- @amiraction0938 Reaching 30 seconds into active 2D gameplay with cutscenes, menus, input, and SFX working at 60 FPS is an incredible milestone! ### 1. `H+8UBOwfScI` (`__powidf2`) is Already Fixed on `main`! To answer your questions: 1. **Compiler runtime implementation**: Yes, because AnyPS5 implements `libc.prx` natively, compiler-rt/libgcc runtime helpers like `__powisf2` and `__powidf2` are implemented natively in AnyPS5. 2. **Signature & Location**: The exact matching function `double APS5_VABI __powidf2_nid_postfix(double base, int exponent)` was implemented in `core/libs/prx/libc/src/Math.cpp` with comprehensive test coverage. 3. **NID Export Mechanism**: Functions ending in `_nid_postfix` have their names hashed automatically by AnyPS5's post-build tool (`nid_patcher`), mapping `__powidf2` to `H+8UBOwfScI`. **How to get the fix right now:** `__powidf2` was just merged into upstream `origin/main` in **PR #5174**! I have also cleanly rebased **[PR #5140](https://github.com/boykopovar/AnyPS5/pull/5140)** onto latest `main`. If you pull the latest `origin/main` (or the updated `pr-5140` branch), `H+8UBOwfScI` is already present and will resolve immediately! --- ### 2. Request for Continued Comprehensive Logs & Details Please continue to **always provide all details and logs you can extract**, using both AnyPS5's built-in tools and host diagnostics: - **Full logs to file**: Always capture full logs without truncation (`anyps5.exe <args> > anyps5_run.log 2>&1`). - **Full thread backtraces**: Set `APS5_HANG_DUMP_SECS=20`, `APS5_TRACE_SYNC=1`, `APS5_TRACE_WAITS=1` whenever a hang/stall occurs to dump every thread state. - **GDB dumps on crashes**: Run under `gdb` and capture `bt full` whenever an abort or exception is thrown. - **Hardware & environment info**: OS build, GPU driver, and sync flags (e.g. your note on the 4 FPS video playback drop is super helpful and points to video decoder pacing or presentation queue pacing during video stream decode). Having every piece of diagnostic information makes pinpointing and solving these issues lightning fast! --- ### 3. Maintainer Heads-Up cc @adriadam10 @MarcZX100: With `@amiraction0938`'s testing, *Void Terrarium* (PPSA03061) is now confirmed advancing through start-up, past menus and audio SFX, through cutscenes, and into 60 FPS 2D gameplay. The two pull requests unblocking this progression are ready and 100% CI green: - **[PR #5219](https://github.com/boykopovar/AnyPS5/pull/5219)**: `feat(libSceAgc): ignore address argument on non-sample-dump events in sceAgcDcbEventWrite` (resolves the initial render stall). - **[PR #5140](https://github.com/boykopovar/AnyPS5/pull/5140)**: `feat(libSceNgs2): support custom rack module id 0x1d (UserFx) and legacy callback dispatch` (includes legacy callback dispatch, parameter validation, and unit tests, cleanly rebased on `main` and addressing the overlap with #5139). Could you please review and merge #5219 and #5140 to land these title unblocks on `main`?
p3n1cillin commented 2026-10-13 20:04:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-13T20:04:36Z.


I ran PPSA03061 (Void Terrarium, my own dump) on Windows against main (dacd78525) plus the open PRs below. It runs for 150 s with no library stop: it creates its System save data, compiles its shaders and presents frames. Each step lists the stop without that PR and what the PR changes.

  1. #5153 (sceCesUcsProfileInitSJis1997Cp932) needs #5425.
    • The game's DT_NEEDED is libSceCesCs-module.prx (library libSceCes), not libSceCesCs.prx.
    • With #5153 alone, the relinker finds no provider for ZiDCxUUGbec, so the import gets an empty library name and the run still ends on FAIL: unresolved ELF import ZiDCxUUGbec.
    • With #5425 building libSceCesCs-module from the same source, the import resolves.
    • The game had to be relinked after the libraries were rebuilt.
  2. #5140, not #5139. Next, sceNgs2RackCreate (custom submixer) passes one module, 0x1d (UserFx), whose option is 20 bytes:
    • Option words: 00000014 00000000 00000004 447a0000 00000000 (size 20, 0, 4, 1000.0f, 0). The rack has 1 buffer, 8 ports, all source buffers 0, and the module's state size is 0.
    • #5139 accepts a UserFx option only if it's 4 bytes or the UserFx2 size, so it throws Ngs2CheckCustomRack: invalid argument.
    • #5140 accepts any size of at least 4 bytes, and the game goes on.
  3. #5219. Next, the game stops on sceAgcDcbEventWrite: this event does not use an address. With #5219 it gets past it, and nothing else stops it in 150 s.

I also tried the run without #5155 and it still gets 90 s in with no stop, so #5155 isn't needed for start-up. It may still matter on exit, which I didn't test.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154121860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154121860). Originally posted by [p3n1cillin](https://github.com/p3n1cillin) on 2026-10-13T20:04:36Z. --- I ran PPSA03061 (Void Terrarium, my own dump) on Windows against `main` (dacd78525) plus the open PRs below. It runs for 150 s with no library stop: it creates its `System` save data, compiles its shaders and presents frames. Each step lists the stop without that PR and what the PR changes. 1. **#5153 (`sceCesUcsProfileInitSJis1997Cp932`) needs #5425.** - The game's `DT_NEEDED` is `libSceCesCs-module.prx` (library `libSceCes`), not `libSceCesCs.prx`. - With #5153 alone, the relinker finds no provider for `ZiDCxUUGbec`, so the import gets an empty library name and the run still ends on `FAIL: unresolved ELF import ZiDCxUUGbec`. - With #5425 building `libSceCesCs-module` from the same source, the import resolves. - The game had to be relinked after the libraries were rebuilt. 2. **#5140, not #5139.** Next, `sceNgs2RackCreate` (custom submixer) passes one module, `0x1d` (UserFx), whose option is 20 bytes: - Option words: `00000014 00000000 00000004 447a0000 00000000` (size 20, 0, 4, `1000.0f`, 0). The rack has 1 buffer, 8 ports, all source buffers 0, and the module's state size is 0. - #5139 accepts a UserFx option only if it's 4 bytes or the UserFx2 size, so it throws `Ngs2CheckCustomRack: invalid argument`. - #5140 accepts any size of at least 4 bytes, and the game goes on. 3. **#5219.** Next, the game stops on `sceAgcDcbEventWrite: this event does not use an address`. With #5219 it gets past it, and nothing else stops it in 150 s. I also tried the run without #5155 and it still gets 90 s in with no stop, so #5155 isn't needed for start-up. It may still matter on exit, which I didn't test.
p3n1cillin commented 2026-10-13 20:07:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-13T20:07:01Z.


Follow-up to my comment above: with the same build (main + #5153, #5425, #5140, #5219 and #5155), PPSA03061 reaches its title screen with sound playing, checked by eye on Windows.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154164454 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154164454). Originally posted by [p3n1cillin](https://github.com/p3n1cillin) on 2026-10-13T20:07:01Z. --- Follow-up to my comment above: with the same build (main + #5153, #5425, #5140, #5219 and #5155), PPSA03061 reaches its title screen with sound playing, checked by eye on Windows.
MarcZX10 commented 2026-10-13 20:17:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T20:17:15Z.


Thanks, that confirms PPSA03061 now reaches its title screen with audio on the tested Windows stack. The run includes several independent PRs, so it’s useful integration evidence, though it doesn’t isolate which change fixed the earlier stop.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6154352137 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154352137). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T20:17:15Z. --- Thanks, that confirms PPSA03061 now reaches its title screen with audio on the tested Windows stack. The run includes several independent PRs, so it’s useful integration evidence, though it doesn’t isolate which change fixed the earlier stop.
oneandonlydean commented 2026-10-14 02:45:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:45:34Z.


Status: #5065, #5153 and #5425 are on main, and #5155 was closed because its change is already on main via #5065. For the title screen this still needs #5219 and #5139, which replaced #5140 (closed in its favour; it also takes the 20-byte option this title passes). Both are open.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159732744 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6159732744). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T02:45:34Z. --- Status: #5065, #5153 and #5425 are on main, and #5155 was closed because its change is already on main via #5065. For the title screen this still needs #5219 and #5139, which replaced #5140 (closed in its favour; it also takes the 20-byte option this title passes). Both are open.
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#5055
No description provided.