[jira] [Issue Comment Deleted] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation

2016-06-17 Thread zhuisui (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhuisui updated CB-11326:
-
Comment: was deleted

(was: I ensure. And I found that it is not the whitelist plugin controls that, 
it
is above mentioned.


-- 

追随
)

> 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 

[jira] [Issue Comment Deleted] (CB-11326) use navigator.app.loadUrl got uncaught exception with allow-navigation

2016-06-07 Thread zhuisui (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhuisui updated CB-11326:
-
Comment: was deleted

(was: I will test more after a few hours.


-- 

追随
)

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