-
Notifications
You must be signed in to change notification settings - Fork 572
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
SIGSEGV at AudioStreamOpenSLES.cpp - Line 295 #1431
Comments
Are you using the 1.6.1 release? Or are you using the most recent code on GitHub? There have not been many changes in the OpenSL ES support. There was this change after the official 1.6.1 release. Do you know what Android versions these Huawei phones are using? The P10 started at at 7.0 and was upgradable to 9.0. |
We use the most recent code on 1.6-stable branch
We don't force to use OpenSL ES, we always set
The Android versions of the HUAWEI devices are
|
The diff between the two releases for OpenSL ES only has two changes in the src/opensles folder. This is simply a change in types and should not affect anything as 24 bit and 32 bit audio should not be the default. This only removes a function and changes Oboe to c++17. @taemincho Is this still a problem? |
@robertwu1 yes, we got 78 crashes from 73 users in the last 30 days. |
I went through every commit between the two releases and I don't see anything suspicious. @taemincho Can you check that there's no changes on your end that could have caused this between the two releases? Also, the next release, whenever it comes out, should contain #1245, which adds stability to our OpenSL ES code. |
Oboe has code in common for AAudio and OpenSL ES. A change in that code might trigger an OpenSL ES crash. Here are some interesting changes between 1.5.1 and 1.6.1 oboe: fix possible race on close (#1200) oboe: improve DataCallbackResult::Stop handling (#1351) |
I got the same issue while runing auto test on our product, oboe version: use master code with latest commit is 5ca07db. |
@philburk @robertwu1 hi, we catch this crash today second times, could you analyze it? |
@robertwu1 I will try this fix, but I find an important info in the log, it seems deadlock happens, can the #1570 also this? |
Seems like there is a race condition where some code is waiting for something else to finish to grab the lock. @philburk Do you know whether there are compile flags to help determine which functions are involved in this race condition? |
@robertwu1 in addition, this crash happens in AudioInputStreamOpenSLES.cpp, but #1570 is AudioOutputStreamOpenSLES.cpp
|
This may be related to a similar issue we saw recently for Output. #1567 |
Android version(s): Android 6 and Android 7
Android device(s): HUAWEI P9 lite, Y5 2017, P9, and other HUAWEI phones
Oboe version: 1.6.1
App name used for testing:
(Please try to reproduce the issue using the OboeTester or an Oboe sample.)
Short description
Recently, we updated Oboe from 1.5.1 to 1.6.1, and we started to get a non-trivial number of crash reports from Firebase.
Steps to reproduce
Expected behavior
Actual behavior
Device
All the crashes reported from 100% HUAWEI devices:
Any additional context
If applicable, please attach a few seconds of an uncompressed recording of the sound in a WAV or AIFF file.
The text was updated successfully, but these errors were encountered: