As evidenced by this bug no longer appearing in errors.ubuntu.com, it
was fixed with the merge of lp:~gary-lasker/software-center/fix-
shutdown-crash-lp996333, and this fix was released 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-sso-client-gtk
      (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 packagemanager to exit (LP: #844768)

  [ Dave Morley ]
  * lp:~davmor2/software-center/add-performance:
    - test code change only! add memory and cpt stats to the
      test script
 -- Michael Vogt <[email protected]>   Tue, 15 May 2012 20:22:02 +0200

** Changed in: software-center (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/885726

Title:
  software-center crashed with TypeError in _get_combo_children():
  object of type 'NoneType' has no len()

Status in “software-center” package in Ubuntu:
  Fix Released

Bug description:
  Ubuntu Software Center version 5.2

  Steps to reproduce (induces an error condition that causes the traceback for 
the crash in this bug):
  1. Shut down Software Center, if it is running:
  2. Open a terminal and type the following command:
     $ cd ~/.config/software-center; touch softwarecenter.cfg.new; chmod 400 
softwarecenter.cfg.new
  3. Launch Software Center from a terminal as shown:
     $ software-center
  4. Once Software Center has started, shut it down again.
  5. Note that you'll get a traceback reporting:
     IOError: [Errno 13] Permission denied: 
'/home/tremolux/.config/software-center/softwarecenter.cfg.new'
  Followed by the error for this bug:
     TypeError: object of type 'NoneType' has no len()
  6. Note also that Software Center does not fully quit.
  7. Type the following in a terminal to kill Software Center:
     $ killall software-center
  8. And finally, type the following to remove the bad softwarecenter.cfg.new 
file:
     $ rm softwarecenter.cfg.new (and verify that you want to remove this file)

  
  Hi!

  Well, when I closed the Sofware Center, Apport launches.
  Here is the repport, hoping Apport’s information could be useful.

  Note that during my upgrade to Oneiric, I got several problems and
  some of my packages might not be very well set.

  Martin.

  ---

  Note that this bug still occurs in final Precise version 5.2, as shown
  in the following traceback from duplicate bug 992452:

  Traceback (most recent call last):
    File 
"/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", 
line 577, in on_db_reopen
      self.refresh_apps()
    File 
"/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", 
line 788, in refresh_apps
      SoftwarePane.refresh_apps(self, query)
    File 
"/usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py", line 
432, in refresh_apps
      self._refresh_apps_with_apt_cache(query)
    File "/usr/share/software-center/softwarecenter/utils.py", line 118, in 
wrapper
      f(*args, **kwargs)
    File 
"/usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py", line 
451, in _refresh_apps_with_apt_cache
      self.app_view.configure_sort_method(self._is_in_search_mode())
    File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appview.py", 
line 223, in configure_sort_method
      self._use_combobox_without_sort_by_search_ranking()
    File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appview.py", 
line 155, in _use_combobox_without_sort_by_search_ranking
      if self._get_combo_children() == 3:
    File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appview.py", 
line 147, in _get_combo_children
      return len(self.sort_methods_combobox.get_model())
  TypeError: object of type 'NoneType' has no len()

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: software-center 5.0.2
  ProcVersionSignature: Ubuntu 3.0.0-13.21-generic 3.0.6
  Uname: Linux 3.0.0-13-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  CheckboxSubmission: 01a18e0a74cbde3d34a62f62830ed079
  CheckboxSystem: f134069bba098730d27f59b402920826
  Date: Thu Nov  3 16:05:36 2011
  ExecutablePath: /usr/share/software-center/software-center
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-center
  ProcEnviron:
   PATH=(custom, no user)
   LANG=fr_FR.utf8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/software-center']
  SourcePackage: software-center
  Title: software-center crashed with TypeError in _get_combo_children(): 
object of type 'NoneType' has no len()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev 
sambashare tape video

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/885726/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to