Closed loongee closed 4 years ago
@loongee can you reproduce this in your office?
This message: "AAudioStream: aaudio stream still in use, state = AAUDIO_STREAM_STATE_STOPPED" is from "frameworks/av/media/libaaudio/src/core/AudioStream.cpp" The destructor asserts if the stream is still running.
So why is the stream in STOPPED state when the destructor is called?!
Is your app calling stop?
This change in PI prevented a stream from moving from the CLOSED state to the STOPPED state. https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/av/+/3790487/3/media/libaaudio/src/core/AudioStream.cpp#245
I believe it's a system bug, but also want you to know.
Me too. I also work on AAudio. So we will look in both Oboe and AAudio for the bug.
I believe this was fixed in P. I think it can be avoided by only calling stop() and close() from the same thread. Please reopen if you are still seeing this.
It's a crash on the same app as I mentioned in #359
When DISCONNECT event raised, the error handler calls
close()
butclose()
crashed.devices: VIVO X9s/ VIVO X20 / HUAWEI Mate 10 / Meizu 16 / etc. OS: Android 8.1 (Android 9 does not crash at all) oboe version: 1.1.1
crash rate: about 5 times / 1000 users per day.
backtrace as follows:
log:
I believe it's a system bug, but also want you to know.