Exception with Callout on map after returning from showing another activity

2340
1
05-08-2012 02:40 AM
SimonKlein
Occasional Contributor
When there is a Callout on the map and I start another activity, I can not go back to the MapView without crashing the app.
logcat:
05-08 12:32:38.820: W/dalvikvm(12765): threadid=13: thread exiting with uncaught exception (group=0x40a581f8)
05-08 12:32:38.871: E/AndroidRuntime(12765): FATAL EXCEPTION: GLThread 998
05-08 12:32:38.871: E/AndroidRuntime(12765): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:4039)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:709)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:268)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout$CalloutInner.refresh(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout$CalloutInner.show(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout$CalloutInner.show(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout.show(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.MapView$1.onMapSurfaceSizeChanged(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.MapSurface.onSurfaceChanged(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)


Can anybody reproduce this?

Edit:
This also happens in the official ArcGIS Android App!
Steps:
*Single tab the map to get a Callout.
*Then select map details from the optionsmenu.
*Go back to the MapView with the back button or the ImageButton in the upper left corner.
--> The app crashes.

@esri guys: Should I also post this to the ArcGIS for Android Apps section of this Forum?

Edit 2:
This happens in my App and in the ArcGIS Android App on my phone (Android 4.0.4) and on my tablet (Galaxy Tab 10.1n Android 3.2).
0 Kudos
1 Reply
AndyGup
Esri Regular Contributor
@simra, thanks for the heads up. I was able to duplicate that on the ArcGIS app. I'm passing it on to tech support for further analysis and to write up a CR.

I'm running Android v2.3.6 on an Moto Atrix.

[Update: this has been logged as NIM080657 if you want to track it]

-Andy
0 Kudos