You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code works wine on Simulator and Nexus 4 with android 5.0.1 but does not work on next devices:
Samsung galaxy s2 / 4.1.2, Htc One X / 4.2.2, Samsung galaxy s3 mini i 8190 / 4.1.2
It show in logs just: "SkImageDecoder::Factory returned null"
Thanks for the report, I'm not sure we can do anything about this though.
That goo.gl link is pointing to an url which results in a webp file, if you remove the end (it's enough to remove the w), you will get a png file (if you remove =w300-r, the image will not be 300px wide).
The other pp.vk.me url is a jpg file clearly, so that's old and supported.
So your original image is transparent, just open it in Chrome, you'll see it has no background. If you check the Core Media Formats page, there you can see
which means that transparent webp support was added in 4.2.1, so it should work on One X, are you sure it happened on that phone too?
Even though it was added in 4.2.1, and should be supported, there may be problems pre-Lollipop, see #372.
The cache was empty, because the default is .diskCacheStrategy(RESULT) meaning that the transformed image (the one resized/cropped/etc for your ImageView) will be saved to cache, but there was no Bitmap to transform, because Android failed to load it.
Glide Version/Integration library (if any): 3.5.2
Device/Android Version: Samsung galaxy s2 / 4.1.2, htc one x / 4.2.2, samsung galaxy s3 mini i 8190 / 4.1.2
Issue details/Repro steps:
Image not appeares
Glide load line:
Stack trace:
I created the siple sample to test library - https://github.com/akadatsky/photoApp
I added to manifest:
I added the latest Glide library - 3.5.2, and the latest Support-v4 library.
I added ImageView like this:
And the simle button with click listener, with code from samle:
The code works wine on Simulator and Nexus 4 with android 5.0.1 but does not work on next devices:
Samsung galaxy s2 / 4.1.2, Htc One X / 4.2.2, Samsung galaxy s3 mini i 8190 / 4.1.2
It show in logs just: "SkImageDecoder::Factory returned null"
I have tried to add error handling in such way:
In this case onException() method is called and Exception e == null.
I have tested on different wifi and mobile network, and few different devices, but can't understand where is the problem.
How to fix this issue?
UPD. After some more test I noticed that do not loaded image from sampe "http://goo.gl/h8qOq7", but some other Images like "http://pp.vk.me/c618123/v618123715/17b15/LebZByMTBTA.jpg" work.
Also I noticed, that in case image "http://goo.gl/h8qOq7" directory /data/data/package_name/cache is empty.
UPD2. I noticed that url "http://goo.gl/h8qOq7" redirect to "https://lh6.ggpht.com/9SZhHdv4URtBzRmXpnWxZcYhkgTQurFuuQ8OR7WZ3R7fyTmha77dYkVvcuqMu3DLvMQ=w300-rw"
if I remove this "=w300-rw" in the end ot URL it becomes work.
So it works for url "https://lh6.ggpht.com/9SZhHdv4URtBzRmXpnWxZcYhkgTQurFuuQ8OR7WZ3R7fyTmha77dYkVvcuqMu3DLvMQ"
The text was updated successfully, but these errors were encountered: