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

  1. ,
    Expert tip

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

  2. ,
    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 Karry
, 1 year ago
Failed to allocate a 4631116 byte allocation with 4380676 free bytes and 4MB until OOM
via GitHub by jaredsburrows
, 2 years 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
, 2 years ago
Failed to allocate a 1960012 byte allocation with 196800 free bytes and 192KB until OOM
via Stack Overflow by ashish srivastava
, 1 year ago
Failed to allocate a 406992 byte allocation with 397304 free bytes and 387KB until OOM
via GitHub by gastoncesarf
, 4 months ago
Failed to allocate a 1843212 byte allocation with 686904 free bytes and 670KB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 4631116 byte allocation with 4380676 free bytes and 4MB until OOM 	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.Bitmap.nativeCreate(Native Method)	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.codename1.impl.android.AndroidNativeUtil.renderViewOnBitmap(AndroidNativeUtil.java:163)	at com.codename1.impl.android.f$b.m_(AndroidImplementation.java:2652)	at com.codename1.p.y.B(PeerComponent.java:64)	at com.codename1.p.y.a(PeerComponent.java:211)	at com.codename1.p.h.b(Component.java:1323)	at com.codename1.p.h.d(Component.java:1297)	at com.codename1.p.h.a(Component.java:1272)	at com.codename1.p.i.a(Container.java:1323)	at com.codename1.p.h.b(Component.java:1323)	at com.codename1.p.h.d(Component.java:1297)	at com.codename1.p.h.a(Component.java:1272)