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 niksinfinite10
, 1 year ago
Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 54MB until OOM
via Stack Overflow by miroslav
, 2 years ago
Failed to allocate a 1638412 byte allocation with 326188 free bytes and 318KB until OOM
via GitHub by tiftof
, 2 years ago
Failed to allocate a 1920012 byte allocation with 72503 free bytes and 70KB until OOM
via GitHub by liutingdu
, 1 year ago
Failed to allocate a 8294412 byte allocation with 6278264 free bytes and 5MB until OOM
via Stack Overflow by Avril Lavigne
, 10 months ago
Failed to allocate a 493102860 byte allocation with 4194208 free bytes and 187MB until OOM
via Stack Overflow by Mete Alanlı
, 1 year ago
Failed to allocate a 14745612 byte allocation with 12939040 free bytes and 12MB until OOM
java.lang.OutOfMemoryError: Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 54MB until OOM	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)	at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)	at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:634)	at com.lwansbrough.RCTCamera.RCTCameraModule$3.onPictureTaken(RCTCameraModule.java:228)	at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1142)	at android.os.Handler.dispatchMessage(Handler.java:102)	at android.os.Looper.loop(Looper.java:145)	at android.app.ActivityThread.main(ActivityThread.java:5835)	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:1399)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)