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 670764 - Can't edit toolbars / treeviews: `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed
Can't edit toolbars / treeviews: `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed
Status: RESOLVED DUPLICATE of bug 704600
Product: glade
Classification: Applications
Component: user interface
3.8.x
Other FreeBSD
: Normal blocker
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-24 20:11 UTC by David Demelier
Modified: 2016-05-19 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Glade 3. (82.83 KB, image/png)
2016-05-15 00:21 UTC, Juan Pablo Ugarte
  Details
GladeWidgetAdaptor GType hash table cleanup for master/glade-3-20 (3.43 KB, patch)
2016-05-16 20:14 UTC, Juan Pablo Ugarte
none Details | Review
GladeWidgetAdaptor GType hash table cleanup for glade-3-8 (3.30 KB, patch)
2016-05-16 20:17 UTC, Juan Pablo Ugarte
none Details | Review

Description David Demelier 2012-02-24 20:11:00 UTC
When I run glade on FreeBSD, I can't add object to the toolbar or columns to the treeview.

For a treeview, I add it to the window, create a model, then I click on "Edit...", select hierarchy and that's what happen when I click on [+] button :

(glade-3:1721): GladeUI-CRITICAL **: glade_command_create: assertion `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed

The same error happens when editing toolbars too.
Comment 1 Juan Pablo Ugarte 2012-02-28 15:27:05 UTC
I can not reproduce it on Linux,can you build glade with debug info and provide a backtrace? also make sure there are no others errors when glade loads.

thanks
Comment 2 David Demelier 2012-02-28 21:31:40 UTC
Hello, when glade starts there are only these errors:

GladeUI-Message: No displayable values for property GtkToolPalette::icon-size
GladeUI-Message: No displayable values for property GtkToolItemGroup::ellipsize
GladeUI-Message: No displayable values for property GtkToolItemGroup::header-relief
GladeUI-Message: No DevHelp installed on your system, devhelp feature will be disabled.

I made a core dump just after the GladeUI-CRITICAL message and the .core file can be found here :

I don't know how to create a backtrace when I exactly click on the [+] button :(

http://markand.malikania.fr/glade-3.core
Comment 3 André Klapper 2012-03-17 22:22:07 UTC
Thanks for taking the time to report this bug.
Without a stack trace from the crash it's very hard to determine what caused it.
Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 4 Akhil Laddha 2012-04-28 03:41:12 UTC
DEMELIER, were you able to collect stacktrack ? Please make sure you install debuginfo packages of glade, gtk+ and glib
Comment 5 David Demelier 2012-04-28 14:21:00 UTC
Since it does not segfaults, how can I get a stack trace?
Comment 6 Tristan Van Berkom 2012-04-29 03:00:52 UTC
You can run Glade with --g-fatal-warnings

But if Glade makes any other unrelated warnings before it will abort.

Otherwise you can do:

gdb -args glade file.glade
(gdb) break g_log()
(gdb) run

And then just type 'continue' (or 'c') for every warning
until you hit the warning you want a stack trace for.

Then type 'where' to show the current stack, that's the
stack trace leading up to the warning.
Comment 7 Tobias Mueller 2012-09-05 19:53:10 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 8 David Demelier 2012-10-11 17:41:46 UTC
Breakpoint 1, 0x0000000805f079a0 in g_log () from /usr/local/lib/libglib-2.0.so.0
(gdb) bt
  • #0 g_log
    from /usr/local/lib/libglib-2.0.so.0
  • #1 glade_command_create
    at glade-command.c line 1725
  • #2 glade_gtk_menu_shell_build_child
    at glade-gtk.c line 6600
  • #3 glade_marshal_OBJECT__OBJECT_UINT
    at glade-marshallers.c line 413
  • #4 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #5 ??
    from /usr/local/lib/libgobject-2.0.so.0
  • #6 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #7 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #8 glade_base_editor_delegate_build_child
    at glade-base-editor.c line 332
  • #9 glade_base_editor_add_child
    at glade-base-editor.c line 706
  • #10 glade_base_editor_add_activate
    at glade-base-editor.c line 881
  • #11 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #12 ??
    from /usr/local/lib/libgobject-2.0.so.0
  • #13 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #14 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #15 ??
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #16 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #17 ??
    from /usr/local/lib/libgobject-2.0.so.0
  • #18 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #19 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #20 ??
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #21 ??
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #22 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #23 ??
    from /usr/local/lib/libgobject-2.0.so.0
  • #24 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #25 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #26 ??
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #27 gtk_propagate_event
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #28 gtk_main_do_event
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #29 ??
    from /usr/local/lib/libgdk-x11-2.0.so.0
  • #30 g_main_context_dispatch
    from /usr/local/lib/libglib-2.0.so.0
  • #31 ??
    from /usr/local/lib/libglib-2.0.so.0
  • #32 g_main_loop_run
    from /usr/local/lib/libglib-2.0.so.0
  • #33 gtk_main
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #34 ??
  • #35 ??
  • #36 ??
  • #37 ??

Is this stack trace enough?
Comment 9 David Demelier 2012-10-11 18:07:33 UTC
This one should be better :

  • #0 g_log
    at gmessages.c line 576
  • #1 g_return_if_fail_warning
  • #2 glade_command_create
    at glade-command.c line 1725
  • #3 glade_gtk_menu_shell_build_child
    at glade-gtk.c line 6600
  • #4 glade_marshal_OBJECT__OBJECT_UINT
    at glade-marshallers.c line 413
  • #5 g_closure_invoke
    at gclosure.c line 767
  • #6 signal_emit_unlocked_R
    at gsignal.c line 3252
  • #7 g_signal_emit_valist
    at gsignal.c line 2993
  • #8 g_signal_emit
    at gsignal.c line 3040
  • #9 glade_base_editor_delegate_build_child
    at glade-base-editor.c line 332
  • #10 glade_base_editor_add_child
    at glade-base-editor.c line 706
  • #11 glade_base_editor_add_activate
    at glade-base-editor.c line 881
  • #12 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 79
  • #13 g_closure_invoke
    at gclosure.c line 767
  • #14 signal_emit_unlocked_R
    at gsignal.c line 3252
  • #15 g_signal_emit_valist
    at gsignal.c line 2983
  • #16 g_signal_emit
    at gsignal.c line 3040
  • #17 IA__gtk_button_clicked
    at gtkbutton.c line 1128
  • #18 gtk_real_button_released
    at gtkbutton.c line 1725
  • #19 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 79
  • #20 g_type_class_meta_marshal
    at gclosure.c line 878
  • #21 g_closure_invoke
    at gclosure.c line 767
  • #22 signal_emit_unlocked_R
    at gsignal.c line 3182
  • #23 g_signal_emit_valist
    at gsignal.c line 2983
  • #24 g_signal_emit
    at gsignal.c line 3040
  • #25 gtk_button_released
    at gtkbutton.c line 1120
  • #26 gtk_button_button_release
    at gtkbutton.c line 1617
  • #27 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 86
  • #28 g_type_class_meta_marshal
    at gclosure.c line 878
  • #29 g_closure_invoke
    at gclosure.c line 767
  • #30 signal_emit_unlocked_R
    at gsignal.c line 3290
  • #31 g_signal_emit_valist
    at gsignal.c line 2993
  • #32 g_signal_emit
    at gsignal.c line 3040
  • #33 gtk_widget_event_internal
    at gtkwidget.c line 4984
  • #34 IA__gtk_widget_event
    at gtkwidget.c line 4781
  • #35 IA__gtk_propagate_event
    at gtkmain.c line 2489
  • #36 IA__gtk_main_do_event
    at gtkmain.c line 1684
  • #37 gdk_event_dispatch
    at gdkevents-x11.c line 2377
  • #38 g_main_dispatch
    at gmain.c line 2441
  • #39 g_main_context_dispatch
    at gmain.c line 3014
  • #40 g_main_context_iterate
    at gmain.c line 3092
  • #41 g_main_loop_run
    at gmain.c line 3300
  • #42 IA__gtk_main
    at gtkmain.c line 1256
  • #43 ??
  • #44 ??
  • #45 ??
  • #46 ??

Comment 10 David Demelier 2012-11-20 11:08:24 UTC
Can you please reopen the bug ?
Comment 11 André Klapper 2012-11-20 17:15:54 UTC
You reopened the bug yourself already.
Comment 12 Mark Gutierrez 2013-02-11 18:57:25 UTC
 What is the status of the bug? I'm having the same issue, and I found someone having the same issue back in 2009.

http://forums.freebsd.org/showthread.php?t=9522

I will try to get some debugging info from the above suggestions.
Comment 13 Mark Gutierrez 2013-02-12 02:47:14 UTC
I am running FreeBSD 9.1 with glade3-3.7.3, gtk-2.24.6, glib-2.28.8

This is my backtrace:

Thread 807407400 (LWP 100098/glade-3)

  • #0 thr_kill
    from /lib/libc.so.7
  • #1 abort
    from /lib/libc.so.7
  • #2 g_logv
    from /usr/local/lib/libglib-2.0.so.0
  • #3 g_log
    from /usr/local/lib/libglib-2.0.so.0
  • #4 glade_command_create
    at glade-command.c line 1725
  • #5 glade_base_editor_build_child
    at glade-base-editor.c line 1424
  • #6 glade_marshal_OBJECT__OBJECT_UINT
    at glade-marshallers.c line 413
  • #7 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #8 g_signal_handlers_block_matched
    from /usr/local/lib/libgobject-2.0.so.0
  • #9 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #10 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #11 glade_base_editor_delegate_build_child
    at glade-base-editor.c line 332
  • #12 glade_base_editor_add_child
    at glade-base-editor.c line 706
  • #13 glade_base_editor_add_activate
    at glade-base-editor.c line 881
  • #14 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #15 g_signal_handlers_block_matched
    from /usr/local/lib/libgobject-2.0.so.0
  • #16 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #17 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #18 gtk_button_set_alignment
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #19 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #20 g_signal_handlers_block_matched
    from /usr/local/lib/libgobject-2.0.so.0
  • #21 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #22 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #23 gtk_button_released
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #24 gtk_marshal_BOOLEAN__VOID
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #25 g_closure_invoke
    from /usr/local/lib/libgobject-2.0.so.0
  • #26 g_signal_handlers_block_matched
    from /usr/local/lib/libgobject-2.0.so.0
  • #27 g_signal_emit_valist
    from /usr/local/lib/libgobject-2.0.so.0
  • #28 g_signal_emit
    from /usr/local/lib/libgobject-2.0.so.0
  • #29 gtk_widget_style_attach
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #30 gtk_propagate_event
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #31 gtk_main_do_event
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #32 gdk_add_client_message_filter
    from /usr/local/lib/libgdk-x11-2.0.so.0
  • #33 g_main_context_dispatch
    from /usr/local/lib/libglib-2.0.so.0
  • #34 g_main_context_prepare
    from /usr/local/lib/libglib-2.0.so.0
  • #35 g_main_loop_run
    from /usr/local/lib/libglib-2.0.so.0
  • #36 gtk_main
    from /usr/local/lib/libgtk-x11-2.0.so.0
  • #37 main
    at main.c line 185

Comment 14 Juan Pablo Ugarte 2013-09-05 18:44:04 UTC
Ok could you point me to a freebsd virtualbox image where I can compile glade-3-8 branch?
Comment 15 towb 2013-09-10 21:54:13 UTC
I have the same problem, also with GtkIconView, using Glade 3.8.3 compiled via Homebrew on Mac OS 10.8.4 (which once was BSD):

(glade-3:66346): GladeUI-CRITICAL **: GladeWidget *glade_command_create(GladeWidgetAdaptor *, GladeWidget *, GladePlaceholder *, GladeProject *): assertion `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed

It works fine using the ancient binary from the glade homepage.
Comment 16 Juan Pablo Ugarte 2013-09-11 21:12:04 UTC
Well that does not help much either as I do not have Mac OS.
Make sure you are installing glade and that the executable is actually loading the right libs and not some older lib left from an older build.
(There was some glade version with wrong libtool version numbers)
Comment 17 David Demelier 2014-04-14 06:46:38 UTC
Oh guys this problem report is almost two years old. I personally switched to Qt so if anyone has the same problem I would like him to take this report because I don't want to be notified anymore.

Thanks.
Comment 18 André Klapper 2014-04-14 12:21:41 UTC
David: Age of tickets has no relevance, I can also offer tickets that are open for 15 years. Juan has been actively commenting here and cannot reproduce, so what do you expect to happen here?
Comment 19 David Demelier 2014-04-14 12:23:38 UTC
Then a 15 years old ticket is just irrelevant and totally obsolete. We have said that the problem appears on FreeBSD like operating systems, on Linux it works as well.
Comment 20 Juan Pablo Ugarte 2014-04-14 16:11:15 UTC
(In reply to comment #17)
> Oh guys this problem report is almost two years old. I personally switched to

Sorry to bother you!

> Qt so if anyone has the same problem I would like him to take this report
> because I don't want to be notified anymore.

Ok good, thats the collaborative spirit we all want to see!

Anyways, if someone else is having the same problem and is willing to help me out reproduce it on FreeBSD now that this is available

http://blogs.gnome.org/desrt/2014/03/26/gnome-3-12-and-freebsd-and-a-virtual-machine/

I will appreciate it.

Again sorry for wasting your time!
Comment 21 Mark Gutierrez 2014-11-03 01:47:43 UTC
Hi Juan,

Thanks for taking to time to reproduce this error.  But I also reported this error back in early 2013 and now I'm using FreeBSD 10.0 and I'm still having the same problem with glade3-3.8.3.

The steps I take to produce this error are:
1. Start glade, get messages:
GladeUI-Message: No displayable values for property GtkToolPalette::icon-size
GladeUI-Message: No displayable values for property GtkToolItemGroup::ellipsize
GladeUI-Message: No displayable values for property GtkToolItemGroup::header-relief
GladeUI-Message: No DevHelp installed on your system, devhelp feature will be disabled.

2. Create a new project.

3. Create a toplevel window (GtkWindow)

4. Add a vertical box (GtkVBox), with 3 items.

5. Under Tree Model, I create a GtkListStore (liststore1)

6. With the liststore1 selected, I add 2 columns, column Type: gchararray, with column names: file_name, file_perm

7. Add a TreeView, when prompted to selecte a TreeView Model:, I select the only object available (liststore1 ListStore), and click Create.

8. Right click on the treeview1 (GtkTreeView) from the widget browser and select Edit.

9. From the Tree View Editor window, I go to Hierarchy tab, and click the Add button.  Here nothing happens, and I get the following debug message:

(glade-3:29167): GladeUI-CRITICAL **: GladeWidget *glade_command_create(GladeWidgetAdaptor *, GladeWidget *, GladePlaceholder *, GladeProject *): assertion `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed

I can reproduce this error everything I install FreeBSD, whether it's a virtual machine in Virtualbox or a physical box.  I must say, this is on 64 bit os, and don't remember trying it on 32 bit version.  Maybe this is something to explore and will try to post an update if 32bit makes a difference.

Here's my uname output:
FreeBSD ixtepec 10.0-RELEASE FreeBSD 10.0-RELEASE #0: Sun Aug 31 02:10:23 ADT 2014     root@ericbsd:/usr/obj/usr/src/sys/GHOSTBSD  amd64

Thanks Juan.  Please help because I would very much like to use glade but still can't seem to get it working.  If I try these same steps in Linux it works every single time.

-Mark
P.S. you are not wasting your time!
Comment 22 sergio lenzi 2015-07-20 01:52:17 UTC
Hello,


I am using version glade-3.8.5 

All this issues in FreeBSD is in the module glade-widget-adapter.c 
about the line 2472 function glade_widget_adaptor_get_by_type

On intialization, it should build a hash table = adaptor_hash,and register into there, the Gtype corresponding, but the logic fails in FreeBSD, probably because of the clang compile, as it register the adaptor by name but cannot find it by type.. probable an error in the compare function.
Comment 23 Oleksii Shevchuk 2016-03-13 05:27:24 UTC
I have exactly same problem. 

gentoo, glade-3.18.3.

When I add XML manually, glade renders this. But I couldn't add columns using GUI.

Sad story..
Comment 24 Mark Gutierrez 2016-05-08 07:34:43 UTC
Can we please change the status of this so it can get fixed?  I'm not sure what info is needed.  We've provided plenty.  Please be more specific as to what info is needed.

Thanks!
Comment 25 Juan Pablo Ugarte 2016-05-15 00:21:52 UTC
Created attachment 327904 [details]
Glade 3.
Comment 26 Juan Pablo Ugarte 2016-05-15 00:22:42 UTC
Looks like it works on 32bits, need to check on amd64 now :S
Comment 27 Mark Gutierrez 2016-05-15 05:41:41 UTC
Hello Juan,

I'm trying to use the 3.20 on 64bit.  Can you pls verify this?  It's interesting that Sergio thinks it could be a compiler issue.  I was thinking of rebuilding FreeBSD with gcc.  Or at least glade.

Thanks for the update!
Comment 28 Juan Pablo Ugarte 2016-05-16 20:14:41 UTC
Created attachment 328012 [details] [review]
GladeWidgetAdaptor GType hash table cleanup for master/glade-3-20

Hello guys, here is a patch that cleans up the GType hash table in the adaptor code, it uses a direct mapping by stuffing the GType in a pointer using GSIZE_TO_POINTER since a GType is a gsize integer value.

Unfortunately this does not fix the problem for me in freeBSD.
Comment 29 Juan Pablo Ugarte 2016-05-16 20:17:14 UTC
Created attachment 328013 [details] [review]
GladeWidgetAdaptor GType hash table cleanup for glade-3-8

Same patch as attachment 328012 [details] [review] but for glade-3-8 branch so that Segio can try it out and keep debugin it :D
Comment 30 Juan Pablo Ugarte 2016-05-16 20:25:28 UTC
(In reply to Mark Gutierrez from comment #27)
> Hello Juan,
> 
> I'm trying to use the 3.20 on 64bit.  Can you pls verify this?  It's
> interesting that Sergio thinks it could be a compiler issue.  I was thinking
> of rebuilding FreeBSD with gcc.  Or at least glade.

There is probably something wrong in glade code that gets triggered by using other compiler than gcc but it does not seems to be what Sergio pointed out since after my hash clean up the same bug is still there.

next step would be to make sure GSIZE_TO_POINTER() work as expected in freeBSD
Comment 31 Juan Pablo Ugarte 2016-05-19 00:11:32 UTC
This is a duplicate of bug #704600

and was fixed by commit

https://git.gnome.org/browse/glade/commit/?id=f7152fc8c76ce30310b488adb110000cadab4291

I guess its time to make a new release of glade-3-8 branch

*** This bug has been marked as a duplicate of bug 704600 ***
Comment 32 Mark Gutierrez 2016-05-19 00:20:01 UTC
Hi Juan,

Do I create a new one for 3.20?
Comment 33 Juan Pablo Ugarte 2016-05-19 19:26:19 UTC
(In reply to Mark Gutierrez from comment #32)

> Do I create a new one for 3.20?

I only tried with 3.18 and 3.8, 3.20 should work as it already has the proper patch.

How do you build 3.20 on freeBSD?

I downloaded freeBSD 11.0-CURRENT and it does not have gtk 3.20 available

Is there any non official ports for gtk+ and glade?