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 GitHub by firetrap
, 1 year ago
Failed to allocate a 2555148 byte allocation with 2261680 free bytes and 2MB until OOM
via Stack Overflow by Maven
, 2 years ago
Failed to allocate a 108000012 byte allocation with 9062596 free bytes and 8MB until OOM
via Stack Overflow by Tony
, 1 year ago
Failed to allocate a 6998412 byte allocation with 1943840 free bytes and 1898KB until OOM
via Stack Overflow by Maven
, 2 years ago
Failed to allocate a 108000012 byte allocation with 10607192 free bytes and 10MB until OOM
via GitHub by liangxianshen
, 2 years ago
Failed to allocate a 31961100 byte allocation with 1855268 free bytes and 1811KB until OOM
via GitHub by blFeedbackBot
, 1 year ago
Failed to allocate a 4018188 byte allocation with 3014958 free bytes and 2MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 2555148 byte allocation with 2261680 free bytes and 2MB until OOM	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.Bitmap.nativeCreate(Native Method)	at android.graphics.Bitmap.createBitmap(Bitmap.java:831)	at android.graphics.Bitmap.createBitmap(Bitmap.java:808)	at android.graphics.Bitmap.createBitmap(Bitmap.java:775)	at android.graphics.drawable.VectorDrawable$VectorDrawableState.createCachedBitmapIfNeeded(VectorDrawable.java:834)	at android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:318)	at android.widget.ImageView.onDraw(ImageView.java:1244)	at android.view.View.draw(View.java:16178)	at android.view.View.updateDisplayListIfDirty(View.java:15174)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.support.design.widget.CollapsingToolbarLayout.drawChild(CollapsingToolbarLayout.java:302)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.draw(View.java:16181)	at android.support.design.widget.CollapsingToolbarLayout.draw(CollapsingToolbarLayout.java:263)	at android.view.View.updateDisplayListIfDirty(View.java:15174)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.draw(View.java:16181)	at android.view.View.updateDisplayListIfDirty(View.java:15174)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1140)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.draw(View.java:16181)	at android.view.View.updateDisplayListIfDirty(View.java:15174)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1140)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.updateDisplayListIfDirty(View.java:15169)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.draw(View.java:16181)	at android.view.View.updateDisplayListIfDirty(View.java:15174)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.updateDisplayListIfDirty(View.java:15169)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.updateDisplayListIfDirty(View.java:15169)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.updateDisplayListIfDirty(View.java:15169)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.updateDisplayListIfDirty(View.java:15169)	at android.view.View.draw(View.java:15948)	at android.view.ViewGroup.drawChild(ViewGroup.java:3609)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)	at android.view.View.draw(View.java:16181)	at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)	at android.view.View.updateDisplayListIfDirty(View.java:15174)	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281)	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287)	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322)