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 has been archived by the owner on Aug 8, 2023. It is now read-only.
Hey @kptlronyttcna, would you mind sharing a bit more about your setup, or ideally a minimal reproducible example? I'm unable to reproduce on v7.1.2 or master.
Problem is after device rotation when the map is destroyed onCameraIdleListener still gets called. If you rotate the device (it might take multiple tries) you should see the following in the logcat:
E/Mbgl-NativeMapView: You're calling `latLngForPixel` after the `MapView` was destroyed, were you invoking it after `onDestroy()`?
Of course this sample wont cause a crash, but if I was for example modifying a layer in onCameraIdleListener the app would crash with a segment fault.
I was not able to reproduce this problem with a simple MapView (instead of fragment) or using CameraMode.TRACKING instead of CameraModel.TRACKING_GPS.
Rotating device while camera tracking is active causes app to crash.
Steps to reproduce
Expected behavior
Rotate
Actual behavior
Crash
Configuration
Android versions: Tested on different versions
Device models: Tested on different devices
Mapbox SDK versions: 7.1.2
The text was updated successfully, but these errors were encountered: