LuckSiege / LuckSiege/PictureSelector
java.lang.IndexOutOfBoundsException
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
# main(1)
java.lang.IndexOutOfBoundsException
Inconsistency detected. Invalid item position 120(offset:120).state:121 com.luck.picture.lib.widget.RecyclerPreloadView{e07713f VFED..... ........ 0,246-1080,2340 #7f09040b app:id/recycler}, adapter:com.luck.picture.lib.adapter.PictureImageGridAdapter@f8b6826, layout:androidx.recyclerview.widget.GridLayoutManager@b7b1c67, context:com.luck.picture.lib.basic.PictureSelectorSupporterActivity@5868ff2
androidx.recyclerview.widget.RecyclerView$x.J(RecyclerView.java:382)
androidx.recyclerview.widget.n.i(GapWorker.java:15)
androidx.recyclerview.widget.n.c(GapWorker.java:16)
androidx.recyclerview.widget.n.d(GapWorker.java:23)
androidx.recyclerview.widget.n.g(GapWorker.java:4)
androidx.recyclerview.widget.n.run(GapWorker.java:71)
android.os.Handler.handleCallback(Handler.java:900)
android.os.Handler.dispatchMessage(Handler.java:103)
android.os.Looper.loop(Looper.java:219)
android.app.ActivityThread.main(ActivityThread.java:8668)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by investigating the RecyclerPreloadView and PictureImageGridAdapter entries implicated in the RecyclerView stack trace, with PictureSelectorSupporterActivity as the reported context. Reproduce the java.lang.IndexOutOfBoundsException and determine which adapter or layout state produces the invalid position 120; done means the failure is prevented and the relevant behavior is verified.
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
- 20/100