You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
(Android) application becomes unresponsive to touch #1941
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.
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.
@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?
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.
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.
Activity
ljbade commentedon Jul 28, 2015
@bleege possibly related to recent
Activitychanges?mb12 commentedon Jul 28, 2015
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.
mb12 commentedon Jul 28, 2015
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}}}
bleege commentedon Jul 28, 2015
@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-SNAPSHOTrelease in a standalone project?mb12 commentedon Jul 28, 2015
This is the testglapp running on Nexus S. I am building the mapboxgl sdk and then running the sample app.
incanus commentedon Jul 28, 2015
Are you seeing this with the same code on other devices @mb12?
mb12 commentedon Jul 28, 2015
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.
ljbade commentedon Sep 3, 2015
@mb12 Does this still happen with lastest
master?ljbade commentedon Sep 4, 2015
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.
mb12 commentedon Sep 4, 2015
Its most likely gone. I will verify it the first thing tomorrow morning.
incanus commentedon Sep 8, 2015
Any update on this @mb12? I'm inclined to move to
0.2.0if we can't easily replicate this widely.mb12 commentedon Sep 8, 2015
@incanus and @ljbade Sorry for the delay. I am testing it now. I will update within an hour or so.
28 remaining items
ljbade commentedon Sep 22, 2015
I think the fix here is to check if the map is paused before we call
renderSync().ljbade commentedon Sep 22, 2015
I'm going to add to
MapanisPaused()ljbade commentedon Sep 22, 2015
Sucess! 💥
That fixed it. Making a PR now.
mb12 commentedon Sep 22, 2015
Awesome work @ljbade !!!
Fix freezing on Android when rotating
ljbade commentedon Sep 22, 2015
PR done, waiting for Travis.
Fix freezing on Android when rotating
bleege commentedon Sep 22, 2015
Great job troubleshooting this @ljbade!!! I love the details about where and why things went off the rails.
👍 👍
bleege commentedon Sep 22, 2015
SNAPSHOT 22 was just released with this fix in it (from
master)Fix freezing on Android when rotating
Fix freezing on Android when rotating