Void Terrarium (PPSA03061) crashes on unresolved libc.prx import BKSCW2bCACA #5055
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T10:00:09Z.
Void Terrarium (PPSA03061) crashes on unresolved libc.prx import
BKSCW2bCACAHi,
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:Environment
bb9a4d8a2I'm using:
What I've checked so far
The game's
eboot.binis properly decrypted:The relinker also processes all the NIDs successfully:
The game's bundled
sce_module/libc.prxappears to be truncated. Itse_shoffpoints 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:
and let AnyPS5 use the
libc.prxbuilt from its source tree instead.All 124 system
.prxlibraries build successfully and are present inlibs/.At runtime, however, the only unresolved import I'm getting is:
from:
libSceAudioIn.prxalso fails to build with:but since that's related to audio input/microphone functionality, I don't think it's relevant to this game.
Questions
BKSCW2bCACAcorresponds to?libc.prxwith 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!
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T10:19:09Z.
Resolved the reported NID
BKSCW2bCACAto__cxa_thread_atexitand opened #5065 to export it through the existing thread-local destructor registration implementation. The focused Linux callback ABI regression passes, and the builtlibc.prxcontains the NID export. I have not run Void Terrarium, so the game-level result is still unverified.Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:13:50Z.
Thanks for fixing the previous issue!
BKSCW2bCACAis now resolved, and the game gets past that import.Now I'm running into another unresolved import:
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!
Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:17:46Z.
I ran the project's
tools/nid_names.pyand found an entry for the missing NID:So it looks like
ZiDCxUUGbecmaps tosceCesUcsProfileInitSJis1997Cp932fromlibSceCesCs. I'm guessingrename-readymeans 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 referenceslibSceCesCs-module.prx, while the library built from the source is namedlibSceCesCs.prx. Is the-modulevariant supposed to be a separate library, or should this be handled through an alias?Thanks!
Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:28:12Z.
The
ZiDCxUUGbecimport is now resolved. I addedsceCesUcsProfileInitSJis1997Cp932tolibSceCesCswith a CP932 profile and copied the library aslibSceCesCs-module.prxto match the name the game expects.The game now gets much further, but it crashes on an assertion in the MinGW runtime:
From what I can tell, this happens inside
__cxa_thread_atexit, which was exposed by PR #5065. The MinGW implementation seems to expectdsoto 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:
dsovalue.__dso_handleto the host's equivalent.__cxa_thread_atexitthat 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!
Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T11:36:01Z.
Great progress! I worked around the
__cxa_thread_atexitassertion locally by ignoring thedsoparameter and passingnullptrinstead: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:
The crash appears to come from
libSceNgs2.prx. It looks like the game is trying to use an NGS2 custom module with ID0x1dthat AnyPS5 doesn't currently implement.A couple of questions:
0x1dalready identified, and if so, what does it do?__cxa_thread_atexitworkaround look reasonable, or could ignoring the guest'sdsovalue 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!
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 thanSCE_NGS2_CUSTOM_MODULE_ID_USER_FX2:The constant is defined in
core/libs/prx/libSceNgs2.native/include/Ngs2Types.hpp:65:So AnyPS5 currently only handles
0x1f, while Void Terrarium requests0x1d.Does anyone know if
0x1dis a known NGS2 module, perhaps an older UserFx variant or a different effect type?I'm wondering what the best approach would be:
0x1dtoUSER_FX2, if they're compatible.0x1dseparately 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!
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.
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.
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 thedsoparameter, and adding CP932 support), and the game has made some significant progress:However, I've hit another blocker:
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!
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
sceAgcDcbEventWritevalidation, which only accepts a non-null address for event types0x38and0x39. Could you share theeventTypevalue 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.
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
UserFxcallback ABI matchingshadPS4'sngs2_custom.h:0x1dwithnullptror standardNgs2CustomModuleOptionheader.0x40001d00 | indexinstalls the 40-byte legacy callback structNgs2CustomVoiceUserFxParam({header, handler, user_data0, user_data1, user_data2}).Ngs2ProcessUserFx, honoring full flag progression (flags = 1on initial process,flags = 2on parameter change,flags = 0on continuation) and updatinghasSamples.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!
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:AnyPS5 currently restricts address-bearing PM4 packet
0x46(IT_EVENT_WRITE) solely to event types0x38and0x39. If the title passes any other event type alongside a non-null address,Agc::Command::Requirethrowsstd::runtime_error("sceAgcDcbEventWrite: this event does not use an address").@amiraction0938 Could you validate what
eventTypeandaddressthe title is passing? In your local build, you can drop this quick log right at the top ofsceAgcDcbEventWriteincore/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:Once you share the exact
eventTypehex code and surrounding log context, we can adjust the packet emission and size calculation for that event type!Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T14:33:20Z.
Thanks @pushkarreddyy for the
stderrsuggestion! I added the log and rebuilt. Here's what I see:So the game is calling
sceAgcDcbEventWritewith eventType=0x16 and a non-null address (0x00000002d2a10000). The current implementation only accepts non-null addresses for event types0x38and0x39, 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
eventTypevalues observed before the crash.Happy to test a fix!
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 = 0x16with non-null address0x00000002d2a10000.Yes, please! The additional details you offered would be extremely helpful:
eventTypevalues 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!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
eventTypevalues observed before the haltLooking through the log from the session, I see these
sceAgcDcbEventWritecalls:eventType=0x07with a null address — most commoneventType=0x38with a non-null address — accepted by the current implementationeventType=0x16with a non-null address — the call that originally triggered the exceptionI don't have an exact count, but
0x07and0x38were the dominant values, while0x16appeared right before the game stopped progressing.2. Surrounding log lines around the
0x16callFrom a fresh run with the
printfstill active: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 thesceAgcDcbEventWriteerror.It immediately reaches a new error in
libSceAgcDriver.prx, which appears to be a separate issue:The packet value is:
So it looks like the command is encoding the same event index
0x16with the cache-flush-related flag.Questions
Now that we know
0x16is emitted by the title, what is the correct handling for it inlibSceAgc? Should I keep my local change that accepts the non-null address and emits the event?What exactly is
0x16as a cache-flush event index? Is itCACHE_FLUSH_AND_INV_TS_EVENT(or related to it), and where is the list of accepted event indices defined inlibSceAgcDriver?If
0x16is 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!
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T14:52:04Z.
I checked the reported
0x416against 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 AMDGPUsid.h). GPUOpen PAL identifies event type0x16asCACHE_FLUSH_AND_INV_EVENTand 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 type0x16(currentPm4.cpp). These references don’t support accepting0x416as 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: currentsceAgcDcbEventWriterejects a non-null address for event type0x16. Could you share the exact local change that produced0x416, 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.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.
0x16is already supported inlibSceAgcDriverIf you check
core/libs/prx/libSceAgcDriver/Execution/src/Pm4.cpp:363:libSceAgcDriveralready accepts0x16as 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 indexNotice the requirement:
In PM4 packet
0x46,eventIndexis encoded in bits[10:8](packet[1] >> 8).Your packet had payload
0x00000416. Because0x400 >> 8 = 4, the driver saweventIndex = 4, which failedrequire(eventIndex == 0 || eventIndex == 7).This happened because in
core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:40:Note that
7,15,16are decimal (0x07,0x0f,0x10). Those three events are partial flushes that specifically requireeventIndex = 4(0x400u). If0x16was added to that branch or decimal16was conflated with hex0x16,eventIndexbecame0x400u.3. The Clean Fix in
libSceAgcIn
core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp:Simply remove the
Agc::Command::Require(address == nullptr, ...)line and leteventIndexremain0ufor0x16:Because
eventType == 0x16(22 in decimal) is not 7, 15, or 16,eventIndexevaluates to0u. The emitted packet payload will be0x00000016.libSceAgcDriverwill seeeventType = 0x16witheventIndex = 0, passrequire(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?
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 rebuiltlibSceAgcand the game now actually runs.Here's what I get:
FPS: 0.19 (3)However, the game appears to stall after those first 3 frames:
FATAL, exception, or abort in the logSo 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
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?
What additional logging would be most useful for diagnosing this? Should I enable a specific debug/trace option such as
AGC_TRACEor anyAPS5_*environment variables?Is
0.19 FPSpotentially 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!
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 inCommands.cppcovering sample dumps, partial flushes, and cache flushes with null and non-null addresses. Passes all conventions and CI checks (100% green).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
sceAgcDcbEventWritefix 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:
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 module0x1d, as0x1dhandles the active grain callback).The GPU queue may be waiting on an unsignaled memory label or fence (
WAIT_REG_MEMor presentation release). If a wait never satisfies, the command processor thread halts.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:
gdb -p <PID>), press Ctrl+C to break, and run: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 aWAIT_REG_MEMis 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!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=1and captured a full log. Here are the key findings.GPU side looks healthy:
WAIT_REG_MEMstalls or fence timeouts.idle queue=0x0appears periodically.The timing seems to be the key clue:
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.prxcurrently 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
libSceAudioInstub 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=1that 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!
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
libSceAudioInbuild error, and the automated way to dump every single thread backtrace:1. The
libSceAudioInBuild Error & RelevancelibSceAudioInis 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 bylibSceAudioOutandlibSceNgs2(which PR #5140 implements).libSceAudioIn:The reason MinGW reports
no exported namesis line 4 incore/libs/prx/libSceAudioIn/CMakeLists.txt: On MinGW GNUld,--exclude-libs,ALLsuppresses default symbol export when static libraries (SDL2-static) are linked. Simply comment out or remove line 4 incore/libs/prx/libSceAudioIn/CMakeLists.txt, andlibSceAudioIn.prxwill 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:
When the game runs for 20 seconds and idles, AnyPS5's
HangWatchdogwill automatically wake up, suspend all running threads, and print a complete, full backtrace of EVERY thread (all threads:) directly tostderrwith 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:
What to Share
Please share the complete, full list of all thread backtraces (e.g. from
APS5_HANG_DUMP_SECS=20oranyps5_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!Imported from boykopovar/AnyPS5. Originally posted by amiraction0938 on 2026-10-13T15:46:17Z.
Two updates — and some huge progress!
libSceAudioIn.prxnow builds successfully after removing the--exclude-libs,ALLlinker option. Thanks for the suggestion!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!
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
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
pr-5140branch.libSceAudioIn.prxnow builds successfully after removing the--exclude-libs,ALLlinker option.Questions
AddWaveformBlocksdefined inlibSceNgs2, and what conditions cause it to throwstd::invalid_argumentwith this message?UserFx/ custom NGS2 module support, or is it more likely to be an issue with voice or waveform setup for short sound effects?AddWaveformBlockshelp? 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!
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
AddWaveformBlocksis defined and what throwsLocation:
core/libs/prx/libSceNgs2.native/src/Voice.cpp:201(AddWaveformBlocks).Throw source: The exact message
what(): AddWaveformBlocks: invalid argumentcomes strictly from macroAPS5_INVALID_ARG_EXon line 204:(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:
voice.channels == 0: The sampler voice has not received a validSCE_NGS2_SAMPLER_VOICE_PARAM_SETUPcall yet (or its format passed 0 channels). In AnyPS5, sampler voices start withchannels = 0untilSetupSamplerassignsvoice.channels = format.num_channels.param.num_blocks != 0 && (param.blocks == nullptr || param.data == nullptr): The voice control call is adding blocks (num_blocks > 0), but eitherparam.blocksis null orparam.datais 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) viaSetupSamplerandAddWaveformBlocks.3. Diagnostic Prints to Add
Adding these prints in
core/libs/prx/libSceNgs2.native/src/Voice.cppwill immediately tell us the exact values passed when pressing Down:A. In
SetupSampler(~line 159):B. In
AddWaveformBlocks(~line 201):When you press Down and it hits the abort, please share those print lines! It will show right away whether
voice.channelsis 0 (a missing setup call or ordering mismatch) orparam.data == nullptr(null buffer handling).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:
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:Sharing the
bt fulloutput 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!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.
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.
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.
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 onmain!To answer your questions:
libc.prxnatively, compiler-rt/libgcc runtime helpers like__powisf2and__powidf2are implemented natively in AnyPS5.double APS5_VABI __powidf2_nid_postfix(double base, int exponent)was implemented incore/libs/prx/libc/src/Math.cppwith comprehensive test coverage._nid_postfixhave their names hashed automatically by AnyPS5's post-build tool (nid_patcher), mapping__powidf2toH+8UBOwfScI.How to get the fix right now:
__powidf2was just merged into upstreamorigin/mainin PR #5174!I have also cleanly rebased PR #5140 onto latest
main. If you pull the latestorigin/main(or the updatedpr-5140branch),H+8UBOwfScIis 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:
anyps5.exe <args> > anyps5_run.log 2>&1).APS5_HANG_DUMP_SECS=20,APS5_TRACE_SYNC=1,APS5_TRACE_WAITS=1whenever a hang/stall occurs to dump every thread state.gdband capturebt fullwhenever an abort or exception is thrown.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:
feat(libSceAgc): ignore address argument on non-sample-dump events in sceAgcDcbEventWrite(resolves the initial render stall).feat(libSceNgs2): support custom rack module id 0x1d (UserFx) and legacy callback dispatch(includes legacy callback dispatch, parameter validation, and unit tests, cleanly rebased onmainand addressing the overlap with #5139).Could you please review and merge #5219 and #5140 to land these title unblocks on
main?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 itsSystemsave data, compiles its shaders and presents frames. Each step lists the stop without that PR and what the PR changes.sceCesUcsProfileInitSJis1997Cp932) needs #5425.DT_NEEDEDislibSceCesCs-module.prx(librarylibSceCes), notlibSceCesCs.prx.ZiDCxUUGbec, so the import gets an empty library name and the run still ends onFAIL: unresolved ELF import ZiDCxUUGbec.libSceCesCs-modulefrom the same source, the import resolves.sceNgs2RackCreate(custom submixer) passes one module,0x1d(UserFx), whose option is 20 bytes: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.Ngs2CheckCustomRack: invalid argument.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.
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.
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.
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.