Crash when clicking on "installed" too early
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
Gary Lasker | ||
Precise |
Fix Released
|
Medium
|
Gary Lasker | ||
Quantal |
Fix Released
|
Medium
|
Gary Lasker |
Bug Description
SRU TEST CASE:
1. open stock software-center
2. click on the "Installed" toolbar button very quickly while the main page is still loading
3. verify that there is a traceback (note that this does not happen always, just most of the time)
4. use the fixed version from -proposed
5. verify that (2) no longer produces the following (or any) traceback
SRU REGRESSION POTENTIAL:
Very low, but a possible regression is that the toolbar buttons may not be enabled when Software Center has fully initialized. Test launching and relaunching Software Center to confirm that the toolbar buttons always become active when the lobby view initialization is complete.
From errors.ubuntu.com:
If you click on "installed" while software-center is initializing (and the apt cache is not ready) it crashes with:
2012-05-03 18:01:16,188 - softwarecenter.
Traceback (most recent call last):
File "/scratch/
tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
File "/scratch/
if (not pkgname in self.cache or
File "/scratch/
return self._cache.
AttributeError: 'NoneType' object has no attribute '__contains__'
Traceback (most recent call last):
File "/scratch/
rebuild_
File "/scratch/
persistent_
File "/scratch/
self.
File "/scratch/
matches = enquire.get_mset(0, self.limit, None, xfilter)
File "/scratch/
if (not pkgname in self.cache or
File "/scratch/
return self._cache.
AttributeError: 'NoneType' object has no attribute '__contains__'
Its often reported error so we need to fix it.
Related branches
- Michael Vogt (community): Approve
- Gary Lasker (community): Needs Resubmitting
-
Diff: 27 lines (+6/-5)1 file modifiedsoftwarecenter/ui/gtk3/app.py (+6/-5)
Changed in software-center (Ubuntu): | |
milestone: | none → precise-updates |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: ca-escalated |
Changed in software-center (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Gary Lasker (gary-lasker) |
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in software-center (Ubuntu Precise): | |
status: | New → Fix Committed |
Changed in software-center (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
Changed in software-center (Ubuntu Precise): | |
importance: | Undecided → Medium |
assignee: | nobody → Gary Lasker (gary-lasker) |
milestone: | none → precise-updates |
Changed in software-center (Ubuntu Quantal): | |
milestone: | precise-updates → none |
description: | updated |
Hello Michael, or anyone else affected,
Accepted software-center into precise-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!