[
https://issues.apache.org/jira/browse/CB-240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204767#comment-13204767
]
Shazron Abdullah commented on CB-240:
-------------------------------------
I was able to repro it this morning, but while debugging and subsequently
after, the crash does not happen anymore - which is weird (no code was changed).
I asked Becky to try to repro.
> 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