Thanks for tracking this down and for the sample code. 
I can reproduce the problem with your examples and confirm the disabling 
appmenu with UBUNTU_MENUPROXY=0 works around the problem. 

I'm affecting to the right package.

** Package changed: unity (Ubuntu Natty) => indicator-appmenu (Ubuntu
Natty)

** Changed in: indicator-appmenu (Ubuntu Natty)
   Importance: Medium => High

** Changed in: indicator-appmenu (Ubuntu Natty)
       Status: Confirmed => Triaged

** Changed in: indicator-appmenu (Ubuntu Natty)
    Milestone: None => ubuntu-11.04

** Package changed: pgadmin3 (Ubuntu Natty) => wxwidgets2.8 (Ubuntu
Natty)

** Changed in: wxwidgets2.8 (Ubuntu Natty)
   Importance: Medium => High

** Changed in: wxwidgets2.8 (Ubuntu Natty)
       Status: Confirmed => Triaged

** Changed in: wxwidgets2.8 (Ubuntu Natty)
    Milestone: None => ubuntu-11.04

** Package changed: indicator-appmenu (Ubuntu Natty) => appmenu-gtk
(Ubuntu Natty)

** Summary changed:

- CPU usage due to X becomes very high when pgadmin3 runs
+ High CPU usage of wxWidget apps caused by dbusmenu

** Description changed:

  Binary package hint: pgadmin3
  
- Since a recent update (package non identified) when pgadmin3 is launched
- the desktop becomes really slow and X starts consuming a lot of CPU. The
- UI of pgadmin3 is like flickering very fast.
+ When wxWidget application is launched (e.g pgadmin3) the desktop becomes
+ really slow and X starts consuming a lot of CPU. The UI of pgadmin3 is
+ like flickering very fast.
  
  Everything returns to normal when pgadmin3 is closed.
  
- history.log attached with the latest updates since this behaviour began.
+ There are minimal python and cpp examples attached to this report in
+ minimal.tar.gz
  
  TEST CASE:
  1. Start a Unity session
  2. Launch pgadmin3
  3. Connect to a server
  4. Launch the Query Tool
  
  Result:
  The desktop becomes very slow, X consuming most of the CPU and the UI of 
pgadmin3 is like flickering very fast.
+ 
+ WORKAROUND:
+ disable dbusmenu with:
+ $ UBUNTU_MENUPROXY= pgadmin3
+ 
  
  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: pgadmin3 1.12.2-1
  ProcVersionSignature: Ubuntu 2.6.38-4.31-generic 2.6.38-rc5
  Uname: Linux 2.6.38-4-generic i686
  Architecture: i386
  Date: Mon Feb 21 00:14:53 2011
  EcryptfsInUse: Yes
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.utf8
   LC_MESSAGES=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: pgadmin3

** Description changed:

  Binary package hint: pgadmin3
  
  When wxWidget application is launched (e.g pgadmin3) the desktop becomes
  really slow and X starts consuming a lot of CPU. The UI of pgadmin3 is
  like flickering very fast.
  
  Everything returns to normal when pgadmin3 is closed.
  
  There are minimal python and cpp examples attached to this report in
  minimal.tar.gz
+ 
+ This was introduced by the fix for bug 662077
  
  TEST CASE:
  1. Start a Unity session
  2. Launch pgadmin3
  3. Connect to a server
  4. Launch the Query Tool
  
  Result:
  The desktop becomes very slow, X consuming most of the CPU and the UI of 
pgadmin3 is like flickering very fast.
  
  WORKAROUND:
  disable dbusmenu with:
  $ UBUNTU_MENUPROXY= pgadmin3
- 
  
  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: pgadmin3 1.12.2-1
  ProcVersionSignature: Ubuntu 2.6.38-4.31-generic 2.6.38-rc5
  Uname: Linux 2.6.38-4-generic i686
  Architecture: i386
  Date: Mon Feb 21 00:14:53 2011
  EcryptfsInUse: Yes
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.utf8
   LC_MESSAGES=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: pgadmin3

** Changed in: unity
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/722375

Title:
  High CPU usage of wxWidget apps caused by dbusmenu

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to