PictureSelector icon indicating copy to clipboard operation
PictureSelector copied to clipboard

选择页面有时候没有缩略图

Open boboqun opened this issue 3 years ago • 4 comments

Current use version?

当前使用的版本是多少?

3.10.6

Will this problem occur in demo?

Demo能否复现这问题?

Describe the problem or provide an error log?

描述问题或提供错误log?

手机型号 红米10X 4G miui版本 12.5.2 稳定版 android 11 有时候(很少见)打开选择页面是没有预览图的,打开查看大图也是不可以的。但是不影响正常返回选择结果。用这个页面新拍的照片可以正常展示。可能的错误报错如下

Load failed for content://media/external/images/media/29721 with size [200x200]
                                                                            class com.bumptech.glide.load.engine.GlideException: Failed to load resource
                                                                            There was 1 root cause:
                                                                            java.lang.UnsupportedOperationException(Caller must hold ACCESS_MEDIA_LOCATION permission to access original)
                                                                             call GlideException#logRootCauses(String) for more detail
                                                                              Cause (1 of 1): class java.lang.UnsupportedOperationException: Caller must hold ACCESS_MEDIA_LOCATION permission to access original

Snipaste_2022-08-19_17-04-01 Snipaste_2022-08-19_17-17-28

这个权限我有在清单文件里声明,并动态申请。但其实手机设置里并没有这个权限的配置,相机 定位 手机存储权限都正常授权了。

请教大佬,这种问题可以怎么解决?

boboqun avatar Aug 19 '22 09:08 boboqun

我在Redmi Note11 Pro Android12上也遇到了这个问题,请问一下您解决了吗? 明明动态授权了,但偶尔就是会出现这种问题; 多次卸载重装,出现此问题的概率很大;

hardgit avatar May 18 '23 06:05 hardgit

demo之所以无法重现这个问题是因为demo中没有获取图片中的地理信息权限,如果动态申请这两个权限ACCESS_MEDIA_LOCATION,READ_MEDIA_IMAGES,就会出现这种问题

hardgit avatar May 18 '23 06:05 hardgit

是小米的问题还是咋回事啊,难搞。。。。

hardgit avatar May 18 '23 06:05 hardgit

是小米的问题还是咋回事啊,难搞。。。。

我在Redmi Note11 Pro Android12上也遇到了这个问题,请问一下您解决了吗? 明明动态授权了,但偶尔就是会出现这种问题; 多次卸载重装,出现此问题的概率很大;

您好, 我也是在这个手机上遇到了这个问题, 请问您处理好了吗

manitozhang avatar Jun 06 '24 10:06 manitozhang