You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Created) (JIRA)" <ji...@apache.org> on 2012/02/08 01:53:00 UTC
[jira] [Created] (CB-240) Crash when cancelling image capture from
camera using the Camera API
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
[jira] [Resolved] (CB-240) Crash when cancelling image capture from
camera using the Camera API
Posted by "Shazron Abdullah (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-240.
---------------------------------
Resolution: Won't Fix
Effectively this is not a problem and is an external Apple issue (Xcode) and only reproducible when tethered and debugging, not when deployed to a device.
> 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
[jira] [Commented] (CB-240) Crash when cancelling image capture
from camera using the Camera API
Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-240) Crash when cancelling image capture
from camera using the Camera API
Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
[ 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