java.lang.OutOfMemoryError: Failed to allocate a 1638412 byte allocation with 987764 free bytes and 964KB until OOM

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

,
Expert tip

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

Solutions on the web

via GitHub by Aloneter
, 1 year ago
Failed to allocate a 1638412 byte allocation with 987764 free bytes and 964KB until OOM
via GitHub by m-abboud
, 11 months ago
Failed to allocate a 10690572 byte allocation with 6103696 free bytes and 5MB until OOM
via GitHub by huhuanhuan
, 1 year ago
Failed to allocate a 3240012 byte allocation with 2370308 free bytes and 2MB until OOM
via GitHub by nubuntu
, 4 months ago
Failed to allocate a 262156 byte allocation with 16208 free bytes and 15KB until OOM
via GitHub by nitishhhh3
, 5 months ago
Failed to allocate a 4170132 byte allocation with 3545088 free bytes and 3MB until OOM --
via Stack Overflow by Jake Chasan
, 9 months ago
Failed to allocate a 2560012 byte allocation with 1053776 free bytes and 1029KB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 1638412 byte allocation with 987764 free bytes and 964KB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:842)
at android.graphics.Bitmap.createBitmap(Bitmap.java:812)
at com.facebook.imagepipeline.memory.d.kC(BitmapPool.java:55)
at com.facebook.imagepipeline.memory.d.ku(BitmapPool.java:30)
at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:259)
at com.facebook.imagepipeline.g.a.a(ArtDecoder.java:137)
at com.facebook.imagepipeline.g.a.a(ArtDecoder.java:81)
at com.facebook.imagepipeline.decoder.a.a(ImageDecoder.java:128)
at com.facebook.imagepipeline.decoder.a.a(ImageDecoder.java:94)
at com.facebook.imagepipeline.producers.o$c.c(DecodeProducer.java:194)
at com.facebook.imagepipeline.producers.o$c.a(DecodeProducer.java:97)
at com.facebook.imagepipeline.producers.p.d(DecodeProducer.java:129)
at com.facebook.imagepipeline.producers.JobScheduler.NF(JobScheduler.java:207)
at com.facebook.imagepipeline.producers.JobScheduler.a(JobScheduler.java:27)
at com.facebook.imagepipeline.producers.ae.run(JobScheduler.java:78)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at com.facebook.imagepipeline.c.t.run(PriorityThreadFactory.java:43)
at java.lang.Thread.run(Thread.java:831)

Users with the same issue

3 times, 3 months ago
8 times, 10 months ago
24 times, 1 year ago
2 times, 1 year ago
15 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.