Bug 115196

Summary: Crash in gnome-settings-daemon
Product: [openSUSE] SUSE LINUX 10.0 Reporter: James Ogley <riggwelter>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: eich
Version: Beta 4   
Target Milestone: ---   
Hardware: i686   
OS: SUSE Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of the error message when logging into GNOME
gtk 2.8.3 rpm
gtk 2.8.3 devel rpm
gtk 2.8.3 doc rpm

Description James Ogley 2005-09-04 07:19:14 UTC
When logging into GNOME, the gnome-settings-daemon crashes, causing the login
procedure to hang.

Logging into another WM, and running gnome settings results in the following
being outputed at the command line:

ogley@dhcp1:~> /opt/gnome/lib/control-center-2.0/gnome-settings-daemon

Gdk-ERROR **: unable to find a usable depth
aborting...

(process:7103): Gdk-CRITICAL (recursed) **: gdk_display_pointer_ungrab:
assertion `GDK_IS_DISPLAY (display)' failed
aborting...
Multiple segmentation faults occurred; can't display error dialogue

Here is the backtrace from gdb:

#0  0xffffe410 in __kernel_vsyscall ()
#1  0x41016501 in raise () from /lib/tls/libc.so.6
#2  0x41017d7b in abort () from /lib/tls/libc.so.6
#3  0x40d0a0e6 in g_logv () from /opt/gnome/lib/libglib-2.0.so.0
#4  0x40d0a135 in g_log () from /opt/gnome/lib/libglib-2.0.so.0
#5  0x40b85ffc in gdkx_visual_get () from /opt/gnome/lib/libgdk-x11-2.0.so.0
#6  0x40b838d3 in gdk_x11_screen_get_screen_number ()
   from /opt/gnome/lib/libgdk-x11-2.0.so.0
#7  0x40b6a7b6 in gdk_display_open () from /opt/gnome/lib/libgdk-x11-2.0.so.0
#8  0x40b492cf in gdk_display_open_default_libgtk_only ()
   from /opt/gnome/lib/libgdk-x11-2.0.so.0
#9  0x40844d1f in gtk_init_check () from /opt/gnome/lib/libgtk-x11-2.0.so.0
#10 0x40844d54 in gtk_init () from /opt/gnome/lib/libgtk-x11-2.0.so.0
#11 0x402bb8a4 in bonobo_dock_layout_parse_string ()
   from /opt/gnome/lib/libbonoboui-2.so.0
#12 0x4032dc53 in gnome_program_postinit () from /opt/gnome/lib/libgnome-2.so.0
#13 0x4032e627 in gnome_program_module_load ()
   from /opt/gnome/lib/libgnome-2.so.0
#14 0x4032e979 in gnome_program_init () from /opt/gnome/lib/libgnome-2.so.0
#15 0x08054187 in main ()
Comment 1 James Ogley 2005-09-04 07:20:07 UTC
Created attachment 48720 [details]
Screenshot of the error message when logging into GNOME
Comment 2 JP Rosevear 2005-09-05 01:46:22 UTC
What bit depth are you running at for X?
Comment 3 James Ogley 2005-09-05 06:45:15 UTC
24 bit
Comment 4 James Ogley 2005-09-05 13:34:45 UTC
The same behaviour seems to occur with various other GTK+ apps too.  I've
noticed it with evince and gpdf so far.

But, by no means all, evolution, firefox and gnome-terminal all work fine for
example.
Comment 5 JP Rosevear 2005-09-05 13:38:00 UTC
The first error shown comes from _gdk_visual_init, which looks through
XgetVisualInfo return for a 32,24,16,15,8,4,1 bit depth to use and throws up the
error if it can't find one.

Anything we can check in X stefan?
Comment 6 James Ogley 2005-09-05 13:43:28 UTC
For information:

kcmshell xserver shows the bit depths (in full) as: 24, 1, 4, 8, 15, 16, 32
Comment 7 JP Rosevear 2005-09-06 18:28:29 UTC
How many virtual desktops do you have?
Comment 8 James Ogley 2005-09-06 20:38:42 UTC
Just to clarify we're using the same terminology, if you mean what Metacity
calls "Workspaces", I have 4, but I don't see how that affects the colour depth.

If you mean something else, let me know...
Comment 9 Stefan Dirsch 2005-09-06 21:13:07 UTC
Maybe Egbert can help here. 
Comment 10 James Ogley 2005-09-07 06:16:47 UTC
Just to mention I've also submitted bug #115554 - in case it's related, it may
be completely seperate.
Comment 11 JP Rosevear 2005-09-07 11:20:27 UTC
For #8 Its possibly related because of gdk_x11_screen_get_screen_number.

Attaching gtk 2.8.3 rpms to see if it solves this problem as well.
Comment 12 JP Rosevear 2005-09-07 11:22:30 UTC
Created attachment 49037 [details]
gtk 2.8.3 rpm
Comment 13 James Ogley 2005-09-07 12:54:29 UTC
Any chance of the -doc and -devel packages too?

dhcp1:/home/install # rpm -Uvh gtk2-2.8.3-3.i586.rpm
error: Failed dependencies:
        gtk2 = 2.8.2 is needed by (installed) gtk2-doc-2.8.2-5
        gtk2 = 2.8.2 is needed by (installed) gtk2-devel-2.8.2-5
Comment 14 JP Rosevear 2005-09-07 13:14:50 UTC
Created attachment 49054 [details]
gtk 2.8.3 devel rpm
Comment 15 JP Rosevear 2005-09-07 13:16:40 UTC
Created attachment 49055 [details]
gtk 2.8.3 doc rpm
Comment 16 JP Rosevear 2005-09-07 13:35:46 UTC
Should be everything you need
Comment 17 James Ogley 2005-09-07 14:04:07 UTC
Yeah, that has fixed it, nice one.