mancj / mancj/MaterialSearchBar
Application Crashing when we scroll on the Suggestions very fast and try to Type into the EditText.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 324
- PR merge metrics
- No merged PRs in 30d
Description
AndroidRuntime: FATAL EXCEPTION: main
Process: drrdigitalcatalogue.com.nrrdigitalcatalogue, PID: 6410
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{23ffb6f position=27 id=-1, oldPos=-1, pLpos:-1 no parent} android.support.v7.widget.RecyclerView{7bbf314 VFED..... ........ 0,0-688,542 #7f0a0089 app:id/mt_recycler}, adapter:drrdigitalcatalogue.com.nrrdigitalcatalogue.adapters.CustomSuggestionsAdapter@48ec7bd, layout:android.support.v7.widget.LinearLayoutManager@ad4d1b2, context:drrdigitalcatalogue.com.nrrdigitalcatalogue.presentation.ui.activity.SearchActivity@21c112b
at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:5610)
at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5792)
at android.support.v7.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:285)
at android.support.v7.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:342)
at android.support.v7.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:358)
at android.support.v7.widget.GapWorker.prefetch(GapWorker.java:365)
at android.support.v7.widget.GapWorker.run(GapWorker.java:396)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5451)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
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 reproducing the crash while rapidly scrolling the suggestions and typing into the EditText in SearchActivity. Inspect CustomSuggestionsAdapter and the mt_recycler RecyclerView using the reported stack trace as the entry point. Done means the same interaction no longer produces the IndexOutOfBoundsException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100