mapbox-maps-android
mapbox-maps-android copied to clipboard
Crash during drag
Environment
- Android OS version: 12
- Devices affected: Samsung Galaxy S10
- Maps SDK Version: 10.6.1
I got the following crash reported via Crashlytics from a user:
Fatal Exception: java.lang.Error latitude must not be NaN
com.mapbox.maps.CameraManager.getDragCameraOptions (CameraManager.java)
com.mapbox.maps.NativeMapImpl.getDragCameraOptions (NativeMapImpl.kt:55)
com.mapbox.maps.MapboxMap.getDragCameraOptions (MapboxMap.kt:1643)
com.mapbox.maps.plugin.gestures.GesturesPluginImpl.handleMove$plugin_gestures_release (GesturesPluginImpl.kt:1412)
com.mapbox.maps.plugin.gestures.GesturesPluginImpl$MoveGestureListener.onMove (GesturesPluginImpl.kt:492)
com.mapbox.android.gestures.MoveGestureDetector.analyzeMovement (MoveGestureDetector.java:158)
com.mapbox.android.gestures.MultiFingerGesture.analyzeEvent (MultiFingerGesture.java:106)
com.mapbox.android.gestures.ProgressiveGesture.analyzeEvent (ProgressiveGesture.java:55)
com.mapbox.android.gestures.MoveGestureDetector.analyzeEvent (MoveGestureDetector.java:141)
com.mapbox.maps.plugin.gestures.GesturesPluginImpl.
(... many more internal Android stack frames)
Looks like this should be fixed by https://github.com/mapbox/mapbox-maps-android/pull/1492, that's available in https://github.com/mapbox/mapbox-maps-android/releases/tag/android-v10.7.0-rc.1.
I don't think this was fixed. I just got a crash report with the same stack trace running version 10.8.1 of the library. The device is a Galaxy J5 Prime running Android 8.
@kiryldz I just reproduced this locally on my first use of version 10.9.0 on a Samsung Galaxy S9.
It seems is crashing at a different place, added a fix in https://github.com/mapbox/mapbox-maps-android/pull/1906, @akirmse could you try it out when it's landed?