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

load picture sometime show black #599

Closed
ghost opened this issue Aug 27, 2015 · 5 comments
Closed

load picture sometime show black #599

ghost opened this issue Aug 27, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 27, 2015

I load picture with the code

Glide.with(mContext).load(caseDetail.getPicInfo().getImage()).crossFade(250).placeholder(R.color.pic_load).error(R.color.pic_load).into(holder.ivPic);

but it sometimes happe ton black block, some the like the picture , how can I fix the problem?

@TWiStErRob
Copy link
Collaborator

I guess black is drawable.pic_load, or the image there is wrong. First download the URL that's wrong on your computer and check it manually if it loads. Then check the debugging wiki, I suggest you attach a .listener() and log all arguments to see what's happening with which load.

What customisations do you use? cache, other globals settings. Glide version? Is the image View extend ImageView?

@ghost
Copy link
Author

ghost commented Aug 28, 2015

the drawable pic_load is not black, and the url is right, while the item return to visiable, it shows the right picture, but sometimes it will show the black block.

I use the version 3.6.1, and the globals setting is PREFER_ARGB_8888, the view is ImageView

@TWiStErRob
Copy link
Collaborator

I'm sorry, right now I don't have any more ideas, it's mostly the crossFade() or CircularImageViews (and other x extends ImageView classes) that can cause the problem.
Can you please add the listener() and try to reproduce it? Once reproduced you may be able to see something from the logs. Or if you can reproduce consistently, try to make a small sample app for us to try it with.

@sjudd
Copy link
Collaborator

sjudd commented Sep 14, 2015

If nothing else, it's possible this is a Bitmap re-use issue. But barring more code or a sample app we can't do much. Definitely feel free to re-open if you find a way to reproduce this.

@dgaurav-163
Copy link

I am still facing same issue. black area show when it could not be load success. Any solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants