Re: Bug#291480: libgtk2-gladexml-perl: assertion 'G_IS_OBJECT' fails and program segfaults




On Jan 22, 2005, at 4:47 PM, Jeroen Nijhof wrote:

On Jan 21, 2005, at 3:49 PM, Marc 'HE' Brockschmidt wrote:

If I try to load the following glade file, kww.glade, with the
following perl script, kww.pl, I get a segfault:

GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get):
assertion `G_IS_OBJECT (object)' failed at ./viewer.pl line 34.
GLib-GObject-CRITICAL **: file gobject.c: line 1222 (g_object_get):
assertion `G_IS_OBJECT (object)' failed at ./viewer.pl line 34.
Segmentation fault

I hate to say it, but it's not our bug; it's a programming error in the
perl script, and possibly lack of robustness in libgnomeui.

Actually, i do think that libgnomeui should be able to detect and warn about this. The messages that precede the crash are rather obtuse.

http://bugzilla.gnome.org/show_bug.cgi?id=164948


So I suggest the problem might partly be in the documentation for Gtk2::GladeXML -- it says

   This extension module binds libglade to Perl so you can create and
   manipulate user interfaces in Perl code in conjunction with Gtk2 and
   even Gnome2

-- but it does not mention that the SYNOPSIS example needs expanding for a Gnome project.

How's this?  (attached)  Adds to the synopsis and the faq.

Attachment: docs.patch
Description: Binary data



--
elysse (in labor): is the head the biggest part?
midwife: yes.
elysse: oh, good.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]