2019-04-02 15:01:49.768 569-770/ E/AndroidRuntime: FATAL EXCEPTION: GLThread 10588 Process: PID: 569 com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument at com.esri.arcgisruntime.internal.jni.CoreGeoView.nativeResize(Native Method) at com.esri.arcgisruntime.internal.jni.CoreGeoView.a(SourceFile:581) at com.esri.arcgisruntime.internal.h.b.g.a(SourceFile:1077) at com.esri.arcgisruntime.mapping.view.GeoView$b.onSurfaceChanged(SourceFile:1308) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1555) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
I stopped dismissing the map when the activity onstop() was calling and now its working fine. Thanks.
Could you send us your XML layout file and a simple test case? On what device do you run into the crash? Thanks!
Yeah sure. Esri works fine when I first navigate to the Esri activity but when I return to Esri activity from any activity it gives the same crash every time as I stated earlier. I tested this on Samsung S8 and Samsung S9. Below is the xml file content.
<RelativeLayout android:id="@+id/relativeLayoutMap" android:layout_width="wrap_content" android:layout_height="wrap_content"> <com.esri.arcgisruntime.mapping.view.MapView android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent"/> <LinearLayout android:id="@+id/linearlayoutMappOption" android:orientation="vertical" android:layout_width="160dp" android:layout_marginBottom="500dp" android:layout_height="wrap_content" android:layout_margin="0dp" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:visibility="visible" > <ImageButton android:id="@+id/imageButtonLocate" android:layout_width="124dp" android:layout_height="58dp" android:layout_gravity="right" android:src="@mipmap/icon_map_locate" android:scaleType="fitCenter" android:layout_margin="1dp" android:background="@android:color/transparent" > </ImageButton> <ImageButton android:id="@+id/imageButtonMapLayers" android:layout_width="124dp" android:layout_height="58dp" android:src="@mipmap/icon_map_layers" android:scaleType="fitCenter" android:layout_margin="1dp" android:layout_gravity="right" android:background="@android:color/transparent" > </ImageButton> <ImageButton android:id="@+id/dummy" android:layout_width="124dp" android:layout_height="28dp" android:background="@android:color/transparent" > </ImageButton> </LinearLayout> <ProgressBar android:id="@+id/progressBarMap" android:layout_width="50dip" android:layout_height="50dip" android:layout_centerInParent="true" android:visibility="gone" /> </RelativeLayout>
We could not repo the crash based on the layout XML and navigate between two activities. Could you create a simple test-case for your workflow to repro the crash? thanks
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.