Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.0-b6 & May 29th Snapshot] Crash after top sticky header collapse->expand->collapse #92

Closed
bornest opened this issue Jun 1, 2016 · 2 comments

Comments

@bornest
Copy link

bornest commented Jun 1, 2016

Hi! The lib is great, but I've found a bug in it.

I use expandable sections and sticky headers similar to "Expandable Sections" in example app.

All sections are expanded at startup.
Collapse the topmost section, then expand it.
Then, when you collapse it again, the app crashes with fatal exception.

both 5.0.0-b6 and May 29th SNAPSHOT have this bug.

BTW Found the same exact bug in "Expandable Sections" in the latest Example App from this repo (cloned the latest version of this repo).

FATAL EXCEPTION: main Process: , PID: 12203 java.lang.RuntimeException: trying to unhide a view that was not hiddenandroid.widget.LinearLayout{1e27b719 V.E...CL ........ 0,1627-1080,2155} at android.support.v7.widget.ChildHelper.unhide(ChildHelper.java:355) at android.support.v7.widget.RecyclerView$Recycler.getScrapViewForPosition(RecyclerView.java:5080) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4634) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:592) at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:2979) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2904) at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1482) at android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147) at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:294) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) at android.view.Choreographer.doCallbacks(Choreographer.java:580) at android.view.Choreographer.doFrame(Choreographer.java:549) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5294) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)

@bornest bornest changed the title [5.0.0-b6 & May 29th Snapshot] Crash when [5.0.0-b6 & May 29th Snapshot] Crash after top sticky header collapse->expand->collapse Jun 1, 2016
@davideas davideas added the bug label Jun 2, 2016
@davideas
Copy link
Owner

davideas commented Jun 2, 2016

@bornest, thanks for spotting this, I confirm it, but I also confirm that, it is related to the technique used for the sticky header, so it is part of the same bugs #78 and #79 already opened few weeks ago.

@davideas
Copy link
Owner

davideas commented Jun 2, 2016

@bornest, please follow the discussion in issue 79. I have some good news.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants