You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "saurabh dwivedi (JIRA)" <ji...@apache.org> on 2016/08/22 07:11:20 UTC

[jira] [Comment Edited] (CB-6843) iOS cordova app crashes on stringByEvaluatingJavaScriptFromString: in the class CDVCommandDelegateImpl.m.

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

saurabh dwivedi edited comment on CB-6843 at 8/22/16 7:11 AM:
--------------------------------------------------------------

We are using below branch code  3.9.1. 

Cordova Code Base:
https://github.com/apache/cordova-ios/tree/3.9.1
File here Stack Trace is pointing:
https://github.com/apache/cordova-ios/blob/3.9.1/CordovaLib/Classes/CDVCommandDelegateImpl.m

Stack Trace:
Date/Time: 2016-08-17 10:37:58.58 +0530
Launch Time: 2016-08-11 18:33:26.26 +0530
OS Version: iOS 9.3.4 (13G35)
Report Version: 105

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xbbadbeef
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 JavaScriptCore 0x27d36bcc 0x27979000 + 3922892
1 JavaScriptCore 0x27d3577a 0x27979000 + 3917690
2 JavaScriptCore 0x27d33f36 0x27979000 + 3911478
3 WebCore 0x27f7821a 0x27f4a000 + 188954
4 WebCore 0x27fcf662 0x27f4a000 + 546402
5 WebCore 0x289c9970 0x27f4a000 + 11008368
6 WebCore 0x27f4bd08 0x27f4a000 + 7432
7 JavaScriptCore 0x27d05fb0 0x27979000 + 3723184
8 JavaScriptCore 0x27d05762 0x27979000 + 3721058
9 JavaScriptCore 0x27b6cbac 0x27979000 + 2046892
10 JavaScriptCore 0x27b6d0e2 0x27979000 + 2048226
11 JavaScriptCore 0x279b2036 0x27979000 + 233526
12 JavaScriptCore 0x279b0924 0x27979000 + 227620
13 JavaScriptCore 0x27c7444e 0x27979000 + 3126350
14 JavaScriptCore 0x27c74408 0x27979000 + 3126280
15 JavaScriptCore 0x27c74408 0x27979000 + 3126280
16 JavaScriptCore 0x27c74408 0x27979000 + 3126280
17 JavaScriptCore 0x27c74408 0x27979000 + 3126280
18 JavaScriptCore 0x27c74408 0x27979000 + 3126280
19 JavaScriptCore 0x27c74408 0x27979000 + 3126280
20 JavaScriptCore 0x27c74408 0x27979000 + 3126280
21 JavaScriptCore 0x27c74408 0x27979000 + 3126280
22 JavaScriptCore 0x27c745da 0x27979000 + 3126746
23 JavaScriptCore 0x27c74408 0x27979000 + 3126280
24 JavaScriptCore 0x27c74458 0x27979000 + 3126360
25 JavaScriptCore 0x27c74408 0x27979000 + 3126280
26 JavaScriptCore 0x27c74458 0x27979000 + 3126360
27 JavaScriptCore 0x27c6f2b0 0x27979000 + 3105456
28 JavaScriptCore 0x27bc81b2 0x27979000 + 2421170
29 JavaScriptCore 0x279a2e78 0x27979000 + 171640
30 JavaScriptCore 0x27ab4ac2 0x27979000 + 1292994
31 WebCore 0x2888cef4 0x27f4a000 + 9711348
32 WebCore 0x2888d8aa 0x27f4a000 + 9713834
33 WebKitLegacy 0x28bddae0 0x28b9d000 + 264928
34 UIKit 0x292c4a50 0x28e47000 + 4708944
35 WebRTCApp 0x000be3fa -[CDVCommandDelegateImpl evalJsHelper2:] (CDVCommandDelegateImpl.m:74)
36 Foundation 0x250ae886 0x24fd2000 + 903302
37 CoreFoundation 0x248439e6 0x24787000 + 772582
38 CoreFoundation 0x248435d6 0x24787000 + 771542
39 CoreFoundation 0x2484193e 0x24787000 + 764222
40 CoreFoundation 0x247901c8 0x24787000 + 37320
41 CoreFoundation 0x2478ffbc 0x24787000 + 36796
42 GraphicsServices 0x25dacaf8 0x25da3000 + 39672
43 UIKit 0x28ec3434 0x28e47000 + 508980
44 WebRTCApp 0x000978a6 main (main.m:32)
45 libdyld.dylib 0x2443c872 0x2443a000 + 10354






was (Author: dsurabh):
We are using below branch code  3.9.1. SInce i am not able to update in Jira i am updating on mail.
Cordova Code Base:
https://github.com/apache/cordova-ios/tree/3.9.1
File here Stack Trace is pointing:
https://github.com/apache/cordova-ios/blob/3.9.1/CordovaLib/Classes/CDVCommandDelegateImpl.m

Stack Trace:
Date/Time: 2016-08-17 10:37:58.58 +0530
Launch Time: 2016-08-11 18:33:26.26 +0530
OS Version: iOS 9.3.4 (13G35)
Report Version: 105

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xbbadbeef
Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 JavaScriptCore 0x27d36bcc 0x27979000 + 3922892
1 JavaScriptCore 0x27d3577a 0x27979000 + 3917690
2 JavaScriptCore 0x27d33f36 0x27979000 + 3911478
3 WebCore 0x27f7821a 0x27f4a000 + 188954
4 WebCore 0x27fcf662 0x27f4a000 + 546402
5 WebCore 0x289c9970 0x27f4a000 + 11008368
6 WebCore 0x27f4bd08 0x27f4a000 + 7432
7 JavaScriptCore 0x27d05fb0 0x27979000 + 3723184
8 JavaScriptCore 0x27d05762 0x27979000 + 3721058
9 JavaScriptCore 0x27b6cbac 0x27979000 + 2046892
10 JavaScriptCore 0x27b6d0e2 0x27979000 + 2048226
11 JavaScriptCore 0x279b2036 0x27979000 + 233526
12 JavaScriptCore 0x279b0924 0x27979000 + 227620
13 JavaScriptCore 0x27c7444e 0x27979000 + 3126350
14 JavaScriptCore 0x27c74408 0x27979000 + 3126280
15 JavaScriptCore 0x27c74408 0x27979000 + 3126280
16 JavaScriptCore 0x27c74408 0x27979000 + 3126280
17 JavaScriptCore 0x27c74408 0x27979000 + 3126280
18 JavaScriptCore 0x27c74408 0x27979000 + 3126280
19 JavaScriptCore 0x27c74408 0x27979000 + 3126280
20 JavaScriptCore 0x27c74408 0x27979000 + 3126280
21 JavaScriptCore 0x27c74408 0x27979000 + 3126280
22 JavaScriptCore 0x27c745da 0x27979000 + 3126746
23 JavaScriptCore 0x27c74408 0x27979000 + 3126280
24 JavaScriptCore 0x27c74458 0x27979000 + 3126360
25 JavaScriptCore 0x27c74408 0x27979000 + 3126280
26 JavaScriptCore 0x27c74458 0x27979000 + 3126360
27 JavaScriptCore 0x27c6f2b0 0x27979000 + 3105456
28 JavaScriptCore 0x27bc81b2 0x27979000 + 2421170
29 JavaScriptCore 0x279a2e78 0x27979000 + 171640
30 JavaScriptCore 0x27ab4ac2 0x27979000 + 1292994
31 WebCore 0x2888cef4 0x27f4a000 + 9711348
32 WebCore 0x2888d8aa 0x27f4a000 + 9713834
33 WebKitLegacy 0x28bddae0 0x28b9d000 + 264928
34 UIKit 0x292c4a50 0x28e47000 + 4708944
35 WebRTCApp 0x000be3fa -[CDVCommandDelegateImpl evalJsHelper2:] (CDVCommandDelegateImpl.m:74)
36 Foundation 0x250ae886 0x24fd2000 + 903302
37 CoreFoundation 0x248439e6 0x24787000 + 772582
38 CoreFoundation 0x248435d6 0x24787000 + 771542
39 CoreFoundation 0x2484193e 0x24787000 + 764222
40 CoreFoundation 0x247901c8 0x24787000 + 37320
41 CoreFoundation 0x2478ffbc 0x24787000 + 36796
42 GraphicsServices 0x25dacaf8 0x25da3000 + 39672
43 UIKit 0x28ec3434 0x28e47000 + 508980
44 WebRTCApp 0x000978a6 main (main.m:32)
45 libdyld.dylib 0x2443c872 0x2443a000 + 10354





> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org