segmentation fault from gui

Bug #579663 reported by Mark Foster
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: virtualbox-ose

bitpusher@sea-vms2:~$ VirtualBox
Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme.
(GUI appears, then upon clicking File->Preferences...)
Segmentation fault

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu.
Description: Ubuntu 10.04 LTS
Release: 10.04

2) The version of the package you are using, via 'apt-cache policy packagename' or by checking in Synaptic.
virtualbox-ose:
  Installed: 3.1.6-dfsg-2ubuntu2
  Candidate: 3.1.6-dfsg-2ubuntu2
  Version table:
 *** 3.1.6-dfsg-2ubuntu2 0
        500 ftp://10.1.0.13/mirror/ftp.osuosl.org/ubuntu-lucid-current/ lucid/universe Packages
        100 /var/lib/dpkg/status

3) What you expected to happen
I expect the VirtualBox program to run so I can adjust the settings, create new VMs and so on.

4) What happened instead
It crashes before I can do anything useful.

FWIW the same behavior (segmentation fault) occurs using the 3.1.8 package downloaded from virtualbox.org

I am attaching a gzip compressed core file generated as per the instructions at
http://www.virtualbox.org/wiki/Core_dump

Revision history for this message
Mark Foster (fostermarkd) wrote :
Revision history for this message
Mark Foster (fostermarkd) wrote :

bitpusher@sea-vms2:~$ /usr/bin/qtconfig-qt4
QGtkStyle was unable to detect the current GTK+ theme.
Segmentation fault

However, xeyes works after installing x11-apps package.
Note that this is over a SSH forwarded session (using -Y argument to ssh)

Revision history for this message
Felix Geyer (debfx) wrote :

Reassigning to Qt as it seems to be a problem with QGtkStyle.

affects: virtualbox-ose (Ubuntu) → qt4-x11 (Ubuntu)
Revision history for this message
Ole Laursen (olau) wrote :

I had a similar problem. It turns out QGtkStyle tries to discover the theme with GConf, found that out by strace'ing qtconfig-qt4.

So I installed gconf-editor to pull in GConf, then it worked. I agree it's a bug in QGtkStyle - at the very least, it should spit out that it can't load GConf.

Revision history for this message
Chris Bainbridge (chris-bainbridge) wrote :

To reproduce: Install lucid-amd64-server.iso, install virtualbox-ose-qt, run virtualbox, click new.

$ virtualbox
Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme.

(process:3655): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:3655): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:3655): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:3655): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:3655): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:3655): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3655): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:3655): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3655): Gtk-CRITICAL **: gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed

Installing gconf-editor fixed the problem. (I guess this package is installed by default in a desktop ISO, hence the problem only occurs in a server install)

Revision history for this message
Melroy van den Berg (webmaster-web-share) wrote :

Yep I got it with the program called GTK Radiant (it's a map editor):

(radiant.bin:4747): Gdk-CRITICAL **: gdk_window_get_window_type: assertion `GDK_IS_WINDOW (window)' failed
I/O warning : failed to load external entity "/home/melroy/ZeroRadiant/global.xlink"
I/O warning : failed to load external entity "/home/melroy/ZeroRadiant/installs/UrTPack/game/game.xlink"
I/O warning : failed to load external entity "/home/melroy/ZeroRadiant/installs/Q3Pack/game/game.xlink"
Gdk-CRITICAL **: gdk_window_get_window_type: assertion `GDK_IS_WINDOW (window)' failed

Segmentation fault

Wat to do?

Program just crashed.

Revision history for this message
Diego D'Onofrio (ddonofrio) wrote :

As Chris Bainbridge describes, I have reproduced this issue.

Revision history for this message
George Poulson (george-poulson) wrote :

Also occurs in mythtv:

2010-09-21 09:31:15.391 MythUIWebBrowser: Loading css from - file:///usr/share/mythtv/themes/default/htmls/mythbrowser.css

(process:1661): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call g_type_init()

(process:1661): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
valkyr (locki) wrote :

Package "software-properties-gtk" solves these "CRITICAL" warnings.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qt4-x11 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.