cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5790) iOS file-transfer plugin fails to upload large files (> 200MB)
Date Fri, 16 May 2014 10:52:25 GMT

    [ https://issues.apache.org/jira/browse/CB-5790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13999041#comment-13999041
] 

ASF GitHub Bot commented on CB-5790:
------------------------------------

Github user nleclerc closed the pull request at:

    https://github.com/apache/cordova-plugin-file-transfer/pull/16


> iOS file-transfer plugin fails to upload large files (> 200MB)
> --------------------------------------------------------------
>
>                 Key: CB-5790
>                 URL: https://issues.apache.org/jira/browse/CB-5790
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 3.3.0
>         Environment: iOS 7.0.4 on an non retina iPad mini and an iPad 3.
> Plugin v0.4.0
>            Reporter: Nicolas Leclerc
>            Assignee: Ian Clelland
>             Fix For: 3.4.0
>
>
> While trying to upload large video files (> 200MB) using the file-transfer plugin
upload function, i get a FILE_NOT_FOUND_ERR error.
> Turns out the real error is as follows:
> {quote}
> Error opening file /var/mobile/Applications/1F3C6CCF-D37B-45C0-B6D2-839FA5F7C163/Documents/20140112214958-rally-vendome-aaa.session/vendome_aaa_mime_1.MOV:
Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error
256.)" UserInfo=0x176ce440 {NSFilePath=/var/mobile/Applications/1F3C6CCF-D37B-45C0-B6D2-839FA5F7C163/Documents/20140112214958-rally-vendome-aaa.session/vendome_aaa_mime_1.MOV,
NSUnderlyingError=0x176cbac0 "The operation couldn’t be completed. *Cannot allocate memory*"}
> {quote}
> Smaller files work fine so it would seem that the whole content of the file is read into
memory before uploading despite using the {{NSDataReadingMappedIfSafe}} option of NSData.
> I did find some reference to the fact that ios is indeed buffering the whole file into
memory:
> * http://www.cimgf.com/2012/02/17/extending-nsdata-and-not-overriding-dealloc/
> * http://stackoverflow.com/questions/16787899/ios-load-large-file-use-memory-mapping-failed



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message