Skip to content

Memory leaking when (re-)drawing text #11

@d-buchmann

Description

@d-buchmann

Steps to reproduce

  1. Run ExampleBrowserGtk3
  2. Open "PlotControllerExamples/Show tracker without clicking"
  3. Move mouse to update the Tracker and observe the memory allocation (in taskmgr or top)

Platform: Window / Linux
.NET version: Core 3.1

Expected behaviour

Memory usage should basically stay constant.

Actual behaviour

Memory usage increases constantly.

This looks much like a memory leak in the drawing routines.
I let the DrawText / MeasureText methods in GraphicsRenderContext return immediately without drawing, then there was no more leakage to be observed.
On Linux (raspberry pi) the GUI crashed almost instantly when moving the mouse over the plot so it might also be some kind of race condition involved.
Supposedly the memory is leaking everytime text is drawn, but it is only observed when doing the redrawing very frequently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions