java.lang.OutOfMemoryError: Failed to allocate a 1382412 byte allocation with 298062 free bytes and 291KB until OOM

GitHub | giannisergente | 3 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

    GitHub comment 8#279139163

    GitHub | 3 months ago | giannisergente
    java.lang.OutOfMemoryError: Failed to allocate a 1382412 byte allocation with 298062 free bytes and 291KB 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 1382412 byte allocation with 298062 free bytes and 291KB until OOM

      at com.dji.videostreamdecodingsample.MainActivity.onYuvDataReceived()
    2. com.dji.videostreamdecodingsample
      DJIVideoStreamDecoder$3.run
      1. com.dji.videostreamdecodingsample.MainActivity.onYuvDataReceived(MainActivity.java:686)
      2. com.dji.videostreamdecodingsample.media.DJIVideoStreamDecoder$3.run(DJIVideoStreamDecoder.java:1305)
      2 frames
    3. Android Platform
      HandlerThread.run
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.os.HandlerThread.run(HandlerThread.java:61)
      4 frames