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

Bug #905605 reported by lara hurtado jose
168
This bug affects 21 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
High
Kiwinote
Precise
Fix Released
High
Kiwinote

Bug Description

TEST CASE
1. Launch software-center
2. Click on the button 'Installed' on the toolbar

ACTUAL RESULT:
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/oneconfviews.py", line 87, in on_cursor_changed
    hostid = model[path][self.COL_HOSTID]
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 1050, in __getitem__
    return self.model.get_value(self.iter, key)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 977, in get_value
    return self._decode_value(treeiter, column, value)
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 803, in _decode_value
    value = value.decode('UTF-8')
AttributeError: 'NoneType' object has no attribute 'decode'

EXPECTED RESULT:
SC proceed to the list of installed softwares without error

=== original description ===
intentaba desinstalar un programa (Orca) y aparecio el error

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: software-center 5.1.3.1
ProcVersionSignature: Ubuntu 3.2.0-5.11-generic 3.2.0-rc5
Uname: Linux 3.2.0-5-generic i686
ApportVersion: 1.90-0ubuntu1
Architecture: i386
CrashCounter: 1
Date: Fri Dec 16 21:51:31 2011
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 LANGUAGE=es_MX:es
 PATH=(custom, no user)
 LANG=es_MX.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with AttributeError in _decode_value(): 'NoneType' object has no attribute 'decode'
UpgradeStatus: Upgraded to precise on 2011-12-14 (3 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
lara hurtado jose (larahurtadojose) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in software-center (Ubuntu):
status: New → Confirmed
tags: added: bugpattern-needed
visibility: private → public
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Confirmed on precise

Changed in software-center (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in software-center (Ubuntu Precise):
importance: Medium → High
tags: added: rls-mgr-p-tracking
description: updated
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

same trace with software-properties-gtk bug 905602

Revision history for this message
Kiwinote (kiwinote) wrote :
Revision history for this message
Kiwinote (kiwinote) wrote :

Hi! Thanks for your bug report. The bug you describe has been fixed in the branch I have linked and should be available in the next release. Please continue to report any bugs you may find in software-center. Thanks again for your help!

Changed in software-center (Ubuntu Precise):
assignee: Canonical Desktop Team (canonical-desktop-team) → Kiwinote (kiwinote)
status: Triaged → Fix Committed
Revision history for this message
Ian Nicholson (imnichol) wrote :

This bug occurred for me when I opened the software-center and clicked "file -> sync between computers". Nothing appeared to happen for several seconds, at which point software-center crashed. I am running 12.04 and am current on all updates.

Revision history for this message
Christopher Kyle Horton (christhehorton) wrote :

Same for me as Ian in comment #7, except maybe I didn't have to wait as long for the crash to occur.

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

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

---------------
software-center (5.1.5) precise; urgency=low

  [ Kiwinote ]
  * softwarecenter/ui/gtk3/models/appstore2.py:
    - fix TypeError in load_range (LP: #911886)
  * softwarecenter/ui/gtk3/panes/historypane.py:
    - change COL_PKG to an object rather than a str (LP: #905762)
  * softwarecenter/ui/gtk3/panes/installedpane.py:
    - fix utf8 oddness to make remote installed panes work
  * softwarecenter/ui/gtk3/widgets/oneconfviews.py:
    - ensure that hostid is always a string (as we declared) (LP: #905605)
  * softwarecenter/ui/gtk3/widgets/thumbnail.py:
    - fix IndexError in set_thumbnails_from_data (LP: #888669)
  * grab exhibits for the current series only (LP: #899257)

  [ Michael Vogt ]
  * Remove explicit GObject.threads_init as initializing the threads
    explicitely causes a segfault on close but nothing more
    (LP: #907568)
  * lp:~mvo/software-center/startup-speed2:
    - improve the startup speed by moving out the (expensive) channel
      change test out of the main app into a spawned helper, also
      delays some computations and adds a cheaper way for getting the
      appcount
  * lp:~mvo/software-center/icon-data:
    - remove the need for inline icon data from the agent, instead
      download icons directly using the provided URL
  * softwarecenter/db/debfile.py:
    - fix encoding error for some debs (based on
      lp:~roignac/software-center/bug-738771-summary-unicode), thanks
      to Vadim Rutkovsky, LP: #738771
  * softwarecenter/ui/gtk3/views/appdetailsview.py:
    - fix crash in test/gtk3/test_views.py
  * lp:~mvo/software-center/replace-restfulclient-with-piston:
    - replace lazr.restfulclient with piston-mini-client for ubuntu-sso
      and cleanup the piston-mini-client helper code

  [ Gary Lasker ]
  * softwarecenter/backend/channel_impl/aptchannels.py:
    - display the correct label text for the For Purchase menu item
      in the toolbar (LP: #911964)
  * lp:~gary-lasker/software-center/date-published-cleanup:
    - remove no longer needed code
  * lp:~gary-lasker/software-center/replace-restfulclient-with-piston-tweaks:
    - tweaks and fixes the branch

  [ Vadim Rutkovsky ]
  * lp:~roignac/software-center/bug-632773-selectable-title:
    - make the app title selectable (LP: #632773)
 -- Michael Vogt <email address hidden> Fri, 06 Jan 2012 10:56:48 +0100

Changed in software-center (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Note, tracking the underlying pygobject regression in bug 905602

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

Other bug subscribers

Remote bug watches

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