maui
maui copied to clipboard
net8 sr9 Win Platform Memory leak when multiple windows get closed
Description
Beginning memory about 106M
After open 100 windows about 503M
After closed 100 windows about 456M
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
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:
- Memory leak when Windows multiple window get closed (#24140), similarity score: 0.89
- [Windows] Window Memory Leak (#22973), similarity score: 0.83
- [Windows] MauiWinUIWindow leak (#24102), similarity score: 0.80
- Win platform WebView cannot be release after its parent window get close (#22972), similarity score: 0.78
- Multi-window memory leak (#10029), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
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.
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.
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.
Another native winui3 sampleapp, It looks like winui3 also have this issue WinUINativeSampleApp.zip