开发者社区> 问答> 正文

求助!!VOD-vid+playauth播放方式,auth过期,native层崩溃

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 <<<
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A  uid: 1010
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A  Cause: null pointer dereference
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A      r0  00000000  r1  eea68188  r2  00000000  r3  015b3f70
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A      r4  00000000  r5  00000016  r6  ee96a020  r7  0000005f
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A      r8  000000e8  r9  eea68180  r10 00000000  r11 ee9c8000
2023-10-31 13:56:53.108 21321-21321 DEBUG                   pid-21321                            A      ip  015b35ec  sp  ffb1bd18  lr  015503f1  pc  015579b4
2023-10-31 13:56:53.130 21321-21321 DEBUG                   pid-21321                            A  backtrace:
2023-10-31 13:56:53.130 21321-21321 DEBUG                   pid-21321                            A        #00 pc 000489b4  /vendor/bin/hw/hostapd (wpa_auth_sta_init+4) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.130 21321-21321 DEBUG                   pid-21321                            A        #01 pc 000413ed  /vendor/bin/hw/hostapd (hostapd_notif_assoc+528) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.130 21321-21321 DEBUG                   pid-21321                            A        #02 pc 00042351  /vendor/bin/hw/hostapd (wpa_supplicant_event+504) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #03 pc 000713a1  /vendor/bin/hw/hostapd (process_global_event+4660) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #04 pc 0000a4bd  /system/lib/libnl.so (nl_recvmsgs_report+604) (BuildId: 8465b37838031f8060d23761114afd86)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #05 pc 0000a59f  /system/lib/libnl.so (nl_recvmsgs+2) (BuildId: 8465b37838031f8060d23761114afd86)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #06 pc 000697d9  /vendor/bin/hw/hostapd (wpa_driver_nl80211_event_receive+20) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #07 pc 00051519  /vendor/bin/hw/hostapd (eloop_sock_table_dispatch+50) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #08 pc 000513a3  /vendor/bin/hw/hostapd (eloop_run+354) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #09 pc 00039061  /vendor/bin/hw/hostapd (hostapd_global_run+64) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #10 pc 00038d11  /vendor/bin/hw/hostapd (main+2140) (BuildId: 210cfc334ad6a60b0c8329457ba7ff36)
2023-10-31 13:56:53.131 21321-21321 DEBUG                   pid-21321                            A        #11 pc 0005ceeb  /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+66) (BuildId: 94ce23f0a59d2540a7efb945d8c8c6dd)
2023-10-31 14:34:51.781 23631-24125 libc                    com.xx.yy                   A  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x11 in tid 24125 (PopRequest), pid 23631 (.shortv.playlet)
2023-10-31 14:34:51.959 24130-24130 DEBUG                   pid-24130                            A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-10-31 14:34:51.960 24130-24130 DEBUG                   pid-24130                            A  Native Crash TIME: 12943768
2023-10-31 14:34:51.960 24130-24130 DEBUG                   pid-24130                            A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023-10-31 14:34:51.960 24130-24130 DEBUG                   pid-24130                            A  Build fingerprint: 'Nokia/CosmoRefresh_00WW/COR:11/RP1A.201005.001/00WW_1_070:user/release-keys'
2023-10-31 14:34:51.960 24130-24130 DEBUG                   pid-24130                            A  Revision: '0'
2023-10-31 14:34:51.960 24130-24130 DEBUG                   pid-24130                            A  ABI: 'arm'
2023-10-31 14:34:51.961 24130-24130 DEBUG                   pid-24130                            A  Timestamp: 2023-10-31 14:34:51+0800
2023-10-31 14:34:51.961 24130-24130 DEBUG                   pid-24130                            A  pid: 23631, tid: 24125, name: PopRequest  >>> 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 ----------------------------

展开
收起
funnyzhao 2023-10-31 15:23:57 70 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
互联网音视频点播业务云上实践 立即下载
《VoD问题排查与实战手册》 立即下载
低代码开发师(初级)实战教程 立即下载