System.InvalidOperationException: Cannot change ObservableCollection during a CollectionChanged event.
See original GitHub issueWe occasionally experience this error. Android, MvvmCross.
CardsView.AddChild (Xamarin.Forms.View topView, Xamarin.Forms.View[] views)
System.InvalidOperationException: Cannot change ObservableCollection during a CollectionChanged event.
ObservableCollection1[T].CheckReentrancy () ObservableCollection
1[T].InsertItem (System.Int32 index, T item)
Collection1[T].Insert (System.Int32 index, T item) ObservableWrapper
2[TTrack,TRestrict].Insert (System.Int32 index, TRestrict item)
CardsView.AddChild (Xamarin.Forms.View topView, Xamarin.Forms.View[] views)
CardsView.GetViews (PanCardView.Enums.AnimationDirection animationDirection, PanCardView.Processors.ICardProcessor processor, System.Int32[] indeces)
CardsView.SetupNextView ()
CardsView.SetupBackViews ()
CardsView+<SetCurrentView>d__202.MoveNext ()
ExceptionDispatchInfo.Throw ()
Unfortunately we do not have repro sample.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
I have quite simple setup
View with CachedImage
ViewModel
I will try to prepare repro sample later, but problem is that app crash occasionally.
It seems to be ok. Thanks.