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

CircleImageView OutOfMemoryError #429

Closed
billdizl opened this issue Apr 4, 2022 · 2 comments
Closed

CircleImageView OutOfMemoryError #429

billdizl opened this issue Apr 4, 2022 · 2 comments

Comments

@billdizl
Copy link

billdizl commented Apr 4, 2022

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)

@HarinG10
Copy link

HarinG10 commented Jun 6, 2022

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.

@hdodenhof
Copy link
Owner

@HarinG10|s answer is on point!

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