samedi 14 février 2015

Lollipop: module crashes ART with "JNI ERROR: local reference table overflow" topic






@rovo89

I'm testing my BubbleUPnP module with the Lollipop alpha.
Among other things it hooks AudioTrack and in particular the write() method to capture audio.

write() is called repeatedly by processes playing audio. After a few calls, ART crashes with "JNI ERROR(app bug) : local reference table overflow" as shown in the attached logcat. Googling this error returns quite a bit of info and points to missing DeleteLocalRef() calls for local variables.

Below the JNI_ERROR , there's a very long stack trace with repeated calls but I'm not sure how to interpret it (does it point to some form of infinite recursion, possibly causing the crash?). The same module works fine on KitKat Xposed.

If you are interested with a modified BubbleUPnP module (the repository one doesn't work) to reproduce this crash and instructions, let me know.














Attached Files





File Type: txt logcat.txt -
[Click for QR Code]
(96.9 KB)










Aucun commentaire:

Enregistrer un commentaire