使用 GSAP 的 Android webview:尝试删除非 JNI 本地引用,转储线程 [英] Android webview using GSAP: Attempt to remove non-JNI local reference, dumping thread

查看:26
本文介绍了使用 GSAP 的 Android webview:尝试删除非 JNI 本地引用,转储线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Nexus5 模拟器的 Android Studio 1.4 中,每次有使用 GSAP 的 3D 动画(x、y、rotationX、rotationY、rotationZ)a> 在 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

这似乎不会影响我的 web 应用程序的行为,只是在生成消息时有点卡顿,这对于需要几秒钟才能完成的动画来说是每秒多次.

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?

更新:我的测试设备三星 Galaxy S4 上没有出现该错误.所以很可能只是模拟器问题.

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

推荐答案

我认为您正在使用没有主机 GPU 仿真的 webview.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆