-
Notifications
You must be signed in to change notification settings - Fork 97
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
Possible memory leak in ruby-gnome2 gtk2 3.2.7 #1230
Comments
Thanks for your report. |
It is a bit hard to prepare all necessary gems from each bisect revision (and it's a bit difficult to check VSZ usage in short priod), but anyway I've tested it manually:
I.e. The possible commit is either 438be7c or 2e1ce20 ? (but I'm afraid there were some botch in my tests) |
3.2.7 + reverting 438be7c seems to fix the leak. |
Thanks. The following script reproduces this case. #!/usr/bin/env ruby
require "pango"
i = 0
loop do
i += 1
context = Pango::Context.new
context.set_shape_renderer do
end
GC.start
if (i % 10).zero?
p(ObjectSpace.each_object(Pango::Context) {})
end
end |
Can you try 8816bbd ? |
After ruby-gnome2 3.2.7 updates, memory usage of mikutter increased significantly.
I've measured VSZ (virtual size in Kbytes) of ps(1)'s output using two VirtualBox VMs which run mikutter with the same environments/settings (NetBSD/i386 8.0_RC1 + pkgsrc etc.) except ruby-gnome2 versions (3.2.5 vs 3.2.7). The result shows memory usage of 3.2.7 contiguously increased per every tweet:
Note mikutter requires the following ruby-gnome2 gems as dependencies:
atk
cairo-gobject
gdk_pixbuf2
gio2
glib2
gobject-introspection
gtk2
pango
More details are in the following mikutter's redmine ticket:
https://dev.mikutter.hachune.net/issues/1260#note-8
The text was updated successfully, but these errors were encountered: