awn uses 100% cpu with gtk+ 2.17.3 (csw)

Bug #398008 reported by Bmw1000c
92
This bug affects 8 people
Affects Status Importance Assigned to Milestone
avant-window-navigator (Ubuntu)
Invalid
Undecided
Unassigned
gtk+2.0 (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

Binary package hint: avant-window-navigator

when awn is opened, cpu usage raises to 100% which leave the system completly unoperable

ProblemType: Bug
Architecture: i386
Date: Fri Jul 10 22:23:16 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: avant-window-navigator 0.3.2.1-4
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-2.16-generic
SourcePackage: avant-window-navigator
Uname: Linux 2.6.31-2-generic i686

Related branches

Revision history for this message
Bmw1000c (bmw1000c) wrote :
Revision history for this message
Wayne Cat (exchange) wrote :

a lot of errors in .xsession-errors:

(awn:20360): Gdk-CRITICAL **: gdk_region_destroy: assertion `region != NULL' failed

The same problem with the version from:

http://ppa.launchpad.net/awn-testing/ppa/ubuntu

Revision history for this message
Mark Lee (malept) wrote :

Which window manager are you running?
Which version of the nvidia drivers do you have installed?

Changed in avant-window-navigator (Ubuntu):
status: New → Incomplete
Revision history for this message
Bmw1000c (bmw1000c) wrote :

gnome
185.18.14

Revision history for this message
Bmw1000c (bmw1000c) wrote :
Revision history for this message
Mark Lee (malept) wrote :

What level of "visual effects" is your desktop configured for?
(See System -> Preferences -> Appearance -> Visual Effects, I believe. Not running Ubuntu at the moment.)

Revision history for this message
Bmw1000c (bmw1000c) wrote :

normal.

i used awn for about 2 weeks and then, with the yesterday's update, it was using 100% cpu

Revision history for this message
Wayne Cat (exchange) wrote :

Forgot this:

- I'm using Gnome with Compiz
- Visual Effects: Normal
- ATI Technologies Inc M56P [Radeon Mobility X1600]
- xserver-xorg-video-radeon 1:6.12.99+git20090629.f39cafc5-0ubuntu1

Revision history for this message
Tjeremiah (tjeremiah15) wrote :

I can also confirm this. Recent update made the cpu blow up to 100%.
- Compiz with Gnome
-Visual Effects : Extra

Revision history for this message
Mark Lee (malept) wrote :

It would be great if you all could remember what was upgraded in the update in question.

Additionally, please try the following (as I have a feeling that it has something to do with compiz):

1. Press Alt + F2. This will open up the "run program" dialog.
2. Run the following command (without quotes): "metacity --replace --composite"
3. This will replace Compiz with the default window manager for GNOME, Metacity, but with composite enabled (so that Awn runs correctly).
4. Start Awn. Does Awn still use 100% of your CPU?

Revision history for this message
eris23 (jdkatz23) wrote :

karmic 2.6.31-2-generic #17-Ubuntu SMP Fri Jul 10 21:48:17 UTC 2009 x86_64 GNU/Linux
awn-manager-trunk 0.3.3~bzr566-1.9.10
compiz or metacity
Xorg & awn together use 100% cpu

Revision history for this message
André Ventura (afv) wrote :

I can also confirm this. There were some updates to some libgtk2-* packages yesterday (2.17.3-0ubuntu1)…

- Ubuntu / Gnome
- Compiz / Visual effects: custom
- NVIDIA: 190.09
- Kernel: 2.6.31-2.17
- AWN: 0.3.2.1-4

Same problem after trying with metacity (metacity --replace --composite).

Revision history for this message
Wayne Cat (exchange) wrote :

I have attached a list of updates. The problem started after theses upgrades.

Revision history for this message
Mark Lee (malept) wrote :

@Wayne Cat: Thank you for the list of updates, that helped a lot.

@all affected:
So what I'm thinking is that given the variety of video cards/drivers and window managers, and also the upgrade list provided by Wayne Cat, that this is a problem caused by the most recent upgrade to GTK+.

To test this theory, I need you all to downgrade all of the packages in Wayne Cat's updates list with the version "2.17.3-0ubuntu1" (they all have "gtk" in the package name) to a version lower than that According to Launchpad, the version immediately preceding that one in Karmic is "2.17.2-0ubuntu2". Details on downgrading packages can be found in the following Ubuntu Forums links:

http://ubuntuforums.org/showthread.php?t=321156
http://ubuntuforums.org/showthread.php?t=1111160

Revision history for this message
André Ventura (afv) wrote :

Downgrading libgtk2.0-0 from 2.17.3-0ubuntu1 to 2.16.1-0ubuntu2 "solves" the problem.

Revision history for this message
Wayne Cat (exchange) wrote :

Thanks André V and Mark Lee... good job!

I have tried your "solution" ... "solved" my problem too. Maybe the awn developer knows what we should do to use
awn with the new libgtk2.0-0 version.

Revision history for this message
André Ventura (afv) wrote :

I'dd also like to add that this new version of libgtk2.0-0 crashes cheese upon start… Maybe it's not AWN nor cheese's problem.

Revision history for this message
André Ventura (afv) wrote :

I'd also like to add that this new version of libgtk2.0-0 crashes cheese upon start… Maybe it's not AWN nor cheese's problem.

Revision history for this message
Mark Lee (malept) wrote :

Sharkbait in IRC reminded me that the major change in GTK+ 2.17.3 is the merging of the client-side-windows branch, which is effectively a rewrite of how GDK (the underlying, platform-specific part of GTK) works. Awn (and apparently, Cheese as well) does not work with this rewrite.

Revision history for this message
André Ventura (afv) wrote :

(Sorry for the double post. Didn't stop the page in time.)

A user from Ubuntu Forums referred that it is working with 2.17.2-0ubuntu2 too. This should help a little more.

I didn't test that version because it isn't at http://mirrors.kernel.org/ubuntu/pool/main/g/gtk+2.0/ .

Mark Lee (malept)
summary: - awn uses 100% cpu
+ awn uses 100% cpu with gtk+ 2.17.3 (csw)
Mark Lee (malept)
summary: - awn uses 100% cpu with gtk+ 2.17.3 (csw)
+ [karmic] awn uses 100% cpu with gtk+ 2.17.3 (csw)
Revision history for this message
Wayne Cat (exchange) wrote :

Marc Lee ... thank you for the "background information"

I'm using the Screenlets "Output applet" (Widget-like mini-applications for GNOME) ... it also has problems with the new version. Not critical ... it works ... just lost the "3d look" ... but maybe other tools also have problems with the update ... just for your information.

Attached ... my .xsession-errors ... maybe the Screenlet developers will have to change their code too.

BTW ... major changes means ... major improvements ... awn is not critical application ... And I did not see major gtk
problems in the Ubuntu Karmic testing forum.

Revision history for this message
Mark Lee (malept) wrote : Re: [karmic] awn uses 100% cpu with gtk+ 2.17.3 (csw)

See also bug #398250 for another app that doesn't work with the GDK rewrite (and I'd call that app critical...).

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

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

summary: - [karmic] awn uses 100% cpu with gtk+ 2.17.3 (csw)
+ awn uses 100% cpu with gtk+ 2.17.3 (csw)
Changed in gtk+2.0 (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue could be one of the ones fixed in 2.17.4 which will be uploaded tomorrow

Changed in gtk+2.0 (Ubuntu):
importance: Low → High
Revision history for this message
ThaBiGGDoGG (thabiggdogg) wrote :

I am not sure if this is related into this but after that update that messed things up when I reboot & log into my system I now get a "Gdm-simple-greeter" error. On top of the window says Metacity.

Revision history for this message
Wayne Cat (exchange) wrote :

Tha BiGG DoGG,

this problem is related to the new gdm 2.26 version. See #395324 for further information.

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

Confirmed on 2.17.4 in karmic and sent on http://bugzilla.gnome.org/show_bug.cgi?id=588438

Changed in gtk+2.0 (Ubuntu):
status: New → Triaged
Revision history for this message
Mark Lee (malept) wrote :

Attention Karmic users:

Upstream has asked for a stacktrace. Here's the (relatively) quick way to get it:

1. Install bug-buddy and the debug packages for GTK and libawn: `sudo apt-get install bug-buddy libawn0-dbg libgtk2.0-0-dbg`
2. Run Awn from the terminal, with bug-buddy enabled and configured to run when the critical message is encountered: `GTK_MODULES=gnomebreakpad G_DEBUG=fatal_criticals avant-window-navigator`
3. When Awn crashes, save the bug report somewhere. (In case that there's more than one of the "save bug report" dialogs, the one we want is the one which lists the default filename as "avant-window-navigator-bugreport.txt".)
4. Attach that bug report to this bug.

Thanks in advance. The Awn developers really want to get this resolved.

Revision history for this message
Bmw1000c (bmw1000c) wrote :

how do i configure bug-buddy to run with that message? thanks

Revision history for this message
Wayne Cat (exchange) wrote :

Sorry ... stack trace not possible ... "unfortunately" awn does not crash ... after about 30 minutes
( Xorg at about 60% and awn at about 30% CPU usage) I had to kill the awn process. No result
from bug-buddy.

Revision history for this message
Mark Lee (malept) wrote :

IIRC, bug-buddy doesn't need to be configured at all.

If you run the command in #2 in the terminal exactly, it should "crash".

To reiterate, the command to run is as follows:

GTK_MODULES=gnomebreakpad G_DEBUG=fatal_criticals avant-window-navigator

Revision history for this message
Bmw1000c (bmw1000c) wrote :
Revision history for this message
Wayne Cat (exchange) wrote :

ok ... bloody typo ... here it is.

Revision history for this message
Wayne Cat (exchange) wrote :

rschmitt@macbook:/$ GTK_MODULES=gnomebreakpad G_DEBUG=fatal_criticals awn
Screen is composited.
LOADED : /home/rschmitt/.config/awn/launchers/awn_launcher-5.desktop
LOADED : /usr/share/applications/firefox.desktop
LOADED : /usr/share/applications/evolution.desktop
LOADED : /usr/share/applications/rhythmbox.desktop
LOADED : /usr/share/applications/totem.desktop
LOADED : /usr/share/applications/tvbrowser.desktop
LOADED : /home/rschmitt/.config/awn/launchers/awn_launcher-6.desktop
LOADED : /home/rschmitt/.config/awn/launchers/awn_launcher-4.desktop
LOADED : /usr/share/applications/gnome-terminal.desktop
APPLET : /usr/share/avant-window-navigator/applets/taskman.desktop

Gdk-CRITICAL **: gdk_region_destroy: assertion `region != NULL' failed
aborting...
rschmitt@macbook:/$

Revision history for this message
Mark Lee (malept) wrote :

Thanks, Bmw1000c and Wayne Cat. I'm forwarding one of the stacktraces upstream (as they're essentially the same thing).

Revision history for this message
Mark Lee (malept) wrote :

@ Bmw1000c and Wayne Cat:

1. Are you positive that libawn0-dbg is installed?
2. Could you confirm that the bug still exists with GTK+ 2.17.5 (recently added to Karmic)?

Revision history for this message
Bmw1000c (bmw1000c) wrote : Re: [Bug 398008] Re: awn uses 100% cpu with gtk+ 2.17.3 (csw)

1. yes i am. i run "GTK_MODULES=gnomebreakpad G_DEBUG=fatal_criticals
avant-window-navigator" with AWN closed, because awn does not crash..
2. i just updated karmic and it still uses 100%

2009/7/20 Mark Lee <email address hidden>

> @ Bmw1000c and Wayne Cat:
>
> 1. Are you positive that libawn0-dbg is installed?
> 2. Could you confirm that the bug still exists with GTK+ 2.17.5 (recently
> added to Karmic)?
>
> --
> awn uses 100% cpu with gtk+ 2.17.3 (csw)
> https://bugs.launchpad.net/bugs/398008
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Bmw1000c (bmw1000c) wrote :

1. yes i am. i run "GTK_MODULES=gnomebreakpad G_DEBUG=fatal_criticals avant-window-navigator" with AWN closed, because awn does not crash..
2. i just updated karmic and it still uses 100%

Revision history for this message
Wayne Cat (exchange) wrote :

root@macbook:~# dpkg -l |grep libawn0
ii libawn0 0.3.2.1-4 library for avant-window-navigator
ii libawn0-dbg 0.3.2.1-4 library for avant-window-navigator - debug package

libawn-gbg is OK ........... but:

root@macbook:~# dpkg -l |grep -i gtk |grep 2.17
ii gtk2-engines-pixbuf 2.17.4-0ubuntu2 Pixbuf-based theme for GTK+ 2.x
ii libgtk2.0-0 2.17.4-0ubuntu2 The GTK+ graphical user interface library
ii libgtk2.0-0-dbg 2.17.4-0ubuntu2 The GTK+ libraries and debugging symbols
ii libgtk2.0-bin 2.17.4-0ubuntu2 The programs for the GTK+ graphical user interface libr
ii libgtk2.0-common 2.17.4-0ubuntu2 Common files for the GTK+ graphical user interface libr
ii libgtk2.0-dev 2.17.4-0ubuntu2 Development files for the GTK+ library
root@macbook:~#

I saw GTK+ 2.17.5 in the queue:

https://edge.launchpad.net/ubuntu/karmic/+queue?queue_state=3&queue_text=libgtk2.0-0&start=30

but it is not on my mirror at the moment.

Will test it again with the new GTK+ version

Revision history for this message
Wayne Cat (exchange) wrote :

updated to GTK+ 2.17.5 ... same problem

Revision history for this message
Hunter Laux (jolting) wrote :

Has anyone tried it with this patch?
http://bugzilla.gnome.org/attachment.cgi?id=138922

Revision history for this message
Mark Lee (malept) wrote :
Revision history for this message
Wayne Cat (exchange) wrote :

I have installed GTK+ 2.17.6

The error messages in .xsession-errors are gone ... but still 100% CPU usage (awn & Xorg process)

Revision history for this message
Mark Lee (malept) wrote :

Yeah, I kind of figured.

FWIW, we (the Awn devs) are waiting for the GTK devs to respond to a performance analysis that was attached to the bug last week.

Revision history for this message
Julien Lavergne (gilir) wrote :

I pushed a workaround found by mhr3 for this problem, it's available in my PPA : https://launchpad.net/~gilir/+archive/updates

I confirmed that the bug is gone, but more testing will be appreciate to see if this workaround doesn't generated more bugs.

Revision history for this message
Michal Hruby (mhr3) wrote :

What could happen with this patch is that the icons will be below the dock itself, please let us know if this seems to be happening.

Revision history for this message
Wayne Cat (exchange) wrote :

Julien,

your version works great on my system. AWN works like expected and the CPU usage is low.
I will use it to see if there are any bugs in it.

Michal,

the icons in my dock are were they should be but I will keep this in mind.

Revision history for this message
Id2ndR (id2ndr) wrote :

avant-window-navigator 0.3.2.1-4ubuntu1~ppa1 from Julien Lavergne's PPA solve the problem on my system too (Intel G945 with compiz enable).

Revision history for this message
eris23 (jdkatz23) wrote :

avant-window-navigator 0.3.2.1-4ubuntu1~ppa1 from Julien Lavergne's PPA solves the problem on my system too (nvidia-190 drivers, 64bit, karmic)

Revision history for this message
Moisa Doru (moisadoru) wrote :

avant-window-navigator 0.3.2.1-4ubuntu1~ppa1 from Julien Lavergne's PPA does
not seem to work for me. :(

On Sun, Aug 9, 2009 at 8:29 PM, eris23 <email address hidden> wrote:

> avant-window-navigator 0.3.2.1-4ubuntu1~ppa1 from Julien Lavergne's PPA
> solves the problem on my system too (nvidia-190 drivers, 64bit, karmic)
>
> --
> awn uses 100% cpu with gtk+ 2.17.3 (csw)
> https://bugs.launchpad.net/bugs/398008
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

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

The bug has been fixed upstream now

Changed in gtk+2.0 (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+2.0 - 2.17.7-0ubuntu1

---------------
gtk+2.0 (2.17.7-0ubuntu1) karmic; urgency=low

  * New upstream version:
    - Client-side windows: a number of regressions related to embedding
      have been fixed
    - Printing: The file backend supports SVG output
    - Minor API additions:
      - GtkIconView gained an icon-padding property that can be used to fine-tune
        how much space each column needs
      - GtkTreeViewColumn grew a sort-column-id property that can be used to set
        up sort columns in GtkBuilder files
      - GdkWindow gained a cursor property and associated getter
      - GtkFileChooser has a create-folders property to allow disabling the
        "New Folder" button
      - gtk_print_operation_get_n_pages_to_print: returns the number of pages
        that are being printed
      - New getters and setters as part of the GSEAL effort:
        gtk_widget_get_allocation, gtk_widget_get_visible, gtk_widget_set_visible
    - Bugs fixed:
    589336 Add GtkTreeViewColumn:sort-column-id property
    534462 Disable interactive search in the file chooser's shortcuts pane
    161489 n the file chooser, let the left/right arrow keys switch focus...
    514260 Better filtering for "Recently Used" files
    509650 ATK_STATE_SHOWING state is not set properly on menu items
    586374 code does not follow documentation (-> carshes when using...
    590442 csw broke gvim x11 embedding
    498010 gtk_tree_view_set_cursor fails if model!=NULL
    555109 Synthesized crossing events should have proper coordinates
    570516 Can't disable folder creation
    573321 additional check in gtk_tree_model_filter_convert_child_i...
    576601 Double clicking prints to the wrong printer
    586100 ITEM_PADDING breaks vertical icon views
    588438 awn uses 100% cpu with gtk+ 2.17.3 (lp: #398008)
    589732 behavior change of gdk_window_get_type_hint
    589745 Apply message in GtkAssistant
    590084 print to FILE with multiple pages per sheet has bad results
    590086 configure.in is broken on non-X platforms
    590309 Default cover pages for CUPS printers incorrectly set
    590448 [win32] build fails because gdk-pixbuf manges a path
    590959 Set child_has_focus flag properly
    591288 compat problem with draw_drawable being NULL
    539377 Unnecessary warnings when GtkTreeView is not realized.
    546005 priv->tree is not created for unrealized (I think) treeview
    564695 Pressing enter key in print to file "Name" box does not p...
    591218 Remove some unused variables
    357655 "Print to SVG file" for GtkPrintOperation
    591462 gdk_window_set_cursor doesn't work on the root window
    - Updated translations
  * debian/patches/092_bugzilla_fix_gdm_refresh_issue.patch:
    - dropped, the bug is fixed in the new version now
  * debian/patches/091_directfb_build_workaround.patch:
    - dropped, the bug is fixed in the new version now
  * debian/rules:
    - updated shlib version

 -- Sebastien Bacher <email address hidden> Wed, 12 Aug 2009 10:30:01 +0200

Changed in gtk+2.0 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Id2ndR (id-2ndr) wrote :

Launchpad Bug Tracker a écrit :
> This bug was fixed in the package gtk+2.0 - 2.17.7-0ubuntu1
This package this the problem on my computer after reinstalling AWN
package from universe repository.

However (but I should search if there is an other existing bug for that)
there is a with compiz when preview's thumbnail plugin is activated :
when it should draw the thumbnail compiz crash. This is true with both
awn packages (from Julien's ppa and universe repository).

Revision history for this message
Mark Lee (malept) wrote :

> However (but I should search if there is an other existing bug for that)
> there is a with compiz when preview's thumbnail plugin is activated :
> when it should draw the thumbnail compiz crash. This is true with both
> awn packages (from Julien's ppa and universe repository).

Offhand, this doesn't look like it's relevant to this bug (or to Awn, for that matter). You probably want to file a compiz bug (if one doesn't already exist).

Revision history for this message
Moisa Doru (moisadoru) wrote :

Yup, this one works for me

On Wed, Aug 12, 2009 at 2:10 PM, Launchpad Bug Tracker <
<email address hidden>> wrote:

> This bug was fixed in the package gtk+2.0 - 2.17.7-0ubuntu1
>
>

Revision history for this message
Mark Lee (malept) wrote :

The Awn developers are marking this as "Invalid", as the regressions have been fixed upstream in GTK+ (without any changes in the Awn package). Thanks to the reporters who helped debug this.

Changed in avant-window-navigator (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Id2ndR (id-2ndr) wrote :

>> However (but I should search if there is an other existing bug for that)
>> there is a with compiz when preview's thumbnail plugin is activated :
>> when it should draw the thumbnail compiz crash. This is true with both
>> awn packages (from Julien's ppa and universe repository).
>>
>
> Offhand, this doesn't look like it's relevant to this bug (or to Awn,
> for that matter). You probably want to file a compiz bug (if one doesn't
> already exist)

Done. This is Bug #413094.

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.