Android Studio: 记录一个android studio profiler 崩溃的问题
环境
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"按钮时还是会发生崩溃。目前暂时找不到好的解决办法,只好换一个手机了。