Skip to content

GPU Accelerated SKSurface Memory Leaks on Integrated HD Graphics #576

Open
@mclose90

Description

@mclose90

The the issue only occurs when my laptop is attempting to run my application using Intels HD Graphics 520 to render.

var surface = SKSurface.Create(_skiaGlControl.GRContext, false, new SKImageInfo(Width, Height));
//var surface = SKSurface.Create(new SKImageInfo(Width, Height));
_skiaMain.Compose(surface.Canvas, plane);
surface.Canvas.Flush();
_skiaMain.DisplayImages[plane] = surface.Snapshot();
surface.Dispose();
_skiaMain.DisplayPlaneRecompose[plane] = false;

Every time I run through this section of code visual studios shows 30-40MB step ups in memory usage until eventually it crashes. I have desperately used garbage collection as a means to make the program run longer.

image

VS bug #754180

Metadata

Metadata

Assignees

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions