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 87490 - Segfaults on exit when using gtkhtml2
Segfaults on exit when using gtkhtml2
Status: RESOLVED FIXED
Product: gnome-python-extras
Classification: Deprecated
Component: gtkhtml2
unspecified
Other Linux
: Low normal
: ---
Assigned To: Python bindings maintainers
Python bindings maintainers
: 98830 (view as bug list)
Depends on: 87567
Blocks:
 
 
Reported: 2002-07-06 11:31 UTC by Martin Sjögren
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Sjögren 2002-07-06 11:31:31 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()
----
Comment 1 James Henstridge 2002-07-07 14:33:38 UTC
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 ...
Comment 2 James Henstridge 2002-07-07 14:38:16 UTC
I wonder if this is a gtkhtml2 bug?
Comment 3 James Henstridge 2002-07-11 02:06:24 UTC
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.
Comment 4 James Henstridge 2002-07-13 05:36:05 UTC
will be fixed when it is fixed.
Comment 5 James Henstridge 2002-11-18 16:20:31 UTC
*** Bug 98830 has been marked as a duplicate of this bug. ***
Comment 6 James Henstridge 2002-11-20 13:41:22 UTC
mass reassign of open pygtk and gnome-python bugs.
Comment 7 Johan (not receiving bugmail) Dahlin 2002-12-09 12:02:19 UTC
bug 87567 is now fixed, closing.