VOD-vid+playauth播放方式,auth过期或者传入随意错误的字符,出了onError回调。native层会抛出异常,客户端无法try catch住
1.调用版本 6.5.0
2.覆盖机型:海外市场,机器较多,我们在诺基亚,小米设备上发生了崩溃
3.android 开发配置: minSDK 24 ; targetSDK 33
4.崩溃机型:Android 11 型号TA-1352 ;Android 10.0 ;型号Redmi 9A
5.问题:auth过期有时不可控,会有临界点,此时客户端会发生native层 crash, 无法处理。
调用方式,以下方式均会发生崩溃
一:
val vidAuth=VidAuth()
vidAuth.playAuth=”xx”
vidAuth.vid=”xx1″
player.setDataSource(vidAuth)
player.prepare()
二:
val vidAuth=PlayAuth()
vidAuth.playAuth=”xx”
vidAuth.vid=”xx1″
player.moveTo(uuid,vidAuth)
崩溃必现方法:
playAuth传入乱码字符即可。
以下为崩溃日志:
应用层:
2023-10-24 16:01:12.034 15483-15736 AliFrameWork com.xx.yy E [6.5.0_31859578] [PopRequest] :popError:InvalidAuthInfo.ExpireTime:The specified parameter AuthInfo has expired. , requestId = 5568C2C3-F6E0-3DD7-B086-2A4E91175B48
2023-10-24 16:01:12.035 15483-15736 AliFrameWork com.xx.yy W [6.5.0_31859578] [PopErrorInfo] :pop error code not mapped : InvalidAuthInfo.ExpireTime
2023-10-24 16:01:12.035 15483-15736 AliFrameWork com.xx.yy W [6.5.0_31859578] [AVPBase] :API_OUT:sendVodError 536936704: InvalidAuthInfo.ExpireTime:The specified parameter AuthInfo has expired.
2023-10-24 16:01:12.038 15483-15736 AliFrameWork com.xx.yy I [6.5.0_31859578] [analytics] :eventCode:4001, name:ERROR string:encryption_info * {"keyUrl":""} *||* error_code * 20010100 *||* error_msg * InvalidAuthInfo.ExpireTime:The specified parameter AuthInfo has expired. *||* rsi * *||* sri * 5568C2C3-F6E0-3DD7-B086-2A4E91175B48 *||* vt * -1 ret:0
2023-10-24 16:01:12.038 15483-15736 AliFrameWork com.xx.yy I [6.5.0_31859578] [NativeBase] :AliyunCorePlayer callback --> StatusChanged(7)
native层:
A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 21029 (hostapd), pid 21029 (hostapd)
2023-10-31 13:56:53.104 21321-21321 DEBUG pid-21321 A *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-10-31 13:56:53.104 21321-21321 DEBUG pid-21321 A Native Crash TIME: 10664913
2023-10-31 13:56:53.104 21321-21321 DEBUG pid-21321 A *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-10-31 13:56:53.105 21321-21321 DEBUG pid-21321 A Build fingerprint: 'Nokia/CosmoRefresh_00WW/COR:11/RP1A.201005.001/00WW_1_070:user/release-keys'
2023-10-31 13:56:53.105 21321-21321 DEBUG pid-21321 A Revision: '0'
2023-10-31 13:56:53.105 21321-21321 DEBUG pid-21321 A ABI: 'arm'
2023-10-31 13:56:53.108 21321-21321 DEBUG pid-21321 A Timestamp: 2023-10-31 13:56:53+0800
2023-10-31 13:56:53.108 21321-21321 DEBUG pid-21321 A pid: 21029, tid: 21029, name: hostapd >>> /vendor/bin/hw/hostapd <<>> com.xx.yyy <<<
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A uid: 10191
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x11
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A Cause: null pointer dereference
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A r0 00000011 r1 00000011 r2 00000000 r3 00000007
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A r4 00000004 r5 ffffffff r6 00000011 r7 00000000
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A r8 00000000 r9 00000042 r10 bfa76838 r11 c6ff7fa3
2023-10-31 14:34:51.961 24130-24130 DEBUG pid-24130 A ip 80000000 sp bfa76640 lr f572a731 pc f56f809a
2023-10-31 14:34:51.977 24130-24130 DEBUG pid-24130 A backtrace:
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #00 pc 0005f09a /apex/com.android.runtime/lib/bionic/libc.so (strlen_a15+22) (BuildId: 94ce23f0a59d2540a7efb945d8c8c6dd)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #01 pc 0009172d /apex/com.android.runtime/lib/bionic/libc.so (__vfprintf+3428) (BuildId: 94ce23f0a59d2540a7efb945d8c8c6dd)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #02 pc 000a6749 /apex/com.android.runtime/lib/bionic/libc.so (vsnprintf+156) (BuildId: 94ce23f0a59d2540a7efb945d8c8c6dd)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #03 pc 001af1f3 /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (__log_print+110) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #04 pc 000af2fb /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #05 pc 000a310b /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #06 pc 000a310b /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #07 pc 00111cd1 /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #08 pc 0010a707 /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BaseVodRequest::fillPopRequestInfo(PopRequestInfo&)+50) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #09 pc 0010871d /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (PopRequest::getRequestUrl()+52) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #10 pc 001085c7 /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (PopRequest::requestFunc()+158) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.978 24130-24130 DEBUG pid-24130 A #11 pc 00109571 /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.979 24130-24130 DEBUG pid-24130 A #12 pc 001aebfb /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (afThread::onRun()+262) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.979 24130-24130 DEBUG pid-24130 A #13 pc 001af067 /data/app/~~1Fcv9oQTT7AZ7S825dOdvg==/com.xx.yy-ipjz54nq-1KssRLOqHogbQ==/base.apk!libsaasCorePlayer.so (offset 0xc8d000) (BuildId: 91a95bbfc53a546c2160faeee0fa17d62efae388)
2023-10-31 14:34:51.979 24130-24130 DEBUG pid-24130 A #14 pc 000aadbb /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: 94ce23f0a59d2540a7efb945d8c8c6dd)
2023-10-31 14:34:51.979 24130-24130 DEBUG pid-24130 A #15 pc 00063bcd /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 94ce23f0a59d2540a7efb945d8c8c6dd)
---------------------------- PROCESS STARTED (24132) for package com.xx.yy ----------------------------