java.lang.OutOfMemoryError

GitHub | op-and | 7 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

    Out of memory issues when taking picture

    GitHub | 11 months ago | danielgindi
    java.lang.OutOfMemoryError: Failed to allocate a 63489036 byte allocation with 16777216 free bytes and 46MB until OOM
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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

  1. Ajeet 15 times, last 8 months ago
  2. aakash 1 times, last 9 months ago
  3. Agócs Tamás 28 times, last 10 months ago
  4. Ranjana Dangol 7 times, last 10 months ago
  5. bayukresno 7 times, last 11 months ago
1 more registered users
9 unregistered visitors
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

    No message provided

    at android.graphics.Bitmap.nativeCreate()
  2. Android Platform
    Bitmap.createBitmap
    1. android.graphics.Bitmap.nativeCreate(Native Method)
    2. android.graphics.Bitmap.createBitmap(Bitmap.java:924)
    3. android.graphics.Bitmap.createBitmap(Bitmap.java:901)
    4. android.graphics.Bitmap.createBitmap(Bitmap.java:833)
    4 frames
  3. com.commonsware.cwac
    ClassicCameraEngine$TakePictureTransaction$1.run
    1. com.commonsware.cwac.cam2.ImageContext.rotateViaMatrix(ImageContext.java:251)
    2. com.commonsware.cwac.cam2.ImageContext.getJpeg(ImageContext.java:104)
    3. com.commonsware.cwac.cam2.JPEGWriter.process(JPEGWriter.java:84)
    4. com.commonsware.cwac.cam2.PictureTransaction.process(PictureTransaction.java:38)
    5. com.commonsware.cwac.cam2.ClassicCameraEngine$TakePictureTransaction$1.run(ClassicCameraEngine.java:470)
    5 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:841)
    3 frames