gnome-settings-daemon exits without error message

Bug #390875 reported by Hendrik Lönngren
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
Expired
Critical
gnome-settings-daemon (Ubuntu)
Incomplete
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-settings-daemon

From time to time, at the launch of the first windowed application in a session, the skin abruptly changes to something similar, but not identical, to "Glossy". After that, gnome-settings-daemon is no longer running.

I haven’t been able to get a backtrace yet, because gnome-settings-daemon is like Schrödinger’s cat: very reluctant towards being debugged. What would I best break at? gdk_x_error?

What I am doing now is this:
After startup, I go to the console, Shift+F1. Then I execute this script:

#! /bin/bash
sleep 10
beep
gdb gnome-settings-daemon `ps -A | grep gnome-se | grep -oE "[0-9]*" | head -1`

Then I quickly go back to my graphical screen (because it somehow won’t come back after gdb has started) and after the beep launch some windowed application. Back to console again, where I type:

break gdk_x_error
continue

Then I hope that gnome-settings-daemon exits, which it until now has done only once, but then I had no breakpoint set, so I only saw that it exited with code 01.

Am I doing this correctly?

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: gnome-settings-daemon 2.26.1-0ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-settings-daemon
Uname: Linux 2.6.30-020630rc5-generic i686

Revision history for this message
Hendrik Lönngren (hendrik0) wrote :
Revision history for this message
Hendrik Lönngren (hendrik0) wrote :
Download full text (8.4 KiB)

Finally! Here you go

0xb80b8430 in __kernel_vsyscall ()
(gdb) break gdk_x_error
Breakpoint 1 at 0xb7cb4563: file /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c, line 614.
(gdb) c
Continuing.
[Switching to Thread 0xb73b8970 (LWP 8672)]

Breakpoint 1, gdk_x_error (display=0x82453d0, error=0xbfd0d318)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c:614
 in /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c
(gdb) bt full
#0 gdk_x_error (display=0x82453d0, error=0xbfd0d318)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c:614
No locals.
#1 0xb67a1cc0 in xkl_process_error () from /usr/lib/libxklavier.so.12
No symbol table info available.
#2 0xb75f4db9 in _XError () from /usr/lib/libX11.so.6
No symbol table info available.
#3 0xb75fcd76 in _XReply () from /usr/lib/libX11.so.6
No symbol table info available.
#4 0xb75d9f83 in XGetWindowProperty () from /usr/lib/libX11.so.6
No symbol table info available.
#5 0xb67a765b in xkl_engine_is_toplevel_window_transparent ()
   from /usr/lib/libxklavier.so.12
No symbol table info available.
#6 0xb67a22ea in xkl_engine_process_focus_in_evt ()
   from /usr/lib/libxklavier.so.12
No symbol table info available.
#7 0xb67a292c in xkl_engine_filter_events () from /usr/lib/libxklavier.so.12
No symbol table info available.
#8 0xb67d8447 in ?? () from /usr/lib/gnome-settings-daemon-2.0/libkeyboard.so
No symbol table info available.
#9 0xb7ca8fa6 in gdk_event_translate (display=0x82500b0, event=0x8256b30,
    xevent=0xbfd0d7d8, return_exposes=0)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkevents-x11.c:349
 window = <value optimized out>
 filter_window = <value optimized out>
 window_impl = <value optimized out>
 return_val = <value optimized out>
 xoffset = <value optimized out>
 yoffset = <value optimized out>
 screen = <value optimized out>
 screen_x11 = <value optimized out>
 toplevel = <value optimized out>
 xwindow = <value optimized out>
 filter_xwindow = <value optimized out>
#10 0xb7caaef3 in _gdk_events_queue (display=0x82500b0)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkevents-x11.c:2298
 node = (GList *) 0x8283200
 event = (GdkEvent *) 0x8256b30
 xevent = {type = 9, xany = {type = 9, serial = 1644, send_event = 0,
    display = 0x82453d0, window = 25165853}, xkey = {type = 9, serial = 1644,
    send_event = 0, display = 0x82453d0, window = 25165853, root = 0,
    subwindow = 3, time = 0, x = 0, y = 10, x_root = 0, y_root = 1, state = 0,
    keycode = 0, same_screen = 0}, xbutton = {type = 9, serial = 1644,
    send_event = 0, display = 0x82453d0, window = 25165853, root = 0,
    subwindow = 3, time = 0, x = 0, y = 10, x_root = 0, y_root = 1, state = 0,
    button = 0, same_screen = 0}, xmotion = {type = 9, serial = 1644,
    send_event = 0, display = 0x82453d0, window = 25165853, root = 0,
    subwindow = 3, time = 0, x = 0, y = 10, x_root = 0, y_root = 1, state = 0,
    is_hint = 0 '\0', same_screen = 0}, xcrossing = {type = 9, serial = 1644,
    send_event = 0, display = 0x82453d0, window = 25165853, root = 0,
    subwindow = 3, time = 0, x = 0, y = 10, x_root = 0, y_root = 1, mode = 0,
    detail = 0, same_screen = 0, focus = 0, state = 0}, xfocus = {typ...

Read more...

Revision history for this message
Hendrik Lönngren (hendrik0) wrote :
Download full text (8.8 KiB)

OK, so I found that upstream bug: http://bugzilla.gnome.org/show_bug.cgi?id=572141
It seems I had to see to that gnome-settings-daemon is started with the --snyc option. I did that then. This is the new backtrace (although to me it looks much the same):

0xb7f12430 in __kernel_vsyscall ()
(gdb) break gdk_x_error
Breakpoint 1 at 0xb7b0e563: file /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c, line 614.
(gdb) c
Continuing.
[Switching to Thread 0xb7212970 (LWP 18754)]

Breakpoint 1, gdk_x_error (display=0x8f283f8, error=0xbfaef088)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c:614
 in /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c
(gdb) bt full
#0 gdk_x_error (display=0x8f283f8, error=0xbfaef088)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkmain-x11.c:614
No locals.
#1 0xb65fbcc0 in xkl_process_error () from /usr/lib/libxklavier.so.12
No symbol table info available.
#2 0xb744edb9 in _XError () from /usr/lib/libX11.so.6
No symbol table info available.
#3 0xb7456d76 in _XReply () from /usr/lib/libX11.so.6
No symbol table info available.
#4 0xb7433f83 in XGetWindowProperty () from /usr/lib/libX11.so.6
No symbol table info available.
#5 0xb660165b in xkl_engine_is_toplevel_window_transparent ()
   from /usr/lib/libxklavier.so.12
No symbol table info available.
#6 0xb65fc2ea in xkl_engine_process_focus_in_evt ()
   from /usr/lib/libxklavier.so.12
No symbol table info available.
#7 0xb65fc92c in xkl_engine_filter_events () from /usr/lib/libxklavier.so.12
No symbol table info available.
#8 0xb6632447 in ?? () from /usr/lib/gnome-settings-daemon-2.0/libkeyboard.so
No symbol table info available.
#9 0xb7b02fa6 in gdk_event_translate (display=0x8f330b0, event=0x8f39b80,
    xevent=0xbfaef548, return_exposes=0)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkevents-x11.c:349
 window = <value optimized out>
 filter_window = <value optimized out>
 window_impl = <value optimized out>
 return_val = <value optimized out>
 xoffset = <value optimized out>
 yoffset = <value optimized out>
 screen = <value optimized out>
 screen_x11 = <value optimized out>
 toplevel = <value optimized out>
 xwindow = <value optimized out>
 filter_xwindow = <value optimized out>
#10 0xb7b04ef3 in _gdk_events_queue (display=0x8f330b0)
    at /build/buildd/gtk+2.0-2.16.1/gdk/x11/gdkevents-x11.c:2298
 node = (GList *) 0x90aaad0
 event = (GdkEvent *) 0x8f39b80
 xevent = {type = 9, xany = {type = 9, serial = 3068, send_event = 0,
    display = 0x8f283f8, window = 20972648}, xkey = {type = 9, serial = 3068,
    send_event = 0, display = 0x8f283f8, window = 20972648, root = 0,
    subwindow = 4, time = 0, x = 667, y = 464, x_root = 0, y_root = 25165853,
    state = 0, keycode = 1, same_screen = 1}, xbutton = {type = 9,
    serial = 3068, send_event = 0, display = 0x8f283f8, window = 20972648,
    root = 0, subwindow = 4, time = 0, x = 667, y = 464, x_root = 0,
    y_root = 25165853, state = 0, button = 1, same_screen = 1}, xmotion = {
    type = 9, serial = 3068, send_event = 0, display = 0x8f283f8,
    window = 20972648, root = 0, subwindow = 4, time = 0, x = 667, y = 464,
    x_root = 0, y_root = 25165853, state = 0, is_hint = 1 '\001',
    same_...

Read more...

Changed in gnome-settings-daemon (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Medium
status: New → Triaged
Changed in gnome-settings-daemon:
status: Unknown → New
Revision history for this message
ngc2997 (ngc2997-deactivatedaccount) wrote :

From time to time, I am seeing this also 'in the middle' of a session, not just when the first app is launched. Not safely reproducible, happens randomly every now and then. Sometimes, the entire desktop is affected (i.e., Ambiance theme is replaced by a default one), yesterday only Nautilus content was affected while window decorations and panels remained normal.

Revision history for this message
Steffen Sindzinski (stesind) wrote :

Same for me, quite annoying. New installed lucid with fglrx from repository, encrypted home.

Changed in gnome-settings-daemon:
importance: Unknown → Critical
Changed in gnome-settings-daemon:
status: New → Expired
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This was closed upstream as the problem went away and was suspected to have been in libxklavier - can anyone still reproduce it?

Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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