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 Pika3323
, 1 year ago
Failed to allocate a 37748748 byte allocation with 16777216 free bytes and 35MB until OOM
via GitHub by Pika3323
, 1 year ago
Failed to allocate a 37748748 byte allocation with 16777216 free bytes and 35MB until OOM
via Stack Overflow by Kajetan Schuler
, 1 year ago
Failed to allocate a 192000012 byte allocation with 16775360 free bytes and 69MB until OOM
via Stack Overflow by Itiel Maimon
, 1 year ago
Failed to allocate a 8876812 byte allocation with 7873968 free bytes and 7MB until OOM
via oneapm.com by Unknown author, 1 year ago
Failed to allocate a 4308492 byte allocation with 467872 free bytes and 456KB until OOM
via GitHub by mr-procrastinator
, 1 year ago
Failed to allocate a 1166412 byte allocation with 16777120 free bytes and 468MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 37748748 byte allocation with 16777216 free bytes and 35MB until OOM	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856)	at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675)	at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:2228)	at android.content.res.Resources.loadDrawableForCookie(Resources.java:4211)	at android.content.res.Resources.loadDrawable(Resources.java:4085)	at android.content.res.Resources.getDrawable(Resources.java:2005)	at android.content.res.Resources.getDrawable(Resources.java:1987)	at android.support.v7.widget.ResourcesWrapper.getDrawable(Unknown Source)	at android.content.Context.getDrawable(Context.java:464)	at android.support.v4.content.ContextCompatApi21.getDrawable(Unknown Source)	at android.support.v4.content.ContextCompat.getDrawable(Unknown Source)	at android.support.v7.widget.AppCompatDrawableManager.getDrawable(Unknown Source)	at android.support.v7.widget.AppCompatDrawableManager.getDrawable(Unknown Source)	at android.support.v7.widget.AppCompatImageHelper.setImageResource(Unknown Source)	at android.support.v7.widget.AppCompatImageView.setImageResource(Unknown Source)	at com.heinrichreimersoftware.materialintro.b.f.onCreateView(Unknown Source)	at android.support.v4.app.Fragment.performCreateView(Unknown Source)	at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)	at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source)	at android.support.v4.app.BackStackRecord.run(Unknown Source)	at android.support.v4.app.FragmentManagerImpl.execSingleAction(Unknown Source)	at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(Unknown Source)	at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(Unknown Source)	at com.heinrichreimersoftware.materialintro.view.e.finishUpdate(Unknown Source)	at android.support.v4.view.ViewPager.populate(Unknown Source)	at android.support.v4.view.ViewPager.populate(Unknown Source)	at android.support.v4.view.ViewPager$3.run(Unknown Source)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)	at android.view.Choreographer.doCallbacks(Choreographer.java:695)	at android.view.Choreographer.doFrame(Choreographer.java:628)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:158)	at android.app.ActivityThread.main(ActivityThread.java:7224)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)