software-center crashed with AttributeError in refresh_hosts()

Bug #625554 reported by yocmoi82
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
oneconf (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: software-center

It crashed when I quit the prog

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: software-center 2.1.14.1
ProcVersionSignature: Ubuntu 2.6.35-19.26-generic 2.6.35.3
Uname: Linux 2.6.35-19-generic i686
Architecture: i386
Date: Fri Aug 27 23:20:36 2010
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu-Netbook 10.10 "Maverick Meerkat" - Alpha i386 (20100630.1)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 LANG=fr_FR.utf8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with AttributeError in refresh_hosts()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/software-center/plugins/oneconf_plugin.py", line 94, in refresh_hosts
     previous_iter = model.installed_iter
 AttributeError: 'NoneType' object has no attribute 'installed_iter'
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
yocmoi82 (yoann-berriet) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Omer Akram (om26er) wrote :

thanks for the bug report. unfortunately our crash retracer was no able to collect enough information for us to know the cause of the crash. if you see this crash again please report it again.

Changed in software-center (Ubuntu):
status: New → Invalid
Revision history for this message
Gary Lasker (gary-lasker) wrote :

This one's actually a bug in the OneConf plugin for Software Center. Under certain, generally rare, conditions, the value for "model" can be None and so this must be checked in the code.

visibility: private → public
Changed in software-center (Ubuntu):
status: Invalid → New
importance: Undecided → Low
affects: software-center (Ubuntu) → oneconf (Ubuntu)
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Ah, I took a quick look at the OneConf code (usc_plugin.py) and I see the None value is for the *view_switcher* model rather than the list view tree model as I blindly assumed previously, so strike that last bit in comment #3.

So, it appears that we may be receiving an "inventory_refreshed" signal before the ViewSwitcher has been initialized in Software Center's app.py? Hrm, maybe as a result of the check_async_inventory() method? This is pretty much pure speculation, however, would need to dig in more to make a better judgement.

Over and out. Let me know if I can be of any help.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oneconf - 0.2

---------------
oneconf (0.2) oneiric; urgency=low

  * New release:
    - move from desktopcouch to a json cache file base version, build a
      server/client protocol based on ubuntu-webcatalog (server part will be
      oneline soon). (LP: #720498, #715514, #748517)
    - adapt to latest software-center in oneiric
    - harden a lot regards to bug handling timeouts and such
      (LP: #616463, #625554, #804768, #594394)
    - optimize startup time with json and don't wait on server side sync
      (LP: #638142, #780651)
    - adapt now with ubuntu sso and triggers the login dialog on fresh
      install (LP: #674537, #708187)
  * debian/control, debian/rules:
    - we really don't depend on desktopcouch now
    - deps on ubuntu-sso-client now
    - transition to dh_python2
    - remove other deprecated deps
    - bump Standards-Version
 -- Didier Roche <email address hidden> Mon, 01 Aug 2011 12:30:21 +0200

Changed in oneconf (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.