cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Coladarci (JIRA)" <>
Subject [jira] [Comment Edited] (CB-2301) EXC_BAD_ACCESS on resume/wake on iOS device
Date Sat, 06 Apr 2013 22:11:15 GMT


Greg Coladarci edited comment on CB-2301 at 4/6/13 10:10 PM:

EDIT: I THOUGHT the auto-reconnect fixed this for me, but I see the error actually is only
reproduced when you let the phone lock itself versus locking it manually. I'm doing more testing
to see if I can isolate it further..
      was (Author: drgizzlemd):
    As an FYI, I was having the same problem and simply setting reconnect to false in socketio.connect
and then handling reconnecting myself (by calling mySocket.socket.reconnect()) on RESUME did
the trick. No need for me to change the backup settings. That said, I agree that since this
doesn't seem to be a problem in mobile safari, it appears there's probably something Cordova
can do to handle this reconnect more gracefully.
> EXC_BAD_ACCESS on resume/wake on iOS device
> -------------------------------------------
>                 Key: CB-2301
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>         Environment: iPhone 5 running iOS 6.0.2 and Phonegap 2.2.0. (Xcode 4.5.2 on Mountain
>            Reporter: Ross Holdway
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: cordova, ios, phonegap
>             Fix For: 2.5.0
>         Attachments:, Screenshot.png
> I have implemented a websocket connection (using within my app which it uses
to communicate with the server. On locking and waking the device, it disconnects and reconnects
correctly, but on leaving the device locked for 1 minute or longer when unlocking, the application
will crash sometimes instantly, or sometimes after reconnecting with the server.
> If I do the same, but run my app within mobile Safari, it does not crash, leading me
to believe this is an issue with Phonegap/Cordova. 
> On app crash, within Xcode I get within WebThread - WebCore::ThreadTImers::sharedTimerFiredInternal()
an EXC_BAD_ACCESS (code=1) error
> Screenshot of crash state in Xcode -
> Hopefully someone will have an idea as to what could be causing this, or recommend some
tests for me to run etc because I'm really clueless on how to proceed with fixing this!
> Many Thanks,
> Ross

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:

View raw message