java.lang.OutOfMemoryError: Failed to allocate a 8843124 byte allocation with 7598648 free bytes and 7MB 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

,
Expert tip

Try adding these lines to your manifest: android:hardwareAccelerated="false" and android:largeHeap="true" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

,
Expert tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

Solutions on the web

via GitHub by ladia12
, 1 year ago
Failed to allocate a 8843124 byte allocation with 7598648 free bytes and 7MB until OOM
via oneapm.com by Unknown author, 8 months ago
Failed to allocate a 4308492 byte allocation with 467872 free bytes and 456KB until OOM
via GitHub by mr-procrastinator
, 1 year ago
Failed to allocate a 1166412 byte allocation with 16777120 free bytes and 468MB until OOM
via Stack Overflow by Andrey T
, 1 year ago
Failed to allocate a 1166412 byte allocation with 16777120 free bytes and 468MB until OOM
via Stack Overflow by Unknown author, 2 years ago
Failed to allocate a 1017612 byte allocation with 954752 free bytes and 932KB until OOM
via Stack Overflow by Arsham
, 1 month ago
Failed to allocate a 127829260 byte allocation with 1048480 free bytes and 94MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 8843124 byte allocation with 7598648 free bytes and 7MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
at android.graphics.BitmapFactory.nativeDecodeAsset(BitmapFactory.java)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:726)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:547)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1014)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:3730)
at android.content.res.Resources.loadDrawable(Resources.java:3603)
at android.content.res.Resources.getDrawable(Resources.java:1852)
at com.facebook.drawee.generic.GenericDraweeHierarchyInflater.getDrawable(GenericDraweeHierarchyInflater.java:227)
at com.facebook.drawee.generic.GenericDraweeHierarchyInflater.updateBuilder(GenericDraweeHierarchyInflater.java:116)
at com.facebook.drawee.generic.GenericDraweeHierarchyInflater.inflateBuilder(GenericDraweeHierarchyInflater.java:77)
at com.facebook.drawee.view.GenericDraweeView.inflateHierarchy(GenericDraweeView.java:58)
at com.facebook.drawee.view.GenericDraweeView.(GenericDraweeView.java)
at com.facebook.drawee.view.SimpleDraweeView.(SimpleDraweeView.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java)
at android.view.LayoutInflater.createView(LayoutInflater.java:614)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:821)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:511)
at android.view.LayoutInflater.inflate(LayoutInflater.java:415)
at android.view.LayoutInflater.inflate(LayoutInflater.java:366)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 year ago
2 times, 1 year ago
73 times, 1 year ago
2 times, 1 year ago
71 more bugmates

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