LuckSiege / LuckSiege/PictureSelector

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

Open
#2,456 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 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

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the intermittent missing-thumbnail and full-image failure on the reported Redmi 10X 4G with MIUI 12.5.2 and Android 11, using the provided content URI error and permission details as the starting point. Trace the media-loading path and verify that existing images can load without the ACCESS_MEDIA_LOCATION error while newly captured photos continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.