Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asifjavaid opened this issue Apr 4, 2018 · 2 comments

Comments

@asifjavaid
Copy link

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!

@jifferon
Copy link

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

@Duna
Copy link

Duna commented Feb 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants