java.lang.OutOfMemoryError: Failed to allocate a 7200012 byte allocation with 4806584 free bytes and 4MB 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 Stack Overflow by Jesse Liberty
, 9 months ago
Failed to allocate a 7200012 byte allocation with 4806584 free bytes and 4MB until OOM
via powerampapp.com by Unknown author, 2 years ago
Failed to allocate a 1166412 byte allocation with 262256 free bytes and 256KB until OOM
via GitHub by astrazzari72
, 2 years ago
Failed to allocate a 1048588 byte allocation with 342216 free bytes and 334KB until OOM
via Stack Overflow by Samantha
, 2 months ago
Failed to allocate a 20813772 byte allocation with 4194304 free bytes and 10MB until OOM
via xamarin.com by Unknown author, 1 year ago
Failed to allocate a 18662412 byte allocation with 1643192 free bytes and 1604KB until OOM
via Stack Overflow by Rustam Ibragimov
, 1 week ago
Failed to allocate a 9437196 byte allocation with 5765944 free bytes and 5MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 7200012 byte allocation with 4806584 free bytes and 4MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:703)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
3 times, 2 months ago
8 times, 9 months ago

Write tip

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