software-center is not responsive when navigating application list using keyboard arrows (up/down)

Bug #556290 reported by Zygmunt Krynicki
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: software-center

Navigating application list (like the installed application list) using keyboard is not working very well.
The application seems to be performing some synchronous operation and becomes not responsive after a moment of holding down arrow (as if the user wanted to navigate all the way to the bottom of the list).
In addition, if compiz is enabled the application turns gray.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Ghost entry causes this backtrace when selected:

Traceback (most recent call last):
  File "softwarecenter/view/appview.py", line 257, in on_get_value
    summary = self.db.get_summary(doc)
  File "./softwarecenter/db/database.py", line 160, in get_summary
    if not summary and self._aptcache.ready:
AttributeError: 'Cache' object has no attribute 'ready'

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

I wouldn't say 'not responsive' but it takes time to 'unbufferize' the up/down keys. it could be better for sure.
The slowness is greater when going up than down.
I cannot reproduce the 'gray screen' effect because I dont use compiz.

Changed in software-center (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Technically the application *is* not responsive, it is not running the main loop and is not processig events for prolonged periods. This is a side effect of bad design and too
much processing that is performed inside event handlers. I talked with Mvo and am in progress of working on a proof-of-concept rewrite of the backend/processing to be asynchronous. I'll be posting updates to this bug report.

Side note: there are many separate places that need fixing. The one visible here could also be related to gtk treeview performance.

Michael Vogt (mvo)
Changed in software-center (Ubuntu):
importance: Low → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
software-center (2.0.2) lucid; urgency=low

  * softwarecenter/view/appview.py:
    - improve responsiveness of the listview by caching the
      rendered icons (LP: #556290)
 -- Michael Vogt <email address hidden> Sun, 18 Apr 2010 13:42:50 +0200

Changed in software-center (Ubuntu):
status: Triaged → 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.