-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
New RecyclerView Grouping crash on Clear/Insert sequence #1640
Comments
I have implemented support for Group Child collection INotifyCollectionChanged event supports (add/remove/reset) - dynamic group childs collection. Turns out that crashes was not a bug in grouping implementation. I will push dynamic child support + crash workaround in a moment. |
…orkaround of RecyclerView library bug - https://code.google.com/p/android/issues/detail?id=77846#c10 Fixes MvvmCross#1640
Pushed pull request with RecyclerView crashes. |
Hi got the same exceptions , but the problem was with not properly dispatching event. Did you check it ? |
it's not an issue with "event dispatching". It just crash with normal ObservableCollection - easy to reproduce when a lot of Remove/Insert sequence calls are made. |
Are you using MvxObservableCollection ? I guess you dispatching event not on UI thread. |
I would definitely make sure you are doing everything on the UI thread.
…On Mar 8, 2017 7:22 AM, "Nickolas Shpotenko" ***@***.***> wrote:
Are you using MvxObservableCollection ? I guess you dispatching event not
on UI thread.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1640 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEIBRMFEYQX87kvoQhXudMyOqc2-_BMNks5rjp1sgaJpZM4MUMGM>
.
|
I am using RX DynamicData and I do the thing on UI thread. Well if it was UI thread issue the exception would not be IndexOfOutBoundsException + it would always crash (it does not always crash, just sometimes when Clear + Add is called). That's the backend(PCL) code which manages list by the way: I always Observe on SynchronizationContext.Current (UI thread) so it is impossible. |
ObservableCollection not thread safe, so maybe you are invoking insert , remove from different thread that can cause this issues. |
I don't, I use RX DynamicData and I always, explictly specify that things related to collection modification should be invoked on Current SynchronizationContext which is in fact UI thread. |
I guess I have to implement reproduction sample so you will start to believe that something is fucked up with recyclerview. Will do it and ping you back - but not earlier than on weekend |
Thanks! A reproduction case would be great.
…On Mar 8, 2017 7:39 AM, "Przemysław Raciborski" ***@***.***> wrote:
I guess I have to implement reproduction sample so you will start to
believe that something it's fucked with recyclerview. Will do it and ping
you back - but not earlier than on weekend
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1640 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEIBRL1XraM_PoC1QUPvKOKIiEleazbmks5rjqGEgaJpZM4MUMGM>
.
|
if you have a test project , I could take a look , what's happening. |
New RecyclerView Grouping feature crashes when ObservableCollection is Cleared and then some items are inserted.
It crashes with RecyclerView viewholder incosistency.
Preparing fix.
The text was updated successfully, but these errors were encountered: