the csd changes make some desktop applications hog the cpu

Bug #523949 reported by Krzysztof Klimonda
106
This bug affects 14 people
Affects Status Importance Assigned to Milestone
gtk+2.0 (Ubuntu)
Fix Released
High
Cody Russell

Bug Description

After latest gtk+2.0 upgrade rhythmbox has started using a lot of cpu cycles along with X. Doesn't help to minimize window but when I close it to "tray" cpu usage is back to normal.

ProblemType: Bug
Architecture: i386
CheckboxSubmission: c796df2c03d28b45a22c8d1850f0e643
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Thu Feb 18 18:21:12 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100201)
Package: libgtk2.0-0 2.19.5-1ubuntu3
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic-pae
SourcePackage: gtk+2.0
Uname: Linux 2.6.32-13-generic-pae i686

Related branches

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :
summary: - after the upgrade to 2.19.5-1ubuntu3 rhythmbox hogs the cpu while
- playing
+ after upgrade to 2.19.5-1ubuntu3 rhythmbox hogs the cpu while playing
Changed in gtk+2.0 (Ubuntu):
assignee: nobody → Cody Russell (bratsche)
importance: Undecided → High
status: New → Confirmed
tags: added: gtk-csd
Revision history for this message
Marc Deslauriers (mdeslaur) wrote : Re: after upgrade to 2.19.5-1ubuntu3 rhythmbox hogs the cpu while playing

I am having the same problem with xchat since updating gtk+2.0 to 2.19.5-1ubuntu3. xchat and xorg use up 100% of the CPU. Downgrading to gtk+2.0 2.19.5-1ubuntu1 solves the problem.

If this is a different issue, please let me know and I'll open a new bug.

Revision history for this message
Conn O Griofa (psyke83) wrote :

I'm confirming the problem, which appears to visually affect many/all applications.

With the latest update:-
-Video playback stutters every 1/2 second
-Dragging a window is noticeably slow (especially when compositing is disabled)
-Aislerot Solitaire - dragging cards causes ghosting effect
-GTKPerf test now completes in 41 seconds, compared to previous score of 26 seconds.

Revision history for this message
vmc (vmclark) wrote :

"Aislerot Solitaire - dragging cards causes ghosting effect"
I first noticed the above condition.

Checking rhythmbox , I don't have any noticeable effects on playing music, but with rhythmbox opened it is making the cpu% jump way up. From 5% to 66%.

Revision history for this message
Vish (vish) wrote :

Causes problems in evolution too...
Every time i select a new message there is a considerable delay to open new mail [nearly 1sec, seems small delay but it is noticeable only since the last update. ]

Every time i select a new mail it displays "formatting message..." , I notice a spike in evolution CPU usage and then the message gets displayed. Most importantly this is with plain text messages which i dont think deserve the delays. [I use evolution only for LP mail and mailing lists]

Revision history for this message
Sebastien Bacher (seb128) wrote :

updating the title to reflect that not only rhythmbox has the issue and sorry about the several updates some launchpad issues

summary: - after upgrade to 2.19.5-1ubuntu3 rhythmbox hogs the cpu while playing
+ gtk csd changes make rhythmbox hog the cpu while playing
summary: - gtk csd changes make rhythmbox hog the cpu while playing
+ gtk csd changes make random applications hog the cpu
summary: - gtk csd changes make random applications hog the cpu
+ gtk csd changes make desktop applications hog the cpu
summary: - gtk csd changes make desktop applications hog the cpu
+ csd changes make desktop applications hog the cpu
summary: - csd changes make desktop applications hog the cpu
+ the csd changes make some desktop applications hog the cpu
Revision history for this message
Cody Russell (bratsche) wrote :

I've got an updated patch that I believe will solve most of these issues, and I'll try to get it released to Lucid ASAP. For me it's not fixing Rhythmbox though, but I think that may be because I've somehow gotten Rhythmbox stuck in a mode where it's trying to index my entire home directory and I'm not sure how to tell it to stop. I'm hoping that my patch will fix Rhythmbox for all of you though. :)

Cody Russell (bratsche)
Changed in gtk+2.0 (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Matt Behrens (zigg) wrote :

2.19.5-1ubuntu2 is sufficient for a downgrade workaround. To avoid breakage, downgrade all of

gtk2-engines-pixbuf
libgail18
libgail-common
libgtk2.0-0
libgtk2.0-bin
libgtk2.0-common

gnucash and pidgin also suffer from this. gnucash in particular doesn't cope well, dropping, duping, and transposing keyboard input.

Revision history for this message
vmc (vmclark) wrote :

Matt,

The problem is there no "2.19.5-1ubuntu2" to downgrade to. After issuing the command:

apt-cache showpkg gtk2-engines-pixbuf

The Provides only has the current version.
....
Provides:
2.19.5-1ubuntu3 -

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

This bug was fixed in the package gtk+2.0 - 2.19.5-1ubuntu4

---------------
gtk+2.0 (2.19.5-1ubuntu4) lucid; urgency=low

  * debian/patches/062_client_side_decoration.patch:
    - update by Cody Russell to fix excessive cpu usage issues
      (lp: #523949)
 -- Sebastien Bacher <email address hidden> Mon, 22 Feb 2010 10:13:06 +0100

Changed in gtk+2.0 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Matt Behrens (zigg) wrote :

vmc: or, they might still be in /var/cache/apt/archives as well, a very common trick I use for downgrades.

I pulled 1ubuntu4 builds for all the above packages I listed, installed them, logged out/in and gnucash is again exhibiting severe UI slowdown.

Downgrading once again to 1ubuntu2 fixed the problem.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The update doesn't fix the issue there, reopening

Changed in gtk+2.0 (Ubuntu):
status: Fix Released → Triaged
Revision history for this message
Ernst Persson (ernstp) wrote :

You can quickly test this with the "gtkperf" tool.
gtk+2.0 2.19.5-1ubuntu2: 5 - 5:30 secs
gtk+2.0 2.19.5-1ubuntu3: ~9 secs
gtk+2.0 2.19.5-1ubuntu4: ~9 secs

Revision history for this message
Pavel Rojtberg (rojtberg) wrote :

there are also more issues with the csd patch:
* it draws window decorations even for boderless windows, like at the gdm login or the eclupse splash screen
* dragging a file in nautilus results in a grey box instead of the transparent image of the file

should I open new bugs for this, or is it fine to collect them here?

Revision history for this message
Sebastien Bacher (seb128) wrote :

those have already been reported see bug #524869 and bug #523954

Revision history for this message
Sebastien Bacher (seb128) wrote :

you can look to https://bugs.launchpad.net/ubuntu/+bugs?field.tag=gtk-csd too for csd known issues

Revision history for this message
Matt Behrens (zigg) wrote :

Pavel: For the nautilus issue, there's bug #523954.

I'm not sure where the decorations bug is, if there is one; but it actually breaks (the admittedly really hacky) Firefox Echofon extension, making it more or less impossible to use as it seems to be impossible to deliver close/etc. events to it.

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

on ubuntu lucid
gtk2-engines:
  Installed: 1:2.18.5-0ubuntu1

$ gtkperf

(gtkperf:29137): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gtkperf:29137): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
GtkPerf 0.40 - Starting testing: Mon Feb 22 13:50:51 2010

GtkEntry - time: 0.15
GtkComboBox - time: 14.04
GtkComboBoxEntry - time: 10.74
GtkSpinButton - time: 0.38
GtkProgressBar - time: 1.69
GtkToggleButton - time: 10.27
GtkCheckButton - time: 10.76
GtkRadioButton - time: 11.52
GtkTextView - Add text - time: 3.97
GtkTextView - Scroll - time: 0.13
GtkDrawingArea - Lines - time: 17.60
GtkDrawingArea - Circles - time: 16.78
GtkDrawingArea - Text - time: 4.11
GtkDrawingArea - Pixbufs - time: 0.30
 ---
Total time: 102.46

Quitting..

On debian unstable:
gtk2-engines:
  Installed: 1:2.18.5-1

$ gtkperf

(gtkperf:11977): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gtkperf:11977): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
GtkPerf 0.40 - Starting testing: Mon Feb 22 13:52:08 2010

GtkEntry - time: 0.02
GtkComboBox - time: 0.89
GtkComboBoxEntry - time: 0.26
GtkSpinButton - time: 0.06
GtkProgressBar - time: 0.03
GtkToggleButton - time: 0.05
GtkCheckButton - time: 0.04
GtkRadioButton - time: 0.14
GtkTextView - Add text - time: 0.54
GtkTextView - Scroll - time: 2.35
GtkDrawingArea - Lines - time: 0.37
GtkDrawingArea - Circles - time: 0.86
GtkDrawingArea - Text - time: 4.20
GtkDrawingArea - Pixbufs - time: 0.54
 ---
Total time: 10.34

Quitting..

Revision history for this message
vmc (vmclark) wrote :

"From post#13 ,Sebastien Bacher - The update doesn't fix the issue there, reopening" Thanks!

It didn't fix my issue either, Aislerot Solitaire "ghosting", from post#4.

 I ran the 'gtkperf' test. It finished in "Total time: 27.14". Brought up a gui and did its thing, but so what? What's that prove? I'm not all that sure what this test has to do with the "ghosting" effect.

I'm going to try what Matt Behrens wrote in post#8, and see if it goes away.

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

Sebastien, asked me to repeat the test, so here it is with latest updates.
still very far from Debian results

$ apt-cache policy libgtk2.0-0
libgtk2.0-0:
  Installed: 2.19.5-1ubuntu4
  Candidate: 2.19.5-1ubuntu4
  Version table:
 *** 2.19.5-1ubuntu4 0
        500 http://neacm.fe.up.pt lucid/main Packages
        500 http://archive.ubuntu.com lucid/main Packages
        100 /var/lib/dpkg/status
bugabundo@BluBUG:~/temp/gwibber$ gtkperf

(gtkperf:12291): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gtkperf:12291): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
GtkPerf 0.40 - Starting testing: Mon Feb 22 16:11:42 2010

GtkEntry - time: 0.07
GtkComboBox - time: 7.58
GtkComboBoxEntry - time: 10.57
GtkSpinButton - time: 0.33
GtkProgressBar - time: 2.18
GtkToggleButton - time: 6.25
GtkCheckButton - time: 4.22
GtkRadioButton - time: 5.36
GtkTextView - Add text - time: 1.86
GtkTextView - Scroll - time: 0.48
GtkDrawingArea - Lines - time: 16.30
GtkDrawingArea - Circles - time: 14.70
GtkDrawingArea - Text - time: 3.23
GtkDrawingArea - Pixbufs - time: 0.49
 ---
Total time: 73.63

Quitting..

Revision history for this message
vmc (vmclark) wrote :

I downloaded the binaries and move them to "/var/cache/apt/archives", but I couldn't downgrade.
I still get the:
....
Provides:
2.19.5-1ubuntu3 -

Using:

sudo apt-get install gtk2-engines-pixbuf=2.19.5-1ubuntu2

I get:

E: Version '2.19.5-1ubuntu2' for 'gtk2-engines-pixbuf' was not found

Revision history for this message
Matt Behrens (zigg) wrote :

vmc: try

cd /var/cache/apt/archives
sudo dpkg -i gtk2-engines-pixbuf_2.19.5-1ubuntu2_i386.deb libgail18_2.19.5-1ubuntu2_i386.deb libgail-common_2.19.5-1ubuntu2_i386.deb libgtk2.0-0_2.19.5-1ubuntu2_i386.deb libgtk2.0-bin_2.19.5-1ubuntu2_all.deb libgtk2.0-common_2.19.5-1ubuntu2_all.deb

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

from a fresh Guest Session, fully updated

$ gtkperf

(gtkperf:9151): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(gtkperf:9151): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
GtkPerf 0.40 - Starting testing: Mon Feb 22 21:48:58 2010

GtkEntry - time: 0.04
GtkComboBox - time: 1.64
GtkComboBoxEntry - time: 1.45
GtkSpinButton - time: 0.10
GtkProgressBar - time: 0.23
GtkToggleButton - time: 0.92
GtkCheckButton - time: 0.94
GtkRadioButton - time: 0.92
GtkTextView - Add text - time: 0.78
GtkTextView - Scroll - time: 0.14
GtkDrawingArea - Lines - time: 0.40
GtkDrawingArea - Circles - time: 0.36
GtkDrawingArea - Text - time: 0.40
GtkDrawingArea - Pixbufs - time: 0.08
 ---
Total time: 8.39

Quitting..

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

This bug was fixed in the package gtk+2.0 - 2.19.5-1ubuntu5

---------------
gtk+2.0 (2.19.5-1ubuntu5) lucid; urgency=low

  * debian/patches/062_client_side_decoration.patch:
    - update by Cody Russell to really fix excessive cpu usage issues
      (lp: #523949, #524304)
 -- Sebastien Bacher <email address hidden> Tue, 23 Feb 2010 00:49:15 +0100

Changed in gtk+2.0 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Matt Behrens (zigg) wrote :

1ubuntu5 seems to have fixed the slowdown problem for me.

Revision history for this message
xrayA4T (xraya4t) wrote :

Last night Rhythmbox was running at 50% CPU when playing MP3s, it is now at about 16% since I updated this morning.

Revision history for this message
vmc (vmclark) wrote :

It appears that "2.19.5-1ubuntu5" fixed the client-side-decorations of "ghosting" effects.
Also Rhythmbox is now under control.

Everything that I had issues with, including Plymouth, apparently have been fixed with todays daily-live.

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.