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



tags 291480 + confirmed upstream
forwarded 291480 gtk-perl-list gnome org
thanks, you wonderful Debian BTS!

Hi there,

Jeroen Nijhof filed a bug against the Debian package of Gtk2::GladeXML,
i could reproduce this with the 1.003 release. Could you please look
into the problem? Thanks.

Marc

--- Begin Message ---
Package: libgtk2-gladexml-perl
Version: 1.001-1
Severity: normal

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

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

Jeroen Nijhof


---------------------- kww.pl ---------------------
#!/usr/bin/perl -w

use strict;
use warnings;

use Gtk2 '-init'; # auto-initializes Gtk2
use Gtk2::GladeXML;

my $glade;

$glade = Gtk2::GladeXML->new("kww.glade");
---------------------- end of kww.pl ---------------------

---------------------- kww.glade -------------------------
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd";>

<glade-interface>
<requires lib="gnome"/>
<requires lib="bonobo"/>

<widget class="GnomeApp" id="app1">
  <property name="visible">True</property>
  <property name="title" translatable="yes">Viewer</property>
  <property name="type">GTK_WINDOW_TOPLEVEL</property>
  <property name="window_position">GTK_WIN_POS_NONE</property>
  <property name="modal">False</property>
  <property name="resizable">True</property>
  <property name="destroy_with_parent">False</property>
  <property name="decorated">True</property>
  <property name="skip_taskbar_hint">False</property>
  <property name="skip_pager_hint">False</property>
  <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
  <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
  <property name="enable_layout_config">True</property>

  <child internal-child="dock">
    <widget class="BonoboDock" id="bonobodock1">
      <property name="visible">True</property>
      <property name="allow_floating">True</property>

      <child>
        <widget class="GtkHBox" id="hbox1">
          <property name="visible">True</property>
          <property name="homogeneous">False</property>
          <property name="spacing">0</property>

          <child>
            <widget class="GtkLabel" id="label1">
              <property name="visible">True</property>
              <property name="label" translatable="yes">label1</property>
              <property name="use_underline">False</property>
              <property name="use_markup">False</property>
              <property name="justify">GTK_JUSTIFY_LEFT</property>
              <property name="wrap">False</property>
              <property name="selectable">False</property>
              <property name="xalign">0.5</property>
              <property name="yalign">0.5</property>
              <property name="xpad">0</property>
              <property name="ypad">0</property>
            </widget>
            <packing>
              <property name="padding">0</property>
              <property name="expand">False</property>
              <property name="fill">False</property>
            </packing>
          </child>

          <child>
            <widget class="GtkVBox" id="vbox1">
              <property name="visible">True</property>
              <property name="homogeneous">False</property>
              <property name="spacing">0</property>

              <child>
                <widget class="GtkLabel" id="label2">
                  <property name="visible">True</property>
                  <property name="label" translatable="yes">label2</property>
                  <property name="use_underline">False</property>
                  <property name="use_markup">False</property>
                  <property name="justify">GTK_JUSTIFY_LEFT</property>
                  <property name="wrap">False</property>
                  <property name="selectable">False</property>
                  <property name="xalign">0.5</property>
                  <property name="yalign">0.5</property>
                  <property name="xpad">0</property>
                  <property name="ypad">0</property>
                </widget>
                <packing>
                  <property name="padding">0</property>
                  <property name="expand">False</property>
                  <property name="fill">False</property>
                </packing>
              </child>
            </widget>
            <packing>
              <property name="padding">0</property>
              <property name="expand">True</property>
              <property name="fill">True</property>
            </packing>
          </child>
        </widget>
      </child>
    </widget>
    <packing>
      <property name="padding">0</property>
      <property name="expand">True</property>
      <property name="fill">True</property>
    </packing>
  </child>
</widget>

</glade-interface>

------------------ end of kww.glade -------------------------


--- End Message ---

Attachment: pgpjYL1yRSgxJ.pgp
Description: PGP signature



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