Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42E48927F for ; Tue, 20 Mar 2012 21:26:01 +0000 (UTC) Received: (qmail 46546 invoked by uid 500); 20 Mar 2012 21:26:01 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 46524 invoked by uid 500); 20 Mar 2012 21:26:01 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 46516 invoked by uid 99); 20 Mar 2012 21:26:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 21:26:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 21:25:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8F3F5BDC94 for ; Tue, 20 Mar 2012 21:25:39 +0000 (UTC) Date: Tue, 20 Mar 2012 21:25:39 +0000 (UTC) From: "Joe Bowser (Updated) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <288336043.38593.1332278739588.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1509499339.4217.1331582437597.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CB-312) OutOfMemoryError on upload of video MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser updated CB-312: -------------------------- Fix Version/s: 1.6.0 > OutOfMemoryError on upload of video > ----------------------------------- > > Key: CB-312 > URL: https://issues.apache.org/jira/browse/CB-312 > Project: Apache Callback > Issue Type: Bug > Components: Android > Affects Versions: 1.4.0 > Environment: Samsung Galaxy S, HTC Wildfire, Droid Bionic > Reporter: Nathan Levesque > Assignee: Joe Bowser > Fix For: 1.6.0 > > > I'm attempting to get a video upload to our server to work, but the > application is crashing with an OutOfMemoryError. > Video was created with the Capture API and is around 32MB. > We're seeing this with PhoneGap 1.4.1 on several Android devices: Samsung Galaxy S, HTC Wildfire S, Droid Bionic. > I've tried setting chunkedMode=true on my FileUploadOptions object > that I pass with no effect. > Here's a stacktrace: > {noformat} > 03-10 18:51:03.219: ERROR/dalvikvm-heap(5397): Out of memory on a 8274898-byte allocation. > 03-10 18:51:03.219: INFO/dalvikvm(5397): "Thread-41" prio=5 tid=27 RUNNABLE > 03-10 18:51:03.219: INFO/dalvikvm(5397): | group="main" sCount=0 dsCount=0 obj=0x40604db8 self=0x2c35f0 > 03-10 18:51:03.219: INFO/dalvikvm(5397): | sysTid=5535 nice=0 sched=0/0 cgrp=default handle=5205920 > 03-10 18:51:03.219: INFO/dalvikvm(5397): | schedstat=( 741088865 766937263 210 ) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:~91) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at org.apache.harmony.luni.internal.net.www.protocol.http.RetryableOutputStream.write(RetryableOutputStream.java:60) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at java.io.DataOutputStream.write(DataOutputStream.java:99) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at com.phonegap.FileTransfer.upload(FileTransfer.java:324) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at com.phonegap.FileTransfer.execute(FileTransfer.java:98) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at com.phonegap.api.PluginManager$1.run(PluginManager.java:150) > 03-10 18:51:03.219: INFO/dalvikvm(5397): at java.lang.Thread.run(Thread.java:1027) > 03-10 18:51:03.219: INFO/dalvikvm(5397): [ 03-10 18:51:03.239 5397:0x159f E/dalvikvm ] Out of memory: Heap Size=14215KB, Allocated=7385KB, Bitmap Size=0KB, Limit=20480KB > 03-10 18:51:03.239: ERROR/dalvikvm(5397): Extra info: Footprint=14215KB, Allowed Footprint=14215KB, Trimmed=512KB > 03-10 18:51:03.239: WARN/dalvikvm(5397): threadid=27: thread exiting with uncaught exception (group=0x400205a0) 03-10 18:51:03.289: ERROR/AndroidRuntime(5397): FATAL EXCEPTION: Thread-41 > java.lang.OutOfMemoryError: (Heap Size=14215KB, Allocated=7385KB, Bitmap Size=0KB) > at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91) > at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:216) > at org.apache.harmony.luni.internal.net.www.protocol.http.RetryableOutputStream.write(RetryableOutputStream.java:60) > at java.io.DataOutputStream.write(DataOutputStream.java:99) > at com.phonegap.FileTransfer.upload(FileTransfer.java:324) > at com.phonegap.FileTransfer.execute(FileTransfer.java:98) > at com.phonegap.api.PluginManager$1.run(PluginManager.java:150) > at java.lang.Thread.run(Thread.java:1027) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira