Failed to allocate a 10969356 byte allocation with 8599832 free bytes and 8MB 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:


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 web778

  • via GitHub by wv1124
  • via GitHub by karun2189
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 10969356 byte allocation with 8599832 free bytes and 8MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at Method) at at at at com.facebook.imagepipeline.memory.BitmapPool.alloc( at com.facebook.imagepipeline.memory.BitmapPool.alloc( at com.facebook.imagepipeline.memory.BasePool.get( at com.facebook.imagepipeline.platform.ArtDecoder.decodeStaticImageFromStream( at com.facebook.imagepipeline.platform.ArtDecoder.decodeFromEncodedImage( at com.facebook.imagepipeline.decoder.ImageDecoder.decodeStaticImage( at com.facebook.imagepipeline.decoder.ImageDecoder.decodeImage( at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode( at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200( at com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$ at com.facebook.imagepipeline.producers.JobScheduler.doJob( at com.facebook.imagepipeline.producers.JobScheduler.access$000( at com.facebook.imagepipeline.producers.JobScheduler$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at com.facebook.imagepipeline.core.PriorityThreadFactory$ at

    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 visitor
    Unknown visitorOnce,
    15 times, last one
    Ranjana DangolRanjana Dangol
    11 times, last one
    Agócs TamásAgócs Tamás
    28 times, last one
    67 more bugmates