After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 98830 - gtkhtml2.Document produces segfault at exit
gtkhtml2.Document produces segfault at exit
Status: RESOLVED DUPLICATE of bug 87490
Product: gnome-python-extras
Classification: Deprecated
Component: gtkhtml2
unspecified
Other other
: Normal normal
: ---
Assigned To: James Henstridge
James Henstridge
Depends on:
Blocks:
 
 
Reported: 2002-11-17 23:52 UTC by ÉRDI Gergõ
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ÉRDI Gergõ 2002-11-17 23:52:40 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)
Comment 1 James Henstridge 2002-11-18 16:20:37 UTC
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 ***