App crashes while (fast) typing in a XAutocomplete-control from Softweb solutions

PeterGmeinerPeterGmeiner DEMember ✭✭
edited August 2016 in Xamarin.Forms

I implemented a small xamarin.forms example which uses the XAutocomplete component from Softweb solutions
After typing several times very fast "abcde", deleting the text, typing again and so on and playing with the keyboard very fast leads to an
InvalidOperationException with the following call stack:

System.InvalidOperationExceptionCannot change ObservableCollection during a CollectionChanged event.

System.Collections.ObjectModel.ObservableCollection.CheckReentrancy()
System.Collections.ObjectModel.ObservableCollection.ClearItems()
System.Collections.ObjectModel.Collection.Clear()
Softweb.Controls.AutoComplete.LoadSearchCommandData(IEnumerable newValue)
Softweb.Controls.AutoComplete.<>c__DisplayClass24.b__22()
System.Threading.Tasks.Task.InnerInvoke()
System.Threading.Tasks.Task.Execute()
Softweb.Controls.AutoComplete.d__26.MoveNext()
Android.App.SyncContext.c__AnonStorey0.<>m__0()
Java.Lang.Thread.RunnableImplementor.Run()
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this)
at (wrapper dynamic-method) System.Object:b6a37efe-5778-473b-aee5-aa02c490fe62 (intptr,intptr)

Does anyone have an idea what could be the reason for the exception which leads to an app crash?
I attached the code with which the crash described above can be reproduced.

Thanks, Peter

Sign In or Register to comment.