[pygtk] Memory leak in gtk.ProgressBar.set_text()

Steven Snyder series8217 at hotmail.com
Fri Mar 8 08:52:05 WST 2013


I discovered a massive memory leak in my program and narrowed it down to gtk.ProgressBar.set_text(). The following code leaks 2 MB/sec on my system. Fun!  import gtk

  progress_window = gtk.Window(gtk.WINDOW_TOPLEVEL)
  progress_bar = gtk.ProgressBar()
  progress_window.add(progress_bar)
  progress_window.show_all()
  while True:
      progress_bar.set_text("xxx")
      while gtk.events_pending():
          gtk.main_iteration()I already reported it as a bug last year but there hasn't been any other activity:https://bugzilla.gnome.org/show_bug.cgi?id=681934I'd like to help squash this bug if possible. Any help is appreciated, whether it be for finding the bug, or developing a temporary workaround.Thanks!-- Steven T. Snyder | http://www.steventsnyder.com 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20130307/92e957a3/attachment.html>


More information about the pygtk mailing list