exception on start (related to font hinting)

Bug #1935569 reported by Danial Behzadi
104
This bug affects 18 people
Affects Status Importance Assigned to Milestone
GNOME Tweaks
Fix Released
Unknown
gnome-tweaks (Ubuntu)
Fix Released
High
Gunnar Hjalmarsson

Bug Description

When starting the app, I get:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtweak/app.py", line 30, in do_activate
    self.win = Window(self, model)
  File "/usr/lib/python3/dist-packages/gtweak/tweakview.py", line 58, in __init__
    self._model.load_tweaks(self)
  File "/usr/lib/python3/dist-packages/gtweak/tweakmodel.py", line 107, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_font.py", line 104, in <module>
    FontXSettingsTweak(),
  File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_font.py", line 32, in __init__
    self.btn_full.set_active(self.settings["hinting"] == "full")
  File "/usr/lib/python3/dist-packages/gi/overrides/Gio.py", line 259, in __getitem__
    raise KeyError('unknown key: %r' % (key,))
KeyError: "unknown key: 'hinting'"

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: gnome-tweaks 3.34.0-4
ProcVersionSignature: Ubuntu 5.13.0-11.11-generic 5.13.0
Uname: Linux 5.13.0-11-generic x86_64
ApportVersion: 2.20.11-0ubuntu67
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Jul 9 04:25:57 2021
InstallationDate: Installed on 2019-11-01 (615 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
RebootRequiredPkgs:
 network-manager
 network-manager
 evolution-data-server
 gnome-shell
SourcePackage: gnome-tweaks
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Danial Behzadi (dani.behzi) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-tweaks (Ubuntu):
status: New → Confirmed
Revision history for this message
corrado venturini (corradoventu) wrote :

Also with Ubuntu 21.10
ProcVersionSignature: Ubuntu 5.11.0-20.21+21.10.1-generic 5.11.21
Python3Details: /usr/bin/python3.9, Python 3.9.6, python3-minimal, 3.9.4-1
PythonDetails: N/A
SourcePackage: gnome-tweaks
Tags: wayland-session impish
Title: gnome-tweaks crashed with KeyError in __getitem__(): "unknown key: 'hinting'"
Uname: Linux 5.11.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello,

I guess we will need the latest version (40):

- https://gitlab.gnome.org/GNOME/gnome-tweaks/-/issues/331
- https://gitlab.gnome.org/GNOME/gnome-tweaks/-/merge_requests/59

This issue is fixed in v40 but the v3.34 is the last available version.

Changed in gnome-tweaks (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's on the TODO list, but no ETA:

https://trello.com/c/vPQnc4RJ

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Uploaded 40.0-1 to experimental.

Changed in gnome-tweaks (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-tweaks - 40.0-1

---------------
gnome-tweaks (40.0-1) experimental; urgency=medium

  * Team upload
  * debian/watch: Updated to follow the new GNOME versioning scheme
  * New upstream release (LP: #1935569)
  * Bump debhelper-compat to 13
  * Bump Standards-Version to 4.5.1
  * Add Rules-Requires-Root header

 -- Gunnar Hjalmarsson <email address hidden> Fri, 13 Aug 2021 01:06:19 +0200

Changed in gnome-tweaks (Ubuntu):
status: In Progress → Fix Released
Changed in gnome-tweaks:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.