Closed pishguy closed 6 years ago
I get the same issue java.lang.OutOfMemoryError: Failed to allocate a 456988 byte allocation with 198696 free bytes and 194KB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:947) at android.graphics.Bitmap.createBitmap(Bitmap.java:918) at android.graphics.Bitmap.createBitmap(Bitmap.java:838) at android.graphics.Bitmap.createBitmap(Bitmap.java:763) at CircularImageView.cropBitmap(CircularImageView.java:264) at
@tiger1990 I have to remove this library on my project
Same issue, any alternative libraries?
You could have a look here: https://github.com/TangoAgency/avatar-view Please let me know if this lib is really an alternative. Thanks.
Fix on https://github.com/lopspower/CircularImageView/commit/227d12eb399ab18a54b06fd63f94b68d6d0493eb
This memory leak comes from cropBitmap
method. I removed it and I changed the technique to auto center crop image in view.
i get this error