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 Adnan Sheikh
, 1 year ago
Failed to allocate a 12695052 byte allocation with 7472568 free bytes and 7MB until OOM
via GitHub by hiteshsahu
, 1 year ago
Failed to allocate a 23040012 byte allocation with 16777120 free bytes and 16MB until OOM
via Stack Overflow by Akshay Cj
, 2 years ago
Failed to allocate a 426688012 byte allocation with 1036624 free bytes and 95MB until OOM
via Stack Overflow by GINCHER
, 2 years ago
Failed to allocate a 86252412 byte allocation with 1048576 free bytes and 63MB until OOM
via GitHub by monday8am
, 1 year ago
Failed to allocate a 12257292 byte allocation with 9485096 free bytes and 9MB until OOM
via GitHub by monday8am
, 2 years ago
Failed to allocate a 12257292 byte allocation with 11584768 free bytes and 11MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 12695052 byte allocation with 7472568 free bytes and 7MB 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:988)	at android.content.res.Resources.loadDrawableForCookie(Resources.java:2477)	at android.content.res.Resources.loadDrawable(Resources.java:2384)	at android.content.res.TypedArray.getDrawable(TypedArray.java:749)	at android.view.View.(View.java:3742)	at android.widget.ImageView.(ImageView.java:149)	at android.widget.ImageView.(ImageView.java:145)	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.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1013)	at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1072)	at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:725)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)	at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)	at android.view.LayoutInflater.inflate(LayoutInflater.java:504)	at android.view.LayoutInflater.inflate(LayoutInflater.java:414)	at com.example.sheikhspc.testapp.Question4.onCreateView(Question4.java:36)	at android.app.Fragment.performCreateView(Fragment.java:2053)	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)	at android.app.BackStackRecord.run(BackStackRecord.java:834)	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1454)	at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)	at android.os.Handler.handleCallback(Handler.java:746)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5356)	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:905)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)