-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
You cannot start a load for a destroyed activity: on clear #2690
Comments
Not much has changed here, it looks like onViewRecycled is just being called after onDestroy. You can try memoizing the RequestManager: RequestManager requestManager = Glide.with(fragment);
requestManager.load(... If this is reproducible in a sample app I'd be happy to take a look. Although we can't easily start new loads from destroyed activities, in some circumstances it's plausible we could clear the Targets. |
Thanks for the feedback @sjudd. If I keep a reference to my |
Keep a reference to the Then just |
This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions. |
i have same issues with this, and i have been solved Glide.with(holder.itemView.getContext()) thanks you |
Glide Version: 4.3.1
Device/Android Version: S8, S7, Pixel
Issue details / Repro steps / Use case background:
Similar to #138 and #803
I've never gotten this error until I updated to v4 and started using the generated api. The only code that got changed was specific to the refactor required for the library update. The odd thing is that the crash appears to be happening on the
clear
method and not the actualload
. I'm only seeing the crash as it pertains to usage in a RecyclerView.I'm using the FastAdapter library for my recyclerviews.
Glide load line /
GlideModule
(if any) / list Adapter code (if any):Stack trace / LogCat:
The text was updated successfully, but these errors were encountered: