Skip to content
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

Process is frozen and use 100% CPU #8556

Open
2 tasks done
dimonb opened this issue Apr 8, 2024 · 10 comments
Open
2 tasks done

Process is frozen and use 100% CPU #8556

dimonb opened this issue Apr 8, 2024 · 10 comments
Labels
audio Sound and music related stuff awaiting feedback Feedback was requested from the issue opener bug Something doesn't work
Milestone

Comments

@dimonb
Copy link

dimonb commented Apr 8, 2024

Preliminary checks

Platform

macOS

Describe the bug

Game is frozen with 100% cpu usage when casting blood last (not reprodusable

process sample in attachment
Sample of fheroes2.txt

Save file

Not reproducible, save file make no sense

Additional info

No response

@dimonb dimonb added the bug Something doesn't work label Apr 8, 2024
@oleg-derevenetz
Copy link
Collaborator

oleg-derevenetz commented Apr 8, 2024

Hi @dimonb did you notice if the usual animations on the battle screen were working at that time (for example, were the flags of the heroes flying)?

I got the impression that the bloodlust animation went into an endless loop because SDL_mixer reported that the bloodlust sound effect was still playing, although this was actually not the case. If so, then why exactly this was happening is hard to tell, because I also can't reproduce this effect so far.

@ihhub
Copy link
Owner

ihhub commented Apr 13, 2024

Hi @dimonb , can you please reply to the original question?

@ihhub ihhub added the awaiting feedback Feedback was requested from the issue opener label Apr 13, 2024
@dimonb
Copy link
Author

dimonb commented Apr 26, 2024

Hi guys, sorry for delay. No other unusual animation. I got this one more time :( also blood last
It is the only case when game stuck with 100% CPU

@ihhub
Copy link
Owner

ihhub commented May 20, 2024

Hi @dimonb , if we provide a special version of the engine would you be able to compile it on your machine? We will provide instructions.

@ihhub ihhub added audio Sound and music related stuff and removed awaiting feedback Feedback was requested from the issue opener labels May 20, 2024
@ihhub ihhub added this to the 1.1.1 milestone May 20, 2024
@dimonb
Copy link
Author

dimonb commented May 20, 2024

hi @ihhub !
yes, sure

@ihhub
Copy link
Owner

ihhub commented May 20, 2024

@dimonb , I have an idea in mind how to fix or at least narrow down the problem so I will create a separate pull request from where you might check out the branch. I will do it after the upcoming release which is in a few days. If I miss creating a pull request please ping me again next week.

@ihhub
Copy link
Owner

ihhub commented May 20, 2024

@dimonb , actually, I made a pull request #8698 for this matter. I set 20 seconds as a hard stop for playing Blood Lust sound. Could you please compile and test it on your side? 20 seconds would be enough to identify that this was a deadlock. To test I suggest to use Battle Only mode which is designed for battles.

@dimonb
Copy link
Author

dimonb commented May 20, 2024

@ihhub will try in several days, thx!

@ihhub ihhub added awaiting feedback Feedback was requested from the issue opener labels Jun 28, 2024
@ihhub ihhub modified the milestones: 1.1.1, 1.1.2 Jul 13, 2024
@ihhub
Copy link
Owner

ihhub commented Jul 27, 2024

Hi @dimonb , have you tried the fix?

@dimonb
Copy link
Author

dimonb commented Jul 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Sound and music related stuff awaiting feedback Feedback was requested from the issue opener bug Something doesn't work
Projects
None yet
Development

No branches or pull requests

3 participants