java.lang.OutOfMemoryError: Failed to allocate a 20 byte allocation with 3936 free bytes and 3KB 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 ChanSek
, 1 year ago
Failed to allocate a 20 byte allocation with 3936 free bytes and 3KB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 20 byte allocation with 3936 free bytes and 3KB until OOM
at com.squareup.haha.perflib.Instance.(Instance.java:66)
at com.squareup.haha.perflib.ClassInstance.(ClassInstance.java:31)
at com.squareup.haha.perflib.HprofParser.loadInstanceDump(HprofParser.java:561)
at com.squareup.haha.perflib.HprofParser.loadHeapDump(HprofParser.java:351)
at com.squareup.haha.perflib.HprofParser.parse(HprofParser.java:186)
at com.squareup.leakcanary.HeapAnalyzer.checkForLeak(HeapAnalyzer.java:81)
at com.squareup.leakcanary.internal.HeapAnalyzerService.onHandleIntent(HeapAnalyzerService.java:58)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

You are the first who have seen this exception.

Write tip

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