Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2301

EXC_BAD_ACCESS on resume/wake on iOS device

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 2.2.0
    • 2.5.0
    • cordova-ios
    • iPhone 5 running iOS 6.0.2 and Phonegap 2.2.0. (Xcode 4.5.2 on Mountain Lion)

    Description

      I have implemented a websocket connection (using socket.io) 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 -http://pictat.com/i/2013/1/28/24904screenshot.jpg

      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

      Attachments

        1. Sample.zip
          2.81 MB
          Henrique Moreira
        2. Screenshot.png
          386 kB
          Henrique Moreira

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ross Ross Holdway
              Votes:
              2 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: