You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Montyleena (JIRA)" <ji...@apache.org> on 2013/05/30 06:23:24 UTC

[jira] [Comment Edited] (CB-3530) PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1"

    [ https://issues.apache.org/jira/browse/CB-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670030#comment-13670030 ] 

Montyleena edited comment on CB-3530 at 5/30/13 4:23 AM:
---------------------------------------------------------

wow, thanks for the info. Apparently, the error "CDVWebViewDelegate: Navigation started when state=1" is only coming with 2.7.0, so I hope this gets fixed in the next release.
                
      was (Author: montylee):
    wow, thanks for the info. I hope this gets fixed in the next release.
                  
> PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1"
> --------------------------------------------------------------------------------------------
>
>                 Key: CB-3530
>                 URL: https://issues.apache.org/jira/browse/CB-3530
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 2.7.0
>         Environment: Mac OSX 10.8.3, XCode 4.6.2, iOS 6.1
>            Reporter: Montyleena
>            Assignee: Steve Gill
>              Labels: crash, iOS,, inappbrowser,
>
> I have a PhoneGap app on iOS which was working fine with PhoneGap 2.3.0 but crashes with 2.7.0 with the following error:
> 2013-05-02 10:08:13.214 App[8896:c07] CDVWebViewDelegate: Navigation started when state=1
> 2013-05-02 10:08:13.215 App[8896:c07] Failed to load webpage with error: (null)
> The problem is:
> CDVWebViewDelegate.m: shouldStartLoadWithRequest() function: In switch case, default: error code is being passed as nil
> and in CDVInAppBrowser.m: didFailLoadWithError() function, error.localizedDescription is being referenced, which causes a crash as error object is nil. 
> For now, i added a check in the above function to put default values for error code if the error object is nil. I hope this crash is fixed in the next PhoneGap release.

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