java.lang.OutOfMemoryError: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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

,
Expert tip

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

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 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)

Users with the same issue

Once, 1 year ago
3 times, 1 year ago
7 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.