maui
maui copied to clipboard
net8 sr9 Win Platform Release Mode Memory leak when multiple windows get closed
Description
1.App will crash in release mode when the memory increase more than 300M which is shown in task manager.
2.1Additional info for publish debug app: App will crash after 3 time to do : new 100 windows, then close all. Situation better then Release mode, but not better, due to my laptop has 50G Ram, but debug app will crash in about 400M
2.2Additional info for debug using VS:
In the 3rd time to do : new 100 windows, then close all, VS show this
Steps to Reproduce
1.Publish the release app:
dotnet publish -f net8.0-windows10.0.19041.0 -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true
2.Open the APP
3.Input a number 50 to the Entry Control
4.Click the button "new windows"
5.Click the button "Close all windows"
Repeat step3 to step5 about 3 time, the app will crash
Link to public reproduction project repository
https://github.com/jingliancui/MAUIWinUIWinMemoryLeakIssue
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