I am getting a JNI error of the type:
JNI ERROR (app bug): local reference table overflow (max=512)
Now, I know the reason why it happens and how to solve it but I am having some trouble finding where (CheckJNI is activated and hasn't helped me much). In order to debug this I would like to print the content of the reference table, in particular it would be quite useful to get the same message I get when the app crashes:
JNI local reference table (0x6456b0e8) dump:
07-30 11:16:12.275: W/dalvikvm(14277): Last 10 entries (of 512):
[...]
Summary:
[...]
I haven't found a way to solve this, and the only close solution I have seen (Android JNI local reference table, dump current state) is useless now, as the class VMDebug is no longer in dalvik.system
. Also, android.os.Debug
(this class was referred in the old API of VMDebug) has no function to dump this table.
Is there a way to force the error message to appear? Or get something similar?