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

[BUG] Canvas.DrawPath Cause Memory Leak on Windows 11 #2848

Open
1 task done
xiechuanjie opened this issue Apr 27, 2024 · 1 comment
Open
1 task done

[BUG] Canvas.DrawPath Cause Memory Leak on Windows 11 #2848

xiechuanjie opened this issue Apr 27, 2024 · 1 comment
Labels

Comments

@xiechuanjie
Copy link

xiechuanjie commented Apr 27, 2024

Description

Last bug Report <DrawPath cause Memory Leak on GPU context #2660> had fixed on Windows 10, But not fixed on windows 11.
When the program run in windows 10, the momery usage is constant, but the same program run in windows 11, the memory increase linearly, when commented the canvas.DrawPath line out, momery usage is constant again. The SkiaSharp Version 2.88.8 is used.

Code

// some C# code here
using (var paintFill = new SKPaint { IsAntialias = true })
{
        paintFill.StrokeWidth = 0;
        paintFill.Style = SKPaintStyle.Fill;
        paintFill.PathEffect = null;
        paintFill.Shader = null;
        paintFill.Color = fillColor.ToSkia(opacity);
        canvas.DrawPath(path, paintFill); //this line cause memory leak in GPU context on Windows 11
}

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

2.88.3 (Current)

Last Known Good Version of SkiaSharp

2.88.2 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

Windows 11

Devices

x64 desktop

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mattleibow
Copy link
Contributor

/similarissues

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

No branches or pull requests

2 participants