java.lang.OutOfMemoryError: Failed to allocate a 1313160 byte allocation with 938512 free bytes and 916KB 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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by yiiyun
, 1 year ago
Failed to allocate a 1313160 byte allocation with 938512 free bytes and 916KB until OOM
via GitHub by rockaport
, 7 months ago
Failed to allocate a 2020136 byte allocation with 1267000 free bytes and 1237KB until OOM
via GitHub by thepoofy
, 1 year ago
Failed to allocate a 415892 byte allocation with 387832 free bytes and 378KB until OOM
via GitHub by ScottPierce
, 1 year ago
Failed to allocate a 924312 byte allocation with 2172432 free bytes and 2MB until OOM; failed due to fragmentation (required continguous free 925696 bytes where largest contiguous free 540672 bytes)
via GitHub by westnordost
, 2 months ago
Failed to allocate a 202481348 byte allocation with 6668266 free bytes and 182MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 1313160 byte allocation with 938512 free bytes and 916KB until OOM
at java.util.ArrayList.(ArrayList.java:75)
at java.util.AbstractCollection.toArrayList(AbstractCollection.java:348)
at java.util.AbstractCollection.toArray(AbstractCollection.java:339)
at com.squareup.haha.guava.collect.ImmutableList.copyOf(ImmutableList.java:258)
at com.squareup.haha.perflib.analysis.TopologicalSort$TopologicalSortVisitor.getOrderedInstances(TopologicalSort.java:99)
at com.squareup.haha.perflib.analysis.TopologicalSort.compute(TopologicalSort.java:37)
at com.squareup.haha.perflib.Snapshot.computeDominators(Snapshot.java:311)
at com.squareup.leakcanary.HeapAnalyzer.findLeakTrace(HeapAnalyzer.java:157)
at com.squareup.leakcanary.HeapAnalyzer.checkForLeak(HeapAnalyzer.java:91)
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

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 8 months ago
2 times, 1 year ago

Write tip

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