Select to view content in your preferred language

KmlPlacemark limit in an Android App

336
1
05-19-2022 08:31 AM
AngeloSilva
Emerging Contributor

My company is developing an Android App, using ArcGIS to draw a farmer planting map and to save it to a KMZ file.

Each 4 seconds are created 19 KmlPlacemark, one for each planting line.

But in about 90 min the App crashes.

Android debug says that some memory reaches its limit, KmlPlacemark objects.

How can I solve this problem? 

Is this a limit from ArcGIS?

 

A/e.agrosystemma: java_vm_ext.cc:698] JNI ERROR (app bug): weak global reference table overflow (max=51200)weak global reference table dump:
java_vm_ext.cc:698] Last 10 entries (of 51200):
java_vm_ext.cc:698] 51199: 0x15f34490 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51198: 0x15f34490 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51197: 0x15f33958 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51196: 0x15f33958 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51195: 0x15f32e20 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51194: 0x15f32e20 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51193: 0x15f322e8 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51192: 0x15f322e8 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51191: 0x15f317b0 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] 51190: 0x15f317b0 com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark
java_vm_ext.cc:698] Summary:
java_vm_ext.cc:698] 50842 of com.esri.arcgisruntime.internal.jni.CoreKMLPlacemark (25421 unique instances)
java_vm_ext.cc:698] 84 of com.esri.arcgisruntime.internal.jni.CoreTileRequest (84 unique instances)
java_vm_ext.cc:698] 57 of com.esri.arcgisruntime.internal.jni.j (19 unique instances)
java_vm_ext.cc:698] 56 of com.esri.arcgisruntime.internal.jni.CoreTask (56 unique instances)
java_vm_ext.cc:698] 49 of java.lang.DexCache (49 unique instances)
java_vm_ext.cc:698] 28 of com.esri.arcgisruntime.internal.jni.CoreVector (28 unique instances)
java_vm_ext.cc:698] 12 of com.esri.arcgisruntime.internal.jni.CoreKMLDataset (2 unique instances)
java_vm_ext.cc:698] 12 of com.esri.arcgisruntime.internal.jni.CorePictureMarkerSymbol (4 unique instances)
java_vm_ext.cc:698] 10 of com.esri.arcgisruntime.internal.jni.CoreMapView (1 unique instances)
java_vm_ext.cc:698] 10 of com.esri.arcgisruntime.internal.jni.CoreKMLLayer (2 unique instances)

0 Kudos
1 Reply
OwenGeo
Esri Notable Contributor

@AngeloSilva -- I moved your post to the Android board since I'm not sure we can help you much on the StoryMaps board. 🙂

Owen Evans
Lead Product Engineer | StoryMaps
0 Kudos