cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lauri Elevant (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6843) iOS cordova app crashes on stringByEvaluatingJavaScriptFromString: in the class CDVCommandDelegateImpl.m.
Date Wed, 01 Oct 2014 16:01:34 GMT

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

Lauri Elevant commented on CB-6843:
-----------------------------------

I am having a similar issue on startup. It seems to be a race condition, maybe on 20% of launches
it crashes with EXC_BAD_ACCESS. Mostly it seems to be caused by the DeviceInfo plugin - my
guess is that it tries to write JS before the webView is properly initialized?

Screenshot:
https://www.dropbox.com/s/nyzbj7n4avgfa4c/evalJsHelper2.png?dl=0

> 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
>            Priority: Critical
>         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)

Mime
View raw message