iOS/Catalyst memory leak with CollectionView when CollectionChanged is used #16125
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
memory-leak 💦
Memory usage grows / objects live forever (sub: perf)
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
t/perf
The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)
Milestone
Description
This is the latest problem on the issue here: #14654
It can be illustrated with the test: jonathanpeppers@bbea059
When you replace an
ItemsSource
on iOS, in this way:It appears that the old items are not removed, the test fails with:
But passes on Windows & Android. The test also passes if you change this:
However, the sample app still leaks with the above change:
https://github.com/nacompllo/MemoryLeakEverywhere
I've not been successful in solving this one, but it seems good to write down what I found so far.
Steps to Reproduce
Run the test in: jonathanpeppers@bbea059
Or try the sample: https://github.com/nacompllo/MemoryLeakEverywhere
Link to public reproduction project repository
https://github.com/nacompllo/MemoryLeakEverywhere
Version with bug
8.0.0-preview.5.8529
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
All
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: