ASTRO BOT (PPSA21564): SoundManager asserts defaultBusses.size() == 1 during start-up (main 1be0a7ce) #3480

Closed
opened 2026-10-11 11:18:53 +00:00 by StarMrGamer · 2 comments
StarMrGamer commented 2026-10-11 11:18:53 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-11T11:18:53Z.


ASTRO BOT (PPSA21564, content 01.007.000) stops during start-up on main (1be0a7ce): its own assertion defaultBusses.size() == 1 (SoundManager.cpp:306) fires and the process exits.

What happens

About 30–45 s into start-up, every run:

ASSERT: D:\asobi\6.0\source\engine\app\Game\Sound\SoundManager.cpp:306
Assertion failed: defaultBusses.size() == 1

Start-up runs far before it: the relink resolves all imports, shaders compile, VideoOut presents.

Root cause (found)

The title builds asset paths containing a literal %ASOBI_ROOT% token and passes them unresolved to the file API, for example /host/%ASOBI_ROOT%/target/data/common/sound/config.xml. The sound configuration therefore never loads, the sound system builds no default buses, and the assertion above fires.

Making those paths resolve removes the assertion — verified locally: the game passes audio initialisation, memory settles, and start-up continues for minutes.

Notes on the fix layer

  • Serving ASOBI_ROOT through the guest environment alone does not help: the title does not expand the token itself.
  • Expanding %VAR% inside libc path handling works but is the wrong layer — %...% expansion is not kernel/libc behaviour and would change the meaning of any path containing two % signs (review discussion in #3959 and #4274, both closed).
  • The behaviour looks like /host mount semantics: paths under /host are resolved with the token substituted at the mount/translation layer. A fix should implement that general behaviour, not a title-specific expansion.

Environment

  • Host: CachyOS (Linux 7.2.9), AMD Ryzen 5 7500F, gcc 16.2.1, AMD Radeon RX 7800 XT, RADV Mesa 26.2.4.
  • Build: main 1be0a7ce, Release, -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON.
  • Could not verify Windows or macOS.

Later stops (separate issues)

With the assertion removed, start-up continues and two further problems appear: the scene renders black at full frame rate (root-caused to a compute shader being refused storage access to a depth surface — #1409, fix #425), and later the title asserts prop->m_pParent == this.

Related: #271 (title import announce).

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5800570583 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3480). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-11T11:18:53Z. --- **ASTRO BOT (PPSA21564, content 01.007.000) stops during start-up on `main` (`1be0a7ce`): its own assertion `defaultBusses.size() == 1` (`SoundManager.cpp:306`) fires and the process exits.** ### What happens About 30–45 s into start-up, every run: ``` ASSERT: D:\asobi\6.0\source\engine\app\Game\Sound\SoundManager.cpp:306 Assertion failed: defaultBusses.size() == 1 ``` Start-up runs far before it: the relink resolves all imports, shaders compile, `VideoOut` presents. ### Root cause (found) The title builds asset paths containing a literal `%ASOBI_ROOT%` token and passes them unresolved to the file API, for example `/host/%ASOBI_ROOT%/target/data/common/sound/config.xml`. The sound configuration therefore never loads, the sound system builds no default buses, and the assertion above fires. Making those paths resolve removes the assertion — verified locally: the game passes audio initialisation, memory settles, and start-up continues for minutes. ### Notes on the fix layer - Serving `ASOBI_ROOT` through the guest environment alone does **not** help: the title does not expand the token itself. - Expanding `%VAR%` inside libc path handling works but is the wrong layer — `%...%` expansion is not kernel/libc behaviour and would change the meaning of any path containing two `%` signs (review discussion in #3959 and #4274, both closed). - The behaviour looks like `/host` mount semantics: paths under `/host` are resolved with the token substituted at the mount/translation layer. A fix should implement that general behaviour, not a title-specific expansion. ### Environment - Host: CachyOS (Linux 7.2.9), AMD Ryzen 5 7500F, gcc 16.2.1, AMD Radeon RX 7800 XT, RADV Mesa 26.2.4. - Build: `main` `1be0a7ce`, Release, `-DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON`. - Could not verify Windows or macOS. ### Later stops (separate issues) With the assertion removed, start-up continues and two further problems appear: the scene renders black at full frame rate (root-caused to a compute shader being refused storage access to a depth surface — #1409, fix #425), and later the title asserts `prop->m_pParent == this`. Related: #271 (title import announce). Written with AI assistance.
renzipego-cpu commented 2026-10-17 20:41:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by renzipego-cpu on 2026-10-17T20:41:04Z.


Windows reproduction of the same stop, with the fault that follows it (the report above could not verify Windows):

ASSERT: D:\asobi\6.0\source\engine\app\Game\Sound\SoundManager.cpp:306
Assertion failed: defaultBusses.size() == 1

FATAL: unhandled exception 0xc0000005 on thread 4032 ''
  rip 0x0000000140f6b40a eboot.exe+0xf6b40a
  read of 0xffffffffffffffff

Windows, RTX 3060, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, title relinked with --registry, libraries from libs. The assert fires first; the 0xc0000005 (read of 0xffffffffffffffff at eboot.exe+0xf6b40a) is what terminates the process right after, so it looks like a poisoned pointer in the assert's cleanup path, not a separate stop.

@StarMrGamer - your Round 10 fix (commit 6ec3c56dcb01f00e9d66ac8b968aa9bd4d69af15: ExpandEnvironmentVariables() for %VAR% in libc/src/General.cpp wired into Resolve(), the AudioOut2 port/speaker parity and the AudioOut2PortState test) does not appear to be pushed anywhere: the commit is not fetchable and your fork's branches (main, ci/public-lint-gated-builds, feat/aio-poll-requests, feat/no-ingame-shaders-recomp, fix/relinker-syscall-number, fix/windows-host-import-texture-reuploads) don't contain it.

Could you push it to a branch? If you do, I can carry it as a PR with your authorship preserved, and verify it end-to-end here on Windows against the title - my setup reproduces the assert on current main, so that would also cover the Windows gap in the evidence.

If you would rather not publish it, I will reimplement from your Round 10 description instead - but the carry keeps your attribution and your measured values, so pushing is the better path.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6240678921 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3480#issuecomment-6240678921). Originally posted by [renzipego-cpu](https://github.com/renzipego-cpu) on 2026-10-17T20:41:04Z. --- Windows reproduction of the same stop, with the fault that follows it (the report above could not verify Windows): ``` ASSERT: D:\asobi\6.0\source\engine\app\Game\Sound\SoundManager.cpp:306 Assertion failed: defaultBusses.size() == 1 FATAL: unhandled exception 0xc0000005 on thread 4032 '' rip 0x0000000140f6b40a eboot.exe+0xf6b40a read of 0xffffffffffffffff ``` Windows, RTX 3060, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, title relinked with `--registry`, libraries from `libs`. The assert fires first; the `0xc0000005` (read of `0xffffffffffffffff` at `eboot.exe+0xf6b40a`) is what terminates the process right after, so it looks like a poisoned pointer in the assert's cleanup path, not a separate stop. @StarMrGamer - your Round 10 fix (commit `6ec3c56dcb01f00e9d66ac8b968aa9bd4d69af15`: `ExpandEnvironmentVariables()` for `%VAR%` in `libc/src/General.cpp` wired into `Resolve()`, the AudioOut2 port/speaker parity and the `AudioOut2PortState` test) does not appear to be pushed anywhere: the commit is not fetchable and your fork's branches (`main`, `ci/public-lint-gated-builds`, `feat/aio-poll-requests`, `feat/no-ingame-shaders-recomp`, `fix/relinker-syscall-number`, `fix/windows-host-import-texture-reuploads`) don't contain it. Could you push it to a branch? If you do, I can carry it as a PR with your authorship preserved, and verify it end-to-end here on Windows against the title - my setup reproduces the assert on current main, so that would also cover the Windows gap in the evidence. If you would rather not publish it, I will reimplement from your Round 10 description instead - but the carry keeps your attribution and your measured values, so pushing is the better path. AI-assisted: yes
renzipego-cpu commented 2026-10-19 02:30:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by renzipego-cpu on 2026-10-19T02:30:27Z.


Your rework is carried as #7715 (authorship preserved). Rebase note: main landed 70ef3710f (guest environment starts empty, never reads the host's) after your branch base, so the rebase keeps the empty environment and seeds only the ASOBI_ROOT=app0 default; the host-seeding half of the branch was dropped, and the debt entry in docs/dev/debt/libc.md now records the exception. asobi_root_environment and guest_environment pass on Windows (WinLibs GCC 15.2.0 r7). Happy to fold in further changes if you have them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258384235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3480#issuecomment-6258384235). Originally posted by [renzipego-cpu](https://github.com/renzipego-cpu) on 2026-10-19T02:30:27Z. --- Your rework is carried as #7715 (authorship preserved). Rebase note: main landed 70ef3710f (guest environment starts empty, never reads the host's) after your branch base, so the rebase keeps the empty environment and seeds only the `ASOBI_ROOT=app0` default; the host-seeding half of the branch was dropped, and the debt entry in docs/dev/debt/libc.md now records the exception. `asobi_root_environment` and `guest_environment` pass on Windows (WinLibs GCC 15.2.0 r7). Happy to fold in further changes if you have them.
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#3480
No description provided.