Re: Glib::Object::Subclass bug? or Misunderstanding?



muppet wrote:

On Mar 19, 2006, at 5:07 PM, James Muir wrote:

I apologize for the posting error. In my attempt to get to the essence of the problem I went too far. Here's the simple example with the $self->{$param_name} = $newval in place. Now the get -- still -- fails, though I wouldn't have expected it to do so. If I uncomment the GET_PROPERTY in the example below all is well, but I would have expected the example below to work without it.

I'm using libgnomecanvas 2.10.2 and Gtk+2 2.8.11

Thanks for any help you can offer on this matter. Jaap Karssenberg has reported problems to me with the software I sent him after he upgraded his machine. So it's not just me that's having troubles after an upgrade. I'm trying to understand what's going wrong so I can fix this problem.

What upgrade was it? Was glib-2.0 upgraded without rebuilding Glib? There was a rash of "bugs" recently related to botched upgrades...

I can't reproduce this. I've tried

- Gnome2::Canvas 1.002.
- libgnomecanvas 2.6.0
- libgnomecanvas 2.11.1

- Glib 1.105
- Glib 1.120
- glib 2.4.8
- glib 2.10.2
Another error in communication on my part. I performed a clean install of Zenwalk 2.2.

I tried inserting the default GET_PROPERTY into the modules that use Glib::Object::Subclass and I got further. Some objects were displayed on the canvas, but I'm now getting:

*** unhandled exception in callback:
*** Can't locate object method "get_default_value" via package "Glib::Param::Boxed" at ../lib/Gtk2/Ex/MindMapView/Item.pm line 227.
*** ignoring at example4.pl line 68.

and also I ran the Glib and Gtk2 regression tests. It looks to me like the "f.t" Glib test is confirming that I have problem with Glib::Object::Subclass. Maybe you can make more of it. Here's the Glib test results:

t/1........................ok
t/2........................ok
t/3........................ok
t/4........................ok
t/5........................ok
t/6........................ok
t/7........................ok
t/8........................ok
t/9........................ok
t/a........................ok
t/b........................ok
t/c........................ok
t/d........................ok
t/e........................ok
t/f........................
# Failed test 'and they have values'
# in t/f.t at line 111.
# Structures begin differing at:
# $got->[0] = undef
# $expected->[0] = 'Joe'

# Failed test 'and they have values'
# in t/f.t at line 168.
# Structures begin differing at:
# $got->[0] = undef
# $expected->[0] = 'Joe'
# Looks like you failed 2 tests of 42.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 13, 42
Failed 2/42 tests, 95.24% okay
t/filename.................ok
t/g........................ok
t/signal_emission_hooks....ok
t/signal_query.............ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/f.t 2 512 42 2 4.76% 13 42
Failed 1/19 test scripts, 94.74% okay. 2/659 subtests failed, 99.70% okay.



and here's the Gtk2 tests:


t/00.Gtk2....................ok
t/01.GtkWindow...............ok
t/02.GtkContainer............ok
t/Gdk........................ok
t/GdkColor...................ok
t/GdkCursor..................ok
t/GdkDisplay.................ok
t/GdkDisplayManager..........ok
t/GdkDnd.....................ok
1/20 unexpectedly succeeded
t/GdkDrawable................ok
1/11 skipped: get_image returned undef, skipping draw_image
t/GdkEvent...................ok
t/GdkGC......................ok
t/GdkInput...................ok
t/GdkKeys....................ok
t/GdkPango...................ok
t/GdkPixbuf..................ok
t/GdkPixbufLoader............ok
t/GdkPixmap..................ok
t/GdkProperty................ok
t/GdkRegion..................ok
t/GdkRgb.....................ok
t/GdkScreen..................ok
t/GdkSelection...............ok
t/GdkVisual..................ok
t/GdkWindow..................ok
t/GdkX11.....................ok
t/GtkAboutDialog.............GLib-GObject-CRITICAL **: g_boxed_copy: assertion `src_boxed != NULL' failed at t/GtkAboutDialog.t line 121. GLib-GObject-CRITICAL **: g_boxed_copy: assertion `src_boxed != NULL' failed at t/GtkAboutDialog.t line 124.
ok
t/GtkAccelGroup..............ok
t/GtkAccelLabel..............ok
t/GtkAccelMap................ok
t/GtkAction..................ok
t/GtkActionGroup.............ok
t/GtkAdjustment..............ok
t/GtkAlignment...............ok
t/GtkArrow...................ok
t/GtkAspectFrame.............ok
t/GtkBin.....................ok
t/GtkBox.....................ok
t/GtkButton..................ok
t/GtkButtonBox...............ok
t/GtkCalendar................ok
t/GtkCellEditable............ok
t/GtkCellLayout..............ok
t/GtkCellRenderer............ok
t/GtkCellRendererCombo.......ok
t/GtkCellRendererPixbuf......ok
t/GtkCellRendererProgress....ok
t/GtkCellRendererText........ok
t/GtkCellRendererToggle......ok
t/GtkCellView................ok
t/GtkCheckButton.............ok
t/GtkCheckMenuItem...........ok
t/GtkClipboard...............ok
t/GtkColorButton.............ok
t/GtkColorSelection..........ok
t/GtkColorSelectionDialog....ok
t/GtkCombo...................ok
t/GtkComboBox................ok
t/GtkComboBoxEntry...........ok
t/GtkCurve...................ok
t/GtkDialog..................ok
t/GtkDnd.....................ok
t/GtkDrawingArea.............ok
t/GtkEditable................ok
t/GtkEntry...................ok
t/GtkEntryCompletion.........ok
t/GtkEventBox................ok
t/GtkExpander................ok
t/GtkFileChooser.............Gtk-WARNING **: Could not find the icon 'application-x-troff'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases at /usr/lib/perl5/site_perl/5.8.8/i486-linux/Gtk2/TestHelper.pm line 80.
ok
9/44 unexpectedly succeeded
t/GtkFileChooserButton.......Gtk-WARNING **: Could not find the icon 'stock_unknown'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases at t/GtkFileChooserButton.t line 13.
dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/GtkFileChooserDialog.......ok
t/GtkFileChooserWidget.......ok
t/GtkFileFilter..............ok
t/GtkFileSelection...........ok
t/GtkFixed...................ok
t/GtkFontButton..............ok
t/GtkFontSelection...........ok
t/GtkFrame...................ok
t/GtkGC......................ok
t/GtkGammaCurve..............ok
t/GtkHBox....................ok
t/GtkHButtonBox..............ok
t/GtkHPaned..................ok
t/GtkHRuler..................ok
t/GtkHScale..................ok
t/GtkHScrollbar..............ok
t/GtkHSeparator..............ok
t/GtkHandleBox...............ok
t/GtkIconFactory.............ok
t/GtkIconTheme...............Gtk-WARNING **: Could not find the icon 'stock_edit'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases at t/GtkIconTheme.t line 24.
ok
6/16 skipped: various reasons
t/GtkIconView................ok
t/GtkImage...................ok
t/GtkImageMenuItem...........ok
t/GtkInputDialog.............ok
t/GtkInvisible...............ok
t/GtkItemFactory.............ok
t/GtkLabel...................ok
t/GtkLayout..................ok
t/GtkListStore...............ok
t/GtkMenu....................ok
t/GtkMenuBar.................ok
t/GtkMenuItem................ok
t/GtkMenuShell...............ok
t/GtkMenuToolButton..........ok
t/GtkMessageDialog...........ok
t/GtkMisc....................ok
t/GtkNotebook................ok
t/GtkObject..................ok
t/GtkOptionMenu..............ok
t/GtkPaned...................ok
54/59 unexpectedly succeeded
t/GtkProgressBar.............ok
t/GtkRadioAction.............ok
t/GtkRadioButton.............ok
t/GtkRadioMenuItem...........ok
t/GtkRadioToolButton.........ok
t/GtkRange...................ok
t/GtkRc......................ok
t/GtkRuler...................ok
t/GtkScale...................ok
t/GtkScrolledWindow..........ok
t/GtkSelection...............ok
t/GtkSeparatorMenuItem.......ok
t/GtkSeparatorToolItem.......ok
t/GtkSimpleList..............ok
t/GtkSimpleMenu..............ok
t/GtkSizeGroup...............ok
t/GtkSocket-GtkPlug..........ok
t/GtkSpinButton..............ok
t/GtkStatusBar...............ok
t/GtkStock...................ok
t/GtkStyle...................ok
t/GtkTable...................ok
t/GtkTearoffMenuItem.........ok
t/GtkTextBuffer..............ok
t/GtkTextChildAnchor.........ok
t/GtkTextIter................ok
t/GtkTextMark................ok
t/GtkTextTag.................ok
t/GtkTextTagTable............ok
t/GtkTextView................ok
t/GtkToggleAction............ok
t/GtkToggleButton............ok
t/GtkToggleToolButton........ok
t/GtkToolButton..............ok
t/GtkToolItem................ok
t/GtkToolbar.................ok
t/GtkTooltips................ok
t/GtkTreeModel...............ok
t/GtkTreeModelFilter.........ok
t/GtkTreeModelIface..........ok
t/GtkTreeModelSort...........ok
t/GtkTreeSelection...........ok
t/GtkTreeSortable............ok
t/GtkTreeStore...............ok
t/GtkTreeView-Dnd............skipped
all skipped: how do we simulate a drag
t/GtkTreeView................dubious
Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 112-137
Failed 26/137 tests, 81.02% okay
t/GtkUIManager...............ok
t/GtkVBox....................ok
t/GtkVButtonBox..............ok
t/GtkVPaned..................ok
t/GtkVRuler..................ok
t/GtkVScale..................ok
t/GtkVScrollbar..............ok
t/GtkVSeparator..............ok
t/GtkViewport................ok
t/GtkWidget..................ok
t/PangoAttributes............ok
t/PangoContext...............ok
t/PangoFont..................ok
t/PangoFontMap...............ok
t/PangoFontset...............ok
t/PangoLayout................ok
t/PangoRenderer..............ok
t/PangoScript................ok
t/PangoTabs..................ok
t/PangoTypes.................ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/GtkFileChooserButton.t 0 11 8 16 200.00% 1-8
t/GtkTreeView.t 0 11 137 52 37.96% 112-137
(64 subtests UNEXPECTEDLY SUCCEEDED), 1 test and 7 subtests skipped.
Failed 2/176 test scripts, 98.86% okay. 34/3517 subtests failed, 99.03% okay.


Any suggestions on how to proceed with debugging this problem would be appreciated.
-James




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