java.lang.OutOfMemoryError

Failed to allocate a 14745612 byte allocation with 16777056 free bytes and 23MB 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

This was issue #159 in Fresco, and was fixed recently, in v1.3.0.

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

Solutions on the web2784

  • Failed to allocate a 14745612 byte allocation with 16777056 free bytes and 23MB 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 12939040 free bytes and 12MB until OOM
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 14745612 byte allocation with 16777056 free bytes and 23MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java) at android.graphics.Bitmap.nativeCreate(Bitmap.java) at android.graphics.Bitmap.createBitmap(Bitmap.java:939) at android.graphics.Bitmap.createBitmap(Bitmap.java:912) at android.graphics.Bitmap.createBitmap(Bitmap.java:879) at com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:55) at com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:30) at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:260) at com.facebook.imagepipeline.bitmaps.ArtBitmapFactory.doDecodeStaticImage(ArtBitmapFactory.java:131) at com.facebook.imagepipeline.bitmaps.ArtBitmapFactory.decodeFromPooledByteBuffer(ArtBitmapFactory.java:84) at com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory.decodeFromPooledByteBuffer(PlatformBitmapFactory.java:87) at com.facebook.imagepipeline.decoder.ImageDecoder.decodeStaticImage(ImageDecoder.java:119) at com.facebook.imagepipeline.decoder.ImageDecoder.decodeImage(ImageDecoder.java:93) at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode(DecodeProducer.java:166) at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$000(DecodeProducer.java:88) at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:112) at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:109) at com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:214) at com.facebook.imagepipeline.producers.JobScheduler.access$000(JobScheduler.java:30) at com.facebook.imagepipeline.producers.JobScheduler$1.run(JobScheduler.java:68) at com.facebook.common.executors.SerialDelegatingExecutor.executeSingleCommand(SerialDelegatingExecutor.java:76) at com.facebook.common.executors.SerialDelegatingExecutor.access$000(SerialDelegatingExecutor.java:24) at com.facebook.common.executors.SerialDelegatingExecutor$1.run(SerialDelegatingExecutor.java:47) 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
    Once, 9 months ago
    15 times, 11 months ago
    Once, 11 months ago
    11 times, 1 year ago
    28 times, 1 year ago
    67 more bugmates