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

CollectionView is not currently being Garbage Collected (2) #21249

Closed
marco-skizza opened this issue Mar 16, 2024 · 1 comment
Closed

CollectionView is not currently being Garbage Collected (2) #21249

marco-skizza opened this issue Mar 16, 2024 · 1 comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 t/bug Something isn't working

Comments

@marco-skizza
Copy link

Description

Hi

Many thanks for your work on the following issue so far: #20710

Unfortunately, I'm still facing the memory leak on iOS - even with the latest nightly build 8.0.20-nightly.10316.

It seems, that the leak only occurs when using the CollectionView via Xaml:

    <CollectionView x:Name="MyCollectionView">
        <CollectionView.ItemTemplate>
            <DataTemplate>

                <Label Text="Test" />

            </DataTemplate>
        </CollectionView.ItemTemplate>
    </CollectionView>

And then in the code behind:

    public PageXamlLeak()
    {
        InitializeComponent();

        MyCollectionView.ItemsSource = new ObservableCollection<string> { "1", "2", "3" };
    }

When constructing the same control via a C# page, the leak doesn't occur.

I hope you can take a 2nd took at this memory leak.
Many Thanks!

Steps to Reproduce

  • run sample
  • click button to go to leaking Xaml page - and navigate back
  • do this several times: ~PageXamlLeak() called never gets logged
  • in contrast test the same with the C# page that is not leaking

Link to public reproduction project repository

https://github.com/marco-skizza/MauiCollectionView

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.3.1 on iPad mini 6

Did you find any workaround?

No

Relevant log output

No response

@drasticactions
Copy link
Contributor

I agree, I don't think this issue is fixed. I've reopened it and closing this one as a dupe.

@drasticactions drasticactions closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2024
@samhouts samhouts added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Aug 27, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants