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

    This was issue #159 in Fresco, and was fixed recently, in v1.3.0.

  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 bluemunch
, 1 year ago
Failed to allocate a 52641804 byte allocation with 16777216 free bytes and 44MB until OOM
via Stack Overflow by René Boschma
, 2 years ago
Failed to allocate a 147456012 byte allocation with 16777120 free bytes and 90MB until OOM
via GitHub by MummyDing
, 2 years ago
Failed to allocate a 3032652 byte allocation with 2718848 free bytes and 2MB until OOM
via Stack Overflow by Fahime Ghasemi
, 2 days ago
Failed to allocate a 51121164 byte allocation with 16701336 free bytes and 15MB until OOM
via google.com by Unknown author, 1 year ago
Failed to allocate a 4194316 byte allocation with 2983094 free bytes and 2MB until OOM
via Stack Overflow by androidTag
, 1 year ago
Failed to allocate a 23970828 byte allocation with 2097152 free bytes and 2MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 52641804 byte allocation with 16777216 free bytes and 44MB 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 com.elgami.customizer.MainActivity.SetupTemplate(MainActivity.java:451)	at com.elgami.customizer.MainActivity.SetupTemplate(MainActivity.java:434)	at com.elgami.customizer.MainActivity$1.onPageScrollStateChanged(MainActivity.java:289)	at android.support.v4.view.ViewPager.dispatchOnScrollStateChanged(ViewPager.java:1944)	at android.support.v4.view.ViewPager.setScrollState(ViewPager.java:497)	at android.support.v4.view.ViewPager.onInterceptTouchEvent(ViewPager.java:2119)	at com.elgami.views.ExtendedViewPager.onInterceptTouchEvent(ExtendedViewPager.java:44)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2108)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2197)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2197)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2197)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2197)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2197)	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2553)	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2197)	at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2403)	at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1737)	at android.app.Activity.dispatchTouchEvent(Activity.java:2771)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:63)	at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2364)	at android.view.View.dispatchPointerEvent(View.java:9520)	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4230)	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4096)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3787)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3669)	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3844)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3669)	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5922)	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5896)	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5857)	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6025)	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)	at android.os.MessageQueue.nativePollOnce(Native Method)