Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak on DrawPath #70

Closed
radev8 opened this issue Mar 30, 2021 · 1 comment
Closed

Memory Leak on DrawPath #70

radev8 opened this issue Mar 30, 2021 · 1 comment

Comments

@radev8
Copy link

radev8 commented Mar 30, 2021

I am experiencing an issue which looks like a memory lean when I scale a SVG using a matrix. The sample application starts at about 70MB and then nearly doubles as you resize the app. The resize event triggers the redraw.

Steps to reproduce:

run the project
Resize the app and drag so the app is always resizing
I have attached a screenshot of the memory usage.

This project is a cut down version of a larger project which draws more objects and it grows by hundreds of megabytes by only resizing.

Taking snapshots was not that helpful as it said the app grew by a few bytes but it clearly grew by lots more.

Here is a copy of the sample app.
Leak.zip

I was previously using the SkiaSharp.Svg Version="1.60.0" library and was experiencing the same issue.

I would be interested in some guidance if this is my issue or something going on in the Svg.Skia Library.

@radev8 radev8 changed the title Memory Leak on DrawPicture with Matrix and setting Scale factor Memory Leak on DrawPath Apr 5, 2021
@wieslawsoltes
Copy link
Owner

It's probably issue in SkiaSharp itself Svg.Skia is using SKPath same as SkiaSharp.Svg. All resource are disposed correctly during runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants