vinc3m1/RoundedImageView

Fatal Exception: java.lang.OutOfMemoryError

rezaiyan opened this issue · 2 comments

Failed to allocate a 16777228 byte allocation with 14638304 free bytes and 13MB until OOM
com.makeramen.roundedimageview.RoundedDrawable.drawableToBitmap

com.makeramen.roundedimageview.RoundedDrawable.drawableToBitmap (RoundedDrawable.java:134) com.makeramen.roundedimageview.RoundedDrawable.fromDrawable (RoundedDrawable.java:117) com.makeramen.roundedimageview.RoundedImageView.setImageDrawable (RoundedImageView.java:233)

you just need have a rule for your image >>> max image size (to NOT see fatal exception any more) : 660 * 700

You're not using a bitmapdrawable, as documented in the known issues other drawables result in creating large bitmaps and often have better ways to creating rounding than this library.