Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android webview using GSAP: Attempt to remove non-JNI local reference, dumping thread

In Android Studio 1.4 using the Nexus5 emulator, every time there is a 3D animation (x, y, rotationX, rotationY, rotationZ) using GSAP in the webview, the logcat spits out a ton of this message:

Attempt to remove non-JNI local reference, dumping thread 

This doesn't appear to affect my webapp's behavior other than a bit of stuttering when the message is produced, which is multiple times a second for animations that take a few seconds to complete.

Any ideas on how to stop, or is this even a problem?

UPDATE: The error does not occur on my test device, Samsung Galaxy S4. So it is likely only an emulator problem.

like image 693
Mark Avatar asked Oct 02 '15 16:10

Mark


1 Answers

I think you are using a webview without a host GPU emulation.

Google team says in the issue:

"You shouldn't expect that WebView will be usable without host GPU emulation any time soon.  Note also that since the emulator doesn't receive WebView updates, testing on the emulator means you are using a much older version of WebView than the vast majority of your users, and so it's already rather unrepresentative. :/" 

Check the issue report:

*https://code.google.com/p/android/issues/detail?id=189040

like image 191
josedlujan Avatar answered Sep 18 '22 22:09

josedlujan