Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 ANR while running LocationComponentActivity #561

Open
pengdev opened this issue Feb 18, 2022 · 0 comments
Open

🐞 ANR while running LocationComponentActivity #561

pengdev opened this issue Feb 18, 2022 · 0 comments
Labels

Comments

@pengdev
Copy link
Member

pengdev commented Feb 18, 2022

Configuration

  • SDK Version [Android Maps SDK v10.3.0]
  • Android OS Version [ 11]
  • Device model(s): [OnePlus 7 Pro]
  • App: [Android Maps SDK test app]

Steps to Reproduce
When testing LocationComponentActivity , I experienced the following ANR.

Expected
No ANR.

Logging

2022-02-18 14:47:21.611 1623-26661/? E/ActivityManager: ANR in com.mapbox.maps.testapp
    PID: 13479
    Reason: Broadcast of Intent { act=com.mapbox.scheduler_flusher flg=0x10 }
    Load: 0.0 / 0.0 / 0.0
    ----- Output from /proc/pressure/memory -----
    some avg10=0.00 avg60=0.09 avg300=0.08 total=7291749535
    full avg10=0.00 avg60=0.00 avg300=0.00 total=3059058498
    ----- End output from /proc/pressure/memory -----
    
    CPU usage from 0ms to 21226ms later (2022-02-18 14:47:00.325 to 2022-02-18 14:47:21.551):
      52% 13479/com.mapbox.maps.testapp: 41% user + 11% kernel / faults: 133656 minor 65 major
      21% 1623/system_server: 10% user + 10% kernel / faults: 13527 minor 20 major
      12% 5429/net.oneplus.launcher: 2.2% user + 10% kernel / faults: 2081 minor
      0.1% 1325/media.codec: 0% user + 0% kernel / faults: 47058 minor 1 major
      0% 1469/media.swcodec: 0% user + 0% kernel / faults: 24907 minor 3 major
      5% 2576/com.android.systemui: 3% user + 2% kernel / faults: 6529 minor 5 major
      0.5% 8898/com.google.android.inputmethod.latin: 0.3% user + 0.2% kernel / faults: 4234 minor 10 major
      2.4% 16067/kworker/u16:4: 0% user + 2.4% kernel
      1.9% 5760/com.google.android.providers.media.module: 0.2% user + 1.6% kernel / faults: 52 minor
      1.9% 19040/com.google.android.gms.persistent: 1% user + 0.8% kernel / faults: 386 minor
      1.8% 1076/surfaceflinger: 1.7% user + 0.1% kernel / faults: 6 minor
      1.8% 3274/com.android.phone: 1.1% user + 0.7% kernel / faults: 1995 minor 1 major
      1.8% 31255/kworker/u16:8: 0% user + 1.8% kernel
      0% 1022/media.hwcodec: 0% user + 0% kernel / faults: 6970 minor
      1.5% 627/lmkd: 0% user + 1.5% kernel
      0.2% 150/kswapd0: 0% user + 0.2% kernel
      1.2% 24859/kworker/u16:10: 0% user + 1.2% kernel
      1.1% 12781/adbd: 0.1% user + 1% kernel
      1% 25734/kworker/u16:2: 0% user + 1% kernel
      0.1% 23744/kworker/u16:9: 0% user + 0.1% kernel
      0.8% 626/logd: 0.2% user + 0.5% kernel / faults: 8 minor
      0.8% 9021/com.ss.android.article.news: 0.3% user + 0.4% kernel / faults: 193 minor
      0.8% 30150/com.google.android.gms.persistent: 0.4% user + 0.3% kernel / faults: 100 minor
      0.8% 807/statsd: 0.6% user + 0.1% kernel / faults: 179 minor
      0.7% 19672/com.tencent.mm: 0.3% user + 0.4% kernel / faults: 22 minor
      0.1% 24594/kworker/u16:0: 0% user + 0.1% kernel
      0.6% 587/ueventd: 0.5% user + 0% kernel / faults: 2 minor
      0.6% 29511/com.google.android.gms.persistent: 0.2% user + 0.3% kernel / faults: 53 minor
      0.5% 913/[email protected]: 0.1% user + 0.4% kernel / faults: 180 minor
      0.5% 947/[email protected]: 0.1% user + 0.3% kernel / faults: 889 minor
      0.5% 101/system: 0% user + 0.5% kernel
      0.5% 916/[email protected]: 0.3% user + 0.1% kernel / faults: 292 minor
      0.5% 18331/com.Slack: 0.3% user + 0.1% kernel / faults: 50 minor
      0.4% 514/crtc_commit:136: 0% user + 0.4% kernel
      0.4% 24595/kworker/u16:5: 0% user + 0.4% kernel
      0.4% 26208/kworker/3:2: 0% user + 0.4% kernel
      0% 5589/com.android.nfc: 0% user + 0% kernel / faults: 823 minor 2 major
      0.3% 20837/logcat: 0% user + 0.3% kernel
      0.3% 22030/kworker/u17:0: 0% user + 0.3% kernel
      0.3% 9/rcu_preempt: 0% user + 0.3% kernel
      0.3% 271/kgsl_worker_thr: 0% user + 0.3% kernel
      0.3% 699/[email protected]: 0% user + 0.2% kernel / faults: 44 minor
      0.3% 3200/org.codeaurora.ims: 0.1% user + 0.1% kernel / faults: 506 minor
      0% 5608/com.qualcomm.qti.services.systemhelper:systemhelper_service: 0% user + 0% kernel / faults: 509 minor 1 major
      0.2% 717/jbd2/dm-3-8: 0% user + 0.2% kernel
      0.2% 808/netd: 0% user + 0.2% kernel / faults: 60 minor
      0% 903/[email protected]_64: 0% user + 0% kernel / faults: 40 minor
      0.2% 1694/qcrild: 0.1% user + 0% kernel / faults: 47 minor
      0.2% 2544/com.oneplus.coreservice: 0.1% user + 0.1% kernel / faults: 543 minor 1 major
      0% 3068/.dataservices: 0% user + 0% kernel / faults: 545 minor
      0% 3148/com.qualcomm.qti.telephonyservice: 0% user + 0% kernel / faults: 493 minor
2022-02-18 14:47:21.612 1623-26661/? E/ActivityManager:   0.2% 3250/com.oneplus.orm: 0.2% user + 0% kernel / faults: 1051 minor 4 major
      0.2% 3689/com.google.android.gm: 0.2% user + 0% kernel / faults: 126 minor
      0.2% 3973/irq/32-90b6400.: 0% user + 0.2% kernel
      0.2% 22533/com.ss.android.article.news:push: 0.1% user + 0% kernel / faults: 80 minor
      0.2% 10/rcu_sched: 0% user + 0.2% kernel
      0.2% 628/servicemanager: 0% user + 0.2% kernel
      0.2% 925/[email protected]: 0% user + 0.2% kernel / faults: 9 minor
      0.2% 3032/com.android.networkstack.process: 0.1% user + 0% kernel / faults: 568 minor 1 major
      0.2% 3116/.qtidataservices: 0% user + 0.2% kernel / faults: 559 minor 1 major
      0% 5553/com.dolby.daxservice: 0% user + 0% kernel / faults: 499 minor
      0% 20533/com.google.android.googlequicksearchbox:interactor: 0% user + 0% kernel / faults: 590 minor
      0.1% 46/rcuop/4: 0% user + 0.1% kernel
      0% 800/tombstoned: 0% user + 0% kernel / faults: 2 major
      0.1% 953/[email protected]: 0% user + 0.1% kernel
      0.1% 3226/com.qualcomm.qti.devicestatisticsservice: 0% user + 0% kernel / faults: 491 minor
      0.1% 3976/irq/33-90cd000.: 0% user + 0.1% kernel
      0% 5627/com.android.se: 0% user + 0% kernel / faults: 500 minor
      0% 5704/com.oneplus.sound.tuner: 0% user + 0% kernel / faults: 493 minor
      0% 5743/com.oneplus.opbugreportlite: 0% user + 0% kernel / faults: 513 minor
      0.1% 8166/kworker/u17:1: 0% user + 0.1% kernel
      0.1% 17024/com.google.android.wearable.app:background: 0% user + 0% kernel / faults: 99 minor
      0.1% 25424/kworker/2:1: 0% user + 0.1% kernel
      0.1% 1/init: 0% user + 0% kernel
      0.1% 12/rcuop/0: 0% user + 0.1% kernel
      0.1% 30/rcuop/2: 0% user + 0.1% kernel
      0% 898/android.hardware.audio.service: 0% user + 0% kernel / faults: 123 minor
      0.1% 995/vendor.qti.hardware.display.allocator-service: 0% user + 0.1% kernel
      0.1% 1692/msm_irqbalance: 0% user + 0% kernel
      0.1% 1701/hvdcp_opti: 0% user + 0.1% kernel
      0.1% 1865/qrtr_rx: 0% user + 0.1% kernel
      0% 3172/com.qualcomm.qtil.aptxals: 0% user + 0% kernel / faults: 494 minor
      0% 4331/com.qualcomm.location: 0% user + 0% kernel / faults: 567 minor
      0% 5671/com.oneplus: 0% user + 0% kernel / faults: 502 minor
      0% 5712/com.qualcomm.qti.workloadclassifier: 0% user + 0% kernel / faults: 500 minor
      0.1% 24633/com.google.android.gms: 0.1% user + 0% kernel / faults: 71 minor
      0% 25955/com.google.android.inputmethod.latin: 0% user + 0% kernel / faults: 11 minor
      0.1% 30826/scheduler_threa: 0% user + 0.1% kernel
      0% 13/rcuos/0: 0% user + 0% kernel
      0% 62/rcuop/6: 0% user + 0% kernel
      0% 1026/qrtr_rx: 0% user + 0% kernel
      0% 1321/wificond: 0% user + 0% kernel
      0% 1527/lowi-server: 0% user + 0% kernel / faults: 1 minor
      0% 3335/com.google.android.ext.services: 0% user + 0% kernel / faults: 49 minor
      0% 14105/net.oneplus.odm.provider: 0% user + 0% kernel / faults: 300 minor
      0% 28215/com.android.chrome: 0% user + 0% kernel / faults: 99 minor
      0% 31262/kworker/0:4: 0% user + 0% kernel
      0% 19/ksoftirqd/1: 0% user + 0% kernel
      0% 22/rcuop/1: 0% user + 0% kernel
      0% 23/rcuos/1: 0% user + 0% kernel
      0% 26/migration/2: 0% user + 0% kernel
      0% 27/ksoftirqd/2: 0% user + 0% kernel
      0% 31/rcuos/2: 0% user + 0% kernel
      0% 35/ksoftirqd/3: 0% user + 0% kernel
      0% 38/rcuop/3: 0% user + 0% kernel
      0% 47/rcuos/4: 0% user + 0% kernel
      0% 54/rcuop/5: 0% user + 0% kernel
      0% 55/rcuos/5: 0% user + 0% kernel
      0% 383/irq/577-dma-gra: 0% user + 0% kernel
      0% 485/core_ctl/4: 0% user + 0% kernel
      0% 515/crtc_event:136: 0% user + 0% kernel
      0% 629/hwservicemanager: 0% user + 0% kernel / faults: 2 minor
      0% 787/loop27: 0% user + 0% kernel
      0% 902/[email protected]: 0% user + 0% kernel / faults: 20 minor
      0% 939/[email protected]: 0% user + 0% kernel / faults: 21 minor
      0% 1064/audioserver: 0% user + 0% kernel
      0% 1282/dpmQmiMgr: 0% user + 0% kernel
      0% 1526/[email protected]: 0% user + 0% kernel / faults: 16 minor
2022-02-18 14:47:21.612 1623-26661/? E/ActivityManager:   0% 1702/qcrild: 0% user + 0% kernel
      0% 2923/com.qualcomm.qcrilmsgtunnel: 0% user + 0% kernel / faults: 5 minor
      0% 3123/hans: 0% user + 0% kernel
      0% 7315/com.google.android.ext.services: 0% user + 0% kernel / faults: 86 minor
      0% 10079/com.oneplus.opbackup: 0% user + 0% kernel / faults: 10 minor
      0% 10165/com.ss.android.article.news:sandboxed_process2: 0% user + 0% kernel / faults: 26 minor
      0% 19298/com.google.android.gms: 0% user + 0% kernel / faults: 4 minor
      0% 23398/kworker/3:0: 0% user + 0% kernel
      0% 24652/com.google.android.gms: 0% user + 0% kernel / faults: 2 minor
      0% 27507/com.google.android.gm: 0% user + 0% kernel / faults: 70 minor
      0% 30772/com.android.bluetooth: 0% user + 0% kernel / faults: 3 minor
      0% 31257/kworker/0:3: 0% user + 0% kernel
     +0% 26662/kworker/2:0: 0% user + 0% kernel
    28% TOTAL: 10% user + 9.5% kernel + 5.8% iowait + 1.9% irq + 0.2% softirq
    CPU usage from 129ms to 973ms later (2022-02-18 14:47:00.454 to 2022-02-18 14:47:01.298) with 99% awake:
      74% 1623/system_server: 74% user + 0% kernel / faults: 1615 minor
        66% 26661/AnrConsumer: 10% user + 56% kernel
        1.4% 1741/android.fg: 0% user + 1.4% kernel
      12% 5429/net.oneplus.launcher: 0% user + 12% kernel
        1.7% 8285/RenderDrive: 1.7% user + 0% kernel
        1.7% 10528/RenderDrive: 0% user + 1.7% kernel
        1.7% 16534/RenderDrive: 0% user + 1.7% kernel
        1.7% 28573/RenderDrive: 0% user + 1.7% kernel
      2.3% 46/rcuop/4: 0% user + 2.3% kernel
      2.7% 1076/surfaceflinger: 0% user + 2.7% kernel
        1.3% 1076/surfaceflinger: 1.3% user + 0% kernel
        1.3% 1135/Binder:1076_2: 0% user + 1.3% kernel
        1.3% 3928/ScreenShotThrea: 0% user + 1.3% kernel
      1.1% 101/system: 0% user + 1.1% kernel
      1.2% 807/statsd: 0% user + 1.2% kernel / faults: 6 minor
      1.3% 947/[email protected]: 1.3% user + 0% kernel / faults: 32 minor
      1.3% 995/vendor.qti.hardware.display.allocator-service: 0% user + 1.3% kernel
      3.6% 31255/kworker/u16:8: 0% user + 3.6% kernel
    28% TOTAL: 3% user + 12% kernel + 10% iowait + 1.7% irq + 0.1% softirq
@pengdev pengdev added the bug label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant