-
Notifications
You must be signed in to change notification settings - Fork 573
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
Crash in libaudioutils memcpy_to_i16_from_float #1329
Comments
@sonicdebris - thanks for the report. I have a few questions. What version of Oboe are you using? What devices are you seeing this on? Generally this sort of problem occurs when a stream is closed while the callback is still running. Then the callback accesses freed memory. We have prevented the race conditions in AAudio in R and S. And we added workarounds to Oboe 1.5.0 that should prevent it on older versions. I recommend using the latest Oboe. The key is to wait a few msec between stop and close. See PR #1017 Maybe we are not delaying enough. Increasing kDelayBeforeCloseMillis might solve this. This issue is often associated with a disconnect event: #953 |
Thanks for looking into this. We are using oboe 1.5.1 and the play console reports are all from three devices:
All of them running Android 10 (Q). We already plan upgrading to the latest Oboe, and will try and increase |
@sonicdebris - Did you try increasing kDelayBeforeCloseMillis ? |
Can confirm issue is present in latest Oboe for
|
@sonicdebris and @danoli3 - Are you using the std::shared_ptr for the OboeStream? |
Yes however it is static |
Yes, we are. |
We have been receiving reports of the following crash through the play console. It looks like all are on Android 10:
We are unable to reproduce it ourselves, and I it looks like it's related to AAudio so not really an Oboe issue, but maybe there's some obvious way we might be misusing the Oboe API or something that can be fixed with a device or android version specific quirk?
I've noticed other people encountered the same issue:
https://www.audiokinetic.com/qa/7573/libaudioutils-memcpy_to_i16_from_float-memcpy_to_i16_from_float
https://forum.juce.com/t/android-audio-application-template-crashing-at-start-up-on-samsung-s9/44003
But no helpful info there.
The text was updated successfully, but these errors were encountered: