Android applications calling function getObjs( ) that retrieve more than 512 objects can exceed the capacity of the JNI internal local reference table. The resulting error printout looks like this:
JNI ERROR (app bug): local reference table overflow (max=512)
JNI local reference table (0x2a228720) dump:
Last 10 entries (of 512):
[ list of the last 10 entries in the table ]
Summary:
[ summary of the class types of the 512 entries in the table ]
Failed adding to JNI local ref table (has 512 entries)
"main" prio=5 tid=1 RUNNABLE
Break getObjs( ) calls into chunks that retrieve no more than 512 entries at a time.
Last updated: 12/10/14