java.lang.OutOfMemoryError: Failed to allocate a 48 byte allocation with 8388608 free bytes and 309MB until OOM; failed due to fragmentation (required continguous free 4096 bytes for a new buffer where largest contiguous free 0 bytes)

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 allo86
, 1 year ago
Failed to allocate a 48 byte allocation with 8388608 free bytes and 309MB until OOM; failed due to fragmentation (required continguous free 4096 bytes for a new buffer where largest contiguous free 0 bytes)
java.lang.OutOfMemoryError: Failed to allocate a 48 byte allocation with 8388608 free bytes and 309MB until OOM; failed due to fragmentation (required continguous free 4096 bytes for a new buffer where largest contiguous free 0 bytes)
at com.squareup.haha.perflib.Instance.resetRetainedSize(Instance.java:155)
at com.squareup.haha.perflib.analysis.Dominators.computeRetainedSizes(Dominators.java:111)
at com.squareup.haha.perflib.Snapshot.computeDominators(Snapshot.java:313)
at com.squareup.leakcanary.HeapAnalyzer.findLeakTrace(HeapAnalyzer.java:124)
at com.squareup.leakcanary.HeapAnalyzer.checkForLeak(HeapAnalyzer.java:87)
at com.squareup.leakcanary.internal.HeapAnalyzerService.onHandleIntent(HeapAnalyzerService.java:58)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

Once, 1 year ago

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