Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Please add a null check for....
I've been getting frequent crashes.
Sequence contains no elements
Xamarin.Forms.Platform.iOS.ListViewRenderer.UpdateItems(System.Collections.Specialized.NotifyCollectionChangedEventArgs e, System.Int32 section, System.Boolean resetWhenGrouped)
Xamarin.Forms.Platform.iOS.ListViewRenderer.OnCollectionChanged(System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
Thank you for reporting this!
That's odd, if the collection is empty I'm wondering why it is not returning here instead. Do you have a quick reproduction sample you can share? This way we can confirm where the crash is occurring and possibly create a UITest item to avoid in the future. Thanks!
Yes it is odd. I don't have a repo but I was able to consistently re-create it in a production app.
I prevented this error from continuing by wrapping a call in BeginInvokeOnMainThread (Forms) and awaiting that with a TaskCompletionSource. So I'm guessing it must have been a threading issue of some type.
Unfortunately, we’re unable to reproduce this report. If this issue is still occurring for you, please reopen this issue and attach a reproduction to the bug by starting with a clean Xamarin.Forms project adding just the code necessary to demonstrate the issue.
Here are some reproduction best practices: https://gist.github.com/jassmith/92405c300e54a01dcc6d