ApportableFacebookSDK crashes on "WebView method called from other thread"

51 views
Skip to first unread message

Andrii Gorishnii

unread,
May 24, 2014, 1:45:12 PM5/24/14
to apportabl...@googlegroups.com
Hi, I'm trying to use ApportabelFacebookSDK just as it's described in README and it works, but very slow and almost always crashes on login. Same with friend's invitation list and other dialogs. I noticed that problem came from this exception:

W/WebView (11025): java.lang.Throwable: A WebView method was called on thread 'MainThread'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 1) {42167328} called on Looper (MainThread, tid 3953) {4233f4d0}, FYI main Looper is Looper (main, tid 1) {42167328})
W/WebView (11025): at android.webkit.WebView.checkThread(WebView.java:2063)
W/WebView (11025): at android.webkit.WebView.loadUrl(WebView.java:794)
W/WebView (11025): at com.apportable.ui.WebView.stringByEvaluatingJavaScriptFromString(WebView.java:521)
W/WebView (11025): at com.apportable.ui.WebView.onPageFinished(Native Method)

I'm also aware of discussion between Glenna and Tomasz but it didn't help with login problem. May you help me to understand how to fix that? Or tell if it's going to be fixed by someone in future?

Thanks,
Andrey.


Eric Slater

unread,
Jun 26, 2014, 3:57:13 PM6/26/14
to apportabl...@googlegroups.com
Hi Andrey,

We've had a couple of SDK releases since you reported this, so I recommend updating to the latest version to see if that resolves the issue.  If it doesn't, please post on our forums under the Social category with sample code that demonstrates the issue at hand. The response times are generally fast and we frequently look to the forums to find issues that need to be resolved in future releases.  Thanks for using Apportable!

All the best,
Eric
Reply all
Reply to author
Forward
0 new messages