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

Eto.HtmlRenderer memory leak on Linux GTK 3 #39

Open
LaineZ opened this issue Apr 3, 2021 · 0 comments
Open

Eto.HtmlRenderer memory leak on Linux GTK 3 #39

LaineZ opened this issue Apr 3, 2021 · 0 comments

Comments

@LaineZ
Copy link

LaineZ commented Apr 3, 2021

Setting Text property in HtmlRender component causes a memory leak and log message

Cairo.Surface is leaking, programmer is missing a call to Dispose
Allocated from:
   at System.Environment.get_StackTrace()
   at Cairo.CairoDebug.OnAllocated(IntPtr obj)
   at Cairo.Surface..ctor(IntPtr handle, Boolean owner)
   at Cairo.ImageSurface..ctor(Format format, Int32 width, Int32 height)
   at Eto.GtkSharp.Drawing.GraphicsHandler.CreateFromImage(Bitmap image)
   at Eto.Drawing.Graphics..ctor(Bitmap image)
   at TheArtOfDev.HtmlRenderer.Eto.Utilities.Utils.CreateGraphics()
   at TheArtOfDev.HtmlRenderer.Eto.HtmlPanel.PerformLayout()
   at TheArtOfDev.HtmlRenderer.Eto.HtmlPanel.set_Text(String value)
   at IRCCl.Core.MessageView..ctor() in /home/fulstop/projects/IRCCl/Core/MessageView.cs:line 23
   at IRCCl.Core.IRC..cctor() in /home/fulstop/projects/IRCCl/Core/IRC.cs:line 16
   at IRCCl.Windows.MainWindow..ctor() in /home/fulstop/projects/IRCCl/Windows/MainWindow.cs:line 37
   at Program.Main() in /home/fulstop/projects/IRCCl/Program.cs:line 10

OS: Void linux amd64

Eto.HtmlRenderer 0.3.0

Eto.Forms 2.5.10

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

1 participant