[Bug 1936698] Re: check-new-release-gtk crashed with ValueError in require_version(): Namespace Gtk is already loaded with version 4.0

Brian Murray 1936698 at bugs.launchpad.net
Thu Jul 22 22:54:53 UTC 2021


** Description changed:

- I think you know what's going on here.
+ Impact
+ ------
+ check-new-release-gtk is crashing on Ubuntu 21.04 if gir1.2-gtk-4.0 is installed on the system and based off the number of crashes at the Ubuntu Error Tracker that seems to be a rather popular package. The crash would prevent users from being notified about Ubuntu 21.10 when it becomes available.
  
+ Test Case
+ ---------
+ On an Ubuntu 21.04 system
+ 1) sudo apt-get install gir1.2-gtk-4.0
+ 2) Run /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
+ 
+ Observe a Traceback with the contents
+ 
+ "check-new-release-gtk crashed with ValueError in require_version(): Namespace Gtk is already loaded with version 4.0"
+ or
+ "AttributeError(\"%r object has no attribute %r\" % (\nAttributeError: ''gi.repository.Gtk'' object has no attribute ''Container''"
+ 
+ Where Problems May Occur
+ ------------------------
+ check-new-release-gtk could crash entirely if the additional code is incorrectly written (i.e. there's a syntax error) however the test case does cover that.
+ 
+ [Original Description]
  ProblemType: Crash
  DistroRelease: Ubuntu 21.10
  Package: ubuntu-release-upgrader-gtk 1:21.10.4
  ProcVersionSignature: Ubuntu 5.11.0-22.23-generic 5.11.21
  Uname: Linux 5.11.0-22-generic x86_64
  ApportVersion: 2.20.11-0ubuntu67
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashCounter: 1
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Jul 16 14:19:22 2021
  ExecutablePath: /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
  InstallationDate: Installed on 2016-01-22 (2002 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160117)
  InterpreterPath: /usr/bin/python3.9
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
  Python3Details: /usr/bin/python3.9, Python 3.9.6, python3-minimal, 3.9.4-1
  PythonArgs: ['/usr/lib/ubuntu-release-upgrader/check-new-release-gtk']
- PythonDetails: N/A
- SourcePackage: ubuntu-release-upgrader
+ PythonDetails: N/ASourcePackage: ubuntu-release-upgrader
  Title: check-new-release-gtk crashed with ValueError in require_version(): Namespace Gtk is already loaded with version 4.0
  UpgradeStatus: Upgraded to impish on 2021-07-16 (0 days ago)
  UserGroups: adm cdrom dip libvirt libvirtd lpadmin lxd plugdev sambashare sudo
  VarLogDistupgradeTermlog:

** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
       Status: New => In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
   Importance: Undecided => High

** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
     Assignee: (unassigned) => Brian Murray (brian-murray)

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

Title:
  check-new-release-gtk crashed with ValueError in require_version():
  Namespace Gtk is already loaded with version 4.0

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Hirsute:
  In Progress

Bug description:
  Impact
  ------
  check-new-release-gtk is crashing on Ubuntu 21.04 if gir1.2-gtk-4.0 is installed on the system and based off the number of crashes at the Ubuntu Error Tracker that seems to be a rather popular package. The crash would prevent users from being notified about Ubuntu 21.10 when it becomes available.

  Test Case
  ---------
  On an Ubuntu 21.04 system
  1) sudo apt-get install gir1.2-gtk-4.0
  2) Run /usr/lib/ubuntu-release-upgrader/check-new-release-gtk

  Observe a Traceback with the contents

  "check-new-release-gtk crashed with ValueError in require_version(): Namespace Gtk is already loaded with version 4.0"
  or
  "AttributeError(\"%r object has no attribute %r\" % (\nAttributeError: ''gi.repository.Gtk'' object has no attribute ''Container''"

  Where Problems May Occur
  ------------------------
  check-new-release-gtk could crash entirely if the additional code is incorrectly written (i.e. there's a syntax error) however the test case does cover that.

  [Original Description]
  ProblemType: Crash
  DistroRelease: Ubuntu 21.10
  Package: ubuntu-release-upgrader-gtk 1:21.10.4
  ProcVersionSignature: Ubuntu 5.11.0-22.23-generic 5.11.21
  Uname: Linux 5.11.0-22-generic x86_64
  ApportVersion: 2.20.11-0ubuntu67
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashCounter: 1
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Jul 16 14:19:22 2021
  ExecutablePath: /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
  InstallationDate: Installed on 2016-01-22 (2002 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160117)
  InterpreterPath: /usr/bin/python3.9
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/lib/ubuntu-release-upgrader/check-new-release-gtk
  Python3Details: /usr/bin/python3.9, Python 3.9.6, python3-minimal, 3.9.4-1
  PythonArgs: ['/usr/lib/ubuntu-release-upgrader/check-new-release-gtk']
  PythonDetails: N/ASourcePackage: ubuntu-release-upgrader
  Title: check-new-release-gtk crashed with ValueError in require_version(): Namespace Gtk is already loaded with version 4.0
  UpgradeStatus: Upgraded to impish on 2021-07-16 (0 days ago)
  UserGroups: adm cdrom dip libvirt libvirtd lpadmin lxd plugdev sambashare sudo
  VarLogDistupgradeTermlog:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1936698/+subscriptions




More information about the foundations-bugs mailing list