maui icon indicating copy to clipboard operation
maui copied to clipboard

net8 sr9 Win Platform Memory leak when multiple windows get closed

Open jingliancui opened this issue 1 year ago • 5 comments

Description

Beginning memory about 106M image

After open 100 windows about 503M image

After closed 100 windows about 456M image

Steps to Reproduce

Open the .sln by using vs2022 F5 to start debug the project Input a number 100 to the Entry Control Click the button "new windows" Observe the "Process Memory" part of the VS tool "Diagnostic Tools", the memory increase Click the button "Close all windows" Continue repeat step 4 to step 6

Link to public reproduction project repository

https://github.com/jingliancui/MAUIWinUIWinMemoryLeakIssue

Another native winui3 sampleapp, It looks like winui3 also have this issue WinUINativeSampleApp.zip

Version with bug

8.0.90 SR9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

jingliancui avatar Sep 17 '24 11:09 jingliancui

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Sep 17 '24 11:09 github-actions[bot]

This is https://github.com/dotnet/maui/wiki/Memory-Leaks good resource to read if you haven't yet. It might help you narrow down what is causing the leak.

Anyway, it reminds me of https://github.com/microsoft/microsoft-ui-xaml/issues/9063. If it sounds like your issue, please upvote it.

MartyIX avatar Sep 17 '24 15:09 MartyIX

This is https://github.com/dotnet/maui/wiki/Memory-Leaks good resource to read if you haven't yet. It might help you narrow down what is causing the leak.

Anyway, it reminds me of https://github.com/microsoft/microsoft-ui-xaml/issues/9063. If it sounds like your issue, please upvote it.

Hi @MartyIX , it looks like similar. Also up voted. This memory defect have been impacted my one product. Not sure is it the winui3 issue or MAUI issue.

jingliancui avatar Sep 17 '24 16:09 jingliancui

This issue has been verified using Visual Studio 17.12.0 Preview 2.0(8.0.90 & 8.0.80). Can repro this issue at windows platform.

ninachen03 avatar Sep 18 '24 10:09 ninachen03

Another native winui3 sampleapp, It looks like winui3 also have this issue WinUINativeSampleApp.zip

jingliancui avatar Sep 21 '24 14:09 jingliancui