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 #36569

Closed
wants to merge 1 commit into from
Closed

Fix the crash during recording #36569

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 on 3.2 branch for 5 minutes. No crashes.

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 on 3.2 branch for 5 minutes. No crashes.
@mika314
Copy link
Author

mika314 commented Feb 26, 2020

Symbolic PR number 69 for the whole year.

@fire
Copy link
Member

fire commented Feb 26, 2020

I don't think this is the right solution, but the original call creates a buffer in the audio thread..

@mika314
Copy link
Author

mika314 commented Feb 27, 2020

@fire I am not sure I understand you. Do you suggest to create the buffer in the audio thread?

@Calinou Calinou added this to the 4.0 milestone Jan 5, 2021
This pull request was closed.
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