cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3530) PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1" (for navigation to an anchor on the same page)
Date Wed, 19 Jun 2013 22:18:21 GMT

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

ASF subversion and git services commented on CB-3530:
-----------------------------------------------------

Commit db43c7668c93e916eddba978475f22e6e8b9d61f in branch refs/heads/master from [~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=db43c76 ]

[CB-3530] PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when
state=1" (for navigation to an anchor on the same page)

commit fe971530ea4bd5e083cc4d8f70f692f55bd3469f
Author: Shazron Abdullah <shazron@apache.org>
Date:   Wed Jun 19 15:13:59 2013 -0700

    Remove verbose NSLogs.

commit caa93a57b0de81d619effff217fdc20fcc329bc4
Author: Shazron Abdullah <shazron@apache.org>
Date:   Tue Jun 18 17:50:01 2013 -0700

    [CB-3530] PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started
when state=1" (for navigation to an anchor on the same page)

                
> PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1"
(for navigation to an anchor on the same page)
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-3530
>                 URL: https://issues.apache.org/jira/browse/CB-3530
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin InAppBrowser
>    Affects Versions: 2.7.0
>         Environment: Mac OSX 10.8.3, XCode 4.6.2, iOS 6.1
>            Reporter: Montyleena
>            Assignee: Shazron Abdullah
>              Labels: crash, iOS,, inappbrowser,
>             Fix For: 2.9.0
>
>
> 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

Mime
View raw message