[AC-1849] Facebook (Android): WebView called on non-UI thread
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-17T06:03:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Motiur Rahman |
Created | 2013-09-13T15:04:51.000+0000 |
Updated | 2016-03-08T07:40:45.000+0000 |
Description
All dialogs of the Facebook module produce the following stream of warnings in the Android console, saying the webviews are created on the wrong thread:
09-13 17:00:48.623: W/webview_proxy(23779): java.lang.Throwable: Warning: A WebView method was called on thread 'KrollRuntimeThread'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
09-13 17:00:48.623: W/webview_proxy(23779): at android.webkit.WebView.checkThread(WebView.java:1895)
09-13 17:00:48.623: W/webview_proxy(23779): at android.webkit.WebView.setCertificate(WebView.java:580)
09-13 17:00:48.623: W/webview_proxy(23779): at android.webkit.WebViewClassic.onPageStarted(WebViewClassic.java:4978)
09-13 17:00:48.623: W/webview_proxy(23779): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:382)
09-13 17:00:48.623: W/webview_proxy(23779): at android.os.Handler.dispatchMessage(Handler.java:99)
09-13 17:00:48.623: W/webview_proxy(23779): at android.os.Looper.loop(Looper.java:137)
09-13 17:00:48.623: W/webview_proxy(23779): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
Hi Fokke Zandbergen, Could you please provide some test case? So that i reproduce this issue. Thanks
I was going to, but I can't replicate it anymore. I was doing the test over LiveView at the time, but straight on the device it works fine, so close it :)