-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[CollectionView] Crash occurs when switching CollectionView.IsVisible right after setting ItemsSource #28194
Conversation
Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we include a test using the sample from #28162?
src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs
Outdated
Show resolved
Hide resolved
/rebase |
6917682
to
4b27dfe
Compare
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
… right after setting ItemsSource (dotnet#28194) * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Added a UI Test * Performance improvement * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Use foreach * Use to array
… right after setting ItemsSource (#28194) * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Added a UI Test * Performance improvement * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Update PropertyPropagationExtensions.cs * Use foreach * Use to array
I am experiencing this issue as well. I see this has been merged. Which release should I expect to see this land in? I see the milestone, but I don't see information on what the milestone ties into releases I expect to see in visual studio. |
Description of Change
The error occurs because the children's collection is modified while iterating over it. To fix this, we should iterate over a snapshot of the collection instead of the collection itself. The crash happened only on iOS and only when ItemSource is ObservableCollection
Issues Fixed
Fixes #28162