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

Not able to load received/sent images 10 minutes later in the UI #1488

Closed
jcelaviie opened this issue Sep 27, 2016 · 2 comments
Closed

Not able to load received/sent images 10 minutes later in the UI #1488

jcelaviie opened this issue Sep 27, 2016 · 2 comments

Comments

@jcelaviie
Copy link

jcelaviie commented Sep 27, 2016

Hi, I came across issue with loading received or sent images after more than 10 minutes. This issue only happens in JB.

Glide Version:

Device/Android Version:
OS info: device: "C2305"
JB : Sony C2305/JB-4.2.2

Glide load line / GlideModule (if any) / list Adapter code (if any):

requestManager
        .asDrawable()
        .apply(requestOptions)
        .load(new FifeModel(url, fifeUrlOptions, accountId));

Stack trace / LogCat:

Babel_db: getTempStoreFd: error creating pfd for /data/data/<packagename>/cache/scratch/2047465361613405861.temp.jpg
java.io.FileNotFoundException: No such file or directory
at android.os.Parcel.openFileDescriptor(Parcel.java)
at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:124)
at android.content.ContentProvider.openAssetFile(ContentProvider.java:829)
at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:268)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:741)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:638)
at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:21)
at com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher.loadResource(FileDescriptorLocalUriFetcher.java:13)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:40)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:93)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:274)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherFailed(DecodeJob.java:363)
at com.bumptech.glide.load.engine.SourceGenerator.onLoadFailed(SourceGenerator.java:118)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.startNextOrFail(MultiModelLoader.java:142)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.onLoadFailed(MultiModelLoader.java:134)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:45)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:93)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:61)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:274)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:244)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:838)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:346)
Glide   : class art: Failed to load resource

It looks like file expires in the cache after some time and glide still try to load the image from the cache.

@TWiStErRob
Copy link
Collaborator

That file path doesn't look like a Glide cached image, double-check however you convert FifeModel to an Uri.

@stale
Copy link

stale bot commented Nov 12, 2017

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 Nov 12, 2017
@stale stale bot closed this as completed Nov 19, 2017
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

2 participants