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 crashes in AudioManager due to no threading guarantee on CreateAudioMixer #4886

Merged
merged 2 commits into from
Nov 10, 2021

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Nov 10, 2021

The "add" calls were coming from the update thread while the "remove" calls were happening on the audio thread. Dangerous.

As seen in https://github.com/ppy/osu-framework/runs/4165488000?check_suite_focus=true

frenzibyte
frenzibyte previously approved these changes Nov 10, 2021
Copy link
Collaborator

@bdach bdach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable

@bdach bdach enabled auto-merge November 10, 2021 16:01
@bdach bdach merged commit d5b19b6 into ppy:master Nov 10, 2021
@peppy peppy deleted the fix-audio-manager-threading branch November 18, 2021 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants