Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2BBD0200B4B for ; Thu, 21 Jul 2016 22:09:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A5BD160A87; Thu, 21 Jul 2016 20:09:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7D3B3160A72 for ; Thu, 21 Jul 2016 22:09:21 +0200 (CEST) Received: (qmail 69526 invoked by uid 500); 21 Jul 2016 20:09:20 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 69487 invoked by uid 99); 21 Jul 2016 20:09:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 20:09:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 830672C0D58 for ; Thu, 21 Jul 2016 20:09:20 +0000 (UTC) Date: Thu, 21 Jul 2016 20:09:20 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 21 Jul 2016 20:09:22 -0000 [ https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15388340#comment-15388340 ] ASF subversion and git services commented on CB-11326: ------------------------------------------------------ Commit 41ca5809b111c552d7f5b9adc0c5745fe6459085 in cordova-plugin-splashscreen's branch refs/heads/master from [~vladimir.kotikov] [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-splashscreen.git;h=41ca580 ] CB-11326 Prevent crash when initializing plugin after navigating to another URL > use navigator.app.loadUrl got uncaught exception with allow-navigation > ----------------------------------------------------------------------- > > Key: CB-11326 > URL: https://issues.apache.org/jira/browse/CB-11326 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin SplashScreen > Environment: Cordova 6.2.0 > Reporter: zhuisui > Assignee: Vladimir Kotikov > Labels: triaged > > I get this stack when {{navigator.app.loadUrl(myurl)}} with {{}}, which occurs after {{pluginManager.shouldAllowNavigation(myurl)}} returns true > {code} > Uncaught exception from plugin > android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. > at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6556) > at android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:3023) > at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at android.view.ViewGroup.clearChildFocus(ViewGroup.java:964) > at android.view.View.clearFocusInternal(View.java:5602) > at android.view.View.clearFocus(View.java:5585) > at android.view.ViewGroup.clearFocus(ViewGroup.java:977) > at android.view.View.setFlags(View.java:10622) > at android.view.View.setVisibility(View.java:7431) > at org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:85) > at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58) > at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:172) > at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:98) > at org.apache.cordova.PluginManager.init(PluginManager.java:87) > at org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(CordovaWebViewImpl.java:138) > at org.apache.cordova.CordovaWebViewImpl.showWebPage(CordovaWebViewImpl.java:216) > at org.apache.cordova.CoreAndroid.loadUrl(CoreAndroid.java:203) > at org.apache.cordova.CoreAndroid.execute(CoreAndroid.java:92) > at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) > at org.apache.cordova.PluginManager.exec(PluginManager.java:133) > at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) > at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) > at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53) > at android.os.Handler.dispatchMessage(Handler.java:102) > at android.os.Looper.loop(Looper.java:148) > at android.os.HandlerThread.run(HandlerThread.java:61) > {code} > Then, app cannot accept any command and doesn't response. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org