Open dcaponetti opened 1 week ago
From the data in the form I'm seeing some mixed signals. You indicate this is a new potential issue, but also that it worked well in version 8.0.91 SR9.1? Is this something that is happening since a recent update to .NET 9 RC1? Can you please confirm?
Also is this happening on Windows or other platforms too? What makes you think this is a memory leak in .NET MAUI and not your own code?
Its a bit hard to diagnose with the little code that is provided. Would you be able to put together a reproduction project, that would be very helpful.
Thanks
From the data in the form I'm seeing some mixed signals. You indicate this is a new potential issue, but also that it worked well in version 8.0.91 SR9.1? Is this something that is happening since a recent update to .NET 9 RC1? Can you please confirm?
Also is this happening on Windows or other platforms too? What makes you think this is a memory leak in .NET MAUI and not your own code?
Its a bit hard to diagnose with the little code that is provided. Would you be able to put together a reproduction project, that would be very helpful.
Thanks
Hi , thnaks a lot for you
From the data in the form I'm seeing some mixed signals. You indicate this is a new potential issue, but also that it worked well in version 8.0.91 SR9.1? Is this something that is happening since a recent update to .NET 9 RC1? Can you please confirm?
Also is this happening on Windows or other platforms too? What makes you think this is a memory leak in .NET MAUI and not your own code?
Its a bit hard to diagnose with the little code that is provided. Would you be able to put together a reproduction project, that would be very helpful.
Thanks
Thanks for your attention, it was my mistake to indicate that it worked with a previous version, in reality we noticed memory leak as soon as we migrated from System.drawings (no longer supported on linux) to Microstft.Maui.
The problem occurs only on Linux environments on Kubernetes cluster, on my development PC in Windows environments the memory is always correctly deallocated so I am quite sure that it does not derive from my code. In addition, analyzing the memory dump that I attached, you can see a significant amount of unmanaged memory that is never deallocated.
I thank you for any advice you can give me, if I can in the next few days I will try to create a simplified project that can reproduce the problem.
Daniel
Hello, I created a test project to reproduce the problem. I noticed that the memory leak is generated only in web api content with controller and addScoped service. I also tried with a simple web application and with a console application and the problem does not occur. This is the link to the project: https://github.com/dcaponetti/TestImageAPI
Thanks for any possible support.
Any update? @jfversluis @samhouts
Description
Good morning everyone, We use Microsoft.Maui.Graphics and Microsoft.Maui.Graphics.Skia (ver 8.0.91) to generate images containing text and black and white graphics.
Unfortunately a serious memory leak problem causes the pods running on Kubernetes to restart every 3/4 hours. I have included all the usings I could:
But the problem is not solved. I attach the dump file of MemoryDump.zip the memory executed directly on the K8 pod.
Any ideas? Thanks a lot.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.0-rc.1.24453.9
Is this a regression from previous behavior?
No, this is something new, Not sure, did not test other versions
Last version that worked well
8.0.91 SR9.1
Affected platforms
Windows, Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
No response
Did you find any workaround?
no
Relevant log output
No response