bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.61k stars 6.12k forks source link

Fatal Exception: java.lang.IllegalStateException Cannot recycle a resource while it is still acquired #5436

Open Hyyzt opened 1 month ago

Hyyzt commented 1 month ago

Version:4.16.0 Device: Samsung,Xiaomi,Oppo,vivo ,etc The issuse found on the firebase for long time, today i try to reslove it. I had some new potins about it. The issuse was only uploaded when the app screen is in the background . so i check it when it was in background ,i preload some resource in some times,but it was not cleared all request when the app is in background, i used the preload method and application scope, it will get the issuse when the app was from background to front, Is it possible? If it is possible , stop all request when it was in background, resume all request when it was in front, is it resloved?