java.lang.OutOfMemoryError

This exception has no message.

Samebug tips2

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

This was issue #159 in Fresco, and was fixed recently, in v1.3.0.

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

Solutions on the web2171

  • via Coderanch by Jay Abrahm, 8 months ago
    This exception has no message.
  • via Coderanch by akshit indra, 1 week ago
    This exception has no message.
  • via Coderanch by tarun jajoo, 8 months ago
    This exception has no message.
  • Stack trace

    • java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:928) at android.graphics.Bitmap.createBitmap(Bitmap.java:901) at android.graphics.Bitmap.createBitmap(Bitmap.java:833) at com.commonsware.cwac.cam2.ImageContext.rotateViaMatrix(ImageContext.java:251) at com.commonsware.cwac.cam2.ImageContext.getJpeg(ImageContext.java:104) at com.commonsware.cwac.cam2.JPEGWriter.process(JPEGWriter.java:84) at com.commonsware.cwac.cam2.PictureTransaction.process(PictureTransaction.java:38) at com.commonsware.cwac.cam2.ClassicCameraEngine$TakePictureTransaction$1.run(ClassicCameraEngine.java:484) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)

    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

    Once, 11 months ago
    3 times, 1 year ago
    7 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    11 more bugmates