Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8025

App is crashed when taking photo using Camera plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.6.3
    • 3.6.3
    • None
    • Samsung Galaxy Tab 3, Android 4.4.2

    Description

      The problem is reproduced using the following 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
      });
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iyankovsky Igor Yankovsky
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: