Skip to content

Hide's feature in book settings causes crashes #83

@rezamusic881

Description

@rezamusic881

Expected behavior

Supposedly, The app will not crash, while using "Hide Feature" in some books, settings located on the home menu or click on the three dot icon.

Actual behavior

The app is stuck, while using "Hide Features" in some books in book settings located in the home menu or click on the three dot icon.

How to reproduce

"Note: You can change the language to make it easier to produce bugs"

Screenshot_2018-05-30-03-01-56-322_com.whatsapp.png

Screenshot_2018-05-30-03-02-58-842_com.whatsapp.png

  1. Instal App here
  2. Run the app.
  3. Click on (dot icon) or the "Book Settings" feature.
  4. Click "Hide feature" in some books, Application will Crash.

Screenshot_2018-06-01-02-52-28-597_com.whatsapp.png

Environment

  • Device : Redmi Note 5A
  • System Operating : 7.1.0 Nougat
  • App Version : 1.4.4


Recording Of The Issues

https://youtu.be/S5zwG326w8Y


Logcat

Proof logcat that the application is experiencing Crash & Error Code
06-01 02:44:03.937  1906  1906 E AndroidRuntime: FATAL EXCEPTION: main
06-01 02:44:03.937  1906  1906 E AndroidRuntime: Process: com.fekracomputers.islamiclibrary, PID: 1906
06-01 02:44:03.937  1906  1906 E AndroidRuntime: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 4(offset:-1).state:6 android.support.v7.widget.RecyclerView{792e718 VFED..... .F....ID 0,0-720,1120 #7f0900eb app:id/home_screen_horizontal_list_container}, adapter:com.fekracomputers.islamiclibrary.homeScreen.adapters.HomeScreenRecyclerViewAdapter@85e571, layout:android.support.v7.widget.LinearLayoutManager@b514f56, context:com.fekracomputers.islamiclibrary.browsing.activity.BrowsingActivity@30699c4
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5817)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5752)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5748)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2232)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1559)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1519)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:614)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3763)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3527)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1767)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:356)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:876)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:688)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:620)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:862)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:754)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:163)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6361)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
06-01 02:44:03.937  1906  1906 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions