Android version(s): 13 (MIUI 14.0.13)
Android device(s): Mi 11 Ultra
Oboe version: 1.9.0
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.)
When I use OBOE audio recording on Xiaomi devices, there is a chance that it will crash.
Steps to reproduce
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A Build fingerprint: 'Xiaomi/star/star:13/TKQ1.220829.002/V14.0.13.0.TKACNXM:user/release-keys'
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A Revision: '0'
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A ABI: 'arm64'
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A Timestamp: 2024-11-04 20:08:14.733518935+0800
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A Process uptime: 2281s
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A ZygotePid: 66884048
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A Cmdline: com.bilibili.bilibililive.test
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A pid: 30632, tid: 21770, name: AudioRecord >>> com.bilibili.bilibililive.test <<<
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A uid: 10582
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x00000072935c7000
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x0 b400007165ca6800 x1 00000072935c6cc0 x2 0000000000000480 x3 0000000000000004
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x4 0000000000000000 x5 b40000716c263aa0 x6 b400007168aa4d00 x7 b400007168aa5180
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x8 0000000000000240 x9 0000000000000240 x10 00000072935c7010 x11 00000000000000a0
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x12 0000007165c28c30 x13 00000000000121e8 x14 00000000000121a8 x15 0000000000000500
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x16 000000729693f9f0 x17 00000072968b441c x18 0000007155080000 x19 b400007165ca6800
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x20 000000715553c000 x21 ffffffffffffffff x22 0000000000000000 x23 000000715553ba88
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x24 000000729693cbf0 x25 0000000000000480 x26 0000000000000480 x27 b400007165ca6aa8
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A x28 000000715553c000 x29 000000715553ba10
2024-11-04 20:08:15.810 21785-21785 DEBUG crash_dump64 A lr 00000072968b3910 sp 000000715553b9a0 pc 00000072968b4494 pst 0000000020001000
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A backtrace:
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #00 pc 000000000006b494 /system/lib64/libaudioclient.so (android::AudioRecord::isLongTimeZeroData(void const*, int)+120) (BuildId: 15bf9505713ef124c9ac13248ba87bdd)
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #01 pc 000000000006a90c /system/lib64/libaudioclient.so (android::AudioRecord::processAudioBuffer()+1752) (BuildId: 15bf9505713ef124c9ac13248ba87bdd)
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #02 pc 0000000000069f3c /system/lib64/libaudioclient.so (android::AudioRecord::AudioRecordThread::threadLoop()+288) (BuildId: 15bf9505713ef124c9ac13248ba87bdd)
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #03 pc 0000000000013598 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+424) (BuildId: 104125701f0f8a41374b9998e94209e9)
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #04 pc 00000000000ceb84 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+144) (BuildId: 8bc9f832aa905efdb1b081e26fc56644)
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #05 pc 00000000000f55c8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 449f781894033dce6346794a1ee593e0)
2024-11-04 20:08:15.811 21785-21785 DEBUG crash_dump64 A #06 pc 000000000008efbc /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 449f781894033dce6346794a1ee593e0)
2024-11-04 20:08:15.820 8546-21416 C2SoftVpxEnc media.swcodec D bytes generated 2484
2024-11-04 20:08:15.830 1056-2676 stmvl53l5 and...amera.provider@2.4-service_64 I Filled up 3 events
2024-11-04 20:08:15.845 2228-21789 ActivityTaskManager system_server W Force finishing activity com.bilibili.bilibililive.test/com.bilibili.bililive.test.SceneActivity
**Expected behavior**
Normal recording...
**Actual behavior**
crash...
**Device**
Xiaomi 11 Ultra
**Any additional context**
A relatively complete log:
[Mi11UltraRecordCrash.log](https://github.com/user-attachments/files/17626334/Mi11UltraRecordCrash.log)
At present, a stable reproduction path has not been found. I will try my best to find it.
Looking forward to your reply, thank you~
Android version(s): 13 (MIUI 14.0.13) Android device(s): Mi 11 Ultra Oboe version: 1.9.0 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.) When I use OBOE audio recording on Xiaomi devices, there is a chance that it will crash. Steps to reproduce