添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

anr 时,运行的进程

2021-07-14 11:16:37.279 I/ActivityManager: Adding ANR proc: ProcessRecord{fea1619 14599:com.teddy.migou:channel/u0a220}
2021-07-14 11:16:37.279 I/ActivityManager: Adding ANR proc: ProcessRecord{ff4aaa4 13606:com.mi.globalbrowser/u0a79}
2021-07-14 11:16:37.279 I/ActivityManager: Adding ANR proc: ProcessRecord{604ef73 14489:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0/u0a220i9}
2021-07-14 11:16:37.279 I/ActivityManager: Adding ANR proc: ProcessRecord{f6d922b 14022:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0/u0a79i8}
2021-07-14 11:16:37.279 I/ActivityManager: Adding ANR proc: ProcessRecord{da4f61 9094:com.android.vending/u0a177}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{c624e17 2243:com.google.android.gms.persistent/u0a187}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{7012e30 11668:com.google.process.gapps/u0a187}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{b37aa9 2363:com.google.process.gservices/u0a187}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{c8fe2c 3012:com.xiaomi.xmsf/u0a107}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{7811031 2732:com.miui.securitycenter.remote/1000}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{dbc357b 2858:com.google.android.gms/u0a187}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{8fcb2bc 5163:com.google.android.gms.unstable/u0a187}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{d9f9bf8 15028:com.miui.android.fashiongallery/u0a208}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{159c4c5 15012:com.google.android.apps.walletnfcrel/u0a201}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{2616747 14723:com.android.chrome/u0a203}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{1d1314d 2702:com.google.android.projection.gearhead:shared/u0a188}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{380e82e 13576:com.miui.msa.global:ui/u0a119}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{3fd558e 1697:com.miui.home/u0a90}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{4946986 7998:com.miui.analytics/u0a100}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{6350fcf 14051:android.process.media/u0a61}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{bb8a3b4 12322:com.miui.msa.global/u0a119}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{ff8b04f 13890:com.xiaomi.account:accountservice/u0a108}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{882fd5c 13713:com.android.providers.partnerbookmarks/u0a87}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{9a3ebe2 13413:com.miui.cloudservice/u0a121}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{34e5333 13454:com.xiaomi.simactivate.service/u0a157}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{e5c4e7a 2384:com.google.android.googlequicksearchbox:search/u0a185}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{cdcbb58 1717:com.android.settings:remote/1000}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{a201865 7702:com.miui.core/u0a151}
2021-07-14 11:16:37.280 I/ActivityManager: Adding ANR proc: ProcessRecord{4b9a2dd 4413:com.miui.powerkeeper/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{a37593a 8274:com.xiaomi.mi_connect_service/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{7b5b685 2921:com.xiaomi.location.fused/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{1c35f4 7880:com.miui.mishare.connectivity/u0a94}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{39cd9eb 4863:com.android.updater/9802}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{af09348 3366:com.lbe.security.miui/u0a68}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{6fed5e1 1745:com.google.android.ext.services/u0a63}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{88537fb 2398:com.google.android.googlequicksearchbox:interactor/u0a185}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{cb1cf06 2895:com.android.smspush/u0a152}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{96d29c7 2831:com.huaqin.sarcontroller:controller/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{d1f9bf4 2647:com.miui.face/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{8781e7c 2635:com.tencent.soter.soterserver/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{8b7b3ee 2602:com.xiaomi.finddevice/9810}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{a4beffd 2591:com.xiaomi.xmsfkeeper/u0a161}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{ab1ef1d 2566:com.xiaomi.mircs/u0a88}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{20bd592 2532:com.android.se/1068}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{b089b63 2505:system/u0a54}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{3948360 2486:com.miui.daemon/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{2836019 2454:com.huaqin.sarcontroller/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{58db8de 2431:com.goodix.fingerprint/1000}
2021-07-14 11:16:37.281 I/ActivityManager: Adding ANR proc: ProcessRecord{55f8abf 2190:com.mediatek.ims/1001}
2021-07-14 11:16:37.282 I/ActivityManager: Adding ANR proc: ProcessRecord{6e5a496 1498:com.android.systemui/1000}
2021-07-14 11:16:37.890 I/ActivityManager: Dumping to /data/anr/anr_2021-07-14-11-16-37-888

anr Warning

  • 一个原因: RecyclerView的onLayout 的时间太长了....
  • SmartRefreshLayout
  • 2021-07-14 11:16:43.954 D/View: [ANR Warning]onLayout time too long, this =androidx.recyclerview.widget.RecyclerView{1493a62 VFED..... ......ID 0,0-1080,1713 #7f090366 app:id/rv_video}time =15159 ms
    2021-07-14 11:16:43.966 D/View: [ANR Warning]onLayout time too long, this =com.scwang.smartrefresh.layout.SmartRefreshLayout{5c3e7f3 V.E...... ......ID 0,0-1080,1713 #7f09034b app:id/refreshLayout}time =15180 ms
    2021-07-14 11:16:43.973 D/View: [ANR Warning]onLayout time too long, this =androidx.viewpager.widget.ViewPager{f59a43f VFED..... ......ID 0,135-1080,1848 #7f0904da app:id/viewPager}time =15188 ms
    2021-07-14 11:16:43.978 D/View: [ANR Warning]onLayout time too long, this =android.widget.LinearLayout{f0510c V.E...... ......ID 0,0-1080,1848}time =15199 ms
    2021-07-14 11:16:43.984 D/View: [ANR Warning]onLayout time too long, this =android.widget.LinearLayout{a4c5a55 V.E...... ......ID 0,124-1080,1972 #7f090280 app:id/main_view}time =15205 ms
    2021-07-14 11:16:43.988 D/View: [ANR Warning]onLayout time too long, this =android.widget.LinearLayout{8c68c6a V.E...... ......ID 0,0-1080,1972}time =15211 ms
    2021-07-14 11:16:43.994 D/View: [ANR Warning]onLayout time too long, this =android.widget.FrameLayout{f4e455b V.E...... ......ID 0,0-1080,1972 #7f0900e7 app:id/cate_container}time =15217 ms
    2021-07-14 11:16:43.998 D/View: [ANR Warning]onLayout time too long, this =android.widget.FrameLayout{682563a V.E...... ......ID 0,0-1080,1972}time =15223 ms
    2021-07-14 11:16:44.003 D/View: [ANR Warning]onLayout time too long, this =android.widget.RelativeLayout{3197292 V.E...... ......ID 0,0-1080,2110 #7f0901ef app:id/home_page}time =15228 ms
    2021-07-14 11:16:44.031 D/View: [ANR Warning]onLayout time too long, this =com.teddy.migou.activity.view.ScrollHomePageView{1aa7463 V.E...... ......ID 0,100-1080,2210 #7f0901f0 app:id/home_scroll_page}time =15260 ms
    2021-07-14 11:16:44.036 D/View: [ANR Warning]onLayout time too long, this =android.widget.FrameLayout{c9be860 V.E...... ......ID 0,0-1080,2210 #1020002 android:id/content}time =15264 ms
    2021-07-14 11:16:44.040 D/View: [ANR Warning]onLayout time too long, this =com.android.internal.widget.ActionBarOverlayLayout{96f6119 V.E...... ......ID 0,0-1080,2210 #1020251 android:id/decor_content_parent}time =15269 ms
    2021-07-14 11:16:44.045 D/View: [ANR Warning]onLayout time too long, this =DecorView@747fc92[O2OTabActivity]time =15277 ms
    

    在anr时,界面又收到了点击事件(inputEvent)

  • Input dispatching timed out.
  • 2021-07-14 11:16:45.338 E/ActivityManager: ANR in com.teddy.migou (com.teddy.migou/.activity.O2OTabActivity) PID: 14266 Reason: Input dispatching timed out (com.teddy.migou/com.teddy.migou.activity.O2OTabActivity, Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 4. Wait queue head age: 8832.0ms.) Parent: com.teddy.migou/.activity.O2OTabActivity Load: 28.03 / 26.02 / 15.62 CPU usage from 0ms to 8109ms later (2021-07-14 11:16:37.172 to 2021-07-14 11:16:45.281): 136% 14266/com.teddy.migou: 109% user + 27% kernel / faults: 12305 minor 7 major 27% 1297/system_server: 16% user + 10% kernel / faults: 8667 minor 4 major 5.8% 8385/com.google.android.inputmethod.latin: 3.2% user + 2.6% kernel / faults: 2009 minor 3 major 0.1% 667/media.codec: 0% user + 0% kernel / faults: 6534 minor 5 major 0% 684/media.swcodec: 0% user + 0% kernel / faults: 4306 minor 17 major 3.2% 1593/rx_thread: 0% user + 3.2% kernel 3.2% 9094/com.android.vending: 2.3% user + 0.8% kernel / faults: 1097 minor 7 major 2.8% 372/logd: 1.6% user + 1.2% kernel / faults: 30 minor 2.8% 1688/com.android.phone: 1.7% user + 1.1% kernel / faults: 1358 minor 2 major 2.2% 1591/main_thread: 0% user + 2.2% kernel 2.1% 259/kworker/u16:3: 0% user + 2.1% kernel 2.1% 1592/hif_thread: 0% user + 2.1% kernel 1.8% 612/adbd: 0.3% user + 1.4% kernel / faults: 2 minor 1.4% 295/mmc-cmdqd/0: 0% user + 1.4% kernel 0% 657/media.extractor: 0% user + 0% kernel / faults: 1678 minor 8 major 1.2% 8309/mdnsd: 0.4% user + 0.7% kernel 0.9% 15312/kworker/u16:0: 0% user + 0.9% kernel 0.7% 538/audioserver: 0.2% user + 0.4% kernel / faults: 116 minor 9 major 0.7% 1315/kworker/u16:16: 0% user + 0.7% kernel 0.6% 350/kworker/u16:7: 0% user + 0.6% kernel 0.6% 1498/com.android.systemui: 0.2% user + 0.3% kernel / faults: 50 minor 0.4% 8/rcu_preempt: 0% user + 0.4% kernel 0.4% 280/ipi_cpu_dvfs_rt: 0% user + 0.4% kernel 0.4% 546/surfaceflinger: 0% user + 0.4% kernel / faults: 70 minor 0.4% 2858/com.google.android.gms: 0.3% user + 0.1% kernel / faults: 51 minor 0.4% 14315/logcat: 0.1% user + 0.3% kernel 0.3% 184/pbm: 0% user + 0.3% kernel 0.3% 258/kworker/u16:2: 0% user + 0.3% kernel 0.3% 495/netd: 0.1% user + 0.2% kernel / faults: 101 minor 8 major 0.3% 14310/logcat: 0.2% user + 0.1% kernel / faults: 1 minor 0.2% 9/rcu_sched: 0% user + 0.2% kernel 0% 476/loop6: 0% user + 0% kernel 0% 497/zygote: 0% user + 0% kernel / faults: 20 minor 0% 686/tombstoned: 0% user + 0% kernel / faults: 28 minor 54 major 0.2% 14489/com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0: 0.2% user + 0% kernel / faults: 12 minor 0.1% 1/init: 0% user + 0.1% kernel / faults: 4 minor 0.1% 303/charger_thread: 0% user + 0.1% kernel 0% 314/kworker/7:1H: 0% user + 0% kernel 0% 330/kworker/0:1H: 0% user + 0% kernel 0% 331/kworker/1:1H: 0% user + 0% kernel 0% 354/kworker/2:1H: 0% user + 0% kernel 0% 378/vold: 0% user + 0% kernel / faults: 126 minor 4 major 0.1% 396/jbd2/mmcblk0p46: 0% user + 0.1% kernel 0% 480/loop8: 0% user + 0% kernel 0.1% 510/android.hardware.graphics.composer@2.1-service: 0% user + 0.1% kernel / faults: 11 minor 0.1% 524/vendor.mediatek.hardware.mtkpower@1.0-service: 0% user + 0.1% kernel 0.1% 563/psimon: 0% user + 0.1% kernel 0.1% 632/mi_thermald: 0% user + 0.1% kernel 0% 646/cameraserver: 0% user + 0% kernel / faults: 110 minor 7 major 0% 649/drmserver: 0% user + 0% kernel / faults: 73 minor 3 major 0% 656/mediadrmserver: 0% user + 0% kernel / faults: 27 minor 0% 658/media.metrics: 0% user + 0% kernel / faults: 118 minor 2 major 0% 659/mediaserver: 0% user + 0% kernel / faults: 32 minor 5 major 0.1% 664/statsd: 0% user + 0.1% kernel / faults: 34 minor 3 major 0.1% 674/thermalloadalgod: 0% user + 0.1% kernel 0.1% 677/vendor.mediatek.hardware.pq@2.2-service: 0.1% user + 0% kernel 0.1% 931/kworker/u17:2: 0% user + 0.1% kernel 0.1% 995/gsm0710mux 2021-07-14 11:16:45.350 I/DropBoxManagerService: add tag=data_app_anr isTagEnabled=true flags=0x2

    2021-07-14 11:16:45.351 W/MQSEventManager: anroccur 2021-07-14 11:20:02.049 D/WifiScanningService: addSingleScanRequest: ClientInfo[uid=1000,android.os.Messenger@821559],Id=9,WorkSource{10180 com.google.android.setupwizard}, ScanSettings { type:HIGH ACCURACY band:24Ghz & 5Ghz (DFS incl) ignoreLocationSettings:false period:0 reportEvents:3 numBssidsPerScan:0 maxScansToCache:0 channels:[ ] hiddenNetworks:[ ] } 2021-07-14 11:20:04.279 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=9,results=31 2021-07-14 11:20:04.279 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=2,results=31 2021-07-14 11:20:04.280 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=3,results=31 2021-07-14 11:20:12.089 D/WifiScanningService: addSingleScanRequest: ClientInfo[uid=1000,android.os.Messenger@821559],Id=10,WorkSource{10180 com.google.android.setupwizard}, ScanSettings { type:HIGH ACCURACY band:24Ghz & 5Ghz (DFS incl) ignoreLocationSettings:false period:0 reportEvents:3 numBssidsPerScan:0 maxScansToCache:0 channels:[ ] hiddenNetworks:[ ] } 2021-07-14 11:20:13.141 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=10,results=30 2021-07-14 11:20:13.141 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=2,results=30 2021-07-14 11:20:13.142 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=3,results=30 2021-07-14 11:20:22.126 D/WifiScanningService: addSingleScanRequest: ClientInfo[uid=1000,android.os.Messenger@821559],Id=11,WorkSource{10180 com.google.android.setupwizard}, ScanSettings { type:HIGH ACCURACY band:24Ghz & 5Ghz (DFS incl) ignoreLocationSettings:false period:0 reportEvents:3 numBssidsPerScan:0 maxScansToCache:0 channels:[ ] hiddenNetworks:[ ] } 2021-07-14 11:20:23.147 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=11,results=28 2021-07-14 11:20:23.148 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=2,results=28 2021-07-14 11:20:23.148 D/WifiScanningService: singleScanResults: ClientInfo[uid=1000,android.os.Messenger@821559],Id=3,results=28

    导出log

  • 新版的手机在使用adb pull 导出anr文件到手机时会有权限限制的问题;
  • ChatGPT保姆级教程,一分钟学会使用ChatGPT!
  •