java.lang.OutOfMemoryError

Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM

Samebug tips4

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2788

  • Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM
  • Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM
  • Failed to allocate a 14745612 byte allocation with 16777056 free bytes and 23MB until OOM
  • Stack trace

    • 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 android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:763) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    12 times, 8 months ago
    7 times, 1 year ago
    19 times, 1 year ago
    24 times, 8 months ago
    2 times, 9 months ago
    65 more bugmates