java.lang.OutOfMemoryError: Failed to allocate a 4194316 byte allocation with 3271760 free bytes and 3MB 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 Stack Overflow by Whiz
, 1 year ago
Failed to allocate a 4194316 byte allocation with 3271760 free bytes and 3MB until OOM
via GitHub by nitishhhh3
, 3 months ago
Failed to allocate a 4170132 byte allocation with 3545088 free bytes and 3MB until OOM --
via Stack Overflow by Jake Chasan
, 7 months ago
Failed to allocate a 2560012 byte allocation with 1053776 free bytes and 1029KB until OOM
via GitHub by jaredsburrows
, 1 year ago
Failed to allocate a 4842156 byte allocation with 2271684 free bytes and 2MB until OOM
via GitHub by Dokuzov
, 2 years ago
Failed to allocate a 4227276 byte allocation with 2371664 free bytes and 2MB until OOM
via GitHub by huangshengsen
, 1 year ago
Failed to allocate a 1960012 byte allocation with 196800 free bytes and 192KB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 4194316 byte allocation with 3271760 free bytes and 3MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
at android.graphics.Bitmap.nativeCreate(Bitmap.java)
at android.graphics.Bitmap.createBitmap(Bitmap.java:831)
at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
at maps.aa.g.a(Unknown Source)
at maps.aa.i.a(Unknown Source)
at maps.aa.i.a(Unknown Source)
at maps.aa.i.b(Unknown Source)
at maps.ac.o.a(Unknown Source)
at maps.ac.t.a(Unknown Source)
at maps.X.K.a(Unknown Source)
at maps.X.H.a(Unknown Source)
at maps.X.H.b(Unknown Source)
at maps.X.y$f.f(Unknown Source)
at maps.X.y$f.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 times, 1 year ago
17 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago

Write tip

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