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

Memory leak reloading list items on Windows #18030

Open
sjorsmiltenburg opened this issue Oct 15, 2023 · 3 comments
Open

Memory leak reloading list items on Windows #18030

sjorsmiltenburg opened this issue Oct 15, 2023 · 3 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView legacy-area-perf Startup / Runtime performance memory-leak 💦 Memory usage grows / objects live forever (sub: perf) platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)
Milestone

Comments

@sjorsmiltenburg
Copy link

sjorsmiltenburg commented Oct 15, 2023

Description

The most important problem I face with my app is that it keep increasing it's memory usage.
At least one of the causes seem to be that my app has a collectionview that is bound to a grouped collection that needs it's
items to be reset multiple times (every time you come back to the screen).

I'm using the latest 8.0.0-rc.9373

I have tried to make a test sample that illustrates the problem.

This is a screenshot of the memory increase of my own application, not the test application.
image

Steps to Reproduce

start bugs project
click on bug8 button
keep pressing the reload button and watch memory increase.

Link to public reproduction project repository

https://github.com/sjorsmiltenburg/maui_bugs.git

Version with bug

7.0.96

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

8.0.0-rc.2.9373

Affected platforms

Windows

Affected platform versions

Windows

Did you find any workaround?

no

Relevant log output

No response

@sjorsmiltenburg sjorsmiltenburg added the t/bug Something isn't working label Oct 15, 2023
@cgp1976
Copy link

cgp1976 commented Oct 16, 2023

I am having these issues as well and it's not only for collectionview. After ContentPage/ContentView loaded, basically adding/deleting/replacing control object will increase the memory and they don't drop till you quit the app.

use case - grid control
step 1 - on the page, user click on button to add items (any child element) to the grid then remove all.
setp 2 = repeat step 1 for sometimes and call GC.Collect().

@jsuarezruiz jsuarezruiz added platform/windows 🪟 memory-leak 💦 Memory usage grows / objects live forever (sub: perf) labels Oct 16, 2023
@Eilon Eilon added the legacy-area-perf Startup / Runtime performance label Oct 17, 2023
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 4, 2024
@Zhanglirong-Winnie
Copy link

Verified this issue with Visual Studio 17.10.0 Preview 1. Can repro on windows platform with sample project.
https://github.com/sjorsmiltenburg/maui_bugs.git
image

@Eilon Eilon added the t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf) label May 10, 2024
@PureWeen PureWeen added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label May 31, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 5, 2024
@sjorsmiltenburg
Copy link
Author

sjorsmiltenburg commented Jun 11, 2024

I have upgraded my sample project to use the latest net 9.0 preview and maui preview, but the memory leak still occurs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView legacy-area-perf Startup / Runtime performance memory-leak 💦 Memory usage grows / objects live forever (sub: perf) platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)
Projects
None yet
Development

No branches or pull requests

6 participants