I have just started moving from Universal Image Loader to Glide. However, when scrolling down and up again in recyclerview I get tons of warning messages.
W/Bitmap: Called reconfigure on a bitmap that is in use! This may cause graphical corruption!
If i swap out Glide for another image loading library, the warning goes away. Code in bindViewHolder related to images:
Glide.with(viewHolder.imageView.getContext())
.load(DisplayImageUtil.getImageUrl(item.getImageUrl(), 600))
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(viewHolder.imageView);
Tested on a Nexus 5.
I run to the same issue after first run of my app on Android M (Nexus 5x).
EDIT: after opening the issue on Glide Github - https://github.com/bumptech/glide/issues/743, I found that my orignal "solution" did not solve the problem, only hide the messages. The warning comes from Android Bitmap and it is because Glide reuses the Bitmap for better performance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With