I get a crash on my app when trying to write out an object( a list of custom types).
I dont really understand this, because i dont get the crash on holding the data in memory, but i get the crash when writing out to file? Am I allocating more memory when doing writeobject? Is it because my OutputStream has a buffer that goes over memory?
I dont really understand this, because i dont get the crash on holding the data in memory, but i get the crash when writing out to file? Am I allocating more memory when doing writeobject? Is it because my OutputStream has a buffer that goes over memory?
B4X:
java.lang.OutOfMemoryError
at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:201)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:139)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:200)
at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:104)
at java.io.DataOutputStream.write(DataOutputStream.java:98)
at java.io.ObjectOutputStream.writeNewString(ObjectOutputStream.java:1449)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1657)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1517)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1481)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeObject(RandomAccessFile.java:438)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeMap(RandomAccessFile.java:506)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeType(RandomAccessFile.java:479)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeObject(RandomAccessFile.java:442)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeList(RandomAccessFile.java:557)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeObject(RandomAccessFile.java:430)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeMap(RandomAccessFile.java:506)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeType(RandomAccessFile.java:479)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeObject(RandomAccessFile.java:442)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeList(RandomAccessFile.java:557)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeObject(RandomAccessFile.java:430)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.writeHelper(RandomAccessFile.java:318)
at anywheresoftware.b4a.randomaccessfile.RandomAccessFile.WriteObject(RandomAccessFile.java:303)
at com.maximussoft.cloudpipes.filehelper._vvvvvvvvvvvvvvvvvv5(filehelper.java:803)
at com.maximussoft.cloudpipes.dpservice._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5(dpservice.java:2778)
at com.maximussoft.cloudpipes.dpservice._response_streamfinish(dpservice.java:2223)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:136)
at anywheresoftware.b4a.BA$2.run(BA.java:244)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4517)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
at dalvik.system.NativeStart.main(Native Method)