Skip to content
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

Stack overflow in ListView when changing SelectedItem to and from invalid value #2797

Closed
4 of 12 tasks
davidjohnoliver opened this issue Mar 12, 2020 · 0 comments · Fixed by #2799
Closed
4 of 12 tasks
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@davidjohnoliver
Copy link
Contributor

How to reproduce it (as minimally and precisely as possible)

			var source = Enumerable.Range(0, 10).ToArray();
			var list = new ListView { ItemsSource = source };
			list.SelectedItem = 3;
			Assert.AreEqual(list.SelectedItem, 3);
			source[3] = 13;
			list.SelectedItem = 17;

Current behavior

Crashes with stack overflow from infinitely ping-ponging invalid SelectedItems

Expected behavior

Not so much crash

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Windows
  • Build tasks
  • Solution Templates

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Internal issue: https://nventive.visualstudio.com/Umbrella/_workitems/edit/176790

@davidjohnoliver davidjohnoliver added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant