-
Notifications
You must be signed in to change notification settings - Fork 582
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
onAudioReady with invalid arguments #1511
Comments
@taemincho - Thanks for reporting this. It looks like the oboeStream parameter is NULL but it is passed as "this" in AudioStream::fireDataCallback(). And we check for nullptr in oboe_aaudio_data_callback_proc. So this is very puzzling. Are you able to duplicate this in your office? Or is it only in the field? Do you have a more complete stack trace? or a bugreport? Do you know if these devices are using OpenSL ES, or MMAP / Legacy AAudio? |
No, unfortunately, this is our second most common crash from Oboe but actually, it's quite rare.
Not much information from stack traces. Below are stack traces we've got from Crashlytics
AAudio, |
We have made changes in AudioTrack.cpp to try to prevent callbacks from running while the track is being closed. All I can recommend at the moment is to lengthen a sleep between stop and close, which is controlled by this constant. oboe/src/aaudio/AudioStreamAAudio.h Line 122 in 8ff99cc
We have an Issue, #1500, to make this controllable through the API. |
We are closing because there is nothing more we can offer on this bug. If you have more information, please let us know. |
Android version(s): 9, 10, 11, 12
Android device(s): Samsung, Xiaomi, LGE, and others but no Pixel
Oboe version: 1.6-stable
App name used for testing:
(Please try to reproduce the issue using the OboeTester or an Oboe sample.)
Short description
(Please only report one bug per Issue. Do not combine multiple bugs.)
Steps to reproduce
Expected behavior
Actual behavior
Device
Any additional context
Last year, we found that a segfault occurred during
onAudioReady
of the output stream, so we've addedthe code below at the very beginning of
onAudioReady
to detect what caused the segfault.And we found that
SIGSEGV
occurs atoboeStream->getFormat()
or thememset
statements.In other words,
oboeStream
oraudioData
or both were invalidated somehow.We could see that the audio route was changed before crashing.
FYI:
This is our 2nd most common crash from Oboe, the most common crash has been reported in #1484
The text was updated successfully, but these errors were encountered: