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 the crash during recording #36549

Closed
wants to merge 1 commit into from
Closed

Fix the crash during recording #36549

wants to merge 1 commit into from

Conversation

mika314
Copy link

@mika314 mika314 commented Feb 26, 2020

This fix addresses the following issue: Invalid read in audio demo #34494

Protect recording_data with a mutex to prevent racing.

Tested with my crashing project for 5 minutes. No crashes.

@akien-mga
Copy link
Member

Thanks for the contribution.

Pull Requests should be made against the master branch, otherwise they will be missing in the future Godot versions. Release managers then cherry-pick relevant ones for the stable branches.

Note also that we have our own Mutex class: core/os/mutex.h.

This fix addresses the following issue: Invalid read in audio demo #34494

Protect recording_data with a mutex to prevent racing.

Tested with my crashing project for 5 minutes. No crashes.
@mika314
Copy link
Author

mika314 commented Feb 26, 2020

The new pull request is here: #36569

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.

3 participants