的WebView java.lang.SecurityException异常:没有权限修改定的线程 [英] WebView java.lang.SecurityException: No permission to modify given thread
问题描述
我有一个使用多个WebViews的应用程序。没有哪次我在WebSettings设置渲染线程的优先级,虽然我仍然得到下面的异常。
到目前为止,这似乎只发生在Android 4.0.4,而我还没有找到源$ C $下。
任何人都遇到这个和/或知道一个解决方案吗?谢谢!
java.lang.SecurityException异常:没有权限修改定的线程
在android.os.Process.setThreadPriority(本机方法)
在android.webkit.WebViewCore $ WebCoreThread $ 1.handleMessage(WebViewCore.java:712)
在android.os.Handler.dispatchMessage(Handler.java:99)
在android.os.Looper.loop(Looper.java:137)
在android.webkit.WebViewCore $ WebCoreThread.run(WebViewCore.java:789)
在java.lang.Thread.run(Thread.java:856)
这是氰的错。 <一href="https://github.com/CyanogenMod/android_frameworks_base/commit/b963f3c0c64560bcdb1596dd85fe9b0dad6d78c5#L1R712">https://github.com/CyanogenMod/android_frameworks_base/commit/b963f3c0c64560bcdb1596dd85fe9b0dad6d78c5#L1R712
我有一堆关于这个问题的崩溃报告,都从4.0.4在许多不同的设备,所有的人都可能运行某种形式的CM9的(多数没有官方ICS版本还)。
我没有时间去骂他们,所以希望别人可以把它在自己的bug跟踪系统。
I have an application that uses multiple WebViews. Nowhere do I set the priority of the render thread through the WebSettings though I still get the exception below.
So far it only seems to happen on android 4.0.4, which I haven't found the source code for.
Anyone run into this and/or knows a solution? Thanks!
java.lang.SecurityException: No permission to modify given thread
at android.os.Process.setThreadPriority(Native Method)
at android.webkit.WebViewCore$WebCoreThread$1.handleMessage(WebViewCore.java:712)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:789)
at java.lang.Thread.run(Thread.java:856)
It's cyanogen's fault. https://github.com/CyanogenMod/android_frameworks_base/commit/b963f3c0c64560bcdb1596dd85fe9b0dad6d78c5#L1R712
I have a pile of crash reports on this issue, all from 4.0.4 on many different devices, all of them likely running some form of CM9 (most don't have official ICS releases yet).
I don't have time to yell at them, so hopefully someone else can bring it up in their bug tracker.
这篇关于的WebView java.lang.SecurityException异常:没有权限修改定的线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!