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

Glide trying to load from assets directory instead of internet #2894

Closed
weejim76 opened this issue Feb 11, 2018 · 72 comments
Closed

Glide trying to load from assets directory instead of internet #2894

weejim76 opened this issue Feb 11, 2018 · 72 comments

Comments

@weejim76
Copy link

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.

  //this is the ApplicationContext
  RequestManager requestManager = Glide.with(this)
                .applyDefaultRequestOptions(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.NONE))
                .applyDefaultRequestOptions(RequestOptions.placeholderOf(R.drawable.placeholder));
            requestManager
                    .applyDefaultRequestOptions(RequestOptions.skipMemoryCacheOf(true));
        }
        requestManager.load("http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg")
                .into(image);

Layout XML:

<ImageView
            android:id="@+id/cam_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true"
            android:layout_gravity="center"
            android:gravity="center"
            android:scaleType="fitCenter"
            />

Stack trace / LogCat:

Root cause (1 of 1)
  java.io.FileNotFoundException: No content provider:  http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg 
      at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1049)
      at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:904)
      at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:831)
      at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
      at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
      at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
      at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
      at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
      at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:266)
      at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      at java.lang.Thread.run(Thread.java:841)
      at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
@weejim76
Copy link
Author

turns out that the url has a trailing space.
I am able to workaround the issue by trimming the space in the url before passing it into .load(String)

That said, perhaps Glide should handle this in a more robust manner.

@sjudd
Copy link
Collaborator

sjudd commented Feb 12, 2018

This is the error I get, with or without the trailing space:

java.lang.RuntimeException: com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 2 causes:
java.net.UnknownHostException(Unable to resolve host "opendata.toronto.ca": No address associated with hostname)
java.io.FileNotFoundException(No content provider: http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg)
call GlideException#logRootCauses(String) for more detail
at com.bumptech.glide.test.ConcurrencyHelper$1.await(ConcurrencyHelper.java:46)
at com.bumptech.glide.test.ConcurrencyHelper.wait(ConcurrencyHelper.java:300)
at com.bumptech.glide.test.ConcurrencyHelper.get(ConcurrencyHelper.java:39)
at com.bumptech.glide.LoadUrlTest.loadsUrlWithAppendedString(LoadUrlTest.java:24)
at java.lang.reflect.Method.invoke(Native Method)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at com.bumptech.glide.test.TearDownGlide$1.evaluate(TearDownGlide.java:21)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:346)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:311)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:76)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:309)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:63)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:289)
at org.junit.runners.ParentRunner.run(ParentRunner.java:393)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:311)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:76)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:309)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:63)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:289)
at org.junit.runners.ParentRunner.run(ParentRunner.java:393)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:58)
at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:375)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2074)
Caused by: com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 2 causes:
java.net.UnknownHostException(Unable to resolve host "opendata.toronto.ca": No address associated with hostname)
java.io.FileNotFoundException(No content provider: http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg)
call GlideException#logRootCauses(String) for more detail

@weejim
Copy link

weejim commented Feb 13, 2018

Are you able to reproduce the issue if you add trailing space to url that works for you?

@sjudd
Copy link
Collaborator

sjudd commented Feb 13, 2018

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.

@nabrozidhs
Copy link

@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!

@sjudd
Copy link
Collaborator

sjudd commented Feb 14, 2018

@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.

@stale
Copy link

stale bot commented Feb 21, 2018

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.

@stale stale bot added stale and removed stale labels Feb 21, 2018
@reid112
Copy link

reid112 commented Feb 28, 2018

I am experiencing the exact issue that @weejim76 posted.

GlideApp.with(applicationContext) .load("http://vehicleimg.gasbuddy.io/photos/vehicles/ad84d02d-058e-4864-94fe-a84379f4e8c2.jpg") .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.NONE) .into(vehiclePhoto)

With a very similar stacktrace:

java.io.FileNotFoundException: No content provider: http://vehicleimg.gasbuddy.io/photos/vehicles/ad84d02d-058e-4864-94fe-a84379f4e8c2.jpg at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1049) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:904) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:831) at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22) at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13) at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44) at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62) at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299) at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269) at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

However, I am only experiencing this issue on kitkat devices.

@stale
Copy link

stale bot commented Mar 7, 2018

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.

@stale stale bot added the stale label Mar 7, 2018
@fabio-filho
Copy link

fabio-filho commented Mar 9, 2018

I'm having the same issue :

Device: Genymotion Emulator
Failing on Android API: 25
Tested and working on Android APIs: 21, 22, 23, 24, 26

Gradle:
/* Glide */ implementation ("com.github.bumptech.glide:glide:4.6.1") { exclude group: "com.android.support" } implementation "com.android.support:support-fragment:27.1.0" kapt 'com.github.bumptech.glide:compiler:4.6.1'

Adapter:

Glide.with(context)
                .load("http://192.168.0.156:56321/api/values")
                .into(holder.imgProfile)

Logcat:

/Glide: Load failed for http://192.168.0.156:56321/api/values with size [150x180]
                                                            class com.bumptech.glide.load.engine.GlideException: Failed to load resource
                                                            There were 4 causes:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                              Cause (1 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, DATA_DISK_CACHE, http://192.168.0.156:56321/api/values
                                                                Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable}
                                                                Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Drawable}
                                                                Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->BitmapDrawable->Drawable}
                                                              Cause (2 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->Drawable}, DATA_DISK_CACHE, http://192.168.0.156:56321/api/values
                                                                Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->GifDrawable->Drawable}
                                                                Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->Bitmap->Drawable}
                                                                Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->BitmapDrawable->Drawable}
                                                              Cause (3 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{ParcelFileDescriptor->Object->Drawable}, DATA_DISK_CACHE, http://192.168.0.156:56321/api/values
                                                            There were 2 causes:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                                Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->Bitmap->Drawable}
                                                            There was 1 cause:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                                  Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
                                                                Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->BitmapDrawable->Drawable}
                                                            There was 1 cause:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                                  Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
                                                              Cause (4 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, REMOTE, http://192.168.0.156:56321/api/values
                                                                Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable}
                                                                Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Drawable}
                                                                Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->BitmapDrawable->Drawable}
                                                              Cause (5 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->Drawable}, REMOTE, http://192.168.0.156:56321/api/values
                                                                Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->GifDrawable->Drawable}
                                                                Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->Bitmap->Drawable}
03-09 14:02:23.477 2007-2007/br.com.sofis.hemoteid W/Glide:    Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->BitmapDrawable->Drawable}
                                                              Cause (6 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{ParcelFileDescriptor->Object->Drawable}, REMOTE, http://192.168.0.156:56321/api/values
                                                            There were 2 causes:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                                Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->Bitmap->Drawable}
                                                            There was 1 cause:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                                  Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
                                                                Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->BitmapDrawable->Drawable}
                                                            There was 1 cause:
                                                            java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
                                                             call GlideException#logRootCauses(String) for more detail
                                                                  Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
03-09 14:02:23.478 2007-2007/br.com.sofis.hemoteid I/Glide: Root cause (1 of 4)
                                                            java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
                                                                at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:160)
                                                                at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
                                                                at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
                                                                at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
                                                                at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
                                                                at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
                                                                at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:498)
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:469)
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:455)
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:407)
                                                                at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:376)
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
                                                                at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
                                                                at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:415)
                                                                at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:376)
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
                                                                at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
                                                                at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:415)
                                                                at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:376)
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
                                                                at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
                                                                at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
                                                                at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:266)
                                                                at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230)
                                                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                                at java.lang.Thread.run(Thread.java:761)
                                                                at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
                                                             Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
                                                                at android.media.MediaMetadataRetriever.setDataSource(Native Method)
                                                                at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:136)
                                                                at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:219)
                                                                at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:214)
                                                                at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:155)
                                                                at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
                                                                at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
                                                                at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
                                                                at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
                                                                at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:498) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:469) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:455) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:407) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:376) 
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
                                                                at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:415) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:376) 
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
                                                                at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:415) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:376) 
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
                                                                at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74) 
                                                                at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:266) 
                                                                at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230) 
                                                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
                                                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
                                                                at java.lang.Thread.run(Thread.java:761) 
                                                                at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 

@miguoer
Copy link

miguoer commented Mar 28, 2018

I got this problems as well. Has it been solved now?

@sjudd
Copy link
Collaborator

sjudd commented Mar 29, 2018

I don't see "No content provider:" in the stack trace for @fabio-filho, so that may be a different issue.
@miguoer can you attach a stack trace if you're able to reproduce?

@urgentx
Copy link

urgentx commented Apr 2, 2018

Adapter code:

Glide.with(getActivity()).load("https://cdn.hookupdating.mobi/PHEQ5FL0MAFQWR5RT1THEFXHWZY4UXHM.jpg")
                .apply(requestOptions.placeholder(R.drawable.placeholder_f))
                .into(portrait);

Error trace:

04-03 11:45:04.348 12501-12501/com.hookupdating W/Glide: Load failed for "https://cdn.hookupdating.mobi/PHEQ5FL0MAFQWR5RT1THEFXHWZY4UXHM.jpg" with size [1080x1050]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There was 1 cause:
    java.io.FileNotFoundException(No content provider: "https://cdn.hookupdating.mobi/PHEQ5FL0MAFQWR5RT1THEFXHWZY4UXHM.jpg")
     call GlideException#logRootCauses(String) for more detail
      Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL
    There was 1 cause:
    java.io.FileNotFoundException(No content provider: "https://cdn.hookupdating.mobi/PHEQ5FL0MAFQWR5RT1THEFXHWZY4UXHM.jpg")
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 1): class java.io.FileNotFoundException: No content provider: "https://cdn.hookupdating.mobi/PHEQ5FL0MAFQWR5RT1THEFXHWZY4UXHM.jpg"
04-03 11:45:04.349 12501-12501/com.hookupdating I/Glide: Root cause (1 of 1)
    java.io.FileNotFoundException: No content provider: "https://cdn.hookupdating.mobi/PHEQ5FL0MAFQWR5RT1THEFXHWZY4UXHM.jpg"
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1435)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1286)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1209)
        at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
        at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
        at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

@iBotasky
Copy link

I got same issue with 4.6.1:

 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:

2018-04-10 17:09:14.010 8403-8403/com.sirius.cybird I/Glide: Root cause (1 of 1)
    java.io.FileNotFoundException: No content provider: https://www.baidu.com/img/superlogo_c4d7df0a003d3db9b65e9ef0fe6da1ec.png
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1163)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1014)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:937)
        at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
        at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
        at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:761)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

@sjudd
Copy link
Collaborator

sjudd commented Apr 10, 2018

Is this reliably reproducible for anyone? Or do you just see this occasionally?

@iBotasky
Copy link

iBotasky commented Apr 11, 2018

@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 3.7.0, it works fine in any devices.

@ghost ghost mentioned this issue Apr 11, 2018
@hussainahmad
Copy link

I am also facing the same issue as well in 4.6.1, Is this resolved ?

@cutzmf
Copy link

cutzmf commented Apr 18, 2018

Glide 4.7.1 - same issue


 Root cause (3 of 3)
                                                             java.io.FileNotFoundException: No content provider: https://flickr.com/photos/122091795@N06/26676774137
                                                                 at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1146)
                                                                 at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:997)
                                                                 at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:920)
                                                                 at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
                                                            at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)```

@skyscrapy
Copy link

skyscrapy commented Apr 23, 2018

Same problem

Load failed for https://78.media.tumblr.com/c7a862f10e42e8a7fa3439cf793283f8/tumblr_p2x7exUGsO1rvoqjeo1_1280.png with size [720x893]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There was 1 cause:
    java.io.FileNotFoundException(No content provider: https://78.media.tumblr.com/c7a862f10e42e8a7fa3439cf793283f8/tumblr_p2x7exUGsO1rvoqjeo1_1280.png)
     call GlideException#logRootCauses(String) for more detail
      Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL, DataCacheKey{sourceKey=https://78.media.tumblr.com/c7a862f10e42e8a7fa3439cf793283f8/tumblr_p2x7exUGsO1rvoqjeo1_1280.png, signature=EmptySignature}
    There was 1 cause:
    java.io.FileNotFoundException(No content provider: https://78.media.tumblr.com/c7a862f10e42e8a7fa3439cf793283f8/tumblr_p2x7exUGsO1rvoqjeo1_1280.png)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 1): class java.io.FileNotFoundException: No content provider: https://78.media.tumblr.com/c7a862f10e42e8a7fa3439cf793283f8/tumblr_p2x7exUGsO1rvoqjeo1_1280.png
04-23 13:31:28.056 12754-12754/? I/Glide: Root cause (1 of 1)
    java.io.FileNotFoundException: No content provider: https://78.media.tumblr.com/c7a862f10e42e8a7fa3439cf793283f8/tumblr_p2x7exUGsO1rvoqjeo1_1280.png
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1167)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1000)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:923)
        at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
        at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
        at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:761)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

@sjudd
Copy link
Collaborator

sjudd commented Apr 25, 2018

I am able to reproduce this error message with https://flickr.com/photos/122091795@N06/26676774137. However that's because it's an HTML page, not an image url. Glide won't be able to successfully load HTML pages, so the best we'd do there is change the error message.

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?

@sjudd
Copy link
Collaborator

sjudd commented Aug 28, 2018

Let me know if you're able to reproduce this on 4.8.0

@ravivlb
Copy link

ravivlb commented Sep 11, 2018

even on 4.8.0, showing same on Android 5.1.1.

@sjudd
Copy link
Collaborator

sjudd commented Sep 12, 2018

Can you provide the stack trace on 4.8.0?

@jahonn
Copy link

jahonn commented Sep 13, 2018

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.

09-13 11:59:18.072 7814-7814/com.dubang.reader W/Glide: Load failed for http://novel.ywread.net/public/uploads/images/20180720/1830a26f47ccc82f4a9445243b25f4f2.jpg with size [180x240]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There were 4 causes:
    java.io.IOException(Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800))
    com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException(Mark has been invalidated, pos: 49152 markLimit: 65536)
    java.io.IOException(Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800))
    com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException(Mark has been invalidated, pos: 49152 markLimit: 65536)
     call GlideException#logRootCauses(String) for more detail
      Cause (1 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, DATA_DISK_CACHE, http://novel.ywread.net/public/uploads/images/20180720/1830a26f47ccc82f4a9445243b25f4f2.jpg
        Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->c->Drawable}
        Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Drawable}
        Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->BitmapDrawable->Drawable}
      Cause (2 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->Drawable}, DATA_DISK_CACHE, http://novel.ywread.net/public/uploads/images/20180720/1830a26f47ccc82f4a9445243b25f4f2.jpg
    There were 2 causes:
    java.io.IOException(Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800))
    com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException(Mark has been invalidated, pos: 49152 markLimit: 65536)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->c->Drawable}
        Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->Bitmap->Drawable}
    There was 1 cause:
    java.io.IOException(Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800))
     call GlideException#logRootCauses(String) for more detail
          Cause (1 of 1): class java.io.IOException: Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800)
        Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->BitmapDrawable->Drawable}
    There was 1 cause:
    com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException(Mark has been invalidated, pos: 49152 markLimit: 65536)
     call GlideException#logRootCauses(String) for more detail
          Cause (1 of 1): class com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException: Mark has been invalidated, pos: 49152 markLimit: 65536
      Cause (3 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{ParcelFileDescriptor->Object->Drawable}, DATA_DISK_CACHE, http://novel.ywread.net/public/uploads/images/20180720/1830a26f47ccc82f4a9445243b25f4f2.jpg
        Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->Bitmap->Drawable}
        Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->BitmapDrawable->Drawable}
      Cause (4 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, REMOTE, http://novel.ywread.net/public/uploads/images/20180720/1830a26f47ccc82f4a9445243b25f4f2.jpg
        Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed 
09-13 11:59:18.073 7814-7814/com.dubang.reader I/Glide: Root cause (1 of 4)
    java.io.IOException: Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:659)
        at com.bumptech.glide.load.resource.bitmap.k.b(Downsampler.java:586)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:299)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:206)
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:62)
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:18)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:72)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:55)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:45)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:58)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.f$c.a(FileLoader.java:76)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.d$a.a(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.i(DecodeJob.java:269)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:833)
        at com.bumptech.glide.load.engine.c.a$a$1.run(GlideExecutor.java:446)
     Caused by: java.lang.IllegalArgumentException: Problem decoding into existing bitmap
        at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:673)
        at com.bumptech.glide.load.resource.bitmap.k.b(Downsampler.java:583)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:299) 
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:206) 
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:62) 
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:18) 
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:72) 
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:55) 
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:45) 
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:58) 
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:43) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:507) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:472) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:458) 
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:410) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.b.f$c.a(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.b.d$a.a(ByteBufferFileLoader.java:74) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.i(DecodeJob.java:269) 
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at java.lang.Thread.run(Thread.java:833) 
        at com.bumptech.glide.load.engine.c.a$a$1.run(GlideExecutor.java:446) 
    Root cause (2 of 4)
    com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException: Mark has been invalidated, pos: 49152 markLimit: 65536
        at com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream.reset(RecyclableBufferedInputStream.java:354)
        at com.bumptech.glide.load.a.k.c(InputStreamRewinder.java:29)
        at com.bumptech.glide.load.a.k.a(InputStreamRewinder.java:14)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:69)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:55)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:45)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:58)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.f$c.a(FileLoader.java:76)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.d$a.a(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.i(DecodeJob.java:269)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:833)
        at com.bumptech.glide.load.engine.c.a$a$1.run(GlideExecutor.java:446)
09-13 11:59:18.074 7814-7814/com.dubang.reader I/Glide: Root cause (3 of 4)
    java.io.IOException: Exception decoding bitmap, outWidth: 600, outHeight: 800, outMimeType: image/jpeg, inBitmap: [180x240] ARGB_8888 (172800)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:659)
        at com.bumptech.glide.load.resource.bitmap.k.b(Downsampler.java:586)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:299)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:206)
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:62)
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:18)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:72)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:55)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:45)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:58)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.f$c.a(FileLoader.java:76)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.d$a.a(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.i(DecodeJob.java:272)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:833)
        at com.bumptech.glide.load.engine.c.a$a$1.run(GlideExecutor.java:446)
     Caused by: java.lang.IllegalArgumentException: Problem decoding into existing bitmap
        at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:673)
        at com.bumptech.glide.load.resource.bitmap.k.b(Downsampler.java:583)
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:299) 
        at com.bumptech.glide.load.resource.bitmap.k.a(Downsampler.java:206) 
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:62) 
        at com.bumptech.glide.load.resource.bitmap.t.a(StreamBitmapDecoder.java:18) 
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:72) 
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:55) 
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:45) 
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:58) 
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:43) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:507) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:472) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:458) 
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:410) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:135) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.b.f$c.a(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:49) 
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:135) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.b.d$a.a(ByteBufferFileLoader.java:74) 
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:49) 
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.i(DecodeJob.java:272) 
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at java.lang.Thread.run(Thread.java:833) 
        at com.bumptech.glide.load.engine.c.a$a$1.run(GlideExecutor.java:446) 
09-13 11:59:18.075 7814-7814/com.dubang.reader I/Glide: Root cause (4 of 4)
    com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream$InvalidMarkException: Mark has been invalidated, pos: 49152 markLimit: 65536
        at com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream.reset(RecyclableBufferedInputStream.java:354)
        at com.bumptech.glide.load.a.k.c(InputStreamRewinder.java:29)
        at com.bumptech.glide.load.a.k.a(InputStreamRewinder.java:14)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:69)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:55)
        at com.bumptech.glide.load.engine.g.a(DecodePath.java:45)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:58)
        at com.bumptech.glide.load.engine.q.a(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.f$c.a(FileLoader.java:76)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.n(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.a(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.b.d$a.a(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.b.a(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.w.a(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.k(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.i(DecodeJob.java:272)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:833)
        at com.bumptech.glide.load.engine.c.a$a$1.run(GlideExecutor.java:446)

@santrasanchita13
Copy link

santrasanchita13 commented Sep 14, 2018

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:

W/Glide: Load failed for https://s3-sa-east-1.amazonaws.com/quemfazs3/4177f4d7-c272-46c0-ac1a-78be607b17d2/ads/4b6b30b7-88ed-46c7-8ab6-cfd4868ee9b7/medias/f20.jpg with size [192x144]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There were 4 causes:
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
     call GlideException#logRootCauses(String) for more detail
      Cause (1 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, DATA_DISK_CACHE, https://s3-sa-east-1.amazonaws.com/quemfazs3/4177f4d7-c272-46c0-ac1a-78be607b17d2/ads/4b6b30b7-88ed-46c7-8ab6-cfd4868ee9b7/medias/f20.jpg
        Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable}
        Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Drawable}
        Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->BitmapDrawable->Drawable}
      Cause (2 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->Drawable}, DATA_DISK_CACHE, https://s3-sa-east-1.amazonaws.com/quemfazs3/4177f4d7-c272-46c0-ac1a-78be607b17d2/ads/4b6b30b7-88ed-46c7-8ab6-cfd4868ee9b7/medias/f20.jpg
        Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->GifDrawable->Drawable}
        Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->Bitmap->Drawable}
        Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->BitmapDrawable->Drawable}
      Cause (3 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{ParcelFileDescriptor->Object->Drawable}, DATA_DISK_CACHE, https://s3-sa-east-1.amazonaws.com/quemfazs3/4177f4d7-c272-46c0-ac1a-78be607b17d2/ads/4b6b30b7-88ed-46c7-8ab6-cfd4868ee9b7/medias/f20.jpg
    There were 2 causes:
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->Bitmap->Drawable}
    There was 1 cause:
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
     call GlideException#logRootCauses(String) for more detail
          Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{ParcelFileDescriptor->BitmapDrawable->Drawable}
    There was 1 cause:
    java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)
     call GlideException#logRootCauses(String) for more detail
          Cause (1 of 1): class java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
      Cause (4 of 6): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{DirectByteBuffer->Object->Drawable}, REMOTE, https://s3-sa-east-1.amazonaws.com/quemfazs3/4177f4d7-c272-46c0-ac1a-78be607b17d2/ads/4b6b30b7-88ed-46c7-8ab6-cfd4868ee9b7/medias/f20.jpg
        Cause (1 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable}
        Cause (2 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bitmap->Drawable}
        Cause (3 of 3): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{DirectByteBuffer->Bi
09-14 11:46:08.819 24321-24321/com.faz.quem.quemfaz I/Glide: Root cause (1 of 4)
    java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:173)
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
     Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at android.media.MediaMetadataRetriever.setDataSource(Native Method)
        at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:144)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:296)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:291)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:161)
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269) 
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at java.lang.Thread.run(Thread.java:818) 
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 
09-14 11:46:08.820 24321-24321/com.faz.quem.quemfaz I/Glide: Root cause (2 of 4)
    java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:173)
        at com.bumptech.glide.load.resource.bitmap.BitmapDrawableDecoder.decode(BitmapDrawableDecoder.java:58)
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
     Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at android.media.MediaMetadataRetriever.setDataSource(Native Method)
        at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:144)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:296)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:291)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:161)
        at com.bumptech.glide.load.resource.bitmap.BitmapDrawableDecoder.decode(BitmapDrawableDecoder.java:58) 
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269) 
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at java.lang.Thread.run(Thread.java:818) 
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 
    Root cause (3 of 4)
    java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:173)
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
     Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at android.media.MediaMetadataRetriever.setDataSource(Native Method)
        at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:144)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:296)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:291)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:161)
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379) 
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74) 
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302) 
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272) 
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at java.lang.Thread.run(Thread.java:818) 
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 
    Root cause (4 of 4)
    java.io.IOException: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder.decode(VideoDecoder.java:173)
        at com.bumptech.glide.load.resource.bitmap.BitmapDrawableDecoder.decode(BitmapDrawableDecoder.java:58)
        at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
        at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
        at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
        at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
        at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
        at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
        at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
        at com.bumptech.glide.load.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:74)
        at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
     Caused by: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
        at android.media.MediaMetadataRetriever.setDataSource(Native Method)
        at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:144)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:296)
        at com.bumptech.glide.load.resource.bitmap.VideoDecoder$ParcelFileDescriptorInitializer.initialize(VideoDecoder.java:291)
    	at com.bumptech.glide.load.resource.bi

@sjudd
Copy link
Collaborator

sjudd commented Sep 21, 2018

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.

@santrasanchita13
Copy link

The url is in the first line of logs -

https://s3-sa-east-1.amazonaws.com/quemfazs3/4177f4d7-c272-46c0-ac1a-78be607b17d2/ads/4b6b30b7-88ed-46c7-8ab6-cfd4868ee9b7/medias/f20.jpg

I've checked in Emulator API 23 and above. Also, ASUS Zenfone 2 Laser API 23

@sjudd
Copy link
Collaborator

sjudd commented Oct 5, 2018

@santrasanchita13 That's a corrupt partial image. BitmapFactory doesn't return partially decoded images, so neither does Glide (on most versions of Android).

@SyShare
Copy link

SyShare commented Oct 24, 2018

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)
java.io.FileNotFoundException: No content provider: https://healthcdn.51wnl-cq.com/5edf312a-2bd2-52d6-679f-92e5065eafa4.jpg
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1396)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1247)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1170)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:780)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

@easazade
Copy link

easazade commented Nov 12, 2018

same problem here . so much for the glide. is it gonna be fixed sometime soon?
my problem is some times image gets loaded sometime it doesn't. wow

@vagrant1991
Copy link

same problem here

@adamvx
Copy link

adamvx commented Jan 24, 2019

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.

@ghost
Copy link

ghost commented Feb 3, 2019

Error with loading Google logo in sample SVG application :
2019-02-03 20:56:53.073 8577-8577/com.bumptech.glide.samples.svg W/Glide: Load failed for https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png with size [296x709]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 2 causes:
java.io.IOException(Cannot load SVG from stream)
java.io.IOException(Cannot load SVG from stream)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->PictureDrawable}, REMOTE, https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
There was 1 cause:
java.io.IOException(Cannot load SVG from stream)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->SVG->PictureDrawable}
There was 1 cause:
java.io.IOException(Cannot load SVG from stream)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.IOException: Cannot load SVG from stream
Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{FileInputStream->Object->PictureDrawable}, REMOTE, https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
There was 1 cause:
java.io.IOException(Cannot load SVG from stream)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{FileInputStream->SVG->PictureDrawable}
There was 1 cause:
java.io.IOException(Cannot load SVG from stream)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.IOException: Cannot load SVG from stream
2019-02-03 20:56:53.080 8577-8577/com.bumptech.glide.samples.svg I/Glide: Root cause (1 of 2)
java.io.IOException: Cannot load SVG from stream
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:31)
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:16)
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387)
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
Caused by: com.caverock.androidsvg.SVGParseException: SVG parse error: At line 1, column 0: not well-formed (invalid token)
at com.caverock.androidsvg.SVGParser.parse(SVGParser.java:611)
at com.caverock.androidsvg.SVG.getFromInputStream(SVG.java:144)
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:28)
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:16) 
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387) 
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309) 
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279) 
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 
Caused by: org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: not well-formed (invalid token)
at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:515)
at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:474)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
at com.caverock.androidsvg.SVGParser.parse(SVGParser.java:599)
at com.caverock.androidsvg.SVG.getFromInputStream(SVG.java:144) 
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:28) 
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:16) 
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387) 
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309) 
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279) 
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 
2019-02-03 20:56:53.086 8577-8577/com.bumptech.glide.samples.svg I/Glide: Root cause (2 of 2)
java.io.IOException: Cannot load SVG from stream
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:31)
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:16)
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72)
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55)
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45)
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387)
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135)
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95)
at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76)
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
Caused by: com.caverock.androidsvg.SVGParseException: SVG parse error: At line 1, column 0: not well-formed (invalid token)
at com.caverock.androidsvg.SVGParser.parse(SVGParser.java:611)
at com.caverock.androidsvg.SVG.getFromInputStream(SVG.java:144)
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:28)
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:16) 
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387) 
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309) 
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279) 
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 
Caused by: org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: not well-formed (invalid token)
at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:515)
at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:474)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
at com.caverock.androidsvg.SVGParser.parse(SVGParser.java:599)
at com.caverock.androidsvg.SVG.getFromInputStream(SVG.java:144) 
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:28) 
at com.bumptech.glide.samples.svg.SvgDecoder.decode(SvgDecoder.java:16) 
at com.bumptech.glide.load.engine.DecodePath.decodeResourceWithList(DecodePath.java:72) 
at com.bumptech.glide.load.engine.DecodePath.decodeResource(DecodePath.java:55) 
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:45) 
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58) 
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43) 
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:515) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:480) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:466) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:418) 
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:387) 
at com.bumptech.glide.load.engine.SourceGenerator.onDataFetcherReady(SourceGenerator.java:135) 
at com.bumptech.glide.load.engine.DataCacheGenerator.onDataReady(DataCacheGenerator.java:95) 
at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:76) 
at com.bumptech.glide.load.engine.DataCacheGenerator.startNext(DataCacheGenerator.java:75) 
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:49) 
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309) 
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279) 
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446) 

@Sp4Rx
Copy link

Sp4Rx commented Feb 15, 2019

Facing this issue still now. If its fixed in beta could you provide that version? I can mostly reproduce on very slow internet

@tqlmorepassion
Copy link

tqlmorepassion commented Feb 16, 2019

+1,below version 21.
[com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 2 causes:
java.net.ConnectException(Failed to connect to assets-v2.kucoin.com/2600:9000:202b:f200:a:c9b:7740:93a1:443)
java.io.FileNotFoundException(No content provider: https://assets-v2.kucoin.com/ucenter/header/9.png)
call GlideException#logRootCauses(String) for more detail], model = [https://assets-v2.kucoin.com/ucenter/header/9.png], target = [Target for: android.support.v7.widget.AppCompatImageView{9d83cb50 V.ED.... ........ 0,0-318,289 #7f09017b app:id/iv_avatar}], isFirstResource = [true]

@sjudd
Copy link
Collaborator

sjudd commented Mar 5, 2019

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.

@StainlessStlRat
Copy link

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:
square/okhttp#4378

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.

@chunwoong
Copy link

I found the error in version 4.9.0.
Error codes are as follows.

W/Glide: Load failed for with size [237x237]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 3 causes:
java.io.FileNotFoundException((No such file or directory))
java.io.FileNotFoundException(No such file or directory)
java.io.FileNotFoundException(No such file or directory)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 4): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, LOCAL
There was 1 cause:
java.io.FileNotFoundException(/(No such file or directory))
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: (No such file or directory)
Cause (2 of 4): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.os.ParcelFileDescriptor, LOCAL
There was 1 cause:
java.io.FileNotFoundException(No such file or directory)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: No such file or directory
Cause (3 of 4): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL
There was 1 cause:
java.io.FileNotFoundException(No such file or directory)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: No such file or directory
Cause (4 of 4): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{HierarchicalUri->Object->Drawable}, LOCAL
Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{HierarchicalUri->Drawable->Drawable}
Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{HierarchicalUri->Bitmap->Drawable}
I/Glide: Root cause (1 of 3)
java.io.FileNotFoundException: (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at java.io.FileInputStream.(FileInputStream.java:99)
at android.content.ContentResolver.openInputStream(ContentResolver.java:706)
at com.bumptech.glide.load.data.StreamLocalUriFetcher.loadResourceFromUri(StreamLocalUriFetcher.java:85)
at com.bumptech.glide.load.data.StreamLocalUriFetcher.loadResource(StreamLocalUriFetcher.java:60)
at com.bumptech.glide.load.data.StreamLocalUriFetcher.loadResource(StreamLocalUriFetcher.java:15)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
I/Glide: Root cause (2 of 3)
java.io.FileNotFoundException: No such file or directory
at android.os.Parcel.openFileDescriptor(Native Method)
at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:283)
at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:200)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:983)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:911)
at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:22)
at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:14)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherFailed(DecodeJob.java:405)
at com.bumptech.glide.load.engine.SourceGenerator.onLoadFailed(SourceGenerator.java:119)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:49)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
I/Glide: Root cause (3 of 3)
java.io.FileNotFoundException: No such file or directory
at android.os.Parcel.openFileDescriptor(Native Method)
at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:283)
at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:200)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:983)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:911)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherFailed(DecodeJob.java:405)
at com.bumptech.glide.load.engine.SourceGenerator.onLoadFailed(SourceGenerator.java:119)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:49)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherFailed(DecodeJob.java:405)
at com.bumptech.glide.load.engine.SourceGenerator.onLoadFailed(SourceGenerator.java:119)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:49)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

@Shineee
Copy link

Shineee commented Apr 16, 2019

check Settings>Apps>your app>Permission>STORAGE Permission>open
fix it!

@easazade
Copy link

easazade commented Apr 16, 2019 via email

@ajitdubey-mob-ibtech
Copy link

ajitdubey-mob-ibtech commented Jun 26, 2019

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.

I am using the same but facing same issue.

@cuichanghao
Copy link

4.9.0 the same error.
cannot load yahoo favicon
https://www.yahoo.com/favicon.ico

@frinda
Copy link

frinda commented Oct 14, 2019

I'm getting the same error in 4.9.0

Load failed for https://open.pinzhi.xin/pzcode-admin/admin/storage/fetch/20190821145541595k26l.png with size [960x720]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 cause:
java.io.FileNotFoundException(https://open.pinzhi.xin/pzcode-admin/admin/storage/fetch/20190821145541595k26l.png)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
There was 1 cause:
java.io.FileNotFoundException(https://open.pinzhi.xin/pzcode-admin/admin/storage/fetch/20190821145541595k26l.png)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: https://open.pinzhi.xin/pzcode-admin/admin/storage/fetch/20190821145541595k26l.png
2019-10-14 16:52:02.321 10594-10594/com.axon.pinzhisdkdemo I/Glide: Root cause (1 of 1)
java.io.FileNotFoundException: https://open.pinzhi.xin/pzcode-admin/admin/storage/fetch/20190821145541595k26l.png
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:26)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects(HttpUrlFetcher.java:106)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:59)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:309)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

@yaugenka
Copy link

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.

@Maryam-T
Copy link

I'm getting this error on 4.11.0 also. Has it been solved?

@dimzhurwork
Copy link

I have some problem, but i set diskCacheStrategy(DiskCacheStrategy.RESOURCE) and Glide load my image
My url was http://192.168.1.94:8086/api/img/6031de160f6b85591a305f90

sjudd added a commit to sjudd/glide that referenced this issue Sep 24, 2021
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