update-manager crashed with AttributeError in _on_download_changed(): 'NoneType' object has no attribute 'get_value'

Bug #1024590 reported by Elroy
274
This bug affects 53 people
Affects Status Importance Assigned to Milestone
Aptdaemon
Fix Committed
Undecided
Unassigned
aptdaemon (Ubuntu)
Fix Released
Medium
Unassigned
Saucy
Fix Released
Medium
Brian Murray
update-manager (Ubuntu)
Invalid
Medium
Unassigned
Saucy
Invalid
Medium
Unassigned

Bug Description

SRU Verification:
Given that this crash is reported about update-manager on the error tracker but the bug is in aptdaemon the best way to verify this is fixed is to query the recent individual instances of the crash for the bucket and ensuring that the new version of aptdaemon does not appear in the Dependencies.txt of them. This'll need to be done by Brian Murray or Evan.

Errors page:
https://errors.ubuntu.com/bucket/?id=/usr/bin/update-manager:AttributeError:_on_download_changed:_on_download_changed

While installing updates.

ProblemType: CrashDistroRelease: Ubuntu 12.10
Package: update-manager 1:0.167
ProcVersionSignature: Ubuntu 3.5.0-4.4-generic 3.5.0-rc6
Uname: Linux 3.5.0-4-generic i686
ApportVersion: 2.3-0ubuntu4
Architecture: i386
Date: Fri Jul 13 21:23:37 2012
ExecutablePath: /usr/bin/update-manager
GsettingsChanges:
 b'com.ubuntu.update-manager' b'first-run' b'false'
 b'com.ubuntu.update-manager' b'launch-time' b'1342228873'
 b'com.ubuntu.update-manager' b'show-details' b'true'
 b'com.ubuntu.update-manager' b'window-height' b'518'
 b'com.ubuntu.update-manager' b'window-width' b'600'
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/update-manager', '--no-update', '--no-focus-on-map']SourcePackage: update-manager
Title: update-manager crashed with AttributeError in _on_download_changed(): 'NoneType' object has no attribute 'get_value'
UpgradeStatus: Upgraded to quantal on 2012-07-13 (0 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Elroy (md7x) wrote :
tags: removed: need-duplicate-check
Changed in update-manager (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in update-manager (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
information type: Private → Public
tags: added: saucy
Revision history for this message
martyfelker (martyfelker-gmail) wrote :

This is teh first time bug appeared for me. Ubuntu 13.10 Saucy 64 bit. Why is this bug tagged saucy? Don't see any reference besides Ubuntu 12.10 quantel? . So it probably should be fixed going forward.

alessandro (delfino1983)
Changed in update-manager:
assignee: nobody → Alessandro (alessandro2406-deactivatedaccount)
assignee: Alessandro (alessandro2406-deactivatedaccount) → nobody
no longer affects: update-manager
Revision history for this message
Kenneth Wrede (kennethwrede) wrote :

13.10 Saucy 64-bit - Xubuntu

The update manager restarts and crashes over and over again on it's own accord.

If it matters, I misstyped the password at my first try.

At the moment I DO use a custom stable kernel, 3.4.59. But I don't know if it matters at this moment.

Revision history for this message
Brian Murray (brian-murray) wrote :

This actually looks like a crash in aptdaemon to me:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aptdaemon/gtk3widgets.py", line 511, in _on_download_changed
    iter = self._download_map[uri]
KeyError: 'http://gd.archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils_2.22.52.20120713-0ubuntu1_i386.deb'

Changed in aptdaemon (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in aptdaemon (Ubuntu):
status: New → Confirmed
Revision history for this message
jimjutte (jimjutte) wrote :

Not sure what happened this time... I just started the computer and it generated all kinds of errors, this being the first.

Revision history for this message
Ricardo Luiz (rluiz) wrote :

While installing updates the app crash.

Changed in aptdaemon (Ubuntu Saucy):
assignee: nobody → Ricardo Luiz (rluiz)
Revision history for this message
Ricardo Luiz (rluiz) wrote :

In my computer this being every time.

tags: added: 64bits
Changed in aptdaemon (Ubuntu Saucy):
assignee: Ricardo Luiz (rluiz) → nobody
张崴 (icanup)
Changed in aptdaemon (Ubuntu Saucy):
assignee: nobody → zhangwei (icanup)
Revision history for this message
Brian Murray (brian-murray) wrote :

It looks like the error is caused by the following bit of code in aptdaemon/gtk3widgets.py:

        try:
            iter = self._download_map[uri]
        except KeyError:
            adj = self.get_vadjustment()

self.get_vadjustment() is returning None, probably because nothing has called set_vadjustment. This might actually be an error in update-manager but I don't see anything having set that in update-manager versions back to Precise.

Changed in aptdaemon (Ubuntu Saucy):
assignee: zhangwei (icanup) → nobody
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in update-manager (Ubuntu):
status: Confirmed → Invalid
Changed in update-manager (Ubuntu Saucy):
status: Confirmed → Invalid
Changed in aptdaemon:
status: New → Fix Committed
Changed in aptdaemon (Ubuntu):
status: Confirmed → Fix Committed
Changed in aptdaemon (Ubuntu Saucy):
status: Confirmed → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote :

I've uploaded a fixed version of aptdaemon to saucy-proposed.

description: updated
Changed in aptdaemon (Ubuntu Saucy):
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Elroy, or anyone else affected,

Accepted aptdaemon into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/aptdaemon/1.1.1-0ubuntu4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in aptdaemon (Ubuntu Saucy):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

I was able to recreate this crash by installing updates using update-manager (aptdaemon version 1.1.1-0ubuntu3) and clicking the X to close the install window. However, I suspect your timing has to be rather good to get this crash.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The new version works fine, the fix makes sense as well, let's set the SRU as verified

tags: added: verification-done
removed: verification-needed
Revision history for this message
Stéphane Graber (stgraber) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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

This bug was fixed in the package aptdaemon - 1.1.1-0ubuntu4

---------------
aptdaemon (1.1.1-0ubuntu4) saucy-proposed; urgency=low

  * Handle the situation where adj may be none, pulled from upstream revision
    963 (LP: #1024590). Thanks to Michael Vogt for the fix.
 -- Brian Murray <email address hidden> Wed, 04 Dec 2013 10:23:52 -0800

Changed in aptdaemon (Ubuntu Saucy):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

There is a crash with the new version of aptdaemon being reported on the error tracker that has similar although different stack trace.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aptdaemon/gtk3widgets.py", line 522, in _on_download_changed
    iter = self._download_map[uri]
KeyError: 'http://pl.archive.ubuntu.com/ubuntu/pool/universe/w/wxwidgets2.8/wx2.8-i18n_2.8.12.1-14ubuntu1.1_all.deb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/aptdaemon/gtk3widgets.py", line 525, in _on_download_changed
    iter = model.append((text, progress, uri))
AttributeError: 'NoneType' object has no attribute 'append'

So it seems that model may also be None. I'll create a new bug report for that.

Revision history for this message
188236 (christian-bernstein) wrote :

still there in 14.04 i386

Revision history for this message
Brian Murray (brian-murray) wrote :

The new aptdaemon bug I reported is bug 1266844.

Revision history for this message
starkus (starkus) wrote :

appeared after successful upgrade after update-manager crashed.

Revision history for this message
Vincent Gerris (vgerris) wrote :

also still there in 14.04 64 bit so it seems: the bug report tool led me to this page.

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

This bug was fixed in the package aptdaemon - 1.1.1-1ubuntu3

---------------
aptdaemon (1.1.1-1ubuntu3) trusty; urgency=medium

  * Rewrite the python shebang path to /usr/bin/python3.
 -- Matthias Klose <email address hidden> Thu, 20 Feb 2014 17:39:44 +0100

Changed in aptdaemon (Ubuntu):
status: Fix Committed → Fix Released
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.