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

    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

  2. ,

    The memory is leaking. Try to analyze the HEAP or use LeakCanacy (https://github.com/square/leakcanary) to figure out where is the exact problem.

Solutions on the web

via Stack Overflow by JayVDiyk
, 1 year ago
Failed to allocate a 26211852 byte allocation with 14018312 free bytes and 13MB until OOM
via GitHub by princejohn123
, 2 months ago
Failed to allocate a 2822700 byte allocation with 556160 free bytes and 543KB until OOM
via GitHub by IlanVokov
, 7 months ago
Failed to allocate a 14745612 byte allocation with 13108268 free bytes and 12MB until OOM
via GitHub by freiserg
, 7 months ago
Failed to allocate a 2430012 byte allocation with 1305354 free bytes and 1274KB until OOM
via GitHub by gastoncesarf
, 3 months ago
Failed to allocate a 1843212 byte allocation with 686904 free bytes and 670KB until OOM
via Stack Overflow by Jake Chasan
, 1 year ago
Failed to allocate a 2560012 byte allocation with 1053776 free bytes and 1029KB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 26211852 byte allocation with 14018312 free bytes and 13MB 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:843)	at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:719)	at id.testingapp.android.TestingApp.WelcomeActivity.prepareBackgroundAnimation(WelcomeActivity.java:140)	at id.TestingApp.android.TestingApp.WelcomeActivity.onCreate(WelcomeActivity.java:72)	at android.app.Activity.performCreate(Activity.java:6283)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)	at android.app.ActivityThread.access$900(ActivityThread.java:177)	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:145)	at android.app.ActivityThread.main(ActivityThread.java:5942)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)