LuckSiege / LuckSiege/PictureSelector

打开图片选择页面黑屏,没有标题栏,没有图片

Open
#2,967 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## Current use version?
#### 当前使用的版本是多少?

```
implementation 'io.github.lucksiege:pictureselector:v3.11.2'
```

## Will this problem occur in demo?
#### Demo能否复现这问题?

```
可以
```

## Describe the problem or provide an error log?
#### 描述问题或提供错误log?

使用:定制版本机器,
Android 版本:7.1.2

资源文件获取异常
错误日志如下:
```
Unhandled exception while laying out windows
android.content.res.Resources$NotFoundException: Resource ID #0x7f010027
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:190)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2101)
at android.content.res.Resources.getAnimation(Resources.java:1139)
at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:107)
at com.android.server.wm.AppTransition.loadAnimationRes(AppTransition.java:531)
at com.android.server.wm.AppTransition.loadAnimation(AppTransition.java:1484)
at com.android.server.wm.WindowManagerService.applyAnimationLocked(WindowManagerService.java:3814)
at com.android.server.wm.WindowManagerService.setTokenVisibilityLocked(WindowManagerService.java:4967)
at com.android.server.wm.WindowSurfacePlacer.handleClosingApps(WindowSurfacePlacer.java:1329)
at com.android.server.wm.WindowSurfacePlacer.handleAppTransitionReadyLocked(WindowSurfacePlacer.java:1206)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner(WindowSurfacePlacer.java:335)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:235)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:184)
at com.android.server.wm.WindowManagerService.relayoutWindow(WindowManagerService.java:3543)
at com.android.server.wm.Session.relayout(Session.java:215)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:286)
at com.android.server.wm.Session.onTransact(Session.java:136)
at android.os.Binder.execTransact(Binder.java:565)
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the demo using PictureSelector v3.11.2 on Android 7.1.2, then start from the reported Resources$NotFoundException and window-transition stack trace. Trace the resource lookup involved when opening the image-selection page; done means the page opens with its title bar and images instead of a black screen.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.