Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1849] Facebook (Android): WebView called on non-UI thread

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-09-17T06:03:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsn/a
ReporterFokke Zandbergen
AssigneeMotiur Rahman
Created2013-09-13T15:04:51.000+0000
Updated2016-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)

Comments

  1. Motiur Rahman 2013-09-16

    Hi Fokke Zandbergen, Could you please provide some test case? So that i reproduce this issue. Thanks
  2. Fokke Zandbergen 2013-09-16

    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 :)

JSON Source