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 344895 - 'assertion failed: (display_menubar)' error on startup
'assertion failed: (display_menubar)' error on startup
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
CVS head
Other All
: Normal critical
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-14 18:10 UTC by tokul
Modified: 2006-06-25 16:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description tokul 2006-06-14 18:10:34 UTC
Steps to reproduce:
dia crashes on startup with two warnings and one error.

Just start dia 0.95+cvs. I use 'LANG=en_US ./dia' or './dia' in bin directory.

** (dia:8149): WARNING **: building menus failed: Unknown attribute 'expand' on line 19 char 57

** (dia:8149): WARNING **: building menus failed: Unknown attribute 'expand' on line 144 char 57

** ERROR **: file menus.c: line 490 (menus_init): assertion failed: (display_menubar)
aborting...
Aborted


Stack trace:

Thread 1 (Thread 1084176256 (LWP 8233))

  • #0 raise
    from /lib/tls/libc.so.6
  • #1 abort
    from /lib/tls/libc.so.6
  • #2 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #3 g_log
    from /usr/lib/libglib-2.0.so.0
  • #4 g_assert_warning
    from /usr/lib/libglib-2.0.so.0
  • #5 menus_init
    at menus.c line 490
  • #6 menus_get_toolbox_menubar
    at menus.c line 555
  • #7 create_toolbox
    at interface.c line 1301
  • #8 app_init
    at app_procs.c line 911
  • #9 main
    at main.c line 31


Other information:
dia head cvs is installed in ~user/bin/dia directory.
Used configure line - ./configure --prefix=/home/username/bin/dia
OS - Debian Sarge

Configuration:
Source code location:   .
Compiler:               gcc

Gnome support:                          no
Python support:                         no
Libart support (PNG export):            yes
Cairo support (experimental):           no
Gnome Print support (experimental):     no
Comment 1 Hans Breuer 2006-06-15 13:21:11 UTC
Works fine for me. Maybe you are using using a much older version of GTK than me.
Could you provide the output of 'dia --version --verbose'?

Thanks,
    Hans
Comment 2 tokul 2006-06-15 13:53:36 UTC
Dia version 0.95+cvs, compiled 16:47:33 Jun 15 2006
Compiler: GCC 3.3.5 (Debian 1:3.3.5-13)
  with : threads libart
Library versions
libpng  : 1.2.8 (1.2.8)
freetype: 2.1.7
libxml  : 2.6.16 (2.6.16)
glib    : 2.6.4 (2.6.4)
pango   : version not available
gtk+    : 2.6.4 (2.6.4)
Comment 3 tokul 2006-06-15 13:57:15 UTC
dpkg -l libpango1.0-dev

ii  libpango1.0-dev  1.8.1-1   Development files for the Pango
Comment 4 Hans Breuer 2006-06-15 14:14:31 UTC
Looking at the Gtk+ API docs in fact reveals that the expand attribute
was not available in gtk+-2.6.x [1] but added later[2].

Could you test if you remove the expand="true" from the three .ui
files. I'd like to keep Dia working with Gtk+-2.6.x.

Thanks,
    Hans

[1] http://www.gtk.org/api/2.6/gtk/GtkUIManager.html#XML-UI
[2] http://developer.gnome.org/doc/API/2.0/gtk/GtkUIManager.html
Comment 5 tokul 2006-06-15 16:10:44 UTC
After expand="true" attribute is removed from display-ui.xml, popup-ui.xml and toolbox-ui.xml, dia starts on my system.
Comment 6 Hans Breuer 2006-06-25 16:45:16 UTC
Thanks for testing, now fixed.

2006-06-25  Hans Breuer  <hans@breuer.org>

	* data/ui/display-ui.xml data/ui/popup-ui.xml data/ui/toolbox-ui.xml :
	removed expand="yes" because otherwise the files can't be read with
	gtk+-2.6.x which follows Dia can't start. Fixes bug #344895
	* app/menus.c app/Makefile.am : also find the ui files when run from
	app/run_dia.sh