Opening "Software Sources" through Ubuntu Software Center causes 100% CPU

Bug #459521 reported by Kent deVillafranca
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Olivier Tilloy
Lucid
Fix Released
Medium
Olivier Tilloy

Bug Description

Binary package hint: software-center

After opening the Ubuntu Software Center, going to Edit->Software Sources causes the Software Center to increase the CPU usage to 100%. After the Software Sources window is closed, CPU usage returns to normal. Opening Software Sources from the System->Administration menu doesn't cause this (no matter whether the Ubuntu Software Center is open or not).

This is using a system that had a fresh install of Jaunty, and was just upgraded to Karmic.

TEST CASE:
1. use software-center from lucid
2. click on the menu edit/software sources
3. verify that the cpu goes to 100%
4. close the apps
5. install software-center from lucid-proposed
6. repeat step 2
7. verify that the cpu is no longer at 100%

ProblemType: Bug
Architecture: i386
Date: Fri Oct 23 21:42:28 2009
DistroRelease: Ubuntu 9.10
Package: software-center 1.0.1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: software-center
Uname: Linux 2.6.31-14-generic i686

Related branches

Revision history for this message
Kent deVillafranca (kdevilla) wrote :
Revision history for this message
Waldir Leoncio (wleoncio) wrote :

Reproduced on a fresh Karmic install.

Changed in software-center (Ubuntu):
status: New → Confirmed
Revision history for this message
MillenniumBug (millenniumbug) wrote :

Reproduced on 10.04 alpha 3 with all updates.

Revision history for this message
MillenniumBug (millenniumbug) wrote :

in Software Centre version 1.1.16.1

Revision history for this message
Kent deVillafranca (kdevilla) wrote :

I'm still able to reproduce this bug in Lucid beta 1.

Revision history for this message
Omer Akram (om26er) wrote :

This bug is still reproduce able in software center 2.0

Changed in software-center (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Olivier Tilloy (osomon) wrote :

It looks like subprocess.Popen.poll() is the culprit. Calling it too often (e.g. when idle) results in a very high CPU consumption.

Changed in software-center (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
status: Confirmed → In Progress
Olivier Tilloy (osomon)
Changed in software-center (Ubuntu):
status: In Progress → Fix Committed
Michael Vogt (mvo)
description: updated
Changed in software-center (Ubuntu Lucid):
status: Fix Committed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted software-center into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in software-center (Ubuntu Lucid):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Kent deVillafranca (kdevilla) wrote :

That fixed it. With the version of software-center from lucid-proposed installed, CPU usage is no longer a problem when "software sources" is opened.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 2.0.3

---------------
software-center (2.0.3) lucid-proposed; urgency=low

  [ Michael Vogt ]
  * debian/control:
    - updated Vcs-Bzr location to point to lucid branch
  * softwarecenter/apt/aptcache.py:
    - fix flickering when a application is instaleld (LP: #563163)

  [ Olivier Tilloy ]
  * data/templates/AppDetailsView.html:
    - fix missing padding for small details window sizes (LP: #560026)
  * softwarecenter/view/widgets/searchentry.py:
   - Set the search entry's text color to black when not empty.
     This makes it readable on dark themes with a light text color by
     default (LP: #500174)
  * softwarecenter/app.py:
    - avoid 100% usage when waiting for software-sources to finish
      (LP: #459521)
  * softwarecenter/view/navhistory.py:
    - keep the search terms updated to ensure the navigation history
      always has the latest used search terms (LP: #537512)

  [ Kiwinote ]
  * data/featured.menu.in:
    - Update featured applications list per Desktop team (LP: #548534)
    - Feature 'fretsonfire-game' rather than 'fretsonfire' (LP: #538646)
 -- Michael Vogt <email address hidden> Tue, 27 Apr 2010 19:06:44 +0200

Changed in software-center (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied lucid-proposed to maverick.

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
Changed in software-center (Ubuntu Lucid):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 2.0.3

---------------
software-center (2.0.3) lucid-proposed; urgency=low

  [ Michael Vogt ]
  * debian/control:
    - updated Vcs-Bzr location to point to lucid branch
  * softwarecenter/apt/aptcache.py:
    - fix flickering when a application is instaleld (LP: #563163)

  [ Olivier Tilloy ]
  * data/templates/AppDetailsView.html:
    - fix missing padding for small details window sizes (LP: #560026)
  * softwarecenter/view/widgets/searchentry.py:
   - Set the search entry's text color to black when not empty.
     This makes it readable on dark themes with a light text color by
     default (LP: #500174)
  * softwarecenter/app.py:
    - avoid 100% usage when waiting for software-sources to finish
      (LP: #459521)
  * softwarecenter/view/navhistory.py:
    - keep the search terms updated to ensure the navigation history
      always has the latest used search terms (LP: #537512)

  [ Kiwinote ]
  * data/featured.menu.in:
    - Update featured applications list per Desktop team (LP: #548534)
    - Feature 'fretsonfire-game' rather than 'fretsonfire' (LP: #538646)
 -- Michael Vogt <email address hidden> Tue, 27 Apr 2010 19:06:44 +0200

Changed in software-center (Ubuntu Lucid):
status: Fix Committed → Fix Released
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.