安卓底层库崩溃


#1

04-16 10:35:13.140 7123 8210 F libc : Fatal signal 11 (SIGSEGV), code 2, fault addr 0xcbbaefd8 in tid 8210 (opensl_play_thr), pid 7123 (.android.client)
04-16 10:35:13.162 777 1046 W HWComposer: Ignoring duplicate VSYNC event from HWC (t=2229854714000)
04-16 10:35:13.257 8604 8604 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
04-16 10:35:13.262 906 906 I /system/bin/tombstoned: received crash request for pid 7123
04-16 10:35:13.263 8604 8604 I crash_dump32: performing dump of process 7123 (target tid = 8210)
04-16 10:35:13.263 8604 8604 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-16 10:35:13.263 8604 8604 F DEBUG : Build fingerprint: ‘Xiaomi/dipper/dipper:8.1.0/OPM1.171019.026/V10.0.11.0.OEACNFH:user/release-keys’
04-16 10:35:13.263 8604 8604 F DEBUG : Revision: ‘0’
04-16 10:35:13.263 8604 8604 F DEBUG : ABI: ‘arm’
04-16 10:35:13.264 8604 8604 F DEBUG : pid: 7123, tid: 8210, name: opensl_play_thr >>> com.letv.android.client <<<
04-16 10:35:13.264 8604 8604 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xcbbaefd8
04-16 10:35:13.264 8604 8604 F DEBUG : r0 cd28fdb0 r1 c657f8f0 r2 00000000 r3 cbbaefd8
04-16 10:35:13.264 8604 8604 F DEBUG : r4 cd4b28c8 r5 00000000 r6 cd28fdb0 r7 d0b109c8
04-16 10:35:13.264 8604 8604 F DEBUG : r8 00001bd3 r9 00002009 sl cb8aa279 fp 00000000
04-16 10:35:13.264 8604 8604 F DEBUG : ip c657f918 sp c657f900 lr cb90c357 pc cbbaefd8 cpsr 80010010
04-16 10:35:13.265 8604 8604 F DEBUG :
04-16 10:35:13.265 8604 8604 F DEBUG : backtrace:
04-16 10:35:13.265 8604 8604 F DEBUG : #00 pc 0000afd8 /data/app/com.letv.android.client-mLVP2oSjYBxQ52H7FKdMtQ==/lib/arm/libagora-rtc-sdk-jni.so (offset 0x545000)
04-16 10:35:13.265 8604 8604 F DEBUG : #01 pc 002ae355 /data/app/com.letv.android.client-mLVP2oSjYBxQ52H7FKdMtQ==/lib/arm/libagora-rtc-sdk-jni.so
04-16 10:35:13.265 8604 8604 F DEBUG : #02 pc 002ae75f /data/app/com.letv.android.client-mLVP2oSjYBxQ52H7FKdMtQ==/lib/arm/libagora-rtc-sdk-jni.so
04-16 10:35:13.265 8604 8604 F DEBUG : #03 pc 0024c171 /data/app/com.letv.android.client-mLVP2oSjYBxQ52H7FKdMtQ==/lib/arm/libagora-rtc-sdk-jni.so
04-16 10:35:13.265 8604 8604 F DEBUG : #04 pc 0024c27b /data/app/com.letv.android.client-mLVP2oSjYBxQ52H7FKdMtQ==/lib/arm/libagora-rtc-sdk-jni.so
04-16 10:35:13.265 8604 8604 F DEBUG : #05 pc 00048303 /system/lib/libc.so (__pthread_start(void*)+22)
04-16 10:35:13.265 8604 8604 F DEBUG : #06 pc 0001b607 /system/lib/libc.so (__start_thread+32)
04-16 10:35:13.438 863 8521 W AudioFlinger: RecordThread: buffer overflow


#2

了解下信息,
这是怎么触发的?使用的SDK版本是?是个别机型还是全机型都有这个情况?


#3

概率性出现的,最新的,安卓2.4.0版本


#4

大概是怎么触发的?是个别机型还是全机型都有这个情况?机型是?


#5

HUAWEI/EVA-AL10
Xiaomi8
都有崩溃


#6

我这只能提供一下使用场景:
媒体SDK,语音互动直播:加入频道、退出频道、音乐混音等。


#7

一些设置参数:
it.setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING)
it.enableAudioVolumeIndication(1000, 3) // 200 ms
it.setAudioProfile(
Constants.AUDIO_PROFILE_MUSIC_STANDARD,
Constants.AUDIO_SCENARIO_CHATROOM_ENTERTAINMENT
)
it.setLogFile(
Environment.getExternalStorageDirectory().toString()
+ File.separator + context.packageName + “/log/agora-rtc.log”
)


#8

测试环境,未开启token验证


#9

有时是在频道内,静置无任何操作时崩溃


#10

你试下直接运行官网的demo,看下能否复现这个崩溃的问题?
如果可以复现,收集下完整的SDK log和崩溃堆栈信息,然后提交工单,声网会有技术工程师处理这个问题的。如果可以,请提供下具体的操作步骤(即:进行什么操作时crash的)


#11

05-06 16:26崩溃
agora-rtc.log.zip (33.8 KB)

05-06 16:26:34.006 13927 14092 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 14092 (opensl_play_thr), pid 13927 (in.voice.client)
05-06 16:26:34.244 14431 14431 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-06 16:26:34.244 14431 14431 F DEBUG : Build fingerprint: ‘HUAWEI/EML-AL00/HWEML:9/HUAWEIEML-AL00/184C00R1:user/release-keys’
05-06 16:26:34.244 14431 14431 F DEBUG : Revision: ‘0’
05-06 16:26:34.245 14431 14431 F DEBUG : ABI: ‘arm’
05-06 16:26:34.245 14431 14431 F DEBUG : pid: 13927, tid: 14092, name: opensl_play_thr >>> com.shanyin.voice.client <<<
05-06 16:26:34.245 14431 14431 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
05-06 16:26:34.245 14431 14431 F DEBUG : Cause: null pointer dereference
05-06 16:26:34.245 14431 14431 F DEBUG : Abort message: ‘jniInitGet’
05-06 16:26:34.245 14431 14431 F DEBUG : r0 e8e77a88 r1 00004001 r2 00000000 r3 00000001
05-06 16:26:34.245 14431 14431 F DEBUG : r4 e8e77a88 r5 00000001 r6 00000000 r7 cc76a178
05-06 16:26:34.245 14431 14431 F DEBUG : r8 00003667 r9 00003707 r10 c9b74279 r11 c2ce90d0
05-06 16:26:34.245 14431 14431 F DEBUG : ip c9e7fae4 sp c7d5d900 lr c9bd6763 pc c9bd634e
05-06 16:26:34.252 14431 14431 F DEBUG :
05-06 16:26:34.252 14431 14431 F DEBUG : backtrace:
05-06 16:26:34.252 14431 14431 F DEBUG : #00 pc 002ae34e /data/app/com.shanyin.voice.client-D5NBrzvOkjuCkrPR24M3qg==/lib/arm/libagora-rtc-sdk-jni.so
05-06 16:26:34.252 14431 14431 F DEBUG : #01 pc 002ae75f /data/app/com.shanyin.voice.client-D5NBrzvOkjuCkrPR24M3qg==/lib/arm/libagora-rtc-sdk-jni.so
05-06 16:26:34.252 14431 14431 F DEBUG : #02 pc 0024c171 /data/app/com.shanyin.voice.client-D5NBrzvOkjuCkrPR24M3qg==/lib/arm/libagora-rtc-sdk-jni.so
05-06 16:26:34.252 14431 14431 F DEBUG : #03 pc 0024c27b /data/app/com.shanyin.voice.client-D5NBrzvOkjuCkrPR24M3qg==/lib/arm/libagora-rtc-sdk-jni.so
05-06 16:26:34.252 14431 14431 F DEBUG : #04 pc 00065413 /system/lib/libc.so (__pthread_start(void*)+22)
05-06 16:26:34.252 14431 14431 F DEBUG : #05 pc 0001e819 /system/lib/libc.so (start_thread+32)
05-06 16:26:35.339 1144 14434 I chatty : uid=1000 system_server expire 1 line
05-06 16:26:35.346 1144 1214 I chatty : uid=1000(system) android.ui expire 1 line
05-06 16:26:35.347 1144 1224 I chatty : uid=1000(system) FileObserver expire 1 line
05-06 16:26:35.441 1144 3478 I chatty : uid=1000(system) Binder:1144_F expire 1 line
05-06 16:26:35.485 1144 6376 I chatty : uid=1000(system) Binder:1144_15 expire 5 lines
05-06 16:26:35.497 1144 1197 I chatty : uid=1000(system) android.bg expire 1 line
05-06 16:26:35.538 1855 1855 D Telephony-TelecomAccountRegistry: onServiceStateChanged0 newState : 1, mServiceState : 1
05-06 16:26:35.858 1144 1213 I chatty : uid=1000(system) ActivityManager expire 10 lines
05-06 16:26:35.878 1749 1775 I BoosterSwitchP: notifyUidState do nothing
05-06 16:26:35.879 1749 1775 I DeepNoDisturbP: notifyUidState
05-06 16:26:35.879 1749 1775 I HidataAppQoeP: notifyUidState
05-06 16:26:35.879 1749 1775 I BrowserChrP: notifyUidState
05-06 16:26:35.881 1144 1798 I chatty : uid=1000(system) Binder:1144_7 expire 5 lines
05-06 16:26:35.907 1144 1216 I chatty : uid=1000(system) ActivityManager expire 6 lines
05-06 16:26:35.909 1144 1724 I chatty : uid=1000(system) MultiTaskManage expire 6 lines
05-06 16:26:35.936 1144 1144 I chatty : uid=1000 system_server expire 9 lines
05-06 16:26:35.936 1144 6457 I chatty : uid=1000(system) Binder:1144_17 expire 10 lines
05-06 16:26:35.945 1144 6383 I chatty : uid=1000(system) Binder:1144_16 expire 11 lines
05-06 16:26:35.953 1144 7644 I chatty : uid=1000(system) Binder:1144_1B expire 11 lines
05-06 16:26:35.959 1144 6374 I chatty : uid=1000(system) Binder:1144_14 expire 24 lines
05-06 16:26:35.979 14449 14449 D ActivityThread: Attach thread to application
05-06 16:26:35.999 1144 1312 I chatty : uid=1000(system) android.anim expire 16 lines
05-06 16:26:36.089 1144 2108 I chatty : uid=1000(system) Binder:1144_A expire 8 lines
05-06 16:26:36.089 1144 1539 I chatty : uid=1000(system) AudioService expire 3 lines
05-06 16:26:36.362 1144 1540 I chatty : uid=1000(system) Thread-9 expire 1 line
05-06 16:26:38.218 14449 14449 V ActivityThread: Skipping new config:{1.0 ?mcc?mnc [zh_CN
#Hans] ldltr sw360dp w360dp h677dp 480dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 85 - 1080, 2116) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.7}, config:{1.0 ?mcc?mnc [zh_CN
#Hans] ldltr sw360dp w360dp h677dp 480dpi nrml long hdr port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 0, 0) mAppBounds=Rect(0, 85 - 1080, 2116) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.7} for app


#12

15:01

agora-rtc.log.zip (44.8 KB)

05-07 15:01:03.529 14361 14677 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2d3c in tid 14677 (opensl_play_thr), pid 14361 (.android.client)
05-07 15:01:03.797 15137 15137 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-07 15:01:03.798 15137 15137 F DEBUG : Build fingerprint: ‘HUAWEI/EML-AL00/HWEML:9/HUAWEIEML-AL00/184C00R1:user/release-keys’
05-07 15:01:03.798 15137 15137 F DEBUG : Revision: ‘0’
05-07 15:01:03.798 15137 15137 F DEBUG : ABI: ‘arm’
05-07 15:01:03.798 15137 15137 F DEBUG : pid: 14361, tid: 14677, name: opensl_play_thr >>> com.letv.android.client <<<
05-07 15:01:03.798 15137 15137 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2d3c
05-07 15:01:03.798 15137 15137 F DEBUG : Abort message: ‘jniInitGet’
05-07 15:01:03.798 15137 15137 F DEBUG : r0 e4244a48 r1 c3c878f0 r2 00000000 r3 00002d3c
05-07 15:01:03.798 15137 15137 F DEBUG : r4 c5b17ec8 r5 00000000 r6 e4244a48 r7 cb353380
05-07 15:01:03.798 15137 15137 F DEBUG : r8 00003819 r9 0000394d r10 c4dcf279 r11 ca6353a0
05-07 15:01:03.798 15137 15137 F DEBUG : ip c3c87918 sp c3c87900 lr c4e31357 pc 00002d3c
05-07 15:01:03.802 15137 15137 F DEBUG :
05-07 15:01:03.802 15137 15137 F DEBUG : backtrace:
05-07 15:01:03.802 15137 15137 F DEBUG : #00 pc 00002d3c
05-07 15:01:03.802 15137 15137 F DEBUG : #01 pc 002ae355 /data/app/com.letv.android.client-ksOEtvzyKlNITwDDcwUaHg==/lib/arm/libagora-rtc-sdk-jni.so
05-07 15:01:03.802 15137 15137 F DEBUG : #02 pc 002ae75f /data/app/com.letv.android.client-ksOEtvzyKlNITwDDcwUaHg==/lib/arm/libagora-rtc-sdk-jni.so
05-07 15:01:03.802 15137 15137 F DEBUG : #03 pc 0024c171 /data/app/com.letv.android.client-ksOEtvzyKlNITwDDcwUaHg==/lib/arm/libagora-rtc-sdk-jni.so
05-07 15:01:03.802 15137 15137 F DEBUG : #04 pc 0024c27b /data/app/com.letv.android.client-ksOEtvzyKlNITwDDcwUaHg==/lib/arm/libagora-rtc-sdk-jni.so
05-07 15:01:03.802 15137 15137 F DEBUG : #05 pc 00065413 /system/lib/libc.so (__pthread_start(void*)+22)
05-07 15:01:03.802 15137 15137 F DEBUG : #06 pc 0001e819 /system/lib/libc.so (__start_thread+32)


#13

17:44崩溃

agora-rtc.log.zip (28.6 KB)

05-07 17:44:12.106 25460 25720 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 25720 (opensl_play_thr), pid 25460 (.android.client)
05-07 17:44:12.340 25875 25875 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-07 17:44:12.340 25875 25875 F DEBUG : Build fingerprint: ‘HUAWEI/EML-AL00/HWEML:9/HUAWEIEML-AL00/184C00R1:user/release-keys’
05-07 17:44:12.340 25875 25875 F DEBUG : Revision: ‘0’
05-07 17:44:12.340 25875 25875 F DEBUG : ABI: ‘arm’
05-07 17:44:12.341 25875 25875 F DEBUG : pid: 25460, tid: 25720, name: opensl_play_thr >>> com.letv.android.client <<<
05-07 17:44:12.341 25875 25875 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
05-07 17:44:12.341 25875 25875 F DEBUG : Cause: null pointer dereference
05-07 17:44:12.341 25875 25875 F DEBUG : Abort message: ‘jniInitGet’
05-07 17:44:12.341 25875 25875 F DEBUG : r0 c81f7748 r1 c37578f0 r2 00000000 r3 00000001
05-07 17:44:12.341 25875 25875 F DEBUG : r4 c81f7748 r5 00000000 r6 00000000 r7 c43e31e8
05-07 17:44:12.341 25875 25875 F DEBUG : r8 00006374 r9 00006473 r10 c5ae6279 r11 c10c32f0
05-07 17:44:12.341 25875 25875 F DEBUG : ip c3757918 sp c3757900 lr c5b48763 pc c5b4834e
05-07 17:44:12.345 25875 25875 F DEBUG :
05-07 17:44:12.345 25875 25875 F DEBUG : backtrace:
05-07 17:44:12.345 25875 25875 F DEBUG : #00 pc 002ae34e /data/app/com.letv.android.client-WY95rdnWQnftYbGAobAEkw==/lib/arm/libagora-rtc-sdk-jni.so
05-07 17:44:12.345 25875 25875 F DEBUG : #01 pc 002ae75f /data/app/com.letv.android.client-WY95rdnWQnftYbGAobAEkw==/lib/arm/libagora-rtc-sdk-jni.so
05-07 17:44:12.345 25875 25875 F DEBUG : #02 pc 0024c171 /data/app/com.letv.android.client-WY95rdnWQnftYbGAobAEkw==/lib/arm/libagora-rtc-sdk-jni.so
05-07 17:44:12.345 25875 25875 F DEBUG : #03 pc 0024c27b /data/app/com.letv.android.client-WY95rdnWQnftYbGAobAEkw==/lib/arm/libagora-rtc-sdk-jni.so
05-07 17:44:12.346 25875 25875 F DEBUG : #04 pc 00065413 /system/lib/libc.so (__pthread_start(void*)+22)
05-07 17:44:12.346 25875 25875 F DEBUG : #05 pc 0001e819 /system/lib/libc.so (__start_thread+32)