I am using Volley for my networking library and I am getting an out of memory error. It only happened to one of our users once, but I would like to find out, if possible how I can fix this.
The stacktrace is tiny and very, not helpful at all:
Fatal Exception: java.lang.OutOfMemoryError
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:122)
at com.android.volley.toolbox.BasicNetwork.entityToBytes(BasicNetwork.java:241)
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:123)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:112)
That is the whole stacktrace?
Any ideas?