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

[Windows] Disconnect events and dispose the Content before close the Window #10886

Closed
wants to merge 2 commits into from

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Disconnect events and dispose the Content before close the Window.

Issues Fixed

Fixes #10029

@jsuarezruiz jsuarezruiz added t/bug Something isn't working platform/windows 🪟 labels Oct 25, 2022
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to break Controls.DeviceTests , seems windows don't close anymore.

Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit sledgehammer for what might actually be leaking. For example, I really doubt that local event subscriptions on MauiWinUIWindow would cause a memory leak. I suspect there's something very small we can unhook in order to achieve the same result. Can we use the profiler to see specifically what is still pinned so the GC can't collect?

@Eilon Eilon added the legacy-area-perf Startup / Runtime performance label Oct 25, 2022
@jsuarezruiz
Copy link
Contributor Author

jsuarezruiz commented Nov 3, 2022

To help focus and move faster, we're going to have fewer open PRs and focus on the ones we'll be working on in each release. This PR require more work or event think in a better approach and for that reason is not included in the next release so I close it for now. I will reopen it and adapt to changes later.

@jsuarezruiz jsuarezruiz closed this Nov 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2023
@Eilon Eilon added the t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy-area-perf Startup / Runtime performance platform/windows 🪟 t/bug Something isn't working t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-window memory leak
4 participants