software-center crashed with AttributeError in do_render()

Bug #523341 reported by Dave Morley
294
This bug affects 43 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Gary Lasker

Bug Description

Binary package hint: software-center

I used S-C to install ubuntu-restricted-extras and this error window kept appearing.

ProblemType: Crash
Architecture: amd64
Date: Wed Feb 17 18:10:07 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia wl
Package: software-center 1.1.12
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with AttributeError in do_render()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/software-center/softwarecenter/view/widgets/animatedimage.py", line 128, in do_render
     if image.get_animation_len() > 1:
 AttributeError: 'NoneType' object has no attribute 'get_animation_len'
Uname: Linux 2.6.32-13-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Dave Morley (davmor2) wrote :
Revision history for this message
Dave Morley (davmor2) wrote :

I should add I a: opened a browser window in front of it and b: searched for some other software.

tags: removed: need-duplicate-check
tags: added: bugpattern-needed
tags: added: bugpattern-written
removed: bugpattern-needed
visibility: private → public
tags: added: bugpattern-needed
Revision history for this message
Lucian Adrian Grijincu (lucian.grijincu) wrote :

This happened to me while installing a game (hedgewars).
Apport kept popping up windows with "Sorry Software center closed unexpectedly" at for each new item in the software list I selected.
Note that software-center did not really close in this interval (I was even able to install other software in the same seession, just Apport kept telling me stuff was not alright).

Changed in software-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I get this as well, the following traceback appears in the console:
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/view/widgets/animatedimage.py", line 128, in do_render
    if image.get_animation_len() > 1:
AttributeError: 'NoneType' object has no attribute 'get_animation_len'

It happens quite often, almost after every click.

tags: removed: bugpattern-needed
Revision history for this message
jage (jage) wrote :

I think it's important to iterate that this bug differs from other software-center bugs in that the warning dialog is persistent and interrupts any activity over and over.

Changed in software-center (Ubuntu):
assignee: nobody → Gary Lasker (gary-lasker)
status: Confirmed → In Progress
importance: Undecided → High
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Thank you to everyone who reported this bug and for helping to make Ubuntu better, the time and effort that you spend is very much appreciated!

Fix has been committed to the lucid development trunk and will be available in the next development release of software-center (which will be version 1.1.13).

Changed in software-center (Ubuntu):
status: In Progress → Fix Committed
Changed in software-center (Ubuntu):
importance: High → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
software-center (1.1.13) lucid; urgency=low

  [ Michael Vogt ]
  * data/featured.menu.in:
    - add scribus, blender
    - fix missing i18n
  * data/software-center.menu.in:
    - add a bunch of missing _
  * softwarecenter/backend/aptd.py:
    - fix cache reload functionality
    - fix display of update/external transactions (LP: #514861)
  * po/help/po4a.conf:
    - make help translatable via po4a (LP: #439353)
  * po/help/software-center-doc.pot:
    - add help pot
  * setup.py:
    - build help translations automatically

  [ Gary Lasker ]
  * softwarecenter/view/viewswitcher.py:
    - fix ValueError in on_transactions_changed (LP: #523420)
    - fix AttributeError in do_render (LP: #523341)
  * softwarecenter/view/installedpane.py:
    - fix AttributeError in refresh_apps() (LP: #520097)
  * softwarecenter/view/widgets/pathbar2.py:
    - fix typo in PathBarThemeHumanClearlooks class,
      gave an AttributeError in __expose_cb() (LP: #523452)
  * softwarecenter/app.py,
    softwarecenter/backend/aptd.py:
    - update to use new backend reload API (LP: #496058)
 -- Michael Vogt <email address hidden> Tue, 23 Feb 2010 15:29:53 +0100

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Mario Rugiero (mrugiero) wrote :

I updated to get the fix, it's still crashing the same way.

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Hi Mario, I'm sorry to hear that you are still hitting this issue. The version with this fix is software-center 1.1.13. Could you please verify that that's the version that you have? I'm actually not seeing this new version in the archives yet. Instead, I am still seeing 1.1.12, so I'm wondering if you by chance still have that version.

You can check the version when running Software Center by just checking Help->About.

Or, you can view your installed version plus the candidate version that's available in the archives using the terminal as shown:

sudo apt-get update
apt-cache policy software-center

Please check this and drop a note here with what version you are currently running. If you are indeed running 1.1.13 and are still seeing this error, we will need to reopen this bug. And thank you very much, I appreciate your help and your taking the time to report back!

Revision history for this message
Mario Rugiero (mrugiero) wrote : Re: [Bug 523341] Re: software-center crashed with AttributeError in do_render()

Sorry, it was 1.1.12, seems ubuntu-ar (I use that mirror) didn't update at
the time you sent the mail.

2010/2/23 Gary Lasker <email address hidden>

> Hi Mario, I'm sorry to hear that you are still hitting this issue. The
> version with this fix is software-center 1.1.13. Could you please
> verify that that's the version that you have? I'm actually not seeing
> this new version in the archives yet. Instead, I am still seeing
> 1.1.12, so I'm wondering if you by chance still have that version.
>
> You can check the version when running Software Center by just checking
> Help->About.
>
> Or, you can view your installed version plus the candidate version
> that's available in the archives using the terminal as shown:
>
> sudo apt-get update
> apt-cache policy software-center
>
> Please check this and drop a note here with what version you are
> currently running. If you are indeed running 1.1.13 and are still
> seeing this error, we will need to reopen this bug. And thank you very
> much, I appreciate your help and your taking the time to report back!
>
> --
> software-center crashed with AttributeError in do_render()
> https://bugs.launchpad.net/bugs/523341
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “software-center” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: software-center
>
> I used S-C to install ubuntu-restricted-extras and this error window kept
> appearing.
>
> ProblemType: Crash
> Architecture: amd64
> Date: Wed Feb 17 18:10:07 2010
> DistroRelease: Ubuntu 10.04
> ExecutablePath: /usr/share/software-center/software-center
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> InterpreterPath: /usr/bin/python2.6
> NonfreeKernelModules: nvidia wl
> Package: software-center 1.1.12
> PackageArchitecture: all
> ProcCmdline: /usr/bin/python /usr/bin/software-center
> ProcEnviron:
> LANG=en_GB.utf8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
> PythonArgs: ['/usr/bin/software-center']
> SourcePackage: software-center
> Title: software-center crashed with AttributeError in do_render()
> Traceback:
> Traceback (most recent call last):
> File
> "/usr/share/software-center/softwarecenter/view/widgets/animatedimage.py",
> line 128, in do_render
> if image.get_animation_len() > 1:
> AttributeError: 'NoneType' object has no attribute 'get_animation_len'
> Uname: Linux 2.6.32-13-generic x86_64
> UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/523341/+subscribe
>

Revision history for this message
Gary Lasker (gary-lasker) wrote :

Ok, that's great news, thanks Mario! My mirror also took quite a while before the new version showed up.

Please be sure to report any other issues that you find. And thanks again!

Revision history for this message
Mario Rugiero (mrugiero) wrote :

Is there a repository to get the dev releases of software-center for lucid?
I want to help by testing, but I just found the Karmic's daily PPA.

I downloaded the 1.1.14 .deb package and installed it, it works fine right
now.

Neither the main nor the ubuntu-ar repos seems to have the 1.1.13 (or my
system doesn't find them while updating).

2010/2/24 Gary Lasker <email address hidden>

> Ok, that's great news, thanks Mario! My mirror also took quite a while
> before the new version showed up.
>
> Please be sure to report any other issues that you find. And thanks
> again!
>
> --
> software-center crashed with AttributeError in do_render()
> https://bugs.launchpad.net/bugs/523341
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “software-center” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: software-center
>
> I used S-C to install ubuntu-restricted-extras and this error window kept
> appearing.
>
> ProblemType: Crash
> Architecture: amd64
> Date: Wed Feb 17 18:10:07 2010
> DistroRelease: Ubuntu 10.04
> ExecutablePath: /usr/share/software-center/software-center
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
> InterpreterPath: /usr/bin/python2.6
> NonfreeKernelModules: nvidia wl
> Package: software-center 1.1.12
> PackageArchitecture: all
> ProcCmdline: /usr/bin/python /usr/bin/software-center
> ProcEnviron:
> LANG=en_GB.utf8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
> PythonArgs: ['/usr/bin/software-center']
> SourcePackage: software-center
> Title: software-center crashed with AttributeError in do_render()
> Traceback:
> Traceback (most recent call last):
> File
> "/usr/share/software-center/softwarecenter/view/widgets/animatedimage.py",
> line 128, in do_render
> if image.get_animation_len() > 1:
> AttributeError: 'NoneType' object has no attribute 'get_animation_len'
> Uname: Linux 2.6.32-13-generic x86_64
> UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/523341/+subscribe
>

tags: added: iso-testing
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Hi Mario. Yes, I didn't realize yesterday that there was a problem with the 1.1.13 version and so it was not built; it's fixed now and so version 1.1.4 is the one that's available and has the fixes detailed above. I'm sorry about the delay for this, and I'm very glad it's working for you now.

Since you are already on lucid, you already get the development releases of software center as they are released. So, the testing you are doing is exactly what we need. Thank you for your time and the effort you spend in helping us test and letting us know about any problems you find. I want you to know that it is very much appreciated!

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.