cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11326) use got uncaught exception with allow-navigation
Date Wed, 08 Jun 2016 15:13:21 GMT


ASF GitHub Bot commented on CB-11326:

GitHub user vladimir-kotikov opened a pull request:

    CB-11326 Prevent crash when initializing plugin after navigating to another URL

    Please make sure the checklist boxes are all checked before submitting the PR. The checklist
    is intended as a quick reference, for complete details please see our Contributor Guidelines:
    ### Platforms affected
    - Android
    ### What does this PR do?
    Fixes app hang (due to internal crash) after calling ``
    ### What testing has been done on this change?
    Manual testing
    ### Checklist
    - [x] [ICLA]( has been signed and submitted to
    - [x] [Reported an issue]( in the JIRA
    - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file
paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
    - [ ] Added automated test coverage as appropriate for this change.

You can merge this pull request into a Git repository by running:

    $ git pull CB-11326

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #104
commit b7ace248116826b8b5858b748b5525ee7cf92b25
Author: Vladimir Kotikov <>
Date:   2016-06-08T15:04:03Z

    CB-11326 Prevent crash when initializing plugin after navigating to another URL


> use got uncaught exception with allow-navigation 
> -----------------------------------------------------------------------
>                 Key: CB-11326
>                 URL:
>             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 {{}} with {{<allow-navigation href="myurl"
/>}}, 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(
>                                                              at android.view.ViewRootImpl.clearChildFocus(
>                                                              at android.view.ViewGroup.clearChildFocus(
>                                                              at android.view.ViewGroup.clearChildFocus(
>                                                              at android.view.ViewGroup.clearChildFocus(
>                                                              at android.view.View.clearFocusInternal(
>                                                              at android.view.View.clearFocus(
>                                                              at android.view.ViewGroup.clearFocus(
>                                                              at android.view.View.setFlags(
>                                                              at android.view.View.setVisibility(
>                                                              at org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(
>                                                              at org.apache.cordova.CordovaPlugin.privateInitialize(
>                                                              at org.apache.cordova.PluginManager.getPlugin(
>                                                              at org.apache.cordova.PluginManager.startupPlugins(
>                                                              at org.apache.cordova.PluginManager.init(
>                                                              at org.apache.cordova.CordovaWebViewImpl.loadUrlIntoView(
>                                                              at org.apache.cordova.CordovaWebViewImpl.showWebPage(
>                                                              at org.apache.cordova.CoreAndroid.loadUrl(
>                                                              at org.apache.cordova.CoreAndroid.execute(
>                                                              at org.apache.cordova.CordovaPlugin.execute(
>                                                              at org.apache.cordova.PluginManager.exec(
>                                                              at org.apache.cordova.CordovaBridge.jsExec(
>                                                              at org.apache.cordova.engine.SystemExposedJsApi.exec(
>                                                              at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native
>                                                              at org.chromium.base.SystemMessageHandler.handleMessage(
>                                                              at android.os.Handler.dispatchMessage(
>                                                              at android.os.Looper.loop(
>                                                              at
> {code}
> Then, app cannot accept any command and doesn't response.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message