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. ,
    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 McLemore
, 1 year ago
Failed to allocate a 579537516 byte allocation with 1048576 free bytes and 382MB until OOM
via Stack Overflow by James sukumar
, 1 year ago
Failed to allocate a 100436832 byte allocation with 4194304 free bytes and 42MB until OOM
via Stack Overflow by Nicky Apriliani
, 1 year ago
Failed to allocate a 54000012 byte allocation with 4194304 free bytes and 11MB until OOM
via GitHub by 89Jockin
, 1 year ago
Failed to allocate a 104325132 byte allocation with 1048576 free bytes and 95MB until OOM
via Stack Overflow by mur7ay
, 2 years ago
Failed to allocate a 499046412 byte allocation with 1060954 free bytes and 62MB until OOM
via Stack Overflow by American Raisin
, 1 year ago
Failed to allocate a 61054012 byte allocation with 16777216 free bytes and 26MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 579537516 byte allocation with 1048576 free bytes and 382MB until OOM	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)	at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)	at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)	at android.content.res.Resources.loadDrawableForCookie(Resources.java:2635)	at android.content.res.Resources.loadDrawable(Resources.java:2540)	at android.content.res.TypedArray.getDrawable(TypedArray.java:870)	at android.widget.ImageView.(ImageView.java:152)	at android.widget.ImageView.(ImageView.java:140)	at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:57)	at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:53)	at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)	at android.support.v7.app.AppCompatDelegateImplV7.createView(AppCompatDelegateImplV7.java:980)	at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:1039)	at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:746)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)	at android.view.LayoutInflater.inflate(LayoutInflater.java:515)	at android.view.LayoutInflater.inflate(LayoutInflater.java:423)	at android.view.LayoutInflater.inflate(LayoutInflater.java:374)	at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)	at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)	at com.example.jacob.wutk.radio.onCreate(radio.java:30)	at android.app.Activity.performCreate(Activity.java:6237)	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)