We have a few map packages MMPK loaded into our android app, and user can switch between the maps.
When switching between the map packages, it seems that a particular MMPK, created from a TIF file, would sometime crash.
Following is the crash log from logcat
E/AndroidRuntime: FATAL EXCEPTION: Rendering thread
Process: myapp.debug, PID: 17245
com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument.: get_coordinate_system_type() == Spatial_reference::local || !is_pannable
at com.esri.arcgisruntime.internal.jni.CoreGeoView.nativePulse(Native Method)
I/Process: Sending signal. PID: 17245 SIG: 9
Appreciate any advice thanks!
Android ArcGIS Runtime: 100.10.0, we are using Java
Hi, Could you attach the test data for us to repo the crash? From the call stack, it throws the runtime invalid argument exception, which is expected for data not having proper spatial reference.
Hi, we can't attach the exact MMPK- as the map data itself is considered sensitive and proprietary. But please let me know if there are other info that we could extract and share?
My team reported that another MMPK may also sometimes crash with the same issue. Both MMPK that we had issues with are processed from GeoTIFF files.
Hi, most likely it is data related issue. Two things you need to ensure when you switch map
1. Map is loaded, that is, map.loadStatus == LOADED
2. Examine the Map's spatial reference by printing out the WKID and WK Text
Also, you can import the MMPK into the ArcGIS pro to examine further. The invalid argument is an expected runtime error.