java.lang.OutOfMemoryError: Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 54MB until OOM

GitHub | niksinfinite10 | 11 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    getting the error for the first time using camera from the release version of android app

    GitHub | 11 months ago | niksinfinite10
    java.lang.OutOfMemoryError: Failed to allocate a 63489036 byte allocation with 16777120 free bytes and 54MB until OOM
  2. 0
    samebug 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
    via GitHub by tiftof
  3. 0
    samebug 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
    via GitHub by tiftof
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug 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
    via GitHub by tiftof
  6. 0
    samebug 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
    via GitHub by tiftof
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

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

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    BitmapFactory.decodeByteArray
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
    3. android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:634)
    3 frames
  3. com.lwansbrough.RCTCamera
    RCTCameraModule$3.onPictureTaken
    1. com.lwansbrough.RCTCamera.RCTCameraModule$3.onPictureTaken(RCTCameraModule.java:228)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.hardware.Camera$EventHandler.handleMessage(Camera.java:1142)
    2. android.os.Handler.dispatchMessage(Handler.java:102)
    3. android.os.Looper.loop(Looper.java:145)
    4. android.app.ActivityThread.main(ActivityThread.java:5835)
    4 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
    2 frames