java.lang.OutOfMemoryError: Failed to allocate a 4147212 byte allocation with 2012184 free bytes and 1965KB until OOM

GitHub | jmheart | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.OutOfMemoryError: Failed to allocate a 4147212 byte allocation with 2012184 free bytes and 1965KB until OOM

    GitHub | 9 months ago | jmheart
    java.lang.OutOfMemoryError: Failed to allocate a 4147212 byte allocation with 2012184 free bytes and 1965KB until OOM
  2. 0

    java.lang.OutOfMemoryError: Failed to allocate a 4147212 byte allocation with 2012184 free bytes and 1965KB until OOM

    GitHub | 9 months ago | jmheart
    java.lang.OutOfMemoryError: Failed to allocate a 4147212 byte allocation with 2012184 free bytes and 1965KB until OOM
  3. 0

    OOMs on Lollipop when using ViewPager for large images

    GitHub | 2 years ago | ixiaoluo
    java.lang.OutOfMemoryError: Failed to allocate a 2560012 byte allocation with 392548 free bytes and 383KB until OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OOM Exception Why this occur

    GitHub | 1 year ago | karun2189
    java.lang.OutOfMemoryError: Failed to allocate a 7990284 byte allocation with 1407372 free bytes and 1374KB until OOM
  6. 0

    GitHub comment 750#155716337

    GitHub | 1 year ago | tianlang
    java.lang.OutOfMemoryError: Failed to allocate a 1638412 byte allocation with 436016 free bytes and 425KB until OOM
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Failed to allocate a 4147212 byte allocation with 2012184 free bytes and 1965KB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    Bitmap.createBitmap
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.Bitmap.nativeCreate(Native Method)
    3. android.graphics.Bitmap.createBitmap(Bitmap.java:847)
    4. android.graphics.Bitmap.createBitmap(Bitmap.java:817)
    5. android.graphics.Bitmap.createBitmap(Bitmap.java:784)
    5 frames
  3. com.facebook.imagepipeline
    JobScheduler$1.run
    1. com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:55)
    2. com.facebook.imagepipeline.memory.BitmapPool.alloc(BitmapPool.java:30)
    3. com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:259)
    4. com.facebook.imagepipeline.platform.ArtDecoder.decodeStaticImageFromStream(ArtDecoder.java:137)
    5. com.facebook.imagepipeline.platform.ArtDecoder.decodeFromEncodedImage(ArtDecoder.java:81)
    6. com.facebook.imagepipeline.decoder.ImageDecoder.decodeStaticImage(ImageDecoder.java:128)
    7. com.facebook.imagepipeline.decoder.ImageDecoder.decodeImage(ImageDecoder.java:94)
    8. com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode(DecodeProducer.java:189)
    9. com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.access$200(DecodeProducer.java:97)
    10. com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run(DecodeProducer.java:129)
    11. com.facebook.imagepipeline.producers.JobScheduler.doJob(JobScheduler.java:207)
    12. com.facebook.imagepipeline.producers.JobScheduler.access$000(JobScheduler.java:27)
    13. com.facebook.imagepipeline.producers.JobScheduler$1.run(JobScheduler.java:78)
    13 frames
  4. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    2 frames
  5. com.facebook.imagepipeline
    PriorityThreadFactory$1.run
    1. com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:43)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:831)
    1 frame