siralam / BSImagePicker

An image picker that extends BottomSheetDialogFragment. Camera and gallery all in one dialog. Single or Multi Selection.
201 stars 62 forks source link

Glide does not show images on Android Q #45

Closed bemrePG closed 4 years ago

bemrePG commented 4 years ago

Hi,

so far everything worked perfect for me with your library. I only struggle with Android Q. It does not show the images on api 29.

Your sample project does show the images but when i am using your library it doesn't show on api 29. It works only below api29.

Here is the Logcat: I/Glide: Root cause (3 of 3) java.io.FileNotFoundException: open failed: EACCES (Permission denied) at android.os.ParcelFileDescriptor.openInternal(ParcelFileDescriptor.java:315) at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:220) at com.bumptech.glide.load.model.FileLoader$FileDescriptorFactory$1.open(FileLoader.java:164) at com.bumptech.glide.load.model.FileLoader$FileDescriptorFactory$1.open(FileLoader.java:161) at com.bumptech.glide.load.model.FileLoader$FileFetcher.loadData(FileLoader.java:68) 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.model.FileLoader$FileFetcher.loadData(FileLoader.java:73) 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.model.ByteBufferFileLoader$ByteBufferFetcher.loadData(ByteBufferFileLoader.java:70) 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:919) at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)

Of course i gave permission to the app and checked that again in my settings.

Do you have any idea why?

Thank you.

siralam commented 4 years ago

Duplicate of #33