java.lang.OutOfMemoryError: Failed to allocate a 18662412 byte allocation with 1643192 free bytes and 1604KB 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 xamarin.com by Unknown author, 1 year ago
Failed to allocate a 18662412 byte allocation with 1643192 free bytes and 1604KB 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 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 Stack Overflow by Rustam Ibragimov
, 6 days ago
Failed to allocate a 9437196 byte allocation with 5765944 free bytes and 5MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 18662412 byte allocation with 1643192 free bytes and 1604KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:741)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:562)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:590)

Users with the same issue

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

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