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 Jublikon
, 1 year ago
Failed to allocate a 2007612 byte allocation with 1750816 free bytes and 1709KB until OOM
via GitHub by princejohn123
, 3 months ago
Failed to allocate a 2822700 byte allocation with 556160 free bytes and 543KB until OOM
via GitHub by mikemike396
, 3 months ago
Failed to allocate a 63701004 byte allocation with 16777216 free bytes and 44MB until OOM
via GitHub by EfiMIsh
, 2 years ago
Failed to allocate a 4994508 byte allocation with 1481188 free bytes and 1446KB 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 MahdiPishguy
, 1 year ago
Failed to allocate a 8271388 byte allocation with 6780384 free bytes and 6MB until OOM` FULL error stack ```
java.lang.OutOfMemoryError: Failed to allocate a 2007612 byte allocation with 1750816 free bytes and 1709KB 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:739)	at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:615)	at com.hanks.htextview.animatetext.AnvilText.animateStart(AnvilText.java:67)	at com.hanks.htextview.animatetext.HText.animateText(HText.java:74)	at com.hanks.htextview.HTextView.animateText(HTextView.java:97)	at com.ads.adstimer.fragment.Registration.Slides.FragmentScanCode.onCreateView(FragmentScanCode.java:37)	at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)	at android.support.v4.app.FragmentManagerImpl.attachFragment(FragmentManager.java:1426)	at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:728)	at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)	at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:570)	at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)	at android.support.v4.view.ViewPager.populate(ViewPager.java:1106)	at android.support.v4.view.ViewPager.populate(ViewPager.java:952)	at android.support.v4.view.ViewPager$3.run(ViewPager.java:251)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)	at android.view.Choreographer.doCallbacks(Choreographer.java:670)	at android.view.Choreographer.doFrame(Choreographer.java:603)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5417)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)