-
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 trying to load from assets directory instead of internet #2894
Comments
turns out that the url has a trailing space. That said, perhaps Glide should handle this in a more robust manner. |
This is the error I get, with or without the trailing space:
|
Are you able to reproduce the issue if you add trailing space to url that works for you? |
I'm not able to reproduce the issue with the given url, even if I add a trailing space. I do see another network error though. |
@sjudd I'm not 100% sure but I got the same issue and I think I know how to reproduced it. I was today on the starbucks open wifi network and every 30 minutes I'll get the login screen for the wifi network. Since both this issue image url and mine was an http url seems like somehow glide cached the wifi sign in redirect response and treated it as an image? #2801 probably related Hope it helps! |
@nabrozidhs by the same issue do you mean you get the same error as originally posted here? It's definitely possible for Glide to end up downloading and trying to decode a web page, but, assuming you're using the default disk cache strategy, this is not the error I'd expect. |
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 am experiencing the exact issue that @weejim76 posted.
With a very similar stacktrace:
However, I am only experiencing this issue on kitkat devices. |
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'm having the same issue : Device: Genymotion Emulator Gradle: Adapter:
Logcat:
|
I got this problems as well. Has it been solved now? |
I don't see "No content provider:" in the stack trace for @fabio-filho, so that may be a different issue. |
Adapter code:
Error trace:
|
I got same issue with GlideApp.with(this.mContext)
.load("https://www.baidu.com/img/superlogo_c4d7df0a003d3db9b65e9ef0fe6da1ec.png")
.centerCrop()
.into(helper.getView(R.id.iv_film_img)) And it pop:
|
Is this reliably reproducible for anyone? Or do you just see this occasionally? |
@sjudd I try to use 2 real devices(OPPO R11s AndroidVersion 7.1.1 & XiaoMi 5s AndroidVersion 6.0.1) and one virtual device(GoogleNexus7 Android5.0.0) run my app, the two real devices were pop this trace always, and not show the image. And the virtual device work fine. And I try to use version |
I am also facing the same issue as well in |
Glide 4.7.1 - same issue
|
Same problem
|
I am able to reproduce this error message with Does anyone here have a url that works on a previous version of Glide or that they otherwise expect to be able to view successfully? Or is it just that this error message is confusing when you provide a non-image url? |
Let me know if you're able to reproduce this on 4.8.0 |
even on 4.8.0, showing same on Android 5.1.1. |
Can you provide the stack trace on 4.8.0? |
Hi @sjudd ,I can reproduce this with 4.8.0 on Android M and below devices. But can't reproduce it on N and heigher devices. I post the log below.
|
API - 23 and below I'm getting the same error for some Amazon aws files. Some files are loading properly but some aren't. I've tried trimming spaces but it still doesn't work. The images are downloading from the browser correctly. LOGS:
|
So these last two cases are where loading the image failed, not where Glide tried to load from the wrong data source. That makes sense given that the change in 4.8.0 merely changed Glide so that it didn't attempt a path that would never work if the internet load already failed. There's a huge variety of reasons why a load from the internet might fail. If you're able to reproduce this with a specific url or device, please consider attaching a sample app or a test case so we can look into the cases one by one. |
The url is in the first line of logs - I've checked in Emulator API 23 and above. Also, ASUS Zenfone 2 Laser API 23 |
@santrasanchita13 That's a corrupt partial image. BitmapFactory doesn't return partially decoded images, so neither does Glide (on most versions of Android). |
device API 28 I'm getting the same error for some Amazon aws files. . The images are downloading from the browser correctly. Is there a solution? Root cause (1 of 1) |
same problem here . so much for the glide. is it gonna be fixed sometime soon? |
same problem here |
Maybe I found "solution" (at least in my case). Try to check the link that you are passing into glide module in the browser. I found out that this error is produced when the link is corrupted and therefore image was not loaded because type of image is not recognized. |
Error with loading Google logo in sample SVG application : |
Facing this issue still now. If its fixed in beta could you provide that version? I can mostly reproduce on very slow internet |
+1,below version 21. |
This error message should no longer appear in Glide 4.9.0. I haven't seen anything here that makes me think these failures were due to anything other than transient network errors, which may continue to occur. If anyone can reproduce this error message on 4.9.0 or higher, please let me know. |
It would appear the issue is entirely related to okhttp3. Here's my story: I upgrade to using okhttp3 integration module yesterday. I was really impressed on API 28 so I kept it. Then I decided to rewrite my downloading code to use okhttp3. Wow, big improvement. Then I went to test on API 16. Everything failed. Glide and my independent downloading functions. After a while, I found another forum post on here detailing a fix: When I use that code, my downloaders work again. So to get this into Glide, I'll have to create a Glide module, which I wanted to avoid. Glide should update to add this okhttp patch when it creates its default integration. |
I found the error in version 4.9.0. W/Glide: Load failed for with size [237x237] |
check Settings>Apps>your app>Permission>STORAGE Permission>open |
please note that okhttp3 version 3.13.1 and above works only on Android 5
and above if you want to have support for Android version 4 you can use
okhttp3 3.12.1
…On Tue, Apr 16, 2019, 6:12 AM Shine ***@***.***> wrote:
check Settings>Apps>your app>Permission>STORAGE Permission>open
fix it!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2894 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlLmJtUlTeCBbxbtuKxg4jUrtFrt-Ir9ks5vhSqOgaJpZM4SBO0k>
.
|
I am using the same but facing same issue. |
4.9.0 the same error. |
I'm getting the same error in 4.9.0
|
It looks like "FileNotFoundException" is thrown whenever server responds with an error. At least I face it in v. 4.11.0 when my PHP server is rejecting requests because of an invalid authorization token. |
I'm getting this error on 4.11.0 also. Has it been solved? |
I have some problem, but i set diskCacheStrategy(DiskCacheStrategy.RESOURCE) and Glide load my image |
Integration libraries:
using Glide version: 4.6.1
using com.github.bumptech.glide:okhttp3-integration:4.6.1
Device/Android Version:
Samsung S6
Android version 24
Issue details / Repro steps / Use case background:
I am trying to load an image from Internet into ImageView but it seems like Glide is trying to load from assets directory instead of Internet.
Layout XML:
Stack trace / LogCat:
The text was updated successfully, but these errors were encountered: