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

PhoneGap / Cordova is crashing when selecting a video greater than 59MB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • None
    • cordova-plugin-camera
    • iPhone 6 - iOS 10.1.1
      iPhone 5 - iOS 10.1.1

    Description

      This is the line of code that is failing, even if I run nothing in the success function, it still crashes however the success function is being run for a brief second before crashing.

      navigator.camera.getPicture(createPostSuccessVideo, cameraError, {
        quality: 50,
        destinationType: Camera.DestinationType.NATIVE_URI,
        sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
        mediaType: Camera.MediaType.VIDEO,
        correctOrientation : true ,
        saveToPhotoAlbum: false
      });
      

      I noticed the memory usage spikes up to half a GB for some reason.

      Taking a video works, only selecting from the gallery is failing.

      I occasionally get an exc_bad_access error in Xcode before crashing, other times no error just a crash.

      This code works for TAKING a video larger than 59mb:

      navigator.device.capture.captureVideo(function(imageURI){ createPostSuccessVideo(imageURI,1); }, captureError, {limit:1}); 
      

      But I need to be able to select from the users library which fails.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iisdan Daniel Herbert
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified