[Bug 1269397] Re: update-manager crashed with AttributeError in resize_to_standard_width(): 'NoneType' object has no attribute 'get_resolution' if $DISPLAY is not set

Jean-Baptiste Lallement jean-baptiste.lallement at ubuntu.com
Wed May 30 07:22:12 UTC 2018


Here is the crash file from Cosmic. From the information in this crash
file it happens when update-manager is launched by update-notifier:

 mai 30 08:33:36 sark update-notifier.desktop[6220]: Traceback (most recent call last):
 mai 30 08:33:36 sark update-notifier.desktop[6220]:   File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 100, in <lambda>
 mai 30 08:33:36 sark update-notifier.desktop[6220]:     self.resize_to_standard_width())
 mai 30 08:33:36 sark update-notifier.desktop[6220]:   File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 141, in resize_to_standard_width
 mai 30 08:33:36 sark update-notifier.desktop[6220]:     GObject.signal_handler_block(ctx, self.signal_changed)
 mai 30 08:33:36 sark update-notifier.desktop[6220]: AttributeError: 'UpdateManager' object has no attribute 'signal_changed'
 mai 30 08:33:36 sark update-notifier.desktop[6220]: Traceback (most recent call last):
 mai 30 08:33:36 sark update-notifier.desktop[6220]:   File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 100, in <lambda>
 mai 30 08:33:36 sark update-notifier.desktop[6220]:     self.resize_to_standard_width())
 mai 30 08:33:36 sark update-notifier.desktop[6220]:   File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 141, in resize_to_standard_width
 mai 30 08:33:36 sark update-notifier.desktop[6220]:     GObject.signal_handler_block(ctx, self.signal_changed)
 mai 30 08:33:36 sark update-notifier.desktop[6220]: AttributeError: 'UpdateManager' object has no attribute 'signal_changed'
 mai 30 08:33:36 sark update-notifier.desktop[6220]: Traceback (most recent call last):
 mai 30 08:33:36 sark update-notifier.desktop[6220]:   File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 100, in <lambda>
 mai 30 08:33:36 sark update-notifier.desktop[6220]:     self.resize_to_standard_width())
 mai 30 08:33:36 sark update-notifier.desktop[6220]:   File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 141, in resize_to_standard_width
 mai 30 08:33:36 sark update-notifier.desktop[6220]:     GObject.signal_handler_block(ctx, self.signal_changed)
 mai 30 08:33:36 sark update-notifier.desktop[6220]: AttributeError: 'UpdateManager' object has no attribute 'signal_changed'


** Attachment added: "_usr_bin_update-manager.1000.crash"
   https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1269397/+attachment/5146296/+files/_usr_bin_update-manager.1000.crash

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1269397

Title:
  update-manager crashed with AttributeError in
  resize_to_standard_width(): 'NoneType' object has no attribute
  'get_resolution' if $DISPLAY is not set

Status in update-manager package in Ubuntu:
  Fix Released
Status in update-manager source package in Trusty:
  Fix Released

Bug description:
  ERRORS BUCKET:
  https://errors.ubuntu.com/bucket/?id=/usr/bin/update-manager%3AAttributeError%3A%3Clambda%3E%3Aresize_to_standard_width

  TEST CASE:
  1. Open a terminal
  2. run: unset DISPLAY
  3. run: update-manager

  EXPECTED RESULT:
  It exits with a cannot open display message

  ACTUAL RESULT:
  It crashes

  apt-cache policy update-manager
  update-manager:
    Installed: 1:0.196.5
    Candidate: 1:0.196.5
    Version table:
   *** 1:0.196.5 0
          500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: CrashDistroRelease: Ubuntu 14.04
  Package: update-manager 1:0.196.5
  ProcVersionSignature: Ubuntu 3.13.0-3.18-generic 3.13.0-rc8
  Uname: Linux 3.13.0-3-generic x86_64
  ApportVersion: 2.13.1-0ubuntu1
  Architecture: amd64
  Date: Wed Jan 15 18:05:36 2014
  ExecutablePath: /usr/bin/update-manager
  InstallationDate: Installed on 2012-09-30 (472 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.1)
  InterpreterPath: /usr/bin/python3.3
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/update-manager -d
  PythonArgs: ['/usr/bin/update-manager', '-d']SourcePackage: update-manager
  Title: update-manager crashed with AttributeError in resize_to_standard_width(): 'NoneType' object has no attribute 'get_resolution'
  UpgradeStatus: Upgraded to trusty on 2013-11-10 (65 days ago)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1269397/+subscriptions



More information about the foundations-bugs mailing list