iOS app (writted in Xamarin Froms) crashes on removing elements from RadListView at 2017.3.1018.240.
It's not easily to reproduce the issue, but with my use case, it's reproducible from time-to-time.
The use case is i.e.:
- RadListView with a few element at list - i.e. 20 elements
- swipe feature, in order to invoke *delete business object* code, which is:
---> invoking API to delete given object (in background)
---> then it's invoking API to get all elements again (let say 19 elements), and once list of elements are retrieved from API, refresh RadListView ItemSource
The use case, when it's highly reproducible, is to invoke *delete business object* code, for at least *TWO* elements at **RadListView** - first of all, for the first one (API request is being invoked), and in parallel of this invoke, invoke *delete busines object* for the second element at list. After that the app crashes.
I've collected two similar crashes, one directly related to **Telerik** source code (TelerikUI_TKListView_ReloadItems_Foundation_NSIndexPath, , but most probably the second one is also related to Telerik.
Crashes collected from device:
6 Answers, 1 is accepted
** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (4) must be equal to the number of items contained in that section before the update (5), plus or minus the number of items inserted or deleted from that section (1 inserted, 1 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out).'
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert item 3 into section 0, but there are only 3 items in section 0 after the update'
I've reproduced issue with symbolicated logs:
I've tested a similar scenario in a sample application from my end, but I wasn't able to reproduce the problem. Please have a look at the attached project and provide more information about your setup so we can investigate it.
Would it be possible to share more information on the scenario in which you observe the exception? Is it similar to the one discussed earlier in this thread? Do you have a sample application which can be used to reproduce the behavior(even if it might require some time and testing on different devices from our side)? Did you have a look at the application Nikolay has attached? Do you observe any issues with it?
Any additional information will be appreciated.