Adwaita CSS warnings causing massive .xesssion-errors spew

Bug #1052353 reported by Michael Gratton
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-themes-standard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Adwaita theme in Qantal seems to have a lot of invalid CSS, this is causing a huge number of warnings to stderr, and hence .xsession-errors. Some examples:

> (empathy:6862): Gtk-WARNING **: Theme parsing error: nautilus.css:140:23: 'px' is not a valid color name
> (gnome-user-share:3653): Gtk-WARNING **: Theme parsing error: gnome-panel.css:89:24: 'px' is not a valid color name
> (empathy:6862): Gtk-WARNING **: Theme parsing error: gnome-panel.css:89:24: 'px' is not a valid color name
> (gnome-shell-calendar-server:23483): Gtk-WARNING **: Theme parsing error: gnome-panel.css:89:24: 'px' is not a valid color name
> Window manager warning: Log level 16: Theme parsing error: gtk-widgets.css:90:23: 'px' is not a valid color name
> Window manager warning: Log level 16: Theme parsing error: gtk-widgets.css:147:23: 'px' is not a valid color name
> Window manager warning: Log level 16: Theme parsing error: gtk-widgets.css:149:24: Horizontal and vertical offsets are required

I just upgraded to Qantal today and after an afternoon's worth of use, my .xsession-errors is 80Mb big, these messages constitute a non-trivial part of that.

Tags: quantal
Michael Gratton (mjog)
tags: added: quantal
Revision history for this message
Alvin (alvin) wrote :

haven't dug into the underlying engine but found a couple of items that are related and could be patched on either the engine or the theme side -- got tired of seeing all the errors so I tinkered with the css for a few minutes

when using 0 as a size in standard css it is rendered as 0px
when 0 is found in a gtk theme it raises an error

patch: replace all 0; and 0 (0 space) with 0px

text-shadow: this one is just funky -- haven't been able to find a setting that doesn't raise an error besides commenting out
box-shadow: same

documentation says that the shadow setting support the inset function only -- doesn't seem true since no matter how I adjust them they keep raising errors

not a great help but might provide a pointer for someone else getting tired of huge error log files

themes are located in /usr/share/themes/

you can grep | sed the updates globally or edit manually (safer)

recap: replace any size reference of 0 to 0px -- comment out all text-shadow & box-shadow lines
doesn't fix the bugs but makes the parsing engine happier

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

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

Changed in gnome-themes-standard (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

Remote bug watches

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