mapbox-android-demo icon indicating copy to clipboard operation
mapbox-android-demo copied to clipboard

ANR: Input dispatching timed out

Open lilykaiser opened this issue 6 years ago • 4 comments

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?

lilykaiser avatar Jul 17 '18 22:07 lilykaiser

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

zplesac avatar Dec 10 '18 09:12 zplesac

same here

hitswa avatar Dec 25 '18 18:12 hitswa

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

coyarzun89 avatar Mar 17 '19 02:03 coyarzun89

I have the same issue, did not find the solution

gqb avatar Aug 15 '19 10:08 gqb