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

Map Freezing (Or Not Rendering) After Undefined Amount Of Time #9459

Closed
mitchBlock opened this issue Jul 7, 2017 · 2 comments
Closed

Map Freezing (Or Not Rendering) After Undefined Amount Of Time #9459

mitchBlock opened this issue Jul 7, 2017 · 2 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@mitchBlock
Copy link

Platform: Android
Mapbox SDK version: 5.1.0

Steps to trigger behavior

  1. Load map
  2. Zoom, move, or wait
  3. Map freezes, zooming no longer works, but rotating seems to register with the compass

Expected behavior

Able to zoom, move, or rotate freely with no freezing

Actual behavior

Map freezes after a few seconds

I've been trying to use a map in my app, but I'm getting the above behavior on a Sony Xperia Z5 (model E6653) with API 22. My app doesn't exhibit this behavior on any Samsung (S3 with API 18, S5 with APIs 19, 21, and 23) or any emulated device running API 22 or otherwise. I've looked around for a solution, and have found that issues #8030, #9441, #9389, and #8728 are all pretty much the behavior I'm seeing, but there are no resolutions. Logcat doesn't say anything when the map stops responding, and the behavior can be replicated with the most basic app from the overview.

@Guardiola31337 Guardiola31337 added the Android Mapbox Maps SDK for Android label Jul 8, 2017
@tobrun
Copy link
Member

tobrun commented Aug 2, 2017

@mitchBlock are you using fragments to display the map? A workaround mentioned by others is using TextureView as rendering surface instead of surfaceview (you can enable this through xml or MapboxMapOptions).

@kikothemaster
Copy link

For anyone with fragment map view not moving, use app:mapbox_renderTextureMode="true" inside MapView in xml.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

5 participants