java.lang.OutOfMemoryError

Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 54MB until OOM

Samebug tips4

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


rafaelrafael

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.


LartenLarten

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web639

Stack trace

  • 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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

filpgamefilpgame
12 times, last one
Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
7 times, last one
balajivaishnavbalajivaishnav
19 times, last one
Aria PahlavanAria Pahlavan
24 times, last one
pranavprakashpranavprakash
2 times, last one
65 more bugmates