[GH-ISSUE #3606] [APP BUG]: CUSA00557 TLoU #1077

Closed
opened 2026-02-27 21:09:49 +03:00 by kerem · 8 comments
Owner

Originally created by @Linear524 on GitHub (Sep 15, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3606

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

Image
The Last of Us Remastered is booting into main menu now, showing correct graphics and post effects !
But hangs as soon as emu tries to handle music with Atrac9Decode function.
Logs shows "ajm_at9.cpp:76 operator(): Assertion failed"
So it looks like only music decoding bug is breaking this title to get finally ingame ! :)

Reproduction Steps

Launch CUSA00557 with latest build 0.10.1 c106a98

Expected Behavior

No response

Specify OS Version

Windows 10 (22H2)

CPU

Ryzen5 7500F

GPU

Nvidia GeForce 4080

Amount of RAM in GB

32GB DDR5

Originally created by @Linear524 on GitHub (Sep 15, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3606 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug ![Image](https://github.com/user-attachments/assets/9989ae33-fc2c-4a6c-b0a8-1e9a1c8bdb11) The Last of Us Remastered is booting into main menu now, showing correct graphics and post effects ! But hangs as soon as emu tries to handle music with Atrac9Decode function. Logs shows "ajm_at9.cpp:76 operator(): Assertion failed" So it looks like only music decoding bug is breaking this title to get finally ingame ! :) ### Reproduction Steps Launch CUSA00557 with latest build 0.10.1 c106a98 ### Expected Behavior _No response_ ### Specify OS Version Windows 10 (22H2) ### CPU Ryzen5 7500F ### GPU Nvidia GeForce 4080 ### Amount of RAM in GB 32GB DDR5
kerem closed this issue 2026-02-27 21:09:49 +03:00
Author
Owner

@Missake212 commented on GitHub (Sep 15, 2025):

You chose the wrong issue template, could you post a log ?

<!-- gh-comment-id:3293111075 --> @Missake212 commented on GitHub (Sep 15, 2025): You chose the wrong issue template, could you post a log ?
Author
Owner

@Linear524 commented on GitHub (Sep 15, 2025):

shad_log.txt

<!-- gh-comment-id:3293474124 --> @Linear524 commented on GitHub (Sep 15, 2025): [shad_log.txt](https://github.com/user-attachments/files/22349260/shad_log.txt)
Author
Owner

@Linear524 commented on GitHub (Sep 15, 2025):

Forgot to mention one thing - while this title is loading> I can hear the wind sound ! So some sound effects are working fine, only music decoding (or emulating) is breaking the whole thing right now.
Graphics seems fine I guess :)

<!-- gh-comment-id:3293483099 --> @Linear524 commented on GitHub (Sep 15, 2025): Forgot to mention one thing - while this title is loading> I can hear the wind sound ! So some sound effects are working fine, only music decoding (or emulating) is breaking the whole thing right now. Graphics seems fine I guess :)
Author
Owner

@gandalfthewhite19890404 commented on GitHub (Sep 16, 2025):

From Discord:

[Debug] <Critical> ajm_at9.cpp:76 operator(): Assertion Failed!
Atrac9Decode failed ret = -0x7dffffff
-0x7dffffff = 2113929215 = ERR_UNPACK_REUSE_BAND_PARAMS_INVALID

And it comes from LibAtrac9, more specifically from this line:
https://github.com/shadps4-emu/ext-LibAtrac9/blob/ec8899dadf393f655f2871a94e0fe4b3d6220c9a/C/src/unpack.c#L69-L80

FirstInSuperframe = 1
ReuseBandParams = 1
BlockType = Mono
<!-- gh-comment-id:3294718085 --> @gandalfthewhite19890404 commented on GitHub (Sep 16, 2025): From Discord: ``` [Debug] <Critical> ajm_at9.cpp:76 operator(): Assertion Failed! Atrac9Decode failed ret = -0x7dffffff -0x7dffffff = 2113929215 = ERR_UNPACK_REUSE_BAND_PARAMS_INVALID And it comes from LibAtrac9, more specifically from this line: https://github.com/shadps4-emu/ext-LibAtrac9/blob/ec8899dadf393f655f2871a94e0fe4b3d6220c9a/C/src/unpack.c#L69-L80 FirstInSuperframe = 1 ReuseBandParams = 1 BlockType = Mono ```
Author
Owner

@aaalloc commented on GitHub (Sep 16, 2025):

After some investigation, it appears that TLoU have XVAG audio files that seems to be handled as At9, so thats why that error appears from LibAtrac9. vgmstream supports it

github.com/vgmstream/vgmstream@9db666eb0c/src/meta/xvag.c (L33)

/* XVAG - Sony's Scream Tool/Stream Creator format (God of War III, Ratchet & Clank Future, The Last of Us, Uncharted) */
VGMSTREAM* init_vgmstream_xvag(STREAMFILE* sf) {
...
<!-- gh-comment-id:3299640147 --> @aaalloc commented on GitHub (Sep 16, 2025): After some investigation, it appears that TLoU have XVAG audio files that seems to be handled as At9, so thats why that error appears from LibAtrac9. [vgmstream](https://github.com/vgmstream/vgmstream) supports it https://github.com/vgmstream/vgmstream/blob/9db666eb0c2275334ac68a2537a6a689aee792f2/src/meta/xvag.c#L33 ```c /* XVAG - Sony's Scream Tool/Stream Creator format (God of War III, Ratchet & Clank Future, The Last of Us, Uncharted) */ VGMSTREAM* init_vgmstream_xvag(STREAMFILE* sf) { ... ```
Author
Owner

@aaalloc commented on GitHub (Sep 19, 2025):

#3618 fix this issue

<!-- gh-comment-id:3313567367 --> @aaalloc commented on GitHub (Sep 19, 2025): #3618 fix this issue
Author
Owner

@Linear524 commented on GitHub (Sep 23, 2025):

Yup !
#3618 fixed ajm music issue. Now main menu works perfect ! Every option is accessible and every mode mode change is working (even HDR switch).
But now this title hangs after new game start as soon as emu tries to reach first video cutscene...

Image
Image
Image
Image

shad_log.txt

<!-- gh-comment-id:3324629392 --> @Linear524 commented on GitHub (Sep 23, 2025): Yup ! #3618 fixed ajm music issue. Now main menu works perfect ! Every option is accessible and every mode mode change is working (even HDR switch). But now this title hangs after new game start as soon as emu tries to reach first video cutscene... ![Image](https://github.com/user-attachments/assets/82eba3a2-a3ec-476d-a360-11e2d87da072) ![Image](https://github.com/user-attachments/assets/c5a52ee7-0a8c-4745-af99-ce2301b8dfb8) ![Image](https://github.com/user-attachments/assets/96edc63d-5311-4e6c-8fa4-ad9df350f407) ![Image](https://github.com/user-attachments/assets/4c4cbf55-e1d8-4dc1-b374-07e8d45e8abc) [shad_log.txt](https://github.com/user-attachments/files/22498022/shad_log.txt)
Author
Owner

@Linear524 commented on GitHub (Sep 23, 2025):

Here is one more thing I discovered - if DMA is turned ON, then some new error appear in the logs:

Image

P.S. - I feel ShadPS4 is close to perfect emulation of this best version of TLoU :)
Graphics renders fine I guess :)

<!-- gh-comment-id:3324649832 --> @Linear524 commented on GitHub (Sep 23, 2025): Here is one more thing I discovered - if DMA is turned ON, then some new error appear in the logs: ![Image](https://github.com/user-attachments/assets/f528f064-980d-4e34-8021-714a6a131c44) P.S. - I feel ShadPS4 is close to perfect emulation of this best version of TLoU :) Graphics renders fine I guess :)
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1077
No description provided.