環境
Android Studio 4.1.3
華為Mate9 (Android 9)
崩潰堆棧
2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: Build fingerprint: 'samsung/beyond2qltezc/beyond2q:10/QP1A.190711.020/G9750ZCU4CTG2:user/release-keys' 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: Revision: '17' 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: ABI: 'arm' 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: Timestamp: 2020-08-14 10:27:28+0800 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: pid: 9957, tid: 12983, name: OgreThread >>> com.uxin.live.overseas <<< 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: uid: 10652 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1f 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: Cause: null pointer dereference 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: r0 c086cf88 r1 ffffffff r2 f6174c00 r3 bf587c04 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: r4 c086cf30 r5 c086cf88 r6 f6174c00 r7 c086ced8 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: r8 71295ac0 r9 bf5c14db r10 00000001 r11 00000000 2020-08-14 10:27:28.844 13108-13108/? A/DEBUG: ip bfcd590c sp c086ced8 lr bfac2583 pc bfac2756 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: backtrace: 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: NOTE: Function names and BuildId information is missing for some frames due 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: NOTE: to unreadable libraries. For unwinds of apps, only shared libraries 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: NOTE: found under the lib/ directory are readable. 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: #00 pc 006b9756 /data/app/com.uxin.live.overseas-9DpN_S-ZeKl0aCMvcJDApA==/lib/arm/libUxinDynamicFace.so (BuildId: 6b87638fee239e0291d7a7ece8f5b0b60b812edb) 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: #01 pc 006b957f /data/app/com.uxin.live.overseas-9DpN_S-ZeKl0aCMvcJDApA==/lib/arm/libUxinDynamicFace.so (BuildId: 6b87638fee239e0291d7a7ece8f5b0b60b812edb) 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: #02 pc 006a3787 /data/app/com.uxin.live.overseas-9DpN_S-ZeKl0aCMvcJDApA==/lib/arm/libUxinDynamicFace.so (__gxx_personality_v0+330) (BuildId: 6b87638fee239e0291d7a7ece8f5b0b60b812edb) 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: #03 pc 001c96e8 /data/data/com.uxin.live.overseas/code_cache/libjvmtiagent_arm.so 2020-08-14 10:27:28.846 13108-13108/? A/DEBUG: #04 pc 001ca00c /data/data/com.uxin.live.overseas/code_cache/libjvmtiagent_arm.so
解決辦法
Android Studio打開Device File Explorer, 刪除/data/local/tmp/perfd文件夾.
注意:
這個解決辦法是照:https://blog.csdn.net/miyu1994/article/details/107999218 這篇文章抄的,經過實測,刪除上面的那個文件夾之后確實不崩潰了,不過在點擊底部的"start recording"按鈕時還是會發生崩潰。目前暫時找不到好的解決辦法,只好換一個手機了。