CircleImageView icon indicating copy to clipboard operation
CircleImageView copied to clipboard

CircleImageView OutOfMemoryError

Open billdizl opened this issue 2 years ago • 1 comments

Caused by java.lang.OutOfMemoryError Failed to allocate a 252016 byte allocation with 137008 free bytes and 133KB until OOM dalvik.system.VMRuntime.newNonMovableArray (VMRuntime.java)

android.widget.ImageView. (ImageView.java:145) de.hdodenhof.circleimageview.CircleImageView. (CircleImageView.java:89) de.hdodenhof.circleimageview.CircleImageView. (CircleImageView.java:85)

billdizl avatar Apr 04 '22 10:04 billdizl

use android:hardwareAccelerated="false" , android:largeHeap="true" in your android manifest file.

This is image shape library not image loading so you should use this library with any image loader library like glide, picasso, coil, universal image loader etc.. to load big images.

HarinG10 avatar Jun 06 '22 08:06 HarinG10

@HarinG10|s answer is on point!

hdodenhof avatar Jan 10 '23 19:01 hdodenhof