Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

(Android) application becomes unresponsive to touch #1941

Closed

Description

@mb12

I've seen this several times today. Here is the relevant info from logcat.
(This is a regression since I started seeing this after I synced my repo. It doesn't happen with an older repo that I have).

I/InputDispatcher( 251): Application is not responding: Window{414f0940 com.mapbox.mapboxgl.testapp/com.mapbox.mapboxgl.testapp.MainActivity paused=false}. It has been 5005.9ms since event, 5005.6ms since wait started. Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.
I/WindowManager( 251): Input event dispatching timed out sending to com.mapbox.mapboxgl.testapp/com.mapbox.mapboxgl.testapp.MainActivity
I/InputDispatcher( 251): Dropped event because it is stale.
I/InputDispatcher( 251): Dropped event because it is stale.
I/InputDispatcher( 251): Dropped event because it is stale.
I/InputDispatcher( 251): Dropped event because it is stale.

Activity

  1. added
    Android
    on Jul 28, 2015
  2. ljbade commented on Jul 28, 2015

    @ljbade
    Contributor

    @bleege possibly related to recent Activity changes?

  3. mb12 commented on Jul 28, 2015

    @mb12
    Author

    I also see this sometimes in logcat (something about no touchable window etc.).

    I/InputDispatcher( 251): Application is not responding: AppWindowToken{42158df0 token=Token{41e1bc20 ActivityRecord{41a4ead8 com.mapbox.mapboxgl.testapp/.MainActivity}}}. It has been 5003.9ms since event, 5002.8ms since wait started. Reason: Waiting because there is no touchable window that can handle the event but there is focused application that may eventually add a new window when it finishes starting up.

  4. mb12 commented on Jul 28, 2015

    @mb12
    Author

    And after some time this shows in the logcat but the screen continue to stay dark/black.

    W/ActivityManager( 251): Activity stop timeout for ActivityRecord{41922970 com.mapbox.mapboxgl.testapp/.MainActivity}
    I/ActivityManager( 251): Activity reported stop, but no longer stopping: ActivityRecord{41922970 com.mapbox.mapboxgl.testapp/.MainActivity}

    W/WindowManager( 251): App freeze timeout expired.
    W/WindowManager( 251): Force clearing freeze: AppWindowToken{421cf8e8 token=Token{41c5d220 ActivityRecord{41922970 com.mapbox.mapboxgl.testapp/.MainActivity}}}

  5. added this to the milestone on Jul 28, 2015
  6. bleege commented on Jul 28, 2015

    @bleege
    Contributor

    @mb12 Can you describe what you're seeing this in / your setup? Is this the TestGLApp running on simulator? Are you using the new 0.0.1-SNAPSHOT release in a standalone project?

  7. mb12 commented on Jul 28, 2015

    @mb12
    Author

    This is the testglapp running on Nexus S. I am building the mapboxgl sdk and then running the sample app.

  8. incanus commented on Jul 28, 2015

    @incanus
    Contributor

    Are you seeing this with the same code on other devices @mb12?

  9. mb12 commented on Jul 28, 2015

    @mb12
    Author

    Yes, this happens even on higher end devices like Samsung Note 3. The log message is slightly different and less descriptive though (on Note 3).

    I/InputDispatcher( 846): Dropping event because there is no touchable window at (562, 509).

    I do not see this behavior with an older repo. One Android specific change that I do not have in older repo is "Drive render from UI thread". I am not sure if that could cause this.

  10. ljbade commented on Sep 3, 2015

    @ljbade
    Contributor

    @mb12 Does this still happen with lastest master?

  11. ljbade commented on Sep 4, 2015

    @ljbade
    Contributor

    It is possible there are so many touch events coming in that the time it takes to process each event (which includes panning the map, recalculating labels, etc) is taking too long?

    I have yet to notice any performance issues on my phones.

  12. mb12 commented on Sep 4, 2015

    @mb12
    Author

    Its most likely gone. I will verify it the first thing tomorrow morning.

  13. incanus commented on Sep 8, 2015

    @incanus
    Contributor

    Any update on this @mb12? I'm inclined to move to 0.2.0 if we can't easily replicate this widely.

  14. mb12 commented on Sep 8, 2015

    @mb12
    Author

    @incanus and @ljbade Sorry for the delay. I am testing it now. I will update within an hour or so.

  15. 28 remaining items

  16. ljbade commented on Sep 22, 2015

    @ljbade
    Contributor

    I think the fix here is to check if the map is paused before we call renderSync().

  17. ljbade commented on Sep 22, 2015

    @ljbade
    Contributor

    I'm going to add to Map an isPaused()

  18. ljbade commented on Sep 22, 2015

    @ljbade
    Contributor

    Sucess! 💥

    That fixed it. Making a PR now.

  19. mb12 commented on Sep 22, 2015

    @mb12
    Author

    Awesome work @ljbade !!!

  20. added a commit that references this issue on Sep 22, 2015
    feae692
  21. self-assigned this
    on Sep 22, 2015
  22. ljbade commented on Sep 22, 2015

    @ljbade
    Contributor

    PR done, waiting for Travis.

  23. added a commit that references this issue on Sep 22, 2015
    d2d3df2
  24. bleege commented on Sep 22, 2015

    @bleege
    Contributor

    Great job troubleshooting this @ljbade!!! I love the details about where and why things went off the rails.

    👍 👍

  25. bleege commented on Sep 22, 2015

    @bleege
    Contributor

    SNAPSHOT 22 was just released with this fix in it (from master)

  26. added 2 commits that reference this issue on Nov 6, 2015
    565e673
    95b0251
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions