incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Levesque (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-312) OutOfMemoryError on upload of video
Date Mon, 12 Mar 2012 20:00:37 GMT
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


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

        

Mime
View raw message