sangcomz / FishBun

:blowfish:FishBun is Image Picker for android.
Apache License 2.0
671 stars 143 forks source link

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

Open Mohammad-Adam opened 3 years ago

Mohammad-Adam commented 3 years ago

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 commented 3 years ago

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

MKickelberg commented 3 years ago

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 commented 2 years ago

is it resolved in new version?

muslimmuda15 commented 2 years ago

Try to switch into coil instead of glide.