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 using OxyPlot --> Canvas? #2224

Closed
olfk opened this issue Jan 7, 2019 · 1 comment
Closed

Memory Leak using OxyPlot --> Canvas? #2224

olfk opened this issue Jan 7, 2019 · 1 comment
Assignees

Comments

@olfk
Copy link

olfk commented Jan 7, 2019

I observe strange behavior when trying to use OxyPlot. There seems to be a memory leak.

The example is built against Avalonia 0.6.1. It works fine. Memory usage goes up initially and then stays constant.

Now try to convert it to Avalonia 0.7.0. PixelWidth / PixelHeight has to be replaced by PixelSize struct in order to build. I did this on my fork.

  • Build https://github.com/olfk/oxyplot-avalonia (or update nuget packages to 0.7.0 and do small fixes to compile)
  • Run AvaloniaExamples, select 1st item AlignedAxesDemo
  • Resize the window several times
  • Watch memory consumption

With Avalonia 0.7.0 Memory usage increases with every redraw of the window.

I know that might be caused by OxyPlot. But the code is 99% identical (just the Bitmap PixelSize thing that changed), and does not have a memory leak with 0.6.1.

See also #2198
Can this be related to Canvas oder Rendering in general?

@maxkatz6
Copy link
Member

Oxyplot is maintained in this repository https://github.com/oxyplot/oxyplot-avalonia

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

No branches or pull requests

3 participants