[GH-ISSUE #687] [CUSA03173] Bloodborne freezes on death / warping #166

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

Originally created by @Julioevm on GitHub (Aug 31, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/687

Hey there,

I've been following the development and testing different builds. The game gets in-game and as of current builds (bb-hacks) also with this build its quite playable. However, theres an issue that keeps happening consistently. Everytime I die, or try to warp to the hunters dream the loading screen freezes. It seems to be always in the same moment, with a list of '[Core.Linker] linker.cpp:InitTlsForThread:358: TLS user malloc called, using std::malloc' errors in the log.

I have to kill the process, it doesn't really crash. And curiously, I can warp from hunters dream to the Yarnham after the hunter first goes to the hunters dream.

I have both AMD cpu and gpu: RX 6650 XT and Ryzen 7 7800X3D.

image
image
Logs:
shad_log.txt

Originally created by @Julioevm on GitHub (Aug 31, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/687 Hey there, I've been following the development and testing different builds. The game gets in-game and as of current builds ([bb-hacks](https://github.com/shadps4-emu/shadPS4/actions/runs/10640128556)) also with this [build ](https://github.com/rafael-57/bb-hacks-pino/actions/runs/10640780519)its quite playable. However, theres an issue that keeps happening consistently. Everytime I die, or try to warp to the hunters dream the loading screen freezes. It seems to be always in the same moment, with a list of '[Core.Linker] <Error> linker.cpp:InitTlsForThread:358: TLS user malloc called, using std::malloc' errors in the log. I have to kill the process, it doesn't really crash. And curiously, I can warp from hunters dream to the Yarnham after the hunter first goes to the hunters dream. I have both AMD cpu and gpu: RX 6650 XT and Ryzen 7 7800X3D. ![image](https://github.com/user-attachments/assets/c4b67878-1b48-439b-b756-947d02020213) ![image](https://github.com/user-attachments/assets/5daa54ac-aa2c-4118-9e7d-663176c555fc) Logs: [shad_log.txt](https://github.com/user-attachments/files/16824448/shad_log.txt)
kerem closed this issue 2026-02-27 21:04:55 +03:00
Author
Owner

@voguelike commented on GitHub (Aug 31, 2024):

just here to corroborate the report. regardless build or permutations of mods, game files, and configurations, dying or warping causes the game to freeze until the process is manually aborted.

i'm also running amd everything (5700x3d, 6750xt)

<!-- gh-comment-id:2322862654 --> @voguelike commented on GitHub (Aug 31, 2024): just here to corroborate the report. regardless build or permutations of mods, game files, and configurations, dying or warping causes the game to freeze until the process is manually aborted. i'm also running amd everything (5700x3d, 6750xt)
Author
Owner

@jerseydevil1box1 commented on GitHub (Aug 31, 2024):

im also getting crash on warp but with AMD Ryzen 7 and NIVIDIA Geforce RTX 2060

<!-- gh-comment-id:2322880748 --> @jerseydevil1box1 commented on GitHub (Aug 31, 2024): im also getting crash on warp but with AMD Ryzen 7 and NIVIDIA Geforce RTX 2060
Author
Owner

@MaxStive commented on GitHub (Aug 31, 2024):

I am also get this freeze but on AMD ryzen 7 and Nvidia Geforce RTX 3060ti, maybe, this freeze bound with Ryzen 7

<!-- gh-comment-id:2322881828 --> @MaxStive commented on GitHub (Aug 31, 2024): I am also get this freeze but on AMD ryzen 7 and Nvidia Geforce RTX 3060ti, maybe, this freeze bound with Ryzen 7
Author
Owner

@AnimatedG commented on GitHub (Aug 31, 2024):

Same problem here with AMD ryzen 7 1700x + Gtx 1080ti

<!-- gh-comment-id:2322913615 --> @AnimatedG commented on GitHub (Aug 31, 2024): Same problem here with AMD ryzen 7 1700x + Gtx 1080ti
Author
Owner

@ghost commented on GitHub (Aug 31, 2024):

same happens for me on Ryzen 7 3060ti

<!-- gh-comment-id:2323017985 --> @ghost commented on GitHub (Aug 31, 2024): same happens for me on Ryzen 7 3060ti
Author
Owner

@Ishikudeska commented on GitHub (Aug 31, 2024):

anytime you warp/die it freezes and crashes. it's due to:
[Debug] <Critical> liverpool.cpp:ProcessGraphics:180: Unreachable code! invalid PM4 type 0
So it isn't your hardware. It's a code-based issue (someone please correct me if I'm wrong)

<!-- gh-comment-id:2323024166 --> @Ishikudeska commented on GitHub (Aug 31, 2024): anytime you warp/die it freezes and crashes. it's due to: `[Debug] <Critical> liverpool.cpp:ProcessGraphics:180: Unreachable code! invalid PM4 type 0` So it isn't your hardware. It's a code-based issue (someone please correct me if I'm wrong)
Author
Owner

@voguelike commented on GitHub (Aug 31, 2024):

Use this build instead https://github.com/rafael-57/bb-hacks-pino/actions/workflows/windows-qt.yml

this only helps if your issue is a crash. if you would pay attention to the title of this issue you would see that this is about a freeze on death/warp not a crash which that build unfortunately does not fix. at least not for me.

<!-- gh-comment-id:2323053512 --> @voguelike commented on GitHub (Aug 31, 2024): > Use this build instead https://github.com/rafael-57/bb-hacks-pino/actions/workflows/windows-qt.yml this only helps if your issue is a crash. if you would pay attention to the title of this issue you would see that this is about a freeze on death/warp not a crash which that build unfortunately does not fix. at least not for me.
Author
Owner

@rafael-57 commented on GitHub (Sep 1, 2024):

I've collected log + call stack, I don't think it's much useful because I don't know where to put breakpoints for this
bb_warp_hang.txt

<!-- gh-comment-id:2323385131 --> @rafael-57 commented on GitHub (Sep 1, 2024): I've collected log + call stack, I don't think it's much useful because I don't know where to put breakpoints for this [bb_warp_hang.txt](https://github.com/user-attachments/files/16829396/bb_warp_hang.txt)
Author
Owner

@vigor-c commented on GitHub (Sep 1, 2024):

I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853.

<!-- gh-comment-id:2323487736 --> @vigor-c commented on GitHub (Sep 1, 2024): I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853.
Author
Owner

@Julioevm commented on GitHub (Sep 1, 2024):

I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853.

And do you have the issue too with newer builds of that user? I have the issue with bb-8, maybe I can try again with bb-5 and check...

<!-- gh-comment-id:2323488468 --> @Julioevm commented on GitHub (Sep 1, 2024): > I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853. And do you have the issue too with newer builds of that user? I have the issue with bb-8, maybe I can try again with bb-5 and check...
Author
Owner

@vigor-c commented on GitHub (Sep 1, 2024):

I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853.

And do you have the issue too with newer builds of that user? I have the issue with bb-8, maybe I can try again with bb-5 and check...

I just tried and it works fine with bb-8. Have you went through this guide: https://docs.google.com/document/d/17WixYgtwTdTeqL0NFKEqVrzCWu7Wr-x7/edit ?

I've also seen that people suggest using this driver version:
https://www.amd.com/en/resources/support-articles/release-notes/RN-RAD-WIN-AFMF2-TECH-Preview.html

Another person had it working with the 24.5.1 version.

I also used this mod to add working sounds: https://www.nexusmods.com/bloodborne/mods/34

<!-- gh-comment-id:2323506199 --> @vigor-c commented on GitHub (Sep 1, 2024): > > I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853. > > And do you have the issue too with newer builds of that user? I have the issue with bb-8, maybe I can try again with bb-5 and check... I just tried and it works fine with bb-8. Have you went through this guide: https://docs.google.com/document/d/17WixYgtwTdTeqL0NFKEqVrzCWu7Wr-x7/edit ? I've also seen that people suggest using this driver version: https://www.amd.com/en/resources/support-articles/release-notes/RN-RAD-WIN-AFMF2-TECH-Preview.html Another person had it working with the 24.5.1 version. I also used this mod to add working sounds: https://www.nexusmods.com/bloodborne/mods/34
Author
Owner

@Julioevm commented on GitHub (Sep 3, 2024):

I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853.

And do you have the issue too with newer builds of that user? I have the issue with bb-8, maybe I can try again with bb-5 and check...

I just tried and it works fine with bb-8. Have you went through this guide: https://docs.google.com/document/d/17WixYgtwTdTeqL0NFKEqVrzCWu7Wr-x7/edit ?

I've also seen that people suggest using this driver version: https://www.amd.com/en/resources/support-articles/release-notes/RN-RAD-WIN-AFMF2-TECH-Preview.html

Another person had it working with the 24.5.1 version.

I also used this mod to add working sounds: https://www.nexusmods.com/bloodborne/mods/34

Yes I've tried that, except for those specific driver versions. Might be worth a shot. Thanks.

<!-- gh-comment-id:2325814605 --> @Julioevm commented on GitHub (Sep 3, 2024): > > > I also had the freeze on death and couldn't make it work with the bb-hacks build. But with this other one it works perfectly and I actually get more fps: https://github.com/kotn3l/shadPS4/actions/runs/10583347853. > > > > > > And do you have the issue too with newer builds of that user? I have the issue with bb-8, maybe I can try again with bb-5 and check... > > I just tried and it works fine with bb-8. Have you went through this guide: https://docs.google.com/document/d/17WixYgtwTdTeqL0NFKEqVrzCWu7Wr-x7/edit ? > > I've also seen that people suggest using this driver version: https://www.amd.com/en/resources/support-articles/release-notes/RN-RAD-WIN-AFMF2-TECH-Preview.html > > Another person had it working with the 24.5.1 version. > > I also used this mod to add working sounds: https://www.nexusmods.com/bloodborne/mods/34 Yes I've tried that, except for those specific driver versions. Might be worth a shot. Thanks.
Author
Owner

@adjonesey commented on GitHub (Sep 3, 2024):

I caught this issue with a debugger attached today - it looks like a deadlock. The game spawns a number of threads while reloading a level (CSCloth among others) and they will randomly hang waiting for mutexes to unlock

image

<!-- gh-comment-id:2326277388 --> @adjonesey commented on GitHub (Sep 3, 2024): I caught this issue with a debugger attached today - it looks like a deadlock. The game spawns a number of threads while reloading a level (CSCloth among others) and they will randomly hang waiting for mutexes to unlock ![image](https://github.com/user-attachments/assets/05d8ecd1-09e5-493b-a836-8d5bb784b734)
Author
Owner

@Julioevm commented on GitHub (Sep 7, 2024):

Finally not having issues on death or warph with this build: https://github.com/Foul-Tarnished/shadPS4/actions/runs/10753285567

<!-- gh-comment-id:2336455041 --> @Julioevm commented on GitHub (Sep 7, 2024): Finally not having issues on death or warph with this build: https://github.com/Foul-Tarnished/shadPS4/actions/runs/10753285567
Author
Owner

@adjonesey commented on GitHub (Sep 8, 2024):

The workaround being used for this in hack builds forces reuse of the existing thread pool threads - it's not something we can merge into main. The root cause of the issue appears to be a missed cleanup when the threads are exiting.

<!-- gh-comment-id:2336657184 --> @adjonesey commented on GitHub (Sep 8, 2024): The workaround being used for this in hack builds forces reuse of the existing thread pool threads - it's not something we can merge into main. The root cause of the issue appears to be a missed cleanup when the threads are exiting.
Author
Owner

@adjonesey commented on GitHub (Sep 15, 2024):

This issue should now be resolved in main

<!-- gh-comment-id:2351555431 --> @adjonesey commented on GitHub (Sep 15, 2024): This issue should now be resolved in main
Author
Owner

@rafael-57 commented on GitHub (Sep 15, 2024):

can be safely closed, fixed some days ago by #855
@raphaelthegreat

<!-- gh-comment-id:2351805320 --> @rafael-57 commented on GitHub (Sep 15, 2024): can be safely closed, fixed some days ago by #855 @raphaelthegreat
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#166
No description provided.