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

Aaudio state transition fix #916

Closed
wants to merge 2 commits into from

Conversation

znakeeye
Copy link

This fixes #913. An intermittent crash in AAudio when waiting for state transition while the stream is closed from another thread. The symptom is usually that the Android app crashes immediately when resumed after a lengthy period (usually hours).

Adapting same logic as seen in oboe, but preserving the previous timeout of 5 seconds.

@mackron, please verify the correctness of the thread/state synchronization.

Testing is ongoing! I expect to have some results ready within a couple of days. All in all, I'm confident that the logic is correct.

@mackron
Copy link
Owner

mackron commented Dec 24, 2024

Thanks a lot for this. I have been reading all of your messages as they've come through. Will get to this as soon as I get a chance.

@mackron mackron changed the base branch from master to dev December 24, 2024 00:40
@mackron
Copy link
Owner

mackron commented Dec 24, 2024

Just FYI, I've changed the base branch from master to dev for this PR so I don't accidentally merge into the master branch. Don't think there should be any issues.

@znakeeye
Copy link
Author

znakeeye commented Dec 25, 2024

Right. So after some testing I can confirm that the fix doesn't work (audio gets muted). I'm suspecing the timeout of 5 seconds, so I'll try without it.

@znakeeye
Copy link
Author

These changes proved to be useless. Closing.

See discussion in #913.

@znakeeye znakeeye closed this Dec 29, 2024
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.

ma_device_uninit crash on Android 15
2 participants