[
https://issues.apache.org/jira/browse/CB-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204985#comment-13204985
]
Shazron Abdullah commented on CB-240:
-------------------------------------
We thought we had it licked, but there does not seem to be a consistent repro.
To make matters worse, the crash does NOT happen when the device is untethered
to the computer for debugging! It only appears to happen when we are debugging
- a heisenbug?
> Crash when cancelling image capture from camera using the Camera API
> --------------------------------------------------------------------
>
> Key: CB-240
> URL: https://issues.apache.org/jira/browse/CB-240
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.4.0
> Environment: iOS 5 (device)
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Priority: Blocker
> Fix For: 1.5.0
>
>
> Crash - EXC_BAD_ACCESS on line 242 of Camera.m
> https://github.com/apache/incubator-cordova-ios/blob/master/PhoneGapLib/Classes/Camera.m#L242
> test-code:
> {code:javascript}
> function onDeviceReady()
> {
> // do your thing!
> navigator.camera.getPicture(onSuccess, onFail, { sourceType:
> Camera.PictureSourceType.CAMERA, quality: 50 });
>
> function onSuccess(imageData) {
> var image = document.getElementById('myImage');
> image.src = imageData;
> }
>
> function onFail(message) {
> alert('Failed because: ' + message);
> }
>
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira