Skip to content

Bloodborne freezes often when moving around, requiring constant debugger pause/resume #1792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
C0rn3j opened this issue Dec 14, 2024 · 4 comments

Comments

@C0rn3j
Copy link
Contributor

C0rn3j commented Dec 14, 2024

Issue originally posted in this PR - #1777

The game keeps freezing (not crashing), and the only way to get it unstuck is to have it launched in a debugger and constantly pause and unpause whenever it happens.

When userfaultfd is enabled, it happens immediately upon entering the character creator.

When it is disabled, it triggers later during loading screens or more often when running around in the game - usually within a minute or less of gameplay.

Full all-thread backtraces from when the game is frozen are available in here - #1777 (comment) and here #1777 (comment)

Log from a build around some Dec 8: shad_log.txt - it happens on a build from today too, though.

@Missake212
Copy link
Contributor

Hey, I was wondering if your PR #1777 also "solves" this issue ?

@C0rn3j
Copy link
Contributor Author

C0rn3j commented Dec 22, 2024

Nope, it just makes it happen half a minute later.

@C0rn3j
Copy link
Contributor Author

C0rn3j commented Dec 22, 2024

Having said that, I tested with latest commits and I couldn't reproduce in 2 minutes, and it was very very consistent before, so maybe it is gone now with the userfd patch + recent patches combined, will try later.

@C0rn3j
Copy link
Contributor Author

C0rn3j commented Dec 23, 2024

I cannot repro on 43fd8fa, I can with -DENABLE_USERFAULTFD=ON

I can repro from an older build I have hanging around e752f04 and I have two versions, I believe one with userfd patch and one without, and both are capable of failing even on the loading screen from loading a savefile.

So it looks like the userfaultfd is causing freezes, and some other issue which was fixed in the last couple days (I tested somewhat often, so it was probably fixed in the last 24h) was too.

TL;DR there were two issues. Latest master + disabled userfd works, enabled userfd has freezes.

@C0rn3j C0rn3j closed this as completed Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants