You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Shakhnazarov (JIRA)" <ji...@apache.org> on 2015/10/28 22:47:27 UTC

[jira] [Comment Edited] (CB-5787) Progress event(fileTransfer.onprogress) crashes on files <50 MB

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

Sergey Shakhnazarov edited comment on CB-5787 at 10/28/15 9:46 PM:
-------------------------------------------------------------------

On Android progress and downloading works normally (used [50 mb sample video file|http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_50mb.mp4]).

On iOS when the progress gets to 6-13% (random) the UI hangs although such a log could be seen in XCode:
{noformat}
2015-10-28 14:37:25.066 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '21.390869' ms. Plugin should use a background thread.
2015-10-28 14:37:25.136 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '69.472900' ms. Plugin should use a background thread.
2015-10-28 14:38:30.284 HelloCordova[1525:47972] File Transfer Finished with response code 200
2015-10-28 14:43:21.627 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '23.420898' ms. Plugin should use a background thread.
2015-10-28 14:43:21.805 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '177.073975' ms. Plugin should use a background thread.
2015-10-28 14:43:22.179 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '30.184082' ms. Plugin should use a background thread.
{noformat}
UI gets unfrozen eventually.


was (Author: daserge):
On Android progress and downloading works normally (used 50 mb sample video file).

On iOS when the progress gets to 6-13% (random) the UI hangs although such a log could be seen in XCode:
{noformat}
2015-10-28 14:37:25.066 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '21.390869' ms. Plugin should use a background thread.
2015-10-28 14:37:25.136 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '69.472900' ms. Plugin should use a background thread.
2015-10-28 14:38:30.284 HelloCordova[1525:47972] File Transfer Finished with response code 200
2015-10-28 14:43:21.627 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '23.420898' ms. Plugin should use a background thread.
2015-10-28 14:43:21.805 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '177.073975' ms. Plugin should use a background thread.
2015-10-28 14:43:22.179 HelloCordova[1525:47851] THREAD WARNING: ['File'] took '30.184082' ms. Plugin should use a background thread.
{noformat}
UI gets unfrozen eventually.

> Progress event(fileTransfer.onprogress) crashes on files <50 MB
> ---------------------------------------------------------------
>
>                 Key: CB-5787
>                 URL: https://issues.apache.org/jira/browse/CB-5787
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 2.9.0
>         Environment: Android 4.0+, iOS6+
>            Reporter: Vishnu Raj
>              Labels: download, event, filetransfer, progress, reproduced, triaged
>
> I have an mp3 download phonegap app. The download progress bar with I made using progressEvent is working fine for small files only. It's good upto files of size 20MB. After that it seems crashes. The result is, app will not respond to any user interactions. But the file is getting downloaded properly. After completing the download, the user can continue using the app and the downloaded file. Until the downloading finishes user feels like the app is not responding. Average size of my files will be 50MB. Maximum will be 60MB.
> So the problem seems only in the progress event. I tried debugging the values, values also no getting updating with download progressing. 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org