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

  1. ,
    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

  2. ,
    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 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)