使用GSAP的Android webview:尝试删除非JNI本地引用,转储线程 [英] Android webview using GSAP: Attempt to remove non-JNI local reference, dumping thread
问题描述
在使用Nexus5仿真器的Android Studio 1.4中,每次使用 GSAP 在webview中,logcat会发出大量此消息:
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
这似乎不会影响我的webapp的行为,除了消息是一点点口吃制作,动画需要几秒钟才能完成多次。
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?
更新:我的测试设备Samsung Galaxy S4上没有出现错误。所以它可能只是一个模拟器问题。
UPDATE: The error does not occur on my test device, Samsung Galaxy S4. So it is likely only an emulator problem.
推荐答案
我认为您使用的是没有主机GPU仿真的网页视图。
I think you are using a webview without a host GPU emulation.
Google团队在此问题中表示:
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. :/"
检查问题报告:
* https://code.google.com/p / android / issues / detail?id = 189040
这篇关于使用GSAP的Android webview:尝试删除非JNI本地引用,转储线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!