java.lang.OutOfMemoryError

Exception #2583856

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


rafaelrafael

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 web461

Stack trace

  • java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:924) 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:470) 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

aakashaakash
Once,
Agócs TamásAgócs Tamás
3 times, last one
bayukresnobayukresno
7 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
11 more bugmates