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



Hello,

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.
 
[...]

Adding these two lines to the example kww.pl:

      use Gnome2;
      Gnome2::Program->init ('test', 'foo');

solved the problem on my machine.

And it solves it for me as well. 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.

(with the bigger program/glade file this is distilled from, it used to 
work, before updates)

What sort of updates?
Updates to later versions of the Debian packages, amongst others from
Gnome 2.4 or 2.6 to 2.8.

Jeroen Nijhof



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