incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-240) Crash when cancelling image capture from camera using the Camera API
Date Wed, 22 Feb 2012 19:39:50 GMT

     [ 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

        

Mime
View raw message