JNI ERROR (app bug): weak global reference table overflow (max=51200)

1901
4
02-12-2019 03:00 PM
NathanMellor
Occasional Contributor

A few times a day, an ArcGIS Runtime app spontaneously dies while not doing much of anything.

This error is in logcat.

JNI ERROR (app bug): weak global reference table overflow (max=51200)

According to my knowledge I have ZERO (0) control over the JNI global reference table. ArcGIS runtime is the only one making JNI calls.

What can I do to prevent this?

If interested, this is a longer dump.

02-12 14:47:01.807 29469-30370/com.. A/art: art/runtime/indirect_reference_table.cc:128] JNI ERROR (app bug): weak global reference table overflow (max=51200)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128] weak global reference table dump:
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]   Last 10 entries (of 51200):
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51199: 0x131f3d30 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51198: 0x131f3ca0 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51197: 0x131f3c10 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51196: 0x131f3b80 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51195: 0x131f3af0 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51194: 0x131f3a60 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51193: 0x131f39d0 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51192: 0x131f3940 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51191: 0x131f38b0 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     51190: 0x131f3820 java.lang.Thread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]   Summary:
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         9 of com.esri.arcgisruntime.internal.jni.CoreVector (9 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of com.esri.arcgisruntime.internal.jni.CorePlatformHelpersProvider (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         4 of com.esri.arcgisruntime.internal.jni.CoreMap (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of com.esri.arcgisruntime.internal.jni.CoreBasemap (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of com.raizlabs.android.dbflow.structure.database.transaction.DefaultTransactionQueue
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]        36 of com.esri.arcgisruntime.internal.jni.CorePictureMarkerSymbol (12 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of com.esri.arcgisruntime.internal.jni.CoreGeodatabaseFeatureTable (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         4 of com.esri.arcgisruntime.internal.jni.CoreFeatureLayer (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]        12 of com.esri.arcgisruntime.internal.jni.CoreArcGISVectorTiledLayer (4 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         9 of com.esri.arcgisruntime.internal.jni.CoreMapView (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of com.esri.arcgisruntime.internal.jni.CoreLocationDisplay (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of android.opengl.GLSurfaceView
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of android.opengl.GLSurfaceView$GLThread
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         2 of com.esri.arcgisruntime.internal.jni.CoreLocationDataSource (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of com.esri.arcgisruntime.internal.jni.CoreLocatorTask (1 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         5 of com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1 (5 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]      1983 of java.lang.Thread (1983 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]     10309 of java.lang.Class (10308 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         5 of byte[] (2496 elements) (5 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of byte[] (8976 elements) (3 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (12288 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         5 of byte[] (16384 elements) (5 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         4 of byte[] (17920 elements) (4 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (24064 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (26240 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (30720 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         9 of byte[] (36864 elements) (9 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]        29 of byte[] (46656 elements) (29 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         4 of byte[] (50176 elements) (4 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (57344 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (57408 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         2 of byte[] (61952 elements) (2 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         2 of byte[] (62500 elements) (2 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]        25 of byte[] (65536 elements) (25 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of byte[] (82944 elements) (3 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         2 of byte[] (84480 elements) (2 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of byte[] (141312 elements) (3 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (146432 elements)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         3 of byte[] (147456 elements) (3 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         4 of byte[] (160000 elements) (4 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         4 of byte[] (195536 elements) (4 unique instances)
02-12 14:47:01.807 29469-30370/com.. A/art: art..cc:128]         1 of byte[] (305152 elements)
02-12 14:47:01.808 29469-30370/com.. A/art: art..cc:128]         5 of byte[] (478864 elements) (5 unique instances)
02-12 14:47:01.808 29469-30370/com.. A/art: art..cc:128]         1 of java.lang.ThreadGroup
02-12 14:47:01.808 29469-30370/com.. A/art: art..cc:128]        47 of java.lang.DexCache (47 unique instances)
02-12 14:47:01.808 29469-30370/com.. A/art: art..cc:128]         6 of dalvik.system.PathClassLoader (2 unique instances)
02-12 14:47:01.808 29469-30370/com.. A/art: art..cc:128]       150 of android.view.RenderNode (150 unique instances)
02-12 14:47:01.808 29469-30370/com.. A/art: art..cc:128]

Tags (3)
0 Kudos
4 Replies
LudoG
by
New Contributor

We have the same issue sometime, I can not reproduce, last time was after a screen orientation

indirect_reference_table.cc:243] JNI ERROR (app bug): weak global reference table overflow (max=51200)

0 Kudos
NathanMellor
Occasional Contributor

I am seeing even more.

2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349] JNI ERROR (app bug): weak global reference table overflow (max=51200)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349] weak global reference table dump:
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]   Last 10 entries (of 51200):
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51199: 0x157c0020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51198: 0x15780020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51197: 0x15740020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51196: 0x15700020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51195: 0x156c0020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51194: 0x15680020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51193: 0x15640020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51192: 0x15600020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51191: 0x155c0020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     51190: 0x15580020 java.lang.Thread
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]   Summary:
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]     10576 of java.lang.Class (10575 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]       268 of java.lang.Thread (268 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]        36 of java.lang.DexCache (36 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]        27 of com.esri.arcgisruntime.internal.jni.CoreArcGISVectorTiledLayer (9 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]        10 of com.esri.arcgisruntime.internal.jni.CoreVector (10 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         9 of com.esri.arcgisruntime.internal.jni.CoreMapView (1 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         9 of com.esri.arcgisruntime.internal.jni.CorePictureMarkerSymbol (3 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         8 of dalvik.system.PathClassLoader (2 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         5 of com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1 (5 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         4 of com.esri.arcgisruntime.internal.jni.CoreMap (1 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreFeatureCollection (1 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreBasemap (1 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreLocatorTask (1 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreLocationDisplay (1 unique instances)
2020-04-09 22:10:58.901 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreTask (3 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         3 of android.os.HandlerThread (3 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         2 of com.esri.arcgisruntime.internal.jni.CoreLocationDataSource (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         2 of com.esri.arcgisruntime.internal.jni.CorePlatformHelpersProvider (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         2 of androidx.fragment.app.FragmentManagerImpl (2 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         2 of java.lang.String (2 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         2 of java.lang.ThreadGroup (2 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of com.raizlabs.android.dbflow.structure.database.transaction.DefaultTransactionQueue
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of android.opengl.GLSurfaceView$GLThread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of android.opengl.GLSurfaceView
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of com.crittermap.backcountrynavigator.xe.ui.home.BCHomeActivity
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of androidx.fragment.app.Fragment$AnimationInfo
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of androidx.fragment.app.FragmentActivity$HostCallbacks
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of androidx.lifecycle.LifecycleRegistry
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of com.google.android.gms.measurement.internal.zzfg
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of androidx.lifecycle.ViewModelStore
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of androidx.lifecycle.MutableLiveData
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of com.crittermap.backcountrynavigator.xe.ui.home.fragment.BCQuickAccessFragment
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of com.crittermap.backcountrynavigator.xe.ui.home.fragment.BCQuickAccessFragment$1
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of java.lang.BootClassLoader
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of java.util.TimerThread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of android.widget.FrameLayout
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of android.app.SharedPreferencesImpl$1
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of android.view.ViewRootImpl$ViewRootHandler
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]         1 of com.android.internal.os.RuntimeInit$MethodAndArgsCaller
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: indirect_reference_table.cc:349]
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:542] Runtime aborting...
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:542]
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550] JNI ERROR (app bug): weak global reference table overflow (max=51200)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550] weak global reference table dump:
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]   Last 10 entries (of 51200):
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51199: 0x157c0020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51198: 0x15780020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51197: 0x15740020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51196: 0x15700020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51195: 0x156c0020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51194: 0x15680020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51193: 0x15640020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51192: 0x15600020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51191: 0x155c0020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     51190: 0x15580020 java.lang.Thread
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]   Summary:
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]     10576 of java.lang.Class (10575 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]       268 of java.lang.Thread (268 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]        36 of java.lang.DexCache (36 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]        27 of com.esri.arcgisruntime.internal.jni.CoreArcGISVectorTiledLayer (9 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]        10 of com.esri.arcgisruntime.internal.jni.CoreVector (10 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         9 of com.esri.arcgisruntime.internal.jni.CoreMapView (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         9 of com.esri.arcgisruntime.internal.jni.CorePictureMarkerSymbol (3 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         8 of dalvik.system.PathClassLoader (2 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         5 of com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1 (5 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         4 of com.esri.arcgisruntime.internal.jni.CoreMap (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreFeatureCollection (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreBasemap (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreLocatorTask (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreLocationDisplay (1 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreTask (3 unique instances)
2020-04-09 22:10:58.902 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         3 of android.os.HandlerThread (3 unique instances)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         2 of com.esri.arcgisruntime.internal.jni.CoreLocationDataSource (1 unique instances)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         2 of com.esri.arcgisruntime.internal.jni.CorePlatformHelpersProvider (1 unique instances)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         2 of androidx.fragment.app.FragmentManagerImpl (2 unique instances)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         2 of java.lang.String (2 unique instances)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         2 of java.lang.ThreadGroup (2 unique instances)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of com.raizlabs.android.dbflow.structure.database.transaction.DefaultTransactionQueue
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of android.opengl.GLSurfaceView$GLThread
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of android.opengl.GLSurfaceView
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of com.crittermap.backcountrynavigator.xe.ui.home.BCHomeActivity
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of androidx.fragment.app.Fragment$AnimationInfo
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of androidx.fragment.app.FragmentActivity$HostCallbacks
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of androidx.lifecycle.LifecycleRegistry
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of com.google.android.gms.measurement.internal.zzfg
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of androidx.lifecycle.ViewModelStore
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of androidx.lifecycle.MutableLiveData
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of com.crittermap.backcountrynavigator.xe.ui.home.fragment.BCQuickAccessFragment
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of com.crittermap.backcountrynavigator.xe.ui.home.fragment.BCQuickAccessFragment$1
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of java.lang.BootClassLoader
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of java.util.TimerThread
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of android.widget.FrameLayout
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of android.app.SharedPreferencesImpl$1
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of android.view.ViewRootImpl$ViewRootHandler
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]         1 of com.android.internal.os.RuntimeInit$MethodAndArgsCaller
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]
2020-04-09 22:10:58.904 com.crittermap.backcountrynavigator.xe A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 901 (RTC thread), pid 594 (trynavigator.xe)
2020-04-09 22:10:58.903 com.crittermap.backcountrynavigator.xe A/zygote: runtime.cc:550]
2020-04-09 22:10:59.093 ? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-04-09 22:10:59.093 ? A/DEBUG: Build fingerprint: 'samsung/gtanotexlwifikx/gtanotexlwifikx:8.1.0/M1AJQ/P580UEU1CRK2:user/release-keys'
2020-04-09 22:10:59.093 ? A/DEBUG: Revision: '2'
2020-04-09 22:10:59.093 ? A/DEBUG: ABI: 'arm'
2020-04-09 22:10:59.093 ? A/DEBUG: pid: 594, tid: 901, name: RTC thread  >>> com.crittermap.backcountrynavigator.xe <<<
2020-04-09 22:10:59.093 ? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2020-04-09 22:10:59.103 ? A/DEBUG: Abort message: 'indirect_reference_table.cc:349] JNI ERROR (app bug): weak global reference table overflow (max=51200)'
2020-04-09 22:10:59.103 ? A/DEBUG:     r0 00000000  r1 00000385  r2 00000006  r3 00000008
2020-04-09 22:10:59.103 ? A/DEBUG:     r4 00000252  r5 00000385  r6 bafff19c  r7 0000010c
2020-04-09 22:10:59.103 ? A/DEBUG:     r8 00000000  r9 bafff1e9  sl 0000000a  fp bafff1e8
2020-04-09 22:10:59.103 ? A/DEBUG:     ip c0842d20  sp bafff188  lr e56f0e6f  pc e56ea528  cpsr 20070030
2020-04-09 22:10:59.151 ? A/DEBUG: backtrace:
2020-04-09 22:10:59.151 ? A/DEBUG:     #00 pc 0001a528  /system/lib/libc.so (abort+63)
2020-04-09 22:10:59.151 ? A/DEBUG:     #01 pc 00365cd3  /system/lib/libart.so (art::Runtime::Abort(char const*)+402)
2020-04-09 22:10:59.151 ? A/DEBUG:     #02 pc 004276e7  /system/lib/libart.so (android::base::LogMessage::~LogMessage()+454)
2020-04-09 22:10:59.151 ? A/DEBUG:     #03 pc 001d9e31  /system/lib/libart.so (art::IndirectReferenceTable::Add(art::IRTSegmentState, art::ObjPtr<art::mirror::Object>)+692)
2020-04-09 22:10:59.151 ? A/DEBUG:     #04 pc 00251f8d  /system/lib/libart.so (art::JavaVMExt::AddWeakGlobalRef(art::Thread*, art::ObjPtr<art::mirror::Object>)+36)
2020-04-09 22:10:59.151 ? A/DEBUG:     #05 pc 002b7af3  /system/lib/libart.so (art::JNI::NewWeakGlobalRef(_JNIEnv*, _jobject*)+386)
2020-04-09 22:10:59.151 ? A/DEBUG:     #06 pc 000d7d5f  /system/lib/libart.so (art::CheckJNI::NewRef(char const*, _JNIEnv*, _jobject*, art::IndirectRefKind)+498)
2020-04-09 22:10:59.151 ? A/DEBUG:     #07 pc 0026509f  /system/lib/libart.so (_ZN3art14ObjectRegistry11InternalAddINS_6mirror6ObjectEEEyNS_6HandleIT_EE+774)
2020-04-09 22:10:59.151 ? A/DEBUG:     #08 pc 00265479  /system/lib/libart.so (art::ObjectRegistry::AddRefType(art::ObjPtr<art::mirror::Class>)+80)
2020-04-09 22:10:59.151 ? A/DEBUG:     #09 pc 0012c3f5  /system/lib/libart.so (art::Dbg::GetThreadId(art::Thread*)+400)
2020-04-09 22:10:59.151 ? A/DEBUG:     #10 pc 00259f49  /system/lib/libart.so (art::JDWP::JdwpState::PostThreadChange(art::Thread*, bool)+516)
2020-04-09 22:10:59.151 ? A/DEBUG:     #11 pc 0013a9f3  /system/lib/libart.so (art::Dbg::DbgThreadLifecycleCallback::ThreadStart(art::Thread*)+22)
2020-04-09 22:10:59.151 ? A/DEBUG:     #12 pc 003716eb  /system/lib/libart.so (art::RuntimeCallbacks::ThreadStart(art::Thread*)+22)
2020-04-09 22:10:59.151 ? A/DEBUG:     #13 pc 00381659  /system/lib/libart.so (art::Thread::Attach(char const*, bool, _jobject*, bool)+1300)
2020-04-09 22:10:59.151 ? A/DEBUG:     #14 pc 00365673  /system/lib/libart.so (art::Runtime::AttachCurrentThread(char const*, bool, _jobject*, bool)+50)
2020-04-09 22:10:59.151 ? A/DEBUG:     #15 pc 00255c07  /system/lib/libart.so (art::JII::AttachCurrentThreadInternal(_JavaVM*, _JNIEnv**, void*, bool)+206)
2020-04-09 22:10:59.151 ? A/DEBUG:     #16 pc 000e094f  /system/lib/libart.so (art::CheckJII::AttachCurrentThread(_JavaVM*, _JNIEnv**, void*)+74)
2020-04-09 22:10:59.151 ? A/DEBUG:     #17 pc 0012a08f  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore_java.so (offset 0x12a000)
2020-04-09 22:10:59.151 ? A/DEBUG:     #18 pc 0012aa4d  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore_java.so (offset 0x12a000)
2020-04-09 22:10:59.151 ? A/DEBUG:     #19 pc 01ec327d  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #20 pc 010da393  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #21 pc 012f0a1b  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #22 pc 012ecce7  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #23 pc 012a3611  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #24 pc 01a5e43d  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #25 pc 01a6e351  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #26 pc 01ecdeb1  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #27 pc 01ece8ff  /data/app/com.crittermap.backcountrynavigator.xe-G6gp9G9yGpa9ohGz1dCEZQ==/lib/arm/libruntimecore.so (offset 0x10cf000)
2020-04-09 22:10:59.152 ? A/DEBUG:     #28 pc 00048811  /system/lib/libc.so (__pthread_start(void*)+24)
2020-04-09 22:10:59.152 ? A/DEBUG:     #29 pc 0001b369  /system/lib/libc.so (__start_thread+32)


A/zygote: indirect_reference_table.cc:349] JNI ERROR (app bug): weak global reference table overflow (max=51200)
    indirect_reference_table.cc:349] weak global reference table dump:
    indirect_reference_table.cc:349]   Last 10 entries (of 51200):
    indirect_reference_table.cc:349]     51199: 0x14480020 java.lang.Thread
    indirect_reference_table.cc:349]     51198: 0x14440020 java.lang.Thread
    indirect_reference_table.cc:349]     51197: 0x14400020 java.lang.Thread
    indirect_reference_table.cc:349]     51196: 0x143c0020 java.lang.Thread
    indirect_reference_table.cc:349]     51195: 0x14380020 java.lang.Thread
    indirect_reference_table.cc:349]     51194: 0x14340020 java.lang.Thread
    indirect_reference_table.cc:349]     51193: 0x14300020 java.lang.Thread
    indirect_reference_table.cc:349]     51192: 0x142c0020 java.lang.Thread
    indirect_reference_table.cc:349]     51191: 0x14280020 java.lang.Thread
    indirect_reference_table.cc:349]     51190: 0x14240020 java.lang.Thread
    indirect_reference_table.cc:349]   Summary:
    indirect_reference_table.cc:349]     10410 of java.lang.Class (10409 unique instances)
    indirect_reference_table.cc:349]       126 of java.lang.Thread (126 unique instances)
    indirect_reference_table.cc:349]        35 of java.lang.DexCache (35 unique instances)
    indirect_reference_table.cc:349]        12 of com.esri.arcgisruntime.internal.jni.CoreArcGISVectorTiledLayer (4 unique instances)
    indirect_reference_table.cc:349]         9 of com.esri.arcgisruntime.internal.jni.CoreMapView (1 unique instances)
    indirect_reference_table.cc:349]         9 of com.esri.arcgisruntime.internal.jni.CorePictureMarkerSymbol (3 unique instances)
    indirect_reference_table.cc:349]         9 of com.esri.arcgisruntime.internal.jni.CoreVector (9 unique instances)
    indirect_reference_table.cc:349]         8 of dalvik.system.PathClassLoader (2 unique instances)
    indirect_reference_table.cc:349]         4 of com.esri.arcgisruntime.internal.jni.CoreMap (1 unique instances)
    indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreBasemap (1 unique instances)
    indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreLocatorTask (1 unique instances)
    indirect_reference_table.cc:349]         3 of com.esri.arcgisruntime.internal.jni.CoreLocationDisplay (1 unique instances)
    indirect_reference_table.cc:349]         3 of com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1 (3 unique instances)
    indirect_reference_table.cc:349]         3 of android.os.HandlerThread (3 unique instances)
    indirect_reference_table.cc:349]         2 of com.esri.arcgisruntime.internal.jni.CoreLocationDataSource (1 unique instances)
    indirect_reference_table.cc:349]         2 of com.esri.arcgisruntime.internal.jni.CorePlatformHelpersProvider (1 unique instances)
    indirect_reference_table.cc:349]         1 of com.raizlabs.android.dbflow.structure.database.transaction.DefaultTransactionQueue
    indirect_reference_table.cc:349]         1 of android.opengl.GLSurfaceView$GLThread
    indirect_reference_table.cc:349]         1 of android.opengl.GLSurfaceView
    indirect_reference_table.cc:349]         1 of java.lang.BootClassLoader
    indirect_reference_table.cc:349]         1 of java.lang.ThreadGroup
    indirect_reference_table.cc:349]         1 of java.util.TimerThread
    indirect_reference_table.cc:349]
    runtime.cc:542] Runtime aborting...
    runtime.cc:542]
    runtime.cc:550] JNI ERROR (app bug): weak global reference table overflow (max=51200)
    runtime.cc:550] weak global reference table dump:
    runtime.cc:550]   Last 10 entries (of 51200):
    runtime.cc:550]     51199: 0x14480020 java.lang.Thread
A/zygote: runtime.cc:550]     51198: 0x14440020 java.lang.Thread
    runtime.cc:550]     51197: 0x14400020 java.lang.Thread
    runtime.cc:550]     51196: 0x143c0020 java.lang.Thread
    runtime.cc:550]     51195: 0x14380020 java.lang.Thread
    runtime.cc:550]     51194: 0x14340020 java.lang.Thread
    runtime.cc:550]     51193: 0x14300020 java.lang.Thread
    runtime.cc:550]     51192: 0x142c0020 java.lang.Thread
    runtime.cc:550]     51191: 0x14280020 java.lang.Thread
    runtime.cc:550]     51190: 0x14240020 java.lang.Thread
    runtime.cc:550]   Summary:
    runtime.cc:550]     10410 of java.lang.Class (10409 unique instances)
    runtime.cc:550]       126 of java.lang.Thread (126 unique instances)
    runtime.cc:550]        35 of java.lang.DexCache (35 unique instances)
    runtime.cc:550]        12 of com.esri.arcgisruntime.internal.jni.CoreArcGISVectorTiledLayer (4 unique instances)
    runtime.cc:550]         9 of com.esri.arcgisruntime.internal.jni.CoreMapView (1 unique instances)
    runtime.cc:550]         9 of com.esri.arcgisruntime.internal.jni.CorePictureMarkerSymbol (3 unique instances)
    runtime.cc:550]         9 of com.esri.arcgisruntime.internal.jni.CoreVector (9 unique instances)
    runtime.cc:550]         8 of dalvik.system.PathClassLoader (2 unique instances)
    runtime.cc:550]         4 of com.esri.arcgisruntime.internal.jni.CoreMap (1 unique instances)
    runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreBasemap (1 unique instances)
    runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreLocatorTask (1 unique instances)
    runtime.cc:550]         3 of com.esri.arcgisruntime.internal.jni.CoreLocationDisplay (1 unique instances)
    runtime.cc:550]         3 of com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1 (3 unique instances)
    runtime.cc:550]         3 of android.os.HandlerThread (3 unique instances)
    runtime.cc:550]         2 of com.esri.arcgisruntime.internal.jni.CoreLocationDataSource (1 unique instances)
    runtime.cc:550]         2 of com.esri.arcgisruntime.internal.jni.CorePlatformHelpersProvider (1 unique instances)
    runtime.cc:550]         1 of com.raizlabs.android.dbflow.structure.database.transaction.DefaultTransactionQueue
    runtime.cc:550]         1 of android.opengl.GLSurfaceView$GLThread
    runtime.cc:550]         1 of android.opengl.GLSurfaceView
    runtime.cc:550]         1 of java.lang.BootClassLoader
    runtime.cc:550]         1 of java.lang.ThreadGroup
    runtime.cc:550]         1 of java.util.TimerThread
    runtime.cc:550]
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 1013 (RTC thread), pid 531 (trynavigator.xe)
A/zygote: runtime.cc:550]

0 Kudos
NathanMellor
Occasional Contributor

I have mostly seen this when debuggging. However end users are seeing it with a release build, mostly on Galaxy Tab 2019 tablets.

Using Proguard to reduce number of classes doesn't seem to help.

App spontaneously dies without human interaction. Just displaying a map, or displaying Locationdisplay.

ForrestKaye
New Contributor III

I am also seeing this.  It happens when I am running a rather large amount of queries on an offline database. I am wondering if there is a solution that involves running the queries differently.  

I am using 100.11 version of the sdk.

 

GeodatabaseFeatureTable gdbFeatureTable = (GeodatabaseFeatureTable) featureTable;
								boolean hasAttachments = gdbFeatureTable.hasAttachments();
								if (hasAttachments) {
									long featureCount = gdbFeatureTable.getTotalFeatureCount(); // in the thousands
									ListenableFuture<FeatureQueryResult> featureQueryResultFuture = featureTable.queryFeaturesAsync(query);
									featureQueryResultFuture.addDoneListener(new Runnable() {
										@Override
										public void run() {
											FeatureQueryResult featureQueryResult = featureQueryResultFuture.get();
											Iterator<Feature> features = featureQueryResult.iterator();
											while (features.hasNext()) {
												final Feature feature = features.next();
												ArcGISFeature featureAGS = (ArcGISFeature) feature;
												ListenableFuture<List<Attachment>> attachmentResults = featureAGS.fetchAttachmentsAsync(); // Error seems to be thrown from here
											}
										}
									});
								}