You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/01/23 20:32:39 UTC

[jira] [Resolved] (CB-5473) EXC_BAD_ACCESS on CDVPlugin that is re-opened after being closed

     [ https://issues.apache.org/jira/browse/CB-5473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-5473.
----------------------------------

    Resolution: Cannot Reproduce

I tried it exactly as per your instructions, no repro.

This looks like a memory pressure issue -- iOS probably killed your app because of it. In any case, with my 5S I tried rapidly closing and launching your plugin, and I saw the memory increase without any deallocation.

Thus, it looks like a plugin issue -- you'll have to profile your app and see where you can fix it and release memory when you remove your view.

> EXC_BAD_ACCESS on CDVPlugin that is re-opened after being closed
> ----------------------------------------------------------------
>
>                 Key: CB-5473
>                 URL: https://issues.apache.org/jira/browse/CB-5473
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Camera
>    Affects Versions: 3.1.0
>         Environment: iOS 5.1 (possibly more)
>            Reporter: Shane Carr
>            Assignee: Shazron Abdullah
>            Priority: Critical
>              Labels: camera, crash, plugin
>             Fix For: 3.4.0
>
>
> We've been having an issue involving Cordova crashing as the modal view for our plugin opens.  We have been able to reproduce the issue, and the steps are shown below.  The null pointer seems to come from the {{WebCore::TimerBase::setNextFireTime}} method.
> h2. Source Code
> The source code for the project exhibiting this behavior can be cloned from BitBucket:
> https://bitbucket.org/vote539/shopeel-camera/downloads#tag-downloads
> Download the tag named "simple-camera".  This tag strips out nonessential details.  Please do not use the latest commit when debugging.
> If the app runs slowly even when you use the above commit, try removing (or modifying) the weinre line on your local machine.
> h2. Steps to Reproduce
> The following steps have, without fail, reproduced the error for me.  I am unsure whether this is the minimal set of steps.
> # Build and run the app through XCode on a real iOS device.
> # Tap the "Open Shopeel Camera" button.  The plugin view opens.
> # Tap the "Cancel" button to close the plugin view.
> # Wait at least 30 seconds.
> # Tap the "Open Shopeel Camera" button again.
> # Tap the "Cancel" button again.
> # Wait at least 30 seconds.
> # Tap the "Open Shopeel Camera" button a third time.  The app crashes.
> h2. Error Log
> The app always crashes on the following line:
> {code}
> 0x32e6379e:  ldr.w  r0, [r0, r5, lsl #2]
> {code}
> The trace indicates that this occurs on the thread labeled {{com.apple.camera.avcapturesession}} in the method named {{WebCore::TimerBase::setNextFireTime(double)}}.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)