You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (Created) (JIRA)" <ji...@apache.org> on 2011/10/29 01:17:32 UTC

[jira] [Created] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Error loading assets/www/index.html on extra large Callback Projects
--------------------------------------------------------------------

                 Key: CB-12
                 URL: https://issues.apache.org/jira/browse/CB-12
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.1.0
         Environment: All Android
            Reporter: Joe Bowser
            Assignee: Joe Bowser
            Priority: Critical


Steps to reproduce:
1. Create a large Callback Android project
2. Run Large Android Project

Expected: App should load

What Happens: Application shows error saying it can't load index.html

This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of PhoneGap, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Pamela Fox (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181766#comment-13181766 ] 

Pamela Fox commented on CB-12:
------------------------------

In case it's of use to other people who find this post, I believe my long loading time was due to sending off an XMLHttpRequest before deviceready. (Discussed further in this forum post: https://groups.google.com/group/phonegap/browse_thread/thread/1abf2d47fb6216b6/d6fc7d7455badd70?#d6fc7d7455badd70) 
I don't think I've received the timeout since fixing that.
                
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Critical
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-12:
-------------------------

    Priority: Major  (was: Critical)
    
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>             Fix For: 2.0.0
>
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Pamela Fox (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161940#comment-13161940 ] 

Pamela Fox commented on CB-12:
------------------------------

Can you clarify what a "large" project is? I recently experienced this issue (DroidGap - Timeout error) on first load of my project, while using the latest code from github, and I would love to know what makes a project large to see if that's why I'm getting it. Thanks!
                
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Critical
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Joe Bowser (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-12.
--------------------------

    Resolution: Invalid

This isn't actually an error, this can be worked around by changing the timeout variable, but this needs to be documented better somehow.
                
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181711#comment-13181711 ] 

Joe Bowser commented on CB-12:
------------------------------

This is related to the timeout on the PhoneGap loading class.  This is more of a documentation issue than an acutal bug.  We currently wait about 20 seconds at most to load the app.  If we can't get the app loaded in 20 seconds, we call the whole thing off and say that we've timed out.  This isn't technically true, since the files are locally stored.  Instead, the browser is taking too long loading a large PhoneGap application. 

I'm going to assign this one to myself and set the milestone to 2.0
                
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Critical
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-12:
-------------------------

    Fix Version/s:     (was: 2.0.0)
                   1.7.0
    
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-12:
-------------------------

    Description: 
Steps to reproduce:
1. Create a large Callback Android project
2. Run Large Android Project

Expected: App should load

What Happens: Application shows error saying it can't load index.html

This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.


  was:
Steps to reproduce:
1. Create a large Callback Android project
2. Run Large Android Project

Expected: App should load

What Happens: Application shows error saying it can't load index.html

This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of PhoneGap, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.


    
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Critical
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-12:
-------------------------

    Fix Version/s: 2.0.0

This depends on CB-190
                
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-12) Error loading assets/www/index.html on extra large Callback Projects

Posted by "Martin de Keijzer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287231#comment-13287231 ] 

Martin de Keijzer commented on CB-12:
-------------------------------------

Joe, can you add to this ticket how to add the variable in Cordova user-space?
                
> Error loading assets/www/index.html on extra large Callback Projects
> --------------------------------------------------------------------
>
>                 Key: CB-12
>                 URL: https://issues.apache.org/jira/browse/CB-12
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0
>         Environment: All Android
>            Reporter: Joe Bowser
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> Steps to reproduce:
> 1. Create a large Callback Android project
> 2. Run Large Android Project
> Expected: App should load
> What Happens: Application shows error saying it can't load index.html
> This is caused by relying on assets that need to be unzipped to be accessed.  We may want to do the unzipping into the application's jail before we access loadUrl to get around this bottleneck.  This will happen only on the first load of Callback, but we currently can't style this error.  Alternatively, we could somehow catch the error and call loadUrl again once index.html exists.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira