software-center crashed with AttributeError in _on_query_total_size_on_install_done(): 'NoneType' object has no attribute 'pkg_state'

Bug #1041004 reported by Doug Fisherman on 2012-08-24
72
This bug affects 16 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Critical
Michael Vogt

Bug Description

Got update notice, clicked view updates, clicked details, clicked install updates, 15seconds pass by, boom. Not even sure that anything is really broken.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: software-center 5.3.9
ProcVersionSignature: Ubuntu 3.5.0-11.11-generic 3.5.2
Uname: Linux 3.5.0-11-generic x86_64
ApportVersion: 2.5.1-0ubuntu1
Architecture: amd64
Date: Thu Aug 23 23:04:01 2012
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Xubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120819)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with AttributeError in _on_query_total_size_on_install_done(): 'NoneType' object has no attribute 'pkg_state'
Traceback:
 Traceback (most recent call last):
   File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 2031, in _on_query_total_size_on_install_done
     self.app_details.pkg_state == PkgStates.INSTALLED and
 AttributeError: 'NoneType' object has no attribute 'pkg_state'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev sambashare scanner sudo tape video

Related branches

tags: removed: need-duplicate-check
Changed in software-center (Ubuntu):
importance: Undecided → Medium
visibility: private → public
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-center (Ubuntu):
status: New → Confirmed
gadLinux (gad-aguilardelgado) wrote :

Hello,

I think that this bug was triggered by "The Humble Bundle" when tried to install from software center with the application already opened. The software is there, in the screen of the Software Center but it crashes apt in the background.

At least it's what it seems to be...

tags: added: ca-escalated
Dave Morley (davmor2) on 2012-10-02
Changed in software-center (Ubuntu):
importance: Medium → Critical
Changed in software-center (Ubuntu):
assignee: nobody → Gary Lasker (gary-lasker)
Changed in software-center (Ubuntu):
status: Confirmed → In Progress
Michael Vogt (mvo) wrote :

To reproduce:
1. open software-center
2. click on "installed" in the top toolbar
3. click on "all software" in the top toolbar
4. search for a pacakge that is already installed (like "apt")
5. click on the details
-> crash

Changed in software-center (Ubuntu):
assignee: Gary Lasker (gary-lasker) → Michael Vogt (mvo)
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

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

---------------
software-center (5.4) quantal; urgency=low

  [ Michael Vogt ]
  * lp:~mvo/software-center/lp1044141:
    - fix unicode error crash on a transaction error
      (LP: #1044141)
  * lp:~mvo/software-center/fix-size-calc-race:
    - fix crash due to a race in the size calculation code
      in the details view (LP: #1041004)
  * lp:~mvo/software-center/fix-crash-1048886:
    - No longer call GLib.init_threads() as this will cause
      LP: #1048886 later. Many thanks to Albert Astals Cid
  * lp:~mvo/software-center/dbus-idle-timeout:
    - stop the dbus data provider after 5min of inactivity
      (LP: #1058567)
  * lp:~mvo/software-center/lp1051829:
    - Do not report deb packages with lintian errors via the
      recoverable errors mechanism. This removes 97 out of 104
      instances of my sample of the recoverable error report
      for LP: #1051829. Other types of failures will still be
      reported as recoverable failures though (as we do want
      to know about them).

  [ Gary Lakser ]
  * lp:~gary-lasker/software-center/lp1041004:
    - ensure that app_details is valid before using it (LP: #1041004)
  * lp:~gary-lasker/software-center/fix-crash-lp1021308:
    - send synthetic "style-updated" signals to ensure that the signal
      handlers are called on themes that do not send this signal (like
      oxygen-gtk3). This fixes a crash and broken drawing LP: #1021308

  [ Nicolas Delvaux ]
  * lp:~malizor/software-center/fix-lp1050036:
    - fix crash in get_label() (LP: #1050036) and drop the i18n for the
      yes/no symbols that were not translated in any language (as a result
      test_regression_lp1047281.py can also be dropped)
 -- Michael Vogt <email address hidden> Fri, 05 Oct 2012 10:58:20 +0200

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
Ron (smooth-verses) wrote :

Obviously this isnt fixed

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers