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

Fix deadlock on linux hosts when exiting the game #845

Merged
merged 3 commits into from
Jun 21, 2017

Conversation

VPeruS
Copy link
Contributor

@VPeruS VPeruS commented Jun 21, 2017

Maybe program and linux's sound subsystem share resource and linux cannot destroy program until you free it explicitly, and eventually you get timeout from c# runtime. Fix #315

@luaneko
Copy link
Contributor

luaneko commented Jun 21, 2017

Bass should be freed after completely exiting the audio thread.
The thread might also be working when Bass is about to be freed.

@peppy peppy merged commit d83faae into ppy:master Jun 21, 2017
@peppy peppy changed the title Fix problem with linux deadlock Fix deadlock on linux hosts when exiting the game Jun 21, 2017
@peppy
Copy link
Sponsor Member

peppy commented Jun 21, 2017

Please write PR titles better

"Fix deadlock on linux hosts when exiting the game"

@VPeruS
Copy link
Contributor Author

VPeruS commented Jun 21, 2017

@paparony03, isn't if you call Exit next actions with AudioManager just wouldn't be processed, they will go in queue and stay until gc destroy it, call to base.Exit should solve this. Also Exit for AudioManager's thread called from osu code only at the end(with another threads destruction).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants