No GTK theme applied on login, should be Ambiance

Bug #879793 reported by Niccolò Bonacchi on 2011-10-22
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Low
Unassigned

Bug Description

On random occasions, logging into Ubuntu (Unity) there is no GTK/Gnome theme active. You only see what looks like stock icons and GTK theming. Logging out and logging back in again usually fixes the problem, and the Ambiance theme (or whatever) is then applied correctly.

We have confirmation this is affecting multiple users in Ubuntu 11.10. However I personally used to see the problem occasionally in Ubuntu 11.04 too.

When the bug occurs you will see "BadMatch ... error_code 8 request_code 3 minor_code 0" in .xsession-errors:

(gnome-settings-daemon:2108): Gdk-WARNING **: The program 'gnome-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1265 error_code 8 request_code 3 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

---
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: nautilus 1:3.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-13.21-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Sat Oct 22 08:46:57 2011
ExecutablePath: /usr/bin/nautilus
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: Upgraded to oneiric on 2011-10-21 (0 days ago)
XsessionErrors:
 (nautilus:1944): Gtk-CRITICAL **: gtk_action_set_visible: assertion `GTK_IS_ACTION (action)' failed
 (nautilus:1944): Gtk-CRITICAL **: gtk_action_set_visible: assertion `GTK_IS_ACTION (action)' failed
 (jupiter:1965): Gdk-CRITICAL **: IA__gdk_window_thaw_toplevel_updates_libgtk_only: assertion `private->update_and_descendants_freeze_count > 0' failed

Niccolò Bonacchi (nbonacchi) wrote :
Launchpad Janitor (janitor) wrote :

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

Changed in nautilus (Ubuntu):
status: New → Confirmed
affects: unity → unity (Ubuntu)
Changed in unity (Ubuntu):
status: New → Confirmed

Here's what the desktop looks like when this bug happens.

Changed in unity (Ubuntu):
status: New → Confirmed
summary: - Amibience theme (icons mainly) not loading after upgrade to oneiric
- (from natty)
+ No GTK theme active on login, should be Amibience
Daniel van Vugt (vanvugt) wrote :

Logged out, logged in again. Now the theme is correct.

description: updated
summary: - No GTK theme active on login, should be Amibience
+ No GTK theme applied on login, should be Ambience
summary: - No GTK theme applied on login, should be Ambience
+ No GTK theme applied on login, should be Ambiance
Omer Akram (om26er) wrote :

seems gnome-settings-daemon died.

affects: nautilus (Ubuntu) → gnome-settings-daemon (Ubuntu)
Changed in gnome-settings-daemon (Ubuntu):
status: Confirmed → New
Changed in unity (Ubuntu):
status: Confirmed → Invalid
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you add your .xsession-errors to the bug?

Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Niccolò Bonacchi (nbonacchi) wrote :

sorry... I'll se if the .xsessions is in the backup I just made...
had to format hard drive...
reinstalling 11.10 didn't work computer failed to boot, managed to boot with cd and copy home folder to external drive. just reinstalled everything...
For what I gathered error was form compizsettingsmanager, not installing it this time, let's see how long I can survive without wobbly windows...
Would like to reduce icon size for unity though, or maybe I'll give gnome shell a try

n

Daniel van Vugt (vanvugt) wrote :

Sadly, logging out and in again to work around this problem also seems to start a new .xsession-errors.

Will have to wait and see how long before the bug happens again, then grab .xsession-errors.

Daniel van Vugt (vanvugt) wrote :

Reproducing the bug was easier than I expected. Just had to log out and in a few times.

xsession-errors does show some gnome-settings-daemon errors when the bug occurred.

Changed in gnome-settings-daemon (Ubuntu):
status: Incomplete → Confirmed
Daniel van Vugt (vanvugt) wrote :

Reproduced the bug again after about 5 more attempts. The common factor when the bug occurs is this message:

(gnome-settings-daemon:2108): Gdk-WARNING **: The program 'gnome-settings-daemon' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1265 error_code 8 request_code 3 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

iGadget (igadget) wrote :

This bug seems to be a dupe of bug #859723.

Daniel van Vugt (vanvugt) wrote :

There's not enough evidence this is the same as bug 859723.

In that bug, the theme is lost some time after logging in, and the error is "error_code 3 request_code 18 minor_code 0".

In this bug, the theme is lost before logging in, and the error is "error_code 8 request_code 3 minor_code 0"

Niccolò Bonacchi (nbonacchi) wrote :
Download full text (185.5 KiB)

same problem on fresh install no compiz installed, here is the .xsession-errors

Running X session wrapper
Loading profile from /etc/profile
Loading profile from /home/nico/.profile
Loading resource: /etc/X11/Xresources/x11-common
Loading X session script /etc/X11/Xsession.d/20x11-common_process-args
Loading X session script /etc/X11/Xsession.d/30x11-common_xresources
Loading X session script /etc/X11/Xsession.d/40x11-common_xsessionrc
Loading X session script /etc/X11/Xsession.d/50_check_unity_support
Loading X session script /etc/X11/Xsession.d/50x11-common_determine-startup
Loading X session script /etc/X11/Xsession.d/52libcanberra-gtk3-module_add-to-gtk-modules
Loading X session script /etc/X11/Xsession.d/52libcanberra-gtk-module_add-to-gtk-modules
Loading X session script /etc/X11/Xsession.d/55gnome-session_gnomerc
Loading X session script /etc/X11/Xsession.d/60x11-common_localhost
Loading X session script /etc/X11/Xsession.d/60x11-common_xdg_path
Loading X session script /etc/X11/Xsession.d/60xdg-user-dirs-update
Loading X session script /etc/X11/Xsession.d/65compiz_profile-on-session
Loading X session script /etc/X11/Xsession.d/70gconfd_path-on-session
Loading X session script /etc/X11/Xsession.d/75dbus_dbus-launch
Loading X session script /etc/X11/Xsession.d/80appmenu
Loading X session script /etc/X11/Xsession.d/80appmenu-gtk3
Loading X session script /etc/X11/Xsession.d/80im-switch
Setting IM through im-switch for locale=en_US.
Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default.
Loading X session script /etc/X11/Xsession.d/90consolekit
Loading X session script /etc/X11/Xsession.d/90qt-a11y
Loading X session script /etc/X11/Xsession.d/90x11-common_ssh-agent
Loading X session script /etc/X11/Xsession.d/99x11-common_start
GNOME_KEYRING_CONTROL=/tmp/keyring-5pN3pS
GNOME_KEYRING_CONTROL=/tmp/keyring-5pN3pS
GPG_AGENT_INFO=/tmp/keyring-5pN3pS/gpg:0:1
GNOME_KEYRING_CONTROL=/tmp/keyring-5pN3pS
GNOME_KEYRING_CONTROL=/tmp/keyring-5pN3pS
GPG_AGENT_INFO=/tmp/keyring-5pN3pS/gpg:0:1
SSH_AUTH_SOCK=/tmp/keyring-5pN3pS/ssh

(gnome-settings-daemon:2470): color-plugin-WARNING **: failed to get edid: unable to get EDID for output
Checking if settings need to be migrated ...no
Checking if internal files need to be migrated ...no
Backend : gconf
Integration : true
Profile : unity
Adding plugins
Skipping upgrade com.canonical.unity.unity.01.upgrade
Skipping upgrade com.canonical.unity.unity.02.upgrade
Initializing core options...done
common-plugin-Message: checking whether we have a device for 4: yes
common-plugin-Message: checking whether we have a device for 5: yes
common-plugin-Message: checking whether we have a device for 6: yes
common-plugin-Message: checking whether we have a device for 7: yes
common-plugin-Message: checking whether we have a device for 8: yes
common-plugin-Message: checking whether we have a device for 9: yes
common-plugin-Message: checking whether we have a device for 10: yes
common-plugin-Message: checking whether we have a device for 11: yes
common-plugin-Message: checking whether we have a device for 12: yes
common-plugin-Message: checking whether we have a device for 13: yes
commo...

Niccolò Bonacchi (nbonacchi) wrote :

GLib-GObject-CRITICAL **: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT (value)' failed

WTF?!?!?!

maybe I should just switch to gnome shell!

Niccolò Bonacchi (nbonacchi) wrote :

Oh everything starts with window decorator disappearing along with unity all together Ctrl+Alt T does not bring the terminal up and if I open a folder its not responding...

Haven't even tried to install matlab, with all the X problems it usually has... I NEED TO WORK!!

damn...

Daniel van Vugt (vanvugt) wrote :

The assertion is not relevant to this bug. xsession-errors is normally full of assertions from all sorts of apps. Switching to gnome-shell won't change that.

It's at least good to see you're getting the same error as myself and we're not dealing with different bugs...
error_code 8 request_code 3 minor_code 0

Niccolò Bonacchi (nbonacchi) wrote :

yes sure but will it make my system more stable... that's the question.

I'll try it out and let you know

and why is this bug's priority low? Seems to me it is a major usability issue, no?

Daniel van Vugt (vanvugt) wrote :

You will find gnome-shell uses many of the same processes as Unity, including nautilus, so will share some of the bugs too.

Why Gnome/GTK developers can't look at .xsession-errors and eliminate all the bugs/warnings in their code before release I don't know... But that's the way it's always been in my many years of using Gnome desktops. The log has always shown some bugs and warnings are still present.

I agree that bugs like this significantly tarnish Ubuntu's image. However according to the guidelines, importance of Low seems to be about right:
https://wiki.ubuntu.com/Bugs/Importance

fishears (johnnyp-ntlworld) wrote :

I just found this bug report after experiencing the same problem in 11.04
Seeing that gnome-settings-daemon throws an error I tried killall gnome-settings-daemon and after a short pause, my expected theme reappeared. I didn't even have to log out.
Maybe this will help others until a fix is found.

Daniel van Vugt (vanvugt) wrote :

Unmarked as duplicate. This is not a duplicate of bug 873545 because the circumstances and the X error codes are different.

description: updated
Omer Akram (om26er) on 2011-12-05
no longer affects: unity (Ubuntu)
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in gnome-settings-daemon (Ubuntu):
status: Confirmed → Incomplete
Giorgio Wicklein (giowck) wrote :

I don't know if this may be helpful, but this issue appeared on my machine after the last gnome-accessibility-themes package update.

Reverting back to the previous version fixed it.

Daniel van Vugt (vanvugt) wrote :

I haven't been able to reproduce the bug for over an hour so getting a breakpoint in is a bit difficult right now. But it appears the problem is likely a race condition whereby gnome-settings-daemon is starting slightly too quickly, expecting something else to be running already that isn't. This theory seems to be supported by the message:
    WARN 2011-10-25 14:07:02 glib.gdk <unknown>:0 gdk_xsettings_watch_cb(): Couldn't find window to unwatch
which is only seen in xsession-errors when the bug occurs.

@everyone: When you reproduce this bug next, could you please open a terminal and run:
    ps auxw > /tmp/pslist.txt
and attach the file pslist.txt to this bug?

Daniel van Vugt (vanvugt) wrote :

Hmm, never mind. I reproduced the bug and generated pslist.txt. Found nothing different about the process order.

Now I realize my breakpoint can't work without installing a debug version of libgdk, because the all-important symbol is static :(

Giorgio Wicklein (giowck) wrote :

Still having this issue... every ~5-6 logins..

Any news?

Giorgio Wicklein (giowck) wrote :

plist.txt

Launchpad Janitor (janitor) wrote :

[Expired for gnome-settings-daemon (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-settings-daemon (Ubuntu):
status: Incomplete → Expired
Daniel van Vugt (vanvugt) wrote :

Confirmed again. I still get this bug in oneiric. Usually after compiz has crashed or been killed, when I restart X (and compiz) it fails to restart with a theme. Then logging out and in again finally fixes it.

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

Duplicates of this bug

Other bug subscribers