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

[BUG] images not showing in detail view; i get black screen; no crash; #221

Open
Mohammad-Adam opened this issue Oct 8, 2020 · 4 comments
Assignees
Labels

Comments

@Mohammad-Adam
Copy link

stacktrace

W/Glide: Load failed for content://media/external/images/media/171234 with size [147x147]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
    There were 3 causes:
    java.io.FileNotFoundException(Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg)
    java.io.FileNotFoundException(Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg)
    java.io.FileNotFoundException(Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg)
     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(Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 1): class java.io.FileNotFoundException: Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg
      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(Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 1): class java.io.FileNotFoundException: Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg
      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(Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg)
     call GlideException#logRootCauses(String) for more detail
        Cause (1 of 1): class java.io.FileNotFoundException: Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg
      Cause (4 of 4): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{StringUri->Object->Drawable}, LOCAL
        Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{StringUri->Drawable->Drawable}
        Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{StringUri->Bitmap->Drawable}
I/Glide: Root cause (1 of 3)
    java.io.FileNotFoundException: Can't access /fishbun_images/inshot/JPEG_20201008_195734_2110073335245381647.jpg
        at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:147)
        at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:698)
        at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1468)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1305)
        at android.content.ContentResolver.openInputStream(ContentResolver.java:1025)
        at com.bumptech.glide.load.data.StreamLocalUriFetcher.loadResourceFromUri(StreamLocalUriFetcher.java:74)
        at com.bumptech.glide.load.data.StreamLocalUriFetcher.loadResource(StreamLocalUriFetcher.java:50)
        at com.bumptech.glide.load.data.StreamLocalUriFetcher.loadResource(StreamLocalUriFetcher.java:13)
        at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
        at com.bumptech.glide.load.engine.SourceGenerator.startNextLoad(SourceGenerator.java:70)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:63)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:310)
        at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:434)
        at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:390)
        at com.bumptech.glide.load.engine.SourceGenerator.onDataReadyInternal(SourceGenerator.java:148)
        at com.bumptech.glide.load.engine.SourceGenerator$1.onDataReady(SourceGenerator.java:76)
        at com.bumptech.glide.load.data.mediastore.ThumbFetcher.loadData(ThumbFetcher.java:70)
        at com.bumptech.glide.load.engine.SourceGenerator.startNextLoad(SourceGenerator.java:70)
        at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:63)
        at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:310)
        at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:279)
        at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:234)
        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:764)
        at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:393)
@Mohammad-Adam
Copy link
Author

if i downgrade 'androidx.constraintlayout:constraintlayout:2.0.2' to 2.0.1 then the problem is solved !

@MKickelberg
Copy link

if i downgrade 'androidx.constraintlayout:constraintlayout:2.0.2' to 2.0.1 then the problem is solved !

Did not solve the issue here.

@MaulikMikka
Copy link

is it resolved in new version?

@muslimmuda15
Copy link

Try to switch into coil instead of glide.

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

No branches or pull requests

5 participants