[Bug 1703365] Re: /usr/bin/update-manager:AttributeError:<lambda>:on_settings_button_clicked:show_settings

Robie Basak 1703365 at bugs.launchpad.net
Wed Aug 30 13:14:59 UTC 2017


Hello errors.ubuntu.com, or anyone else affected,

Accepted update-manager into zesty-proposed. The package will build now
and be available at https://launchpad.net/ubuntu/+source/update-
manager/1:17.04.7 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 on 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-zesty to verification-done-zesty. If it does not fix
the bug for you, please add a comment stating that, and change the tag
to verification-failed-zesty. 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: update-manager (Ubuntu Zesty)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-zesty

-- 
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/1703365

Title:
  /usr/bin/update-
  manager:AttributeError:<lambda>:on_settings_button_clicked:show_settings

Status in update-manager package in Ubuntu:
  Fix Released
Status in update-manager source package in Zesty:
  Fix Committed

Bug description:
  [Impact] 
  Update Manager passes it's window Id to software-properties by calling get_xid() which does not exist under wayland and results in this crash. This patch does not add --toplevel under wayland to work around this crash.

  [Test Case]
  Test Steps
  1. Launch update-manager and wait until the main UI is displayed (after sources are refreshed)
  2. Click on "Settings..."

  Expected result
  The Settings dialog is displayed

  Actual result
  It is not displayed and this crash occurs
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 112, in <lambda>
      button.connect("clicked", lambda x: callback())
    File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 127, in on_settings_button_clicked
      self.window_main.show_settings()
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 196, in show_settings
      "--toplevel", "%s" % self.get_window().get_xid()
  AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid'

  [Regression Potential]
  Very low. The option --toplevel is excluded only for wayland and added for any other display server. So for other display server than wayland the behaviour is unchanged.

  The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager.  This problem was most recently seen with package version 1:17.04.3, the problem page at https://errors.ubuntu.com/problem/12e7e8364ae0ad1fe84dc3972adbc9506d7e2f71 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker you can request it at http://forms.canonical.com/reports/.

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



More information about the foundations-bugs mailing list