Java 使用 GSAP 的 Android webview:尝试删除非 JNI 本地引用,转储线程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32911238/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android webview using GSAP: Attempt to remove non-JNI local reference, dumping thread
提问by Mark
In Android Studio 1.4 using the Nexus5 emulator, every time there is a 3D animation (x, y, rotationX, rotationY, rotationZ) using GSAPin the webview, the logcat spits out a ton of this message:
在使用 Nexus5 模拟器的 Android Studio 1.4 中,每次在 webview 中使用GSAP进行3D 动画(x、y、rotationX、rotationY、rotationZ)时,logcat 都会吐出大量此消息:
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.
除了在生成消息时有点卡顿之外,这似乎不会影响我的 web 应用程序的行为,对于需要几秒钟才能完成的动画来说,这是每秒多次。
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.
更新:我的测试设备三星 Galaxy S4 上没有出现该错误。所以很可能只是模拟器问题。
回答by josedlujan
I think you are using a webview without a host GPU emulation.
我认为您使用的是没有主机 GPU 仿真的 webview。
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:
检查问题报告: