flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

[Android] Touch unresponsiveness and blank screen on rotation #1180

Closed mario-jerkovic closed 1 year ago

mario-jerkovic commented 2 years ago

First of all think you for this awesome lib 🍻 keep it going guys 🙃

I am experiencing issues on Android 12 (Device: Galaxy Tab S6), mapbox_gl: 0.15.0

When device is rotated, one out of 3 times map wouldn't render, it just shows grey screen and touch area on the right side is unresponsive, but when rotated back to the initial (orientation when map was map initially loaded) everything is fine, see the video in attachments. This issue doesn't occur on mapbox_gl: 0.14.0 and performance is noticeable better

In the mean time I have made a fork of this (mapbox_gl: 0.14.0) repo and ported some functionally which is currently added to latest version 0.16.0 so that I can continue with my project, maybe it can help you to debug this issue 🙃

Link:

https://user-images.githubusercontent.com/16222284/192113460-f4ab7fcc-55ef-4cac-b059-7596c8b054ae.mp4

felix-ht commented 2 years ago

@mario-jerkovic thanks for this great bug report - as you are already working with this:

please do a git bisect to identify the commit that added this issue.

Fixing the cause of this is almost certainly less work than maintaining the fork!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

maxammann commented 1 year ago

A similar issue seems to impact the maplibre fork of this: https://github.com/m0nac0/flutter-maplibre-gl/issues/193

@mario-jerkovic did you come any closer to finding the offending commit?

maxammann commented 1 year ago

This was fixed in https://github.com/flutter-mapbox-gl/maps/pull/1216

thicorrea1 commented 1 year ago

Hello Gents, I am still experiencing this issue on Android devices. Could you please give some insight on what needs to be changed in order to get the map to not become unresponsive after screen rotation?

My specs image

flutter-mapbox-gl version 0.15.0

maxammann commented 1 year ago

You will need to pin to the latest commit on master instead of the tag/release.