[
https://issues.apache.org/jira/browse/CB-6843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430242#comment-15430242
]
Shazron Abdullah commented on CB-6843:
--------------------------------------
Looks like this is the line:
https://github.com/apache/cordova-ios/blob/ebbc6d05995e50312c044dd1ae11d18e1ff669ba/CordovaLib/Classes/CDVCommandDelegateImpl.m#L74
Although, I'm afraid we won't be doing any fixes on 3.x anymore, so any fix
that is available in the future you would have to patch yourself.
The exception appears to be in Apple code, so I'm not sure what's going on here.
Put this anywhere in your code:
#define CDV_ENABLE_EXEC_LOGGING 1
This should output in the Xcode console log what the JS is (although up to 160
characters only).
> 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]