[
https://issues.apache.org/jira/browse/CB-12073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Shakhnazarov updated CB-12073:
-------------------------------------
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.
{noformat}
navigator.camera.getPicture(createPostSuccessVideo, cameraError, {
quality: 50,
destinationType: Camera.DestinationType.NATIVE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
mediaType: Camera.MediaType.VIDEO,
correctOrientation : true ,
saveToPhotoAlbum: false
});
{noformat}
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:
{noformat}
navigator.device.capture.captureVideo(function(imageURI){
createPostSuccessVideo(imageURI,1); }, captureError, {limit:1});
{noformat}
But I need to be able to select from the users library which fails.
was:
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.
{noformat}
navigator.camera.getPicture(createPostSuccessVideo, cameraError, {
quality: 50,
destinationType: destinationType.NATIVE_URI,
sourceType: pictureSource.PHOTOLIBRARY,
mediaType: navigator.camera.MediaType.VIDEO,
correctOrientation : true ,
saveToPhotoAlbum: false
});
{noformat}
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:
{noformat}
navigator.device.capture.captureVideo(function(imageURI){
createPostSuccessVideo(imageURI,1); }, captureError, {limit:1});
{noformat}
But I need to be able to select from the users library which fails.
> PhoneGap / Cordova is crashing when selecting a video greater than 59MB
> -----------------------------------------------------------------------
>
> Key: CB-12073
> URL: https://issues.apache.org/jira/browse/CB-12073
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 2.3.0
> Environment: iPhone 6 - iOS 10.1.1
> iPhone 5 - iOS 10.1.1
> Reporter: Daniel Herbert
> Priority: Critical
> Labels: ios, triaged, wfc
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> 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.
> {noformat}
> navigator.camera.getPicture(createPostSuccessVideo, cameraError, {
> quality: 50,
> destinationType: Camera.DestinationType.NATIVE_URI,
> sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
> mediaType: Camera.MediaType.VIDEO,
> correctOrientation : true ,
> saveToPhotoAlbum: false
> });
> {noformat}
> 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:
> {noformat}
> navigator.device.capture.captureVideo(function(imageURI){
> createPostSuccessVideo(imageURI,1); }, captureError, {limit:1});
> {noformat}
> But I need to be able to select from the users library which fails.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]