Open PickleBurg opened 1 month ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
This issue has been verified using Visual Studio 17.11.0 Preview 3 (8.0.70 & 8.0.21). Can repro it.
Description
The issue.
While running my application, I get a memory Leak When updating Image Source from my Mvvm View model using the [Observable Property].
I use memory Stream. to create an Image Source for the Observable property and this image is updated roughly 60 times per second.
In the Below images, shows the Action<Object, Microsoft.Maui.Controls.Internals.ResourcesChangedEventArgs> which will continue to climb until the application runs out of memory.
I have Not been able to find a work around or a solution to Clean the memory out of the binding context of the page.
Steps to Reproduce
1: Clone The following Repo: https://github.com/PickleBurg/ImageSource-Memory-Leak
2: Run application
3: check Diagnostic tools and Process Memory usage.
Link to public reproduction project repository
https://github.com/PickleBurg/ImageSource-Memory-Leak
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net8.0-windows10.0.19041.0
Did you find any workaround?
Unable to find a solution
Relevant log output
No response