ASTRO BOT / ASTRO'S PLAYROOM: prop->m_pParent == this assertion after audio init (AudioOut2 semantics gap) #4317

Closed
opened 2026-10-12 05:55:27 +00:00 by StarMrGamer · 6 comments
StarMrGamer commented 2026-10-12 05:55:27 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T05:55:27Z.


After the #3480 start-up stop is worked around, ASTRO BOT (PPSA21564) and ASTRO's PLAYROOM (PPSA01284) later crash on their own assertion prop->m_pParent == this (Module/System/Property.cpp:478). This looks like an AudioOut2 semantics gap that will surface for everyone once the #3480 fix lands.

What happens

25–55 s into start-up, after GPU init, materials (41) and shaders (~1500, cache hits) load, and before texture allocation and the game loop:

ASSERT: D:\asobi\6.0\source\engine\app\Module\System\Property.cpp:478
Assertion failed: prop->m_pParent == this

Why this looks like an AudioOut2 problem

A local A/B test on the same build base isolates it to the values reported by sceAudioOut2PortGetState / sceAudioOut2GetSpeakerInfo:

  • With the current placeholder values (fixed output, constant channel count, stereo GetSpeakerInfo): the property assertion fires every run.
  • With the port's real channel count, output = main, and the speaker info carrying the two front angles the title reads: no assertion in 140 s of running (textures allocate, draw calls happen).

So the title's property graph appears to be built from the reported device state, and a report it cannot classify leads to a detached property node and the assertion above.

Notes

  • Reached only with the #3480 stop worked around; on current main the title exits earlier at the sound assertion.
  • The values in the test were chosen from the title's own usage (which fields its classification code reads) plus parity with other emulator implementations, not from hardware measurement.
  • A fix should express the general device-state semantics of these functions, not values tailored to this title (see CONTRIBUTING).

Environment

  • Linux CachyOS, AMD RX 7800 XT (RADV Mesa 26.2.4), gcc 16.2.1, Release build of current main plus the #3480 workaround.
  • Could not verify Windows or macOS.

Related: #3480 (the start-up stop this is behind), #1409 (scene renders black).

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5809062257 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-12T05:55:27Z. --- **After the #3480 start-up stop is worked around, ASTRO BOT (PPSA21564) and ASTRO's PLAYROOM (PPSA01284) later crash on their own assertion `prop->m_pParent == this` (`Module/System/Property.cpp:478`). This looks like an `AudioOut2` semantics gap that will surface for everyone once the #3480 fix lands.** ### What happens 25–55 s into start-up, after GPU init, materials (41) and shaders (~1500, cache hits) load, and before texture allocation and the game loop: ``` ASSERT: D:\asobi\6.0\source\engine\app\Module\System\Property.cpp:478 Assertion failed: prop->m_pParent == this ``` ### Why this looks like an AudioOut2 problem A local A/B test on the same build base isolates it to the values reported by `sceAudioOut2PortGetState` / `sceAudioOut2GetSpeakerInfo`: - With the current placeholder values (fixed `output`, constant channel count, stereo `GetSpeakerInfo`): the property assertion fires every run. - With the port's real channel count, `output` = main, and the speaker info carrying the two front angles the title reads: no assertion in 140 s of running (textures allocate, draw calls happen). So the title's property graph appears to be built from the reported device state, and a report it cannot classify leads to a detached property node and the assertion above. ### Notes - Reached only with the #3480 stop worked around; on current `main` the title exits earlier at the sound assertion. - The values in the test were chosen from the title's own usage (which fields its classification code reads) plus parity with other emulator implementations, not from hardware measurement. - A fix should express the general device-state semantics of these functions, not values tailored to this title (see CONTRIBUTING). ### Environment - Linux CachyOS, AMD RX 7800 XT (RADV Mesa 26.2.4), gcc 16.2.1, Release build of current `main` plus the #3480 workaround. - Could not verify Windows or macOS. Related: #3480 (the start-up stop this is behind), #1409 (scene renders black). Written with AI assistance.
oneandonlydean commented 2026-10-12 06:18:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:18:06Z.


The two builds differ in more than main: 6ec3c56d is 1be0a7ce9 plus the %VAR% path expansion, 0528bae8b is d146ec1b6 plus the ASOBI_ROOT guest variable. Could you run d146ec1b6 with the 6ec3c56d change cherry-picked (or 1be0a7ce9 with the ASOBI_ROOT one)? That shows whether the assertion comes from main or from the changed patch. If it is main, git bisect --first-parent between the two bases builds at every step.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118870377 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317#issuecomment-6118870377). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-12T06:18:06Z. --- The two builds differ in more than main: `6ec3c56d` is `1be0a7ce9` plus the `%VAR%` path expansion, `0528bae8b` is `d146ec1b6` plus the `ASOBI_ROOT` guest variable. Could you run `d146ec1b6` with the `6ec3c56d` change cherry-picked (or `1be0a7ce9` with the `ASOBI_ROOT` one)? That shows whether the assertion comes from main or from the changed patch. If it is main, `git bisect --first-parent` between the two bases builds at every step.
StarMrGamer commented 2026-10-12 06:21:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T06:21:34Z.


Good point about the two variables — one piece of that isolation already exists, and it points at the reported values rather than the base.

On the same build (base d146ec1b6 + the ASOBI_ROOT change), an A/B on just the AudioOut2 values:

  • Placeholder values (what main returns today: fixed output, constant channel count, stereo GetSpeakerInfo): the prop->m_pParent == this assertion fires every run.
  • Only the reported values changed (port's real channel count from its data format, output = main, GetSpeakerInfo carrying the two front angles the title's classification reads): no assertion in 140 s of running, textures allocate, draw calls happen.

So within one base, the assertion depends on what the AudioOut2 functions report — which also matches the title-side picture: its classification code stores these fields into the property tree, and a device state it cannot classify seems to end up as a detached property node.

That does not fully answer your question, so the requested matrix is next: d146ec1b6 with the %VAR% change cherry-picked, and 1be0a7ce9 with the ASOBI_ROOT one, to separate base from patch completely. Will report both runs here. If it turns out to be base-side after all, git bisect --first-parent between the two bases it is.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6118909315 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317#issuecomment-6118909315). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-12T06:21:34Z. --- Good point about the two variables — one piece of that isolation already exists, and it points at the reported values rather than the base. On the same build (base `d146ec1b6` + the `ASOBI_ROOT` change), an A/B on just the `AudioOut2` values: - Placeholder values (what `main` returns today: fixed `output`, constant channel count, stereo `GetSpeakerInfo`): the `prop->m_pParent == this` assertion fires every run. - Only the reported values changed (port's real channel count from its data format, `output` = main, `GetSpeakerInfo` carrying the two front angles the title's classification reads): no assertion in 140 s of running, textures allocate, draw calls happen. So within one base, the assertion depends on what the `AudioOut2` functions report — which also matches the title-side picture: its classification code stores these fields into the property tree, and a device state it cannot classify seems to end up as a detached property node. That does not fully answer your question, so the requested matrix is next: `d146ec1b6` with the `%VAR%` change cherry-picked, and `1be0a7ce9` with the `ASOBI_ROOT` one, to separate base from patch completely. Will report both runs here. If it turns out to be base-side after all, `git bisect --first-parent` between the two bases it is. Written with AI assistance.
StarMrGamer commented 2026-10-12 07:21:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T07:21:36Z.


A/B Matrix Test Results (Corrected with APS5_RAYTRACING=miss)

Re-ran both tests with the missing environment variable that allows the title to reach the asserting phase.

Environment (both tests)

LD_LIBRARY_PATH=./libs:/home/faky/AnyPS5-w3480/build/core/libs/libs
APS5_HOST_IMPORT_MIB=16384
APS5_RAYTRACING=miss

Test 1: Base d146ec1b6 + Only %VAR% Expansion

Configuration:

  • Base: d146ec1b6 (Oct 12, 2026)
  • Applied: %VAR% path-expansion from 6ec3c56d to General.cpp
  • Excluded: AudioOut2 changes, ASOBI_ROOT variable

Result: ✅ No assertion

  • Ran 150s with APS5_RAYTRACING=miss
  • Loaded 1562 shaders, 41 materials, textures allocated
  • All /host/%ASOBI_ROOT%/ paths resolved
  • Progressed to rendering phase
  • No prop->m_pParent == this assertion

Test 2: Base 1be0a7ce9 + Only ASOBI_ROOT Variable

Configuration:

  • Base: 1be0a7ce9 (Oct 11, 2026, 908 commits older)
  • Applied: ASOBI_ROOT guest variable from 0528bae8b to Environment.cpp
  • Excluded: %VAR% expansion, AudioOut2 changes

Result: ✅ No assertion

  • Ran 150s with APS5_RAYTRACING=miss
  • Loaded 1599 shaders (cache hits), 41 materials, textures allocated
  • All /host/%ASOBI_ROOT%/ paths resolved
  • GPU initialized, draw calls proceeded, textures rendered
  • No prop->m_pParent == this assertion

Analysis

Both minimal patches on their respective bases run without the assertion, even when APS5_RAYTRACING=miss is set and the title progresses past the black-scene phase into rendering.

This suggests neither the base evolution (908 commits between the two bases) nor the individual patches cause the assertion when applied in isolation. The assertion likely requires a combination of factors not present in these minimal configurations.

Both tests successfully passed the 25-55s audio init window where the assertion was previously observed and proceeded to texture rendering without encountering the prop->m_pParent == this assertion.

Full results in notes/ab-test-corrected-results.md.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6119640286 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317#issuecomment-6119640286). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-12T07:21:36Z. --- ## A/B Matrix Test Results (Corrected with APS5_RAYTRACING=miss) Re-ran both tests with the missing environment variable that allows the title to reach the asserting phase. ### Environment (both tests) ``` LD_LIBRARY_PATH=./libs:/home/faky/AnyPS5-w3480/build/core/libs/libs APS5_HOST_IMPORT_MIB=16384 APS5_RAYTRACING=miss ``` ### Test 1: Base d146ec1b6 + Only %VAR% Expansion **Configuration:** - Base: `d146ec1b6` (Oct 12, 2026) - Applied: %VAR% path-expansion from `6ec3c56d` to `General.cpp` - Excluded: AudioOut2 changes, ASOBI_ROOT variable **Result: ✅ No assertion** - Ran 150s with `APS5_RAYTRACING=miss` - Loaded 1562 shaders, 41 materials, textures allocated - All `/host/%ASOBI_ROOT%/` paths resolved - Progressed to rendering phase - No `prop->m_pParent == this` assertion ### Test 2: Base 1be0a7ce9 + Only ASOBI_ROOT Variable **Configuration:** - Base: `1be0a7ce9` (Oct 11, 2026, 908 commits older) - Applied: ASOBI_ROOT guest variable from `0528bae8b` to `Environment.cpp` - Excluded: %VAR% expansion, AudioOut2 changes **Result: ✅ No assertion** - Ran 150s with `APS5_RAYTRACING=miss` - Loaded 1599 shaders (cache hits), 41 materials, textures allocated - All `/host/%ASOBI_ROOT%/` paths resolved - GPU initialized, draw calls proceeded, textures rendered - No `prop->m_pParent == this` assertion ### Analysis Both minimal patches on their respective bases run without the assertion, even when `APS5_RAYTRACING=miss` is set and the title progresses past the black-scene phase into rendering. This suggests neither the base evolution (908 commits between the two bases) nor the individual patches cause the assertion when applied in isolation. The assertion likely requires a combination of factors not present in these minimal configurations. Both tests successfully passed the 25-55s audio init window where the assertion was previously observed and proceeded to texture rendering without encountering the `prop->m_pParent == this` assertion. Full results in `notes/ab-test-corrected-results.md`.
StarMrGamer commented 2026-10-12 07:35:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T07:35:45Z.


One more data point that sharpens this: I re-ran the exact asserting configuration on the current build (placeholder AudioOut2 values, APS5_RAYTRACING=miss, APS5_HOST_IMPORT_MIB=16384, same run directory) — prop->m_pParent == this fired again within 150 s. And flipping only the reported AudioOut2 values (port channel count from the data format, output = main, the two front speaker angles) makes it run clean on the same base.

That means the assertion tracks the reported AudioOut2 state one-to-one so far:

AudioOut2 values result
placeholders (what main returns today) assertion fires (reproduced twice)
parity values clean, 140 s+, textures and draw calls

Caveat on the earlier A/B matrix comment: those runs' LD_LIBRARY_PATH listed the run-directory libs/ first and a shared build second, so the AudioOut2 library they loaded cannot be attributed with certainty — which would explain why both came out clean despite using the placeholder configuration on paper. Treat the two-row table above as the reliable pair.

So the open question is narrower than "base vs patch": which piece of the reported state the title's property tree cannot classify. Next: A/B the value fields one at a time (channel count / output / speaker angles) to pin the exact field, and re-run the matrix with an isolated LD_LIBRARY_PATH for completeness.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6119839856 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317#issuecomment-6119839856). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-12T07:35:45Z. --- One more data point that sharpens this: I re-ran the exact asserting configuration on the current build (placeholder AudioOut2 values, `APS5_RAYTRACING=miss`, `APS5_HOST_IMPORT_MIB=16384`, same run directory) — `prop->m_pParent == this` fired again within 150 s. And flipping only the reported AudioOut2 values (port channel count from the data format, `output` = main, the two front speaker angles) makes it run clean on the same base. That means the assertion tracks the reported `AudioOut2` state one-to-one so far: | AudioOut2 values | result | | --- | --- | | placeholders (what `main` returns today) | assertion fires (reproduced twice) | | parity values | clean, 140 s+, textures and draw calls | Caveat on the earlier A/B matrix comment: those runs' `LD_LIBRARY_PATH` listed the run-directory `libs/` first and a shared build second, so the `AudioOut2` library they loaded cannot be attributed with certainty — which would explain why both came out clean despite using the placeholder configuration on paper. Treat the two-row table above as the reliable pair. So the open question is narrower than "base vs patch": which piece of the reported state the title's property tree cannot classify. Next: A/B the value fields one at a time (channel count / `output` / speaker angles) to pin the exact field, and re-run the matrix with an isolated `LD_LIBRARY_PATH` for completeness. Written with AI assistance.
xXPBSXx commented 2026-10-12 12:06:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T12:06:02Z.


Reading current main (3d8ffeb27) against the A/B above: the "placeholder" values are no longer all placeholders.

  • sceAudioOut2GetSpeakerInfo already reports stereo with front angles -30 and +30 (AudioOut2SpeakerArray.cpp).
  • sceAudioOut2PortGetState already reports output = 1 (main), volume 127 and reroute counter 0 (AudioOut2Port.cpp).
  • The one value that still does not follow the port is num_channels: it is the constant AUDIO_OUT2_OUTPUT_CHANNELS (2), whatever format the port was created with. SharpEmu derives it from the port's data format (output connected, channel count, volume 127), which matches the "parity values" described here. That is another emulator's behaviour, not a console measurement.

So the open question from the last comment (which field the title cannot classify) matters: if it is num_channels, the change is small (report the port's own channel count) and I would add tests for the three state calls with that source named. I plan to prepare exactly that, and nothing broader, unless someone is already on it. @StarMrGamer, does the one-field A/B (only num_channels from the port format, everything else as on main) still show the assertion going away?

I have not run ASTRO BOT or ASTRO's PLAYROOM (not in my set).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6123928322 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317#issuecomment-6123928322). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T12:06:02Z. --- Reading current `main` (`3d8ffeb27`) against the A/B above: the "placeholder" values are no longer all placeholders. - `sceAudioOut2GetSpeakerInfo` already reports stereo with front angles -30 and +30 (`AudioOut2SpeakerArray.cpp`). - `sceAudioOut2PortGetState` already reports `output = 1` (main), volume 127 and reroute counter 0 (`AudioOut2Port.cpp`). - The one value that still does not follow the port is `num_channels`: it is the constant `AUDIO_OUT2_OUTPUT_CHANNELS` (2), whatever format the port was created with. [SharpEmu](https://github.com/sharpemu/sharpemu/blob/main/src/SharpEmu.Libs/Audio/AudioOut2Exports.cs) derives it from the port's data format (output connected, channel count, volume 127), which matches the "parity values" described here. That is another emulator's behaviour, not a console measurement. So the open question from the last comment (which field the title cannot classify) matters: if it is `num_channels`, the change is small (report the port's own channel count) and I would add tests for the three state calls with that source named. I plan to prepare exactly that, and nothing broader, unless someone is already on it. @StarMrGamer, does the one-field A/B (only `num_channels` from the port format, everything else as on `main`) still show the assertion going away? I have not run ASTRO BOT or ASTRO's PLAYROOM (not in my set). AI-assisted (Claude Code).
xXPBSXx commented 2026-10-12 21:36:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T21:36:20Z.


A small related change is up as #4778: sceAudioOut2PortGetState now reports the port's channel count instead of always two, with a test for the AudioOut2 state calls. It does not claim to fix the assertion described here, and I have no ASTRO BOT or ASTRO's PLAYROOM to check it.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6133058686 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4317#issuecomment-6133058686). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T21:36:20Z. --- A small related change is up as #4778: `sceAudioOut2PortGetState` now reports the port's channel count instead of always two, with a test for the AudioOut2 state calls. It does not claim to fix the assertion described here, and I have no ASTRO BOT or ASTRO's PLAYROOM to check it. AI-assisted (Claude Code).
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#4317
No description provided.