mapbox / mapbox-android-demo

Google Play demo app for the Mapbox Maps SDK for Android
https://play.google.com/store/apps/details?id=com.mapbox.mapboxandroiddemo
BSD 2-Clause "Simplified" License
720 stars 493 forks source link

ANR: Input dispatching timed out #783

Open lilykaiser opened 6 years ago

lilykaiser commented 6 years ago

Device: Nexus 6P OS: Android 7.1.1 Version of the demo app: master from Friday 07/13 with Maps SDK 6.3.0-beta.1 installed

The app stops running sometimes, maybe randomly, maybe after I load a complicated example (geojson extrusions? managing offline packs? snaking directions?). logcat says:

ANR in com.mapbox.mapboxandroiddemo.debug (com.mapbox.mapboxandroiddemo.debug/com.mapbox.mapboxandroiddemo.examples.extrusions.RotationExtrusionActivity)
        PID: 8202
        Reason: Input dispatching timed out (Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.)

The activity name and explanation of the reason changes depending on which activity I was looking at when the app crashed. Here's another example:

    07-17 12:30:13.638 4252-4280/? E/ActivityManager: ANR in com.mapbox.mapboxandroiddemo.debug (com.mapbox.mapboxandroiddemo.debug/com.mapbox.mapboxandroiddemo.labs.SnakingDirectionsRouteActivity)
        PID: 25073
        Reason: Input dispatching timed out (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: 45.  Wait queue head age: 5508.0ms.)

Could you please take a look?

zplesac commented 5 years ago

Are there any news here? I'm experiencing the same issue on: Device: Google Pixel 2 OS: Android 9.0 Mapbox version: 6.7.1

hitswa commented 5 years ago

same here

coyarzun89 commented 5 years ago

Same here with the latest version 7.2.0! It mostly happens on huawei devices.

gqb commented 5 years ago

I have the same issue, did not find the solution