[
https://issues.apache.org/jira/browse/CB-6843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427566#comment-15427566
]
saurabh dwivedi commented on CB-6843:
-------------------------------------
Issue is observed in Cordova 3.9.1
Function:
71 - (void)evalJsHelper2:(NSString*)js
72 {
73 CDV_EXEC_LOG(@"Exec: evalling: %@", [js substringToIndex:MIN([js
length], 160)]);
74 NSString* commandsJSON = [_viewController.webView
stringByEvaluatingJavaScriptFromString:js];
75 if ([commandsJSON length] > 0) {
76 CDV_EXEC_LOG(@"Exec: Retrieved new exec messages by chaining.");
77 }
78
79 [_commandQueue enqueueCommandBatch:commandsJSON];
80 [_commandQueue executePending];
81 }
> iOS cordova app crashes on stringByEvaluatingJavaScriptFromString: in the
> class CDVCommandDelegateImpl.m.
> ---------------------------------------------------------------------------------------------------------
>
> Key: CB-6843
> URL: https://issues.apache.org/jira/browse/CB-6843
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Environment: iOS 7
> Reporter: Geetha
> Assignee: Shazron Abdullah
> Priority: Critical
> Fix For: 3.7.0
>
> Attachments: Call Mobile_CrashReport.txt, Crash_Report.txt, Screen
> Shot 2014-05-31 at 3.11.09 PM.png
>
>
> The app is been developed using the Cordova version 3.2 and with iOS versions
> 6 and 7.
> In the app APNS is been supported, so in order to support the APNS feature we
> have to sent the status to server when the app goes to the foreground . For
> this support we requested the OS to extend the execution time () so that app
> can send the status to the server. In mean time if the app rest a while in
> the background and comes to the foreground let say some 30 mins or one hour
> ,the app crashes out with exception EXC_BAD_ACCESS.
> The crash report says that the exception is been caught in the
> CDVCommandDelegaetImpl class in the method evalJsHelper2: for the API i.e
> stringByEvaluatingJavaScriptFromString:.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]