Shane Carr created CB-5473:
------------------------------
Summary: 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
Affects Versions: 3.1.0
Environment: iOS 5.1 (possibly more)
Reporter: Shane Carr
Priority: Critical
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
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#6144)