software-center crashed with AttributeError in __contains__(): 'NoneType' object has no attribute '__contains__'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| software-center (Ubuntu) |
Medium
|
Unassigned | ||
| Precise |
Undecided
|
Unassigned | ||
| Quantal |
Medium
|
Unassigned |
Bug Description
TEST CASE:
1. open stock software-center
2. click on "installed" 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 -proosed
5. verify that (2) does no longer produces a traceback
I just opened, clicked installed software, clicked on a category, it crashed.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: software-center 5.1.12
ProcVersionSign
Uname: Linux 3.2.0-19-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Mon Mar 19 19:55:01 2012
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
PythonArgs: ['/usr/
SourcePackage: software-center
Title: software-center crashed with AttributeError in __contains__(): 'NoneType' object has no attribute '__contains__'
UpgradeStatus: Upgraded to precise on 2012-03-13 (5 days ago)
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video
Related branches
- Gary Lasker (community): Approve on 2012-05-14
- Dave Morley (community): Approve (testing the code did as expected) on 2012-05-11
-
Diff: 27 lines (+1/-5)2 files modifiedsoftwarecenter/ui/gtk3/panes/availablepane.py (+0/-5)
softwarecenter/ui/gtk3/panes/installedpane.py (+1/-0)
Sasja de Vries (sasja-de-vries) wrote : | #1 |
tags: | removed: need-duplicate-check |
Sasja de Vries (sasja-de-vries) wrote : | #2 |
Changed in software-center (Ubuntu): | |
status: | New → Fix Released |
visibility: | private → public |
summary: |
- software-center crashed when viewing installed apps + software-center crashed with AttributeError in __contains__(): + 'NoneType' object has no attribute '__contains__' |
Changed in software-center (Ubuntu): | |
status: | Fix Released → Confirmed |
importance: | Undecided → Medium |
Gary Lasker (gary-lasker) wrote : | #3 |
I'll reopen this one as this crash seems to still be occurring in the latest version of Software Center in Precise, 5.2, as evidenced by the info on this page:
tags: | added: ca-escalated |
Changed in software-center (Ubuntu): | |
milestone: | none → precise-updates |
description: | updated |
Dave Morley (davmor2) wrote : | #4 |
Mvo has a fix for this in place in lp:~mvo/software-center/lp959612 I've tested it and all seems well. It also seems to of resolved another issue of the installed page flicking back to the main lobby page when the lobby page finishes it's loading.
Changed in software-center (Ubuntu): | |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
Hello Sasja, 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:/
tags: | added: verification-needed |
Changed in software-center (Ubuntu Precise): | |
status: | New → Fix Committed |
Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package software-center - 5.2.2
---------------
software-center (5.2.2) precise-proposed; urgency=low
[ Michael Vogt ]
* lp:~mvo/software-center/whatsnew-leak-lp985389:
- search filter fix for the case when the "installed-only"
filter leaks into subsequent searches (LP: #985389)
* lp:~mvo/software-center/fix-lp994632:
- add a dep to ensure we get the correct ubuntu-
(LP: #994632)
* lp:~mvo/software-center/proper-error-on-unknown-files:
- show a proper error message when attempting to open unknown
file types (LP: #944868)
* lp:~mvo/software-center/lp921799:
- fix crash when decoding screenshots JSON (LP: #921799)
* lp:~mvo/software-center/lp959612:
- fix crash when selecting the Installed view very quickly
after startup (LP: #959612)
[ Ken VanDine ]
* lp:~ken-vandine/software-center/lp_982567:
- Check if the proxy is enabled, if the proxy host is set but not
enabled we shouldn't attempt to use the proxy (LP: #982567)
[ Gary Lasker ]
* lp:~gary-lasker/software-center/fix-crash-lp969732:
- need to explicitly declare the needs-refresh signal in the
AppTreeStore class to prevent a crash (LP: #969732)
* lp:~gary-lasker/software-center/fix-crash-lp870822:
- don't crash if we don't get a pkgversion object back
(LP: #870822)
* lp:~gary-lasker/software-center/fix-shutdown-crash-lp996333:
- never crash when writing out the software center config file on
shutdown (LP: #996333)
* lp:~gary-lasker/software-center/fix-makedirs-race-crashes:
- fix crash on race when creating the cache or config directories
(LP: #743003, LP: #621182)
* lp:~gary-lasker/software-center/fix-crash_lp973379:
- ensure that the cache is ready before using the recommender
service (LP: #973379 )
* lp:~gary-lasker/software-center/toolbar-buttons-insensitive-during-startup:
- set the toolbar buttons insensitive for the duration of time that the
lobby panels are initializing (LP: #999486, LP: #994341)
[ Robert Roth ]
* lp:~evfool/software-center/bug532072:
- escape markup for support info and license (LP: #993279)
- ellipsize summary at trailing end (LP: #532072)
* lp:~evfool/software-center/lp626037:
- subtle background color tweak for consistency
between views (LP: #626037)
* lp:~evfool/software-center/lp835005:
- no need for the software-properties dialog to be modal
to software-center (LP: #835005)
* lp:~evfool/software-center/lp839389:
- don't display an "icon not found" image in the Unity
launcher when a report a review window is opened (LP: #839389)
* lp:~evfool/software-center/867588:
- capitalize the first letter of the package summary
(LP: #867588)
* lp:~evfool/software-center/lp876657:
- make sure the search field does not disappear when an
install or remove is in progress (LP: #876657)
* lp:~evfool/software-center/lp987797:
- fix alignment in the reviews part of the appdetails (LP: #987797)
* lp:~evfool/software-center/lp844768:
- show a indeterminate progress bar when software-center waits for
another ...
Changed in software-center (Ubuntu Quantal): | |
status: | Fix Committed → Fix Released |
Gary Lasker (gary-lasker) wrote : | #8 |
I have verified that software-center version 5.2.2 in precise-proposed fixes this bug per the test case given in the description.
Thanks!
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package software-center - 5.2.2
---------------
software-center (5.2.2) precise-proposed; urgency=low
[ Michael Vogt ]
* lp:~mvo/software-center/whatsnew-leak-lp985389:
- search filter fix for the case when the "installed-only"
filter leaks into subsequent searches (LP: #985389)
* lp:~mvo/software-center/fix-lp994632:
- add a dep to ensure we get the correct ubuntu-
(LP: #994632)
* lp:~mvo/software-center/proper-error-on-unknown-files:
- show a proper error message when attempting to open unknown
file types (LP: #944868)
* lp:~mvo/software-center/lp921799:
- fix crash when decoding screenshots JSON (LP: #921799)
* lp:~mvo/software-center/lp959612:
- fix crash when selecting the Installed view very quickly
after startup (LP: #959612)
[ Ken VanDine ]
* lp:~ken-vandine/software-center/lp_982567:
- Check if the proxy is enabled, if the proxy host is set but not
enabled we shouldn't attempt to use the proxy (LP: #982567)
[ Gary Lasker ]
* lp:~gary-lasker/software-center/fix-crash-lp969732:
- need to explicitly declare the needs-refresh signal in the
AppTreeStore class to prevent a crash (LP: #969732)
* lp:~gary-lasker/software-center/fix-crash-lp870822:
- don't crash if we don't get a pkgversion object back
(LP: #870822)
* lp:~gary-lasker/software-center/fix-shutdown-crash-lp996333:
- never crash when writing out the software center config file on
shutdown (LP: #996333)
* lp:~gary-lasker/software-center/fix-makedirs-race-crashes:
- fix crash on race when creating the cache or config directories
(LP: #743003, LP: #621182)
* lp:~gary-lasker/software-center/fix-crash_lp973379:
- ensure that the cache is ready before using the recommender
service (LP: #973379 )
* lp:~gary-lasker/software-center/toolbar-buttons-insensitive-during-startup:
- set the toolbar buttons insensitive for the duration of time that the
lobby panels are initializing (LP: #999486, LP: #994341)
[ Robert Roth ]
* lp:~evfool/software-center/bug532072:
- escape markup for support info and license (LP: #993279)
- ellipsize summary at trailing end (LP: #532072)
* lp:~evfool/software-center/lp626037:
- subtle background color tweak for consistency
between views (LP: #626037)
* lp:~evfool/software-center/lp835005:
- no need for the software-properties dialog to be modal
to software-center (LP: #835005)
* lp:~evfool/software-center/lp839389:
- don't display an "icon not found" image in the Unity
launcher when a report a review window is opened (LP: #839389)
* lp:~evfool/software-center/867588:
- capitalize the first letter of the package summary
(LP: #867588)
* lp:~evfool/software-center/lp876657:
- make sure the search field does not disappear when an
install or remove is in progress (LP: #876657)
* lp:~evfool/software-center/lp987797:
- fix alignment in the reviews part of the appdetails (LP: #987797)
* lp:~evfool/software-center/lp844768:
- show a indeterminate progress bar when software-center waits for
another ...
Changed in software-center (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
estaneguer (enegueruela) wrote : | #10 |
Nada que añadir
the sofware center works very well now!