> Patch 7.3.520
> Problem: Gvim starts up slow on Unbuntu 12.04.
> Solution: Move the call to gui_mch_init_check() to after fork(). (Yasuhiro
> Matsumoto) Do check $DISPLAY being set.
> Files: src/gui.c, src/gui_gtk_x11.c, src/proto/
gui_gtk_x11.pro
Hello,
I'm trying to upgrade from version 7.3.515 (which works perfectly)
to 7.3.524 on an ubuntu 12.04. Vim compiles, but crashes if I launch
gvim without the -f flag. The warning messages (see below) seem to be
related with this patch.
Let's point out that the terminal variant and "./src/vim -gf" work
properly, as far as I've tested.
> $ ./src/vim -g
>
> (process:12589): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.1/./gobject/gtype.c:2722: You forgot to call g_type_init()
>
> (process:12589): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.1/./gobject/gtype.c:2722: You forgot to call g_type_init()
>
> (process:12589): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
>
> (process:12589): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
>
> (process:12589): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
>
> (process:12589): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
>
> (process:12589): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
>
> (process:12589): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.1/./gobject/gtype.c:2722: You forgot to call g_type_init()
>
> (process:12589): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.32.1/./gobject/gtype.c:2722: You forgot to call g_type_init()
>
> (process:12589): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed
>
> (process:12589): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
>
> (process:12589): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
>
> (process:12589): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed
>
> (process:12589): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
> Vim : Signal mortel SEGV intercepté
> Vim : Fini.
> 31;0Mzsh: segmentation fault (core dumped) ./src/vim -g
I post also the output of :version, in case it's useful :
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 19 2012 11:51:40)
> Included patches : 1-524
> Huge version with graphical interface GTK2. Included (+) or not (-) :
> +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
> +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra
> +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap
> +langmap +libcall +linebreak +lispindent +listcmds +localmap +lua/dyn +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm
> -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +mouse_urxvt +multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra +perl
> +persistent_undo +postscript +printer +profile +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent +sniff
> +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title
> +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11
> -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
> System vimrc : "$VIM/vimrc"
> User vimrc : "$HOME/.vimrc"
> User exrc : "$HOME/.exrc"
> System gvimrc : "$VIM/gvimrc"
> User gvimrc : "$HOME/.gvimrc"
> System menu file : "$VIMRUNTIME/menu.vim"
> $VIM par défaut : "/usr/local/share/vim"
> Compilation : /usr/bin/gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/local/include -O2 -march=native -mtune=native -Wall -Wstrict-prototypes -v -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include/tcl8.5 -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_LARGEFILE64_SOURCE=1
> Linking : /usr/bin/gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -Wl,-E -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib -ltcl8.5 -ldl -lpthread -lieee -lm -lruby1.8 -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib
--
Regards,
Davido