GNOME Bugzilla – Bug 87490
Segfaults on exit when using gtkhtml2
Last modified: 2004-12-22 21:47:04 UTC
The following script segfaults on exit with a gnome-python from CVS, using python2.2. It works fine, until it exits :-) (foo.py:2713): GLib-GObject-CRITICAL **: file gobject.c: line 1292 (g_object_ref): assertion `object->ref_count > 0' failed Segmentation fault ---- import gtkhtml2, gtk doc = gtkhtml2.Document() doc.open_stream('text/html') doc.write_stream(file('/tmp/foo.html').read()) doc.close_stream() w = gtk.Window() w.connect('destroy', gtk.mainquit) view = gtkhtml2.View() view.set_document(doc) w.add(view) w.show_all() gtk.mainloop() ----
A smaller test case that causes this bug is: import gtkhtml2 doc = gtkhtml2.Document() doc.open_stream('text/html') doc.write_stream(file('/tmp/foo.html').read()) doc.close_stream() del doc Still looking for the cause ...
I wonder if this is a gtkhtml2 bug?
Setting priority to low. Not much I can do about this from the python end. This problem will go away when bug 87567 gets fixed.
will be fixed when it is fixed.
*** Bug 98830 has been marked as a duplicate of this bug. ***
mass reassign of open pygtk and gnome-python bugs.
bug 87567 is now fixed, closing.