Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89F5C175F8 for ; Thu, 29 Oct 2015 09:10:28 +0000 (UTC) Received: (qmail 19513 invoked by uid 500); 29 Oct 2015 09:10:28 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 19209 invoked by uid 500); 29 Oct 2015 09:10:28 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 19163 invoked by uid 99); 29 Oct 2015 09:10:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 09:10:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CC0702C1F56 for ; Thu, 29 Oct 2015 09:10:27 +0000 (UTC) Date: Thu, 29 Oct 2015 09:10:27 +0000 (UTC) From: "Sergey Shakhnazarov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-5787) Progress event(fileTransfer.onprogress) crashes on files <50 MB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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/29/15 9:09 AM: ------------------------------------------------------------------- On Android 4.0.3 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 Android 5.1.1 UI hangs as well as on iOS. 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|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. > 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