Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73F3AD0AD for ; Thu, 31 Jan 2013 10:51:17 +0000 (UTC) Received: (qmail 41337 invoked by uid 500); 31 Jan 2013 10:51:17 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 41209 invoked by uid 500); 31 Jan 2013 10:51:17 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 40550 invoked by uid 500); 31 Jan 2013 10:51:15 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 40375 invoked by uid 99); 31 Jan 2013 10:51:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 10:51:14 +0000 Date: Thu, 31 Jan 2013 10:51:14 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-2301) EXC_BAD_ACCESS on resume/wake on iOS device MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13567531#comment-13567531 ] Shazron Abdullah commented on CB-2301: -------------------------------------- Ah I see where the crash might happen now -- when the app is backgrounded/locked, it does a backup of your localStorage, this call is async but I don't think this is where the crash happens. I'm thinking it happens on restore somehow: https://github.com/apache/cordova-ios/blob/2ba2b39339336e274dd8583f260ff0d85e8e48b2/CordovaLib/Classes/CDVLocalStorage.m#L419 At least with your new information we can build a test-case to perhaps repro it: 1. Set your config.xml BackupWebStorage project setting to the default ('cloud'). 2. Read and/or write to localStorage on the resume event (http://docs.phonegap.com/en/2.3.0/cordova_events_events.md.html#resume, see iOS Quirks) > EXC_BAD_ACCESS on resume/wake on iOS device > ------------------------------------------- > > Key: CB-2301 > URL: https://issues.apache.org/jira/browse/CB-2301 > 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 Lion) > Reporter: Ross Holdway > Assignee: Shazron Abdullah > Priority: Critical > Labels: cordova, ios, phonegap > > 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 -- 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: http://www.atlassian.com/software/jira