Skip to content

[raudio] Fix crash on CloseAudioDevice: uninit device before mutex - #6039

Open
get-charlie wants to merge 1 commit into
raysan5:masterfrom
get-charlie:fix/audio-close-order
Open

[raudio] Fix crash on CloseAudioDevice: uninit device before mutex#6039
get-charlie wants to merge 1 commit into
raysan5:masterfrom
get-charlie:fix/audio-close-order

Conversation

@get-charlie

Copy link
Copy Markdown

On Android (AAudio) the callback thread could still run when the mutex was destroyed, causing a SIGABRT (pthread_mutex_lock on a destroyed mutex). Uninit the device first so its callback thread stops before ma_mutex_uninit.

On Android (AAudio) the callback thread could still run when the mutex was
destroyed, causing a SIGABRT (pthread_mutex_lock on a destroyed mutex).
Uninit the device first so its callback thread stops before ma_mutex_uninit.
@get-charlie get-charlie changed the title Fix crash on CloseAudioDevice: uninit device before mutex [raudio] Fix crash on CloseAudioDevice: uninit device before mutex Aug 6, 2026
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.

1 participant