GNOME Bugzilla – Bug 344895
'assertion failed: (display_menubar)' error on startup
Last modified: 2006-06-25 16:45:16 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:
+ Trace 68842
Thread 1 (Thread 1084176256 (LWP 8233))
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
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
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)
dpkg -l libpango1.0-dev ii libpango1.0-dev 1.8.1-1 Development files for the Pango
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
After expand="true" attribute is removed from display-ui.xml, popup-ui.xml and toolbox-ui.xml, dia starts on my system.
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