java.lang.OutOfMemoryError: Failed to allocate a 20 byte allocation with 3936 free bytes and 3KB until OOM


Solutions on the web

Solution icon of github
via GitHub by ChanSek
, 1 year ago
Failed to allocate a 20 byte allocation with 3936 free bytes and 3KB until OOM

Stack trace

java.lang.OutOfMemoryError: Failed to allocate a 20 byte allocation with 3936 free bytes and 3KB until OOM
	at com.squareup.haha.perflib.Instance.<init>(Instance.java:66)
	at com.squareup.haha.perflib.ClassInstance.<init>(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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.