LuckSiege / LuckSiege/PictureSelector

java.lang.IndexOutOfBoundsException

Open
#2,885 1 comment 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?

当前使用的版本是多少?
3.11.1

Will this problem occur in demo?

Demo能否复现这问题?
未知,生产环境报错,会导致用户相册和输入法无法使用

Describe the problem or provide an error log?

描述问题或提供错误log?
Inconsistency detected. Invalid item position 60(offset:60).state:61 com.luck.picture.lib.widget.RecyclerPreloadView{105193d VFED..... ........ 0,242-1080,2268 #7f0906df app:id/recycler}, adapter:com.luck.picture.lib.adapter.PictureImageGridAdapter@f51f234, layout:androidx.recyclerview.widget.GridLayoutManager@c470328, context:com.luck.picture.lib.basic.PictureSelectorSupporterActivity@82acfe5

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

Start by tracing the reported failure through RecyclerPreloadView, PictureImageGridAdapter, GridLayoutManager, and PictureSelectorSupporterActivity in version 3.11.1. Determine whether the production-only invalid item position can be reproduced, then verify that the affected album and input-method flows no longer crash.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.