java.lang.OutOfMemoryError: Failed to allocate a 36486736 byte allocation with 16777216 free bytes and 22MB 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 GitHub by samirmangroliya
, 1 year ago
Failed to allocate a 36486736 byte allocation with 16777216 free bytes and 22MB until OOM
via Stack Overflow by RominaV
, 4 months ago
Failed to allocate a 25235166 byte allocation with 16777216 free bytes and 20MB until OOM
via GitHub by dca-ps
, 1 year ago
Failed to allocate a 32855856 byte allocation with 16777216 free bytes and 29MB until OOM
via Stack Overflow by amin eisa
, 11 months ago
Failed to allocate a 24863134 byte allocation with 4194304 free bytes and 16MB until OOM
via Stack Overflow by Laurens V
, 1 year ago
Failed to allocate a 52435096 byte allocation with 2097152 free bytes and 32MB until OOM
via Stack Overflow by Nguyen Minh Binh
, 9 months ago
Failed to allocate a 34831542 byte allocation with 16765168 free bytes and 31MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 36486736 byte allocation with 16777216 free bytes and 22MB until OOM
at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:125)
at java.lang.StringBuffer.append(StringBuffer.java:278)
at java.io.StringWriter.write(StringWriter.java:123)
at com.android.internal.util.FastPrintWriter.flushLocked(FastPrintWriter.java:358)
at com.android.internal.util.FastPrintWriter.appendLocked(FastPrintWriter.java:303)
at com.android.internal.util.FastPrintWriter.write(FastPrintWriter.java:625)
at java.io.PrintWriter.append(PrintWriter.java:691)
at java.io.PrintWriter.append(PrintWriter.java:687)
at java.io.Writer.append(Writer.java:198)
at java.lang.Throwable.printStackTrace(Throwable.java:324)
at java.lang.Throwable.printStackTrace(Throwable.java:300)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
15 more bugmates

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