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

,

The memory is leaking. Try to analyze the HEAP or use LeakCanacy (https://github.com/square/leakcanary) to figure out where is the exact problem.

Solutions on the web

via GitHub by MeteALANLI
, 1 year ago
Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM
via Stack Overflow by Mete Alanlı
, 1 year ago
Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM
via Stack Overflow by miroslav
, 2 years ago
Failed to allocate a 1638412 byte allocation with 326188 free bytes and 318KB until OOM
via GitHub by tiftof
, 2 years ago
Failed to allocate a 1920012 byte allocation with 72503 free bytes and 70KB until OOM
via GitHub by liutingdu
, 1 year ago
Failed to allocate a 8294412 byte allocation with 6278264 free bytes and 5MB until OOM
via Stack Overflow by Avril Lavigne
, 10 months ago
Failed to allocate a 493102860 byte allocation with 4194208 free bytes and 187MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
at org.nativescript.widgets.Async$Http$RequestResult.readResponseStream(Async.java:225)
at org.nativescript.widgets.Async$Http$HttpRequestTask.doInBackground(Async.java:303)
at org.nativescript.widgets.Async$Http$HttpRequestTask.doInBackground(Async.java:253)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)

Users with the same issue

3 times, 3 months ago
8 times, 11 months ago
24 times, 1 year ago
2 times, 1 year ago
15 times, 1 year ago

Write tip

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