java.lang.OutOfMemoryError

Failed to allocate a 4760012 byte allocation with 497532 free bytes and 485KB 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

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

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

Solutions on the web2788

  • via GitHub by noear
    , 10 months ago
    Failed to allocate a 4760012 byte allocation with 497532 free bytes and 485KB until OOM
  • via Coderanch by Dirk Lucas, 6 months ago
    Failed to allocate a 13063692 byte allocation with 4194304 free bytes and 11MB until OOM
  • via GitHub by kkot
    , 6 months ago
    Failed to allocate a 57283554 byte allocation with 16777120 free bytes and 34MB until OOM
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 4760012 byte allocation with 497532 free bytes and 485KB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:635) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:611) at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:83) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.decodeImage(LoadAndDisplayImageTask.java:265) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:223) at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:136) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

    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

    Unknown user
    2 times, 9 months ago
    Once, 1 year ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    8 times, 5 months ago
    66 more bugmates