cinohub / flickrj-android

Automatically exported from code.google.com/p/flickrj-android
Other
0 stars 0 forks source link

Uploader memory leak #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upload a big video (500MB) with low memory setting

What is the expected output? What do you see instead?
Should correctly upload video but :
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2271)
        at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113)
        at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
        at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140)
        at sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:78)
        at java.io.DataOutputStream.write(DataOutputStream.java:107)
        at com.googlecode.flickrjandroid.REST.writeParam(REST.java:407)
        at com.googlecode.flickrjandroid.REST.sendUpload(REST.java:243)
        at com.googlecode.flickrjandroid.Transport.upload(Transport.java:86)
        at com.googlecode.flickrjandroid.uploader.Uploader.upload(Uploader.java:169)

What version of the product are you using? On what operating system?
flickrj android 2.0.7 on Windows/Linux

Please provide any additional information below.

Original issue reported on code.google.com by gabriel.landais@gmail.com on 17 Jul 2013 at 10:05