[GH-ISSUE #285] ShadSP4 doesn't launch Bloodborne on my system unless failed assertions & unreachable code are commented out #40

Closed
opened 2026-02-27 21:04:17 +03:00 by kerem · 14 comments
Owner

Originally created by @0xBA5E64 on GitHub (Jul 11, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/285

When trying to boot Bloodborne (CUSA03173 App ver. 6) in ShadPS4 on my system built from the latest commit (github.com/shadps4-emu/shadPS4@f3baad7fc8), shadPS4 yields with errors like this:

[Debug] <Critical> tls.cpp:operator():122: Assertion Failed!

-on the following three lines:
github.com/shadps4-emu/shadPS4@f3baad7fc8/src/core/tls.cpp (L122)
github.com/shadps4-emu/shadPS4@f3baad7fc8/src/video_core/amdgpu/resource.h (L69)
github.com/shadps4-emu/shadPS4@f3baad7fc8/src/video_core/texture_cache/texture_cache.cpp (L43)

Recompiling shadPS4 with these three lines commented out gets Bloodborne into menus, just as previously documented in George Moralis's latest showcase:
Screenshot_20240711_164848

System Info

  • OS: Arch Linux (Linux 6.9.8-arch1-1)
  • CPU: AMD Ryzen 9 7950X3D
  • GPU: AMD Radeon RX 7900 XTX
  • RAM: 64GB DDR5
Originally created by @0xBA5E64 on GitHub (Jul 11, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/285 When trying to boot Bloodborne (`CUSA03173` App ver. 6) in ShadPS4 on my system built from the latest commit (https://github.com/shadps4-emu/shadPS4/commit/f3baad7fc87bd4bf8840a4d1f50d30151b9c5580), shadPS4 yields with errors like this: ``` [Debug] <Critical> tls.cpp:operator():122: Assertion Failed! ``` -on the following three lines: https://github.com/shadps4-emu/shadPS4/blob/f3baad7fc87bd4bf8840a4d1f50d30151b9c5580/src/core/tls.cpp#L122 https://github.com/shadps4-emu/shadPS4/blob/f3baad7fc87bd4bf8840a4d1f50d30151b9c5580/src/video_core/amdgpu/resource.h#L69 https://github.com/shadps4-emu/shadPS4/blob/f3baad7fc87bd4bf8840a4d1f50d30151b9c5580/src/video_core/texture_cache/texture_cache.cpp#L43 Recompiling shadPS4 with these three lines commented out gets Bloodborne into menus, just as previously documented in George Moralis's latest [showcase](https://youtu.be/zoMO4N92Vss): ![Screenshot_20240711_164848](https://github.com/shadps4-emu/shadPS4/assets/26796481/4bb5a908-c40e-4525-97d7-3c50c2382054) ## System Info - **OS:** Arch Linux (Linux 6.9.8-arch1-1) - **CPU:** AMD Ryzen 9 7950X3D - **GPU:** AMD Radeon RX 7900 XTX - **RAM:** 64GB DDR5
kerem closed this issue 2026-02-27 21:04:17 +03:00
Author
Owner

@georgemoralis commented on GitHub (Jul 11, 2024):

we are aware of this , it's some bugz that need to be fixed that's why 0.1.1 is stil WIP :D

<!-- gh-comment-id:2223216638 --> @georgemoralis commented on GitHub (Jul 11, 2024): we are aware of this , it's some bugz that need to be fixed that's why 0.1.1 is stil WIP :D
Author
Owner

@raphaelthegreat commented on GitHub (Jul 11, 2024):

The first error is some condition hit by certain linux distros regarding TLS. The second is the main assert that blocks the boot on most systems and is related to unimplemented buffer format conversions. The final one haven't seen though, might be caused by your debugger

<!-- gh-comment-id:2223236576 --> @raphaelthegreat commented on GitHub (Jul 11, 2024): The first error is some condition hit by certain linux distros regarding TLS. The second is the main assert that blocks the boot on most systems and is related to unimplemented buffer format conversions. The final one haven't seen though, might be caused by your debugger
Author
Owner

@0xBA5E64 commented on GitHub (Jul 11, 2024):

The final one haven't seen though

Interesting... I suppose I'll have to look more into why that one in particular is happening.

might be caused by your debugger

I'm simply building with cmake --build . --parallel$(nproc), as per the Linux building instructions, no debugger afaik:

github.com/shadps4-emu/shadPS4@f3baad7fc8/documents/building-linux.md (L47-L50)

<!-- gh-comment-id:2223266046 --> @0xBA5E64 commented on GitHub (Jul 11, 2024): > The final one haven't seen though Interesting... I suppose I'll have to look more into why that one in particular is happening. > might be caused by your debugger I'm simply building with `cmake --build . --parallel$(nproc)`, as per the Linux building instructions, no debugger afaik: https://github.com/shadps4-emu/shadPS4/blob/f3baad7fc87bd4bf8840a4d1f50d30151b9c5580/documents/building-linux.md?plain=1#L47-L50
Author
Owner

@0xBA5E64 commented on GitHub (Jul 15, 2024):

UPDATE: https://github.com/shadps4-emu/shadPS4/pull/293 fixed the first two issues for me, leaving me with just the third, supposedly 'unique' error;

[Debug] <Critical> texture_cache.cpp:GuestFaultSignalHandler:43: Unreachable code!

Full log: CUSA03173.log

Interestingly, commenting out said line from the source now no longer seems to let the game to boot anymore...

<!-- gh-comment-id:2229106928 --> @0xBA5E64 commented on GitHub (Jul 15, 2024): **UPDATE:** https://github.com/shadps4-emu/shadPS4/pull/293 fixed the first two issues for me, leaving me with just the third, supposedly 'unique' error; ``` [Debug] <Critical> texture_cache.cpp:GuestFaultSignalHandler:43: Unreachable code! ``` Full log: [`CUSA03173.log`](https://github.com/user-attachments/files/16238525/CUSA03173.log) Interestingly, commenting out said line from the source now no longer seems to let the game to boot anymore...
Author
Owner

@raphaelthegreat commented on GitHub (Jul 15, 2024):

The PR you linked also removed a hack I added for BB to boot on linux. You can find the commit and reapply it if you want to test it locally. But it breaks a bunch of other games so I need to implement that properly

<!-- gh-comment-id:2229427391 --> @raphaelthegreat commented on GitHub (Jul 15, 2024): The PR you linked also removed a hack I added for BB to boot on linux. You can find the commit and reapply it if you want to test it locally. But it breaks a bunch of other games so I need to implement that properly
Author
Owner

@VasylBaran commented on GitHub (Jul 15, 2024):

@0xBA5E64 completely unrelated, but what tool do you use to show these on-screen performance metrics on Linux? Thank you! ;-)

<!-- gh-comment-id:2229465814 --> @VasylBaran commented on GitHub (Jul 15, 2024): @0xBA5E64 completely unrelated, but what tool do you use to show these on-screen performance metrics on Linux? Thank you! ;-)
Author
Owner

@0xBA5E64 commented on GitHub (Jul 16, 2024):

@VasylBaran That right there is MangoHud. You can either run it as a wrapper for most OpenGL/Vulkan Programs or configure it to run globally on your system, at which point it'll automatically hook into any such app you open through an environment variable.

<!-- gh-comment-id:2230036182 --> @0xBA5E64 commented on GitHub (Jul 16, 2024): @VasylBaran That right there is [MangoHud](https://github.com/flightlessmango/MangoHud). You can either run it as a wrapper for most OpenGL/Vulkan Programs or configure it to run globally on your system, at which point it'll automatically hook into any such app you open through an environment variable.
Author
Owner

@gelson-zord commented on GitHub (Jul 17, 2024):

On my PC (Win11-3700X-3080Ti) Bloodborne serial CUSA00900 crash on booting in WIP 0.1.1. Maybe it's the same cause.
shad_log.txt

<!-- gh-comment-id:2232275693 --> @gelson-zord commented on GitHub (Jul 17, 2024): On my PC (Win11-3700X-3080Ti) Bloodborne serial `CUSA00900` crash on booting in WIP 0.1.1. Maybe it's the same cause. [shad_log.txt](https://github.com/user-attachments/files/16258672/shad_log.txt)
Author
Owner

@huntyboy102 commented on GitHub (Jul 17, 2024):

@gelson-zord I had the same issue with CUSA00900 when I was building with VS Code. Try building in QT. Not sure why this works but it seemed to have helped me.

<!-- gh-comment-id:2234360066 --> @huntyboy102 commented on GitHub (Jul 17, 2024): @gelson-zord I had the same issue with `CUSA00900` when I was building with VS Code. Try building in QT. Not sure why this works but it seemed to have helped me.
Author
Owner

@gelson-zord commented on GitHub (Jul 18, 2024):

@huntyboy102 I didn't build it, I just got the last build from Actions here. Could you share yours?

<!-- gh-comment-id:2236036631 --> @gelson-zord commented on GitHub (Jul 18, 2024): @huntyboy102 I didn't build it, I just got the last build from Actions here. Could you share yours?
Author
Owner

@huntyboy102 commented on GitHub (Jul 18, 2024):

@gelson-zord certainly. If you're in the discord just PM or ping me and I'll send something when I building their changes tonight.

<!-- gh-comment-id:2237193203 --> @huntyboy102 commented on GitHub (Jul 18, 2024): @gelson-zord certainly. If you're in the discord just PM or ping me and I'll send something when I building their changes tonight.
Author
Owner

@rafael-57 commented on GitHub (Aug 16, 2024):

shouldn't this be closed as fixed by now? The game boots

<!-- gh-comment-id:2294013895 --> @rafael-57 commented on GitHub (Aug 16, 2024): shouldn't this be closed as fixed by now? The game boots
Author
Owner

@Hermiten commented on GitHub (Sep 4, 2024):

Same question than @rafael-57

<!-- gh-comment-id:2328170998 --> @Hermiten commented on GitHub (Sep 4, 2024): Same question than @rafael-57
Author
Owner

@0xBA5E64 commented on GitHub (Sep 6, 2024):

This issue should indeed probably be closed. Although the game still doesn't boot on my system, the issues listed originally are no longer relevant.

<!-- gh-comment-id:2333980551 --> @0xBA5E64 commented on GitHub (Sep 6, 2024): This issue should indeed probably be closed. Although the game still doesn't boot on my system, the issues listed originally are no longer relevant.
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#40
No description provided.