GNOME Bugzilla – Bug 98830
gtkhtml2.Document produces segfault at exit
Last modified: 2004-12-22 21:47:04 UTC
The following code segfaults when the app finishes: document = "<html><body><h1>Hello World!</h1></body></html>" htmldoc = gtkhtml2.Document () htmldoc.open_stream ("text/html") htmldoc.write_stream (document) htmldoc.close_stream () The error message is: (htmltest2.py:1143): GLib-GObject-CRITICAL **: file gobject.c: line 1290 (g_object_ref): assertion `object->ref_count > 0' failed Segmentation fault (you can see that the bug is when the app finishes by either entering a GTK+ loop or using a timer or whatever)
This is a duplicate of bug 87490. The problem is actually in gtkhtml2 (not pygtk), so you may want to track bug 87567. *** This bug has been marked as a duplicate of 87490 ***