[CollectionView] Crash occurs when switching CollectionView.IsVisible right after setting ItemsSource #28194
Merged
PureWeen merged 9 commits intodotnet:mainfrom Mar 7, 2025
Merged
Conversation
Contributor
|
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. |
pictos
reviewed
Mar 6, 2025
src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs
Outdated
Show resolved
Hide resolved
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
previously requested changes
Mar 6, 2025
Contributor
jsuarezruiz
left a comment
There was a problem hiding this comment.
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
Member
|
/rebase |
6917682 to
4b27dfe
Compare
|
Azure Pipelines successfully started running 3 pipeline(s). |
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
pictos
reviewed
Mar 6, 2025
src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs
Outdated
Show resolved
Hide resolved
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
PureWeen
approved these changes
Mar 6, 2025
bhavanesh2001
pushed a commit
to bhavanesh2001/maui
that referenced
this pull request
Mar 7, 2025
… 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
rmarinho
pushed a commit
that referenced
this pull request
Mar 11, 2025
… 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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