cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noppes (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-3749) CordovaWebView timeout error
Date Mon, 10 Jun 2013 17:14:21 GMT

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

Noppes updated CB-3749:
-----------------------

    Description: 
I first got this error when I was playing around with my own app and then I started testing
and found out it also happens in the given example.

When I run the 2.7.0 android example and just rotate my tablet a couple of times and tab the
screen a bit this error comes out on screen:
{noformat} 
Application Error
TheConnection to the server was unsuccessful. 
(javascript:try:{cordova.require('cordova/
channel').onDestroy.fire();}catch(e){console.log
('exception firing destroy event from native');};)
{noformat} 
and LogCat says this:
{noformat} 
06-10 16:17:28.253: E/CordovaWebView(6470): CordovaWebView: TIMEOUT ERROR!
06-10 16:17:28.253: D/Cordova(6470): CordovaWebViewClient.onReceivedError: Error code=-6 Description=The
connection to the server was unsuccessful. URL=javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception
firing destroy event from native');};
06-10 16:17:28.253: D/DroidGap(6470): onMessage(onReceivedError,{"errorCode":-6,"url":"javascript:try{cordova.require('cordova\/channel').onDestroy.fire();}catch(e){console.log('exception
firing destroy event from native');};","description":"The connection to the server was unsuccessful."})
{noformat} 
The only things I changed from the example are inside the manifest, because Im using android
10 I have to remove the android:hardwareAccelerated="true" and android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"

Otherwise its completely the same. This error happens on my NextBook table which runs on android
4.1.1 and on my Sony Xperia s which runs on android 4.0.4.

While googling for the CordovaWebClient timeout error I came across more people that have
the same problem. Some suggested to increase the urlTimeout, but that only delays the problem.
On stackoverflow http://stackoverflow.com/questions/16424578/phonegap-cordova-2-7-0-error-when-pausing-app
it says that this started after 2.4.0 and that is correct. When I use 2.4.0 the error does
not occure



  was:
I first got this error when I was playing around with my own app and then I started testing
and found out it also happens in the given example.

When I run the 2.7.0 android example and just rotate my tablet a couple of times and tab the
screen a bit this error comes out on screen:

Application Error
TheConnection to the server was unsuccessful. 
(javascript:try:{cordova.require('cordova/
channel').onDestroy.fire();}catch(e){console.log
('exception firing destroy event from native');};)

and LogCat says this:
06-10 16:17:28.253: E/CordovaWebView(6470): CordovaWebView: TIMEOUT ERROR!
06-10 16:17:28.253: D/Cordova(6470): CordovaWebViewClient.onReceivedError: Error code=-6 Description=The
connection to the server was unsuccessful. URL=javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception
firing destroy event from native');};
06-10 16:17:28.253: D/DroidGap(6470): onMessage(onReceivedError,{"errorCode":-6,"url":"javascript:try{cordova.require('cordova\/channel').onDestroy.fire();}catch(e){console.log('exception
firing destroy event from native');};","description":"The connection to the server was unsuccessful."})

The only things I changed from the example are inside the manifest, because Im using android
10 I have to remove the android:hardwareAccelerated="true" and android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"

Otherwise its completely the same. This error happens on my NextBook table which runs on android
4.1.1 and on my Sony Xperia s which runs on android 4.0.4.

While googling for the CordovaWebClient timeout error I came across more people that have
the same problem. Some suggested to increase the urlTimeout, but that only delays the problem.
On stackoverflow http://stackoverflow.com/questions/16424578/phonegap-cordova-2-7-0-error-when-pausing-app
it says that this started after 2.4.0 and that is correct. When I use 2.4.0 the error does
not occure



    
> CordovaWebView timeout error
> ----------------------------
>
>                 Key: CB-3749
>                 URL: https://issues.apache.org/jira/browse/CB-3749
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.5.0, 2.6.0, 2.7.0, 2.8.0
>         Environment: Windows 7 64bit, eclipse, android r10, 
> tablet: android 4.1.1
>            Reporter: Noppes
>            Assignee: Joe Bowser
>
> I first got this error when I was playing around with my own app and then I started testing
and found out it also happens in the given example.
> When I run the 2.7.0 android example and just rotate my tablet a couple of times and
tab the screen a bit this error comes out on screen:
> {noformat} 
> Application Error
> TheConnection to the server was unsuccessful. 
> (javascript:try:{cordova.require('cordova/
> channel').onDestroy.fire();}catch(e){console.log
> ('exception firing destroy event from native');};)
> {noformat} 
> and LogCat says this:
> {noformat} 
> 06-10 16:17:28.253: E/CordovaWebView(6470): CordovaWebView: TIMEOUT ERROR!
> 06-10 16:17:28.253: D/Cordova(6470): CordovaWebViewClient.onReceivedError: Error code=-6
Description=The connection to the server was unsuccessful. URL=javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception
firing destroy event from native');};
> 06-10 16:17:28.253: D/DroidGap(6470): onMessage(onReceivedError,{"errorCode":-6,"url":"javascript:try{cordova.require('cordova\/channel').onDestroy.fire();}catch(e){console.log('exception
firing destroy event from native');};","description":"The connection to the server was unsuccessful."})
> {noformat} 
> The only things I changed from the example are inside the manifest, because Im using
android 10 I have to remove the android:hardwareAccelerated="true" and android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
> Otherwise its completely the same. This error happens on my NextBook table which runs
on android 4.1.1 and on my Sony Xperia s which runs on android 4.0.4.
> While googling for the CordovaWebClient timeout error I came across more people that
have the same problem. Some suggested to increase the urlTimeout, but that only delays the
problem. On stackoverflow http://stackoverflow.com/questions/16424578/phonegap-cordova-2-7-0-error-when-pausing-app
it says that this started after 2.4.0 and that is correct. When I use 2.4.0 the error does
not occure

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message