You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Stephen McKamey (JIRA)" <ji...@apache.org> on 2013/04/10 22:33:16 UTC

[jira] [Closed] (CB-3008) PhoneGap App hangs on iOS on 2nd load after killed off

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

Stephen McKamey closed CB-3008.
-------------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.7.0)
                   2.6.0

While really hard to debug from within Cordova, this turned out to be due to a change in `onhashchange` which (I can only assume) was causing an infinite loop of URL hash changes.

Closing, but perhaps a feature request would be a better way to diagnose things like this. I don't know of a way to debug JS on the physical device.
                
> PhoneGap App hangs on iOS on 2nd load after killed off
> ------------------------------------------------------
>
>                 Key: CB-3008
>                 URL: https://issues.apache.org/jira/browse/CB-3008
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.6.0
>         Environment: iPad 2, iOS 6.1.3, PhoneGap 2.6.0rc1
>            Reporter: Stephen McKamey
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 2.6.0
>
>
> Within XCode, I clean and build the app. It has been deleted from the device so not updating but is a fresh build. When run on the device (while tethered) it works as expected. Usually hitting "Stop" within XCode and starting it back up will not reproduce the behavior as the app is still running in the iPad's app tray.
> Repro steps:
> If I kill off the app via the iOS app switching tray, then it will never load back up without deleting it and pushing a new build. The app never gets along far enough to trigger the `deviceready` event or any console messaging. I am not familiar enough with XCode to produce much more output than the console, so if you have advice of what to try, I'm receptive. I looked at XCode's Profile options but they weren't very informative.
> Here is the console output for same app build, same device under both scenarios:
> When it works:
> 	2013-04-09 12:00:22.369 Foo[162:907] Multi-tasking -> Device: YES, App: YES
> 	2013-04-09 12:00:22.856 Foo[162:907] Resetting plugins due to page load.
> 	2013-04-09 12:00:23.288 Foo[162:907] Finished load of: file:///var/mobile/Applications/68FE7805-DA2C-47A8-A951-B7A5E9FFEABB/Foo.app/www/index.html
> 	2013-04-09 12:00:23.341 Foo[162:907] DEPRECATION NOTICE: The Connection ReachableViaWWAN return value of '2g' is deprecated as of Cordova version 2.6.0 and will be changed to 'cellular' in a future release. 
> 	2013-04-09 12:00:23.380 Foo[162:907] [DEBUG] Cordova loaded.
> When it fails:
> 	2013-04-09 12:31:36.126 Foo[295:907] Multi-tasking -> Device: YES, App: YES
> 	2013-04-09 12:31:36.608 Foo[295:907] Resetting plugins due to page load.

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