java.lang.OutOfMemoryError: Failed to allocate a 1465140570 byte allocation with 1622964 free bytes and 509MB until OOM

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Nithya Sri
, 1 year ago
Failed to allocate a 1465140570 byte allocation with 1622964 free bytes and 509MB until OOM
via Stack Overflow by Rafael
, 1 year ago
Failed to allocate a 1751343484 byte allocation with 16777216 free bytes and 482MB until OOM
via Stack Overflow by Edward Bishop
, 2 years ago
Failed to allocate a 1627389964 byte allocation with 2648538 free bytes and 88MB until OOM
via Stack Overflow by Antony
, 1 year ago
Failed to allocate a 1968373772 byte allocation with 2097152 free bytes and 247MB until OOM
via Stack Overflow by goh
, 1 year ago
Failed to allocate a 493188205 byte allocation with 16777104 free bytes and 142MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 1465140570 byte allocation with 1622964 free bytes and 509MB until OOM
at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:316)
at com.android.volley.toolbox.DiskBasedCache.readString(DiskBasedCache.java:526)
at com.android.volley.toolbox.DiskBasedCache.readStringStringMap(DiskBasedCache.java:548)
at com.android.volley.toolbox.DiskBasedCache$CacheHeader.readHeader(DiskBasedCache.java:392)
at com.android.volley.toolbox.DiskBasedCache.initialize(DiskBasedCache.java:155)
at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:85)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.