Select to view content in your preferred language

GraphicsLayer  getGraphicIDs    Error

3636
11
06-16-2013 06:24 PM
yongbolee
New Contributor
Running time Eviroument is : Arcgis SDK for android 2.0

  problem description:
        when i calling   GraphicsLayer's getGraphicIDs method will get a Error like-[ATTACH=CONFIG]25297[/ATTACH]
        this mapView will black screen at the same time.
 
   i want to know if this problem is a bug for 2.0 SDK?

  who can help me ??

  i have not occur it if user Arcgis SDK for android 1.0.
0 Kudos
11 Replies
AndyGup
Esri Regular Contributor
Have you tried upgrading to ArcGIS Runtime for Android v10.1.1?

-Andy
0 Kudos
Yunus_SupriadiWijaya
New Contributor III
i have the same problem using ArcGISAndroidSDK_v10.1.1-u1 from http://www.esri.com/apps/products/do...downloadid=982
but the error was different

08-15 20:10:10.505: E/MapCore(823): Frame_buffer_OGL::init_ FrameBufferOGLTexture2D: gl error = 502
08-15 20:10:10.558: A/libc(823): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 836 (Thread-78)
0 Kudos
AndyGup
Esri Regular Contributor
Yunus, can you reproduce that consistently? I agree there should be any Signal 11's. If it is reproducible can you please open a support ticket? That way we can get all appropriate details and track this.
0 Kudos
DanO_Neill
Occasional Contributor III
Yunus, can you reproduce that consistently? I agree there should be any Signal 11's. If it is reproducible can you please open a support ticket? That way we can get all appropriate details and track this.


Agreed!  Please share the reproducible code here as well if you can.
0 Kudos
Yunus_SupriadiWijaya
New Contributor III
Agreed!  Please share the reproducible code here as well if you can.



i tried the PopupInWebmapForEditing sample.

i'm using
1. Eclipse Java EE IDE for Web Developers. Helios Service Release 2 and Android Developer Tools v22.0.5-757759
2. ArcGISAndroidSDK_v10.1.1-u1.zip.
3. jdk-7u25-windows-x64



i think the problem at the  "int[] ids = featureLayer.getGraphicIDs(x, y, tolerance);"


protected Graphic[] doInBackground(ArcGISFeatureLayer... params) {
for (ArcGISFeatureLayer featureLayer : params) {
this.featureLayer = featureLayer;
// Retrieve graphic ids near the point.
int[] ids = featureLayer.getGraphicIDs(x, y, tolerance);
if (ids != null && ids.length > 0) {
ArrayList<Graphic> graphics = new ArrayList<Graphic>();
for (int id : ids) {
// Obtain graphic based on the id.
Graphic g = featureLayer.getGraphic(id);
if (g == null)
continue;
graphics.add(g);
}
// Return an array of graphics near the point.
return graphics.toArray(new Graphic[0]);
}
}
return null;
}
0 Kudos
DanO_Neill
Occasional Contributor III
I am not able to reproduce with v10.1.1-u1. I did not try with v2. 


  1. Did you update the sample?  Use your own data?

  2. What version of the Android Support Library are you using?

  3. What device are you deploying to?

0 Kudos
Yunus_SupriadiWijaya
New Contributor III
Thanks for your quick response, Mr. Dan ONeill

Did you update the sample?    i used the ArcGIS for Android version 10.1.1.201306271100 sample

Use your own data? No , i used the original code using online data

What version of the Android Support Library are you using?  Android Support Library 18

What device are you deploying to? Android 4.3 Jelly Bean
0 Kudos
DanO_Neill
Occasional Contributor III
What physical device are you deploying to, e.g. Galaxy Nexus, HTC, etc. I am still trying to reproduce.
0 Kudos
Yunus_SupriadiWijaya
New Contributor III
Thanks for your quick response, Mr. Dan ONeill

Samsung Galaxy W I8150 and android emulator
0 Kudos