[ 
https://issues.apache.org/jira/browse/CB-8025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser closed CB-8025.
--------------------------
    Resolution: Won't Fix

This is Samsung really Samsung-ing it up here. We have no control over the 
camera and we fire an intent to the default camera activity.  This means that 
if your camera is crashing when zooming, this is a camera problem, not a 
problem with Cordova.  This will happen with every app that uses intents to get 
a photo. 

> App is crashed when taking photo using Camera plugin
> ----------------------------------------------------
>
>                 Key: CB-8025
>                 URL: https://issues.apache.org/jira/browse/CB-8025
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera
>    Affects Versions: 3.6.3
>         Environment: Samsung Galaxy Tab 3, Android 4.4.2
>            Reporter: Igor Yankovsky
>             Fix For: 3.6.3
>
>
> The problem is reproduced using the following code:
> {code}
> camera.getPicture(onSuccess, onFail, {
>     quality: 25,
>     encodingType: Camera.EncodingType.JPEG,
>     targetWidth: 768,
>     targetHeight: 1024,
>     destinationType: Camera.DestinationType.FILE_URI,
>     sourceType: Camera.PictureSourceType.CAMERA,
>     saveToPhotoAlbum: true
> });
> {code}
> When user is trying to zoom-in then app is crashed. If reduce quality to 10, 
> it is crashed when tapping on Take Photo button.
> Here is a snippet from error log:
> E/MrvlCameraEngine(15185): Error: Faild to allocate buffer[12582976] with 
> error[-2] ( 
> vendor/marvell/generic/cameraengine/samsung/src/cameraengine/ansi_c/general/cam_osal.c,
>  CAM_MVMalloc, 386 )
> E/MrvlCameraEngine(15185): Error: Faild to allocate buffer[12582976] with 
> error[-22] ( 
> vendor/marvell/generic/cameraengine/samsung/src/cameraengine/ansi_c/general/cam_osal.c,
>  CAM_MVMalloc, 421 )
> E/MrvlCameraEngine(15185): Error: no enough memory[12582976] afford image 
> post processing( 
> vendor/marvell/generic/cameraengine/samsung/src/cameraengine/ansi_c/ppu/cam_ppu_gcu.c,
>  _gcu_yuv_rszrot_roi, 956 )!
> E/MrvlCameraEngine(15185): Error Code: CAM_ERROR_OUTOFMEMORY, 
> vendor/marvell/generic/cameraengine/samsung/src/cameraengine/ansi_c/general/cam_ppu_wrapper.c
>  - 928
> The same code throws no errors on Asus Transformer Pad, Asus MemoPad HD 7 or 
> any other devices available to me.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to