Resizer icon indicating copy to clipboard operation
Resizer copied to clipboard

Most of the time we are facing OutOfMemory Exception! Any solutions?

Open asifjavaid opened this issue 7 years ago • 2 comments

java.lang.OutOfMemoryError: Failed to allocate a 63489036 byte allocation with 16776592 free bytes and 58MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:882) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:858) at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:478) at me.echodev.resizer.util.ImageUtils.getScaledBitmap(ImageUtils.java:34) at me.echodev.resizer.util.ImageUtils.getScaledImage(ImageUtils.java:25) at me.echodev.resizer.Resizer.getResizedFile(Resizer.java:149)

Please suggest!

asifjavaid avatar Apr 04 '18 14:04 asifjavaid

60 mb of file seems like a huge deal, does not it? Maybe for your case you need something more advanced and low-leveled

jifferon avatar Jan 31 '19 11:01 jifferon

All 2019+ samsung phones have photosize set to 64MP, it should work

Duna avatar Feb 10 '21 08:02 Duna