-
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
Glide 4.0.0-RC0: Images are not loaded when fast scrolling through RecyclerView (worked on 3.7) #1981
Comments
I had the same issue when I upgraded. Check logcat, there's probably errors. I had to change the way things were configured to get it to work. |
@christopherperry can you be more specific, there shouldn't be a difference except the default pixel format being changed as far as I know. |
@TWiStErRob For sure. I had to comment out this bit of code in our AppGlideModule, which worked for the previous version. @Override
public void applyOptions(Context context, GlideBuilder builder) {
// disabling Glide internal cache since we'll be using OkHttp's cache
// TODO: If you uncomment this images no longer load, are we sure we really want to do this anyways?
// builder.setDiskCache(new DiskCache.Factory() {
// @Override
// public DiskCache build() {
// // this is a no-op cache: https://github.com/bumptech/glide/wiki/Configuration#disk-cache
// return new DiskCacheAdapter();
// }
// });
} |
I'm facing the same issue, log is not reporting any errors. |
+1 |
@DummyCo @AlexTip please share Glide load lines and GlideModule configurations. |
+1
|
+1 |
@TWiStErRob can you please investigate that? Should we create a sample? |
That would probably help... it seems to affect a lot of people. Maybe something is clogging up the threads. |
Same issue. Seeing it on
@TWiStErRob looks like this has been an issue for over a month. I really like the other improvements with 4.0 but I can't ship with this bug :( |
+1 |
Issue is happening because glide is unable to calculate height and width of
view.if you pass height and width then issue doesn't happen
…On Fri, Jul 21, 2017 at 1:37 PM, Vladislav Nikolaev < ***@***.***> wrote:
+1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1981 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APPrbJot3CPYB1pKUiixisl_IRvWALKeks5sQFwkgaJpZM4NrZHq>
.
|
If someone who can reproduce this can attach a sample app the issue is probably fixable. Unfortunately +1s and load lines aren't especially helpful at this point. |
@sjudd Here's the example project. Please don't judge me for the images links, I haven't found any open API which offers high res pictures ;) https://github.com/rafakob/GlideRecyclerSample |
Thanks for the sample project! I was able to reproduce and I think my change will fix the issue, or at least the one demonstrated in the sample app. |
Glide Version:
Glide 4.0.0-RC0
Integration libraries:
tested with okhttp3-integration:4.0.0-RC0 and without it - same behavior
Issue details:
When fast scrolling through a RecyclerView, images are not loaded. Take a look at this short video. The same list works without any issues on Glide 3.7. How to fix this?
I've attached listener - no errors returned.
https://www.dropbox.com/s/rpfpltgyi32ntmr/2017_05_31_11_28_30.mp4?dl=0
Usage in onBindViewHolder:
The text was updated successfully, but these errors were encountered: