mapbox-maps-android
mapbox-maps-android copied to clipboard
crash when setCamera [ 10.6.2]
java.lang.Error: std::exception
at com.mapbox.maps.CameraManager.setCamera(Native Method)
at com.mapbox.maps.NativeMapImpl.setCamera(NativeMapImpl.kt:36)
at com.mapbox.maps.MapboxMap.setCamera(MapboxMap.kt:426)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:67)
We would appreciate more details (code snippet, context when it did happen etc). Otherwise it's hard to say what's the root cause.
[maps-android\Mbgl-CameraManager]: Error while setting camera options : std::exception CameraOptions = [center: Point{type=Point, bbox=null, coordinates=[121.35212215686254, 30.83403121648117]}, padding: , anchor: [x: 640.9468382199606, y: 317.0736328522364], zoom: , bearing: , pitch: ]
[maps-android\Mbgl-CameraManager]: Error while setting camera options : std::exception CameraOptions = [center: Point{type=Point, bbox=null, coordinates=[121.35212215686254, 30.83403121648117]}, padding: , anchor: [x: 640.9468382199606, y: 317.0736328522364], zoom: , bearing: , pitch: ]
I can't reproduce it with given camera options. If you know device model where this crash occurred or could reproduce similar crash from your end - that would be appreciated.
I have the same issue.
Brand:samsung Model:Galaxy Note8 Orientation: Portrait RAM free: 2.43 GB Disk free: 47.03 GB Version:Android 9 Orientation: Portrait Rooted:No Mapbox Version: 10.4.0
Fatal Exception: java.lang.Error: std::exception
at com.mapbox.maps.CameraManager.setCamera(CameraManager.java)
at com.mapbox.maps.NativeMapImpl.setCamera(NativeMapImpl.kt:36)
at com.mapbox.maps.MapboxMap$setCamera$1.invoke(MapboxMap.kt:378)
at com.mapbox.maps.MapboxMap$setCamera$1.invoke(MapboxMap.kt:378)
at com.mapbox.maps.UtilsKt.call(Utils.kt:9)
at com.mapbox.maps.MapboxMap.setCamera(MapboxMap.kt:378)
at com.mapall.fibre.v2.util.AdtMapViewUtil.centerMapOnLocation(AdtMapViewUtil.kt:165)
at com.mapall.fibre.v2.util.AdtMapViewUtil.centerMapOnLocation(AdtMapViewUtil.kt:175)
at com.mapall.fibre.v2.util.AdtMapViewUtil.centerMapOnLocation$default(AdtMapViewUtil.kt:168)
at com.mapall.fibre.v2.presentation.features.adt.AdtLocationFragment.onViewCreated$lambda-3(AdtLocationFragment.java:138)
at com.mapall.fibre.v2.domain.model.AccessPoint$$InternalSyntheticLambda$0$0d45286d8120888809e519e1fe6bd8df502fc76286cb11c457d745db2f931e66$0.onChanged$bridge(AccessPoint.java:361)
at com.mapall.fibre.v2.util.livedata.SingleEventLiveData$ObserverWrapper.onChanged(SingleEventLiveData.kt:62)
at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
at com.mapall.fibre.v2.util.livedata.SingleEventLiveData.setValue(SingleEventLiveData.kt:49)
at com.mapall.fibre.v2.presentation.features.adt.AdtLocationViewModel$loadCurrentLocation$1.invokeSuspend(AdtLocationViewModel.kt:347)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)