Bug 2241364 - [abrt] fonts-tweak-tool: __render_combobox(): fonts-tweak-alias.py:267:__render_combobox:KeyError: 'ui-monospace'
Summary: [abrt] fonts-tweak-tool: __render_combobox(): fonts-tweak-alias.py:267:__rend...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fonts-tweak-tool
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:acbff8c5da49ee045b4366e117a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-29 14:19 UTC by Ravi Terala
Modified: 2023-11-16 03:22 UTC (History)
5 users (show)

Fixed In Version: fonts-tweak-tool-0.4.8-1.fc40 fonts-tweak-tool-0.4.8-1.fc39 fonts-tweak-tool-0.4.8-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-16 02:35:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: mountinfo (3.46 KB, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: environ (1.56 KB, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: 000-fontstweak-ezfc.conf (6.08 KB, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: cpuinfo (3.21 KB, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: namespaces (171 bytes, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: os_info (734 bytes, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: open_fds (2.30 KB, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details
File: backtrace (1.30 KB, text/plain)
2023-09-29 14:19 UTC, Ravi Terala
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1014 0 None None None 2023-10-27 13:36:00 UTC

Description Ravi Terala 2023-09-29 14:19:21 UTC
Description of problem:
Edited fontconfig by hand, but still valid. Attached below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
  <!--
	THIS FILE WAS GENERATED BY libeasyfc 0.14.0
	DO NOT EDIT THIS DIRECTLY
	ANY CHANGES HAS BEEN MADE MANUALLY MAY BE LOST.
  -->
  <match target="pattern">
    <test name="lang">
      <!--lang=te-IN-->
      <string>te</string>
    </test>
    <test name="family">
      <string>Noto Sans Telugu</string>
    </test>
    <edit name="family" mode="append_last">
      <string>sans-serif</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="lang">
      <!--lang=te-IN-->
      <string>te</string>
    </test>
    <test name="family">
      <string>sans-serif</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Sans Telugu</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="lang">
      <!--lang=te-IN-->
      <string>te</string>
    </test>
    <test name="family">
      <string>Noto Serif Telugu</string>
    </test>
    <edit name="family" mode="append_last">
      <string>serif</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="lang">
      <!--lang=te-IN-->
      <string>te</string>
    </test>
    <test name="family">
      <string>serif</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Serif Telugu</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Noto Sans</string>
    </test>
    <edit name="family" mode="append_last">
      <string>sans-serif</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>sans-serif</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Sans</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Noto Serif</string>
    </test>
    <edit name="family" mode="append_last">
      <string>serif</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>serif</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Serif</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Cascadia Code PL</string>
    </test>
    <edit name="family" mode="append_last">
      <string>monospace</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>monospace</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Cascadia Code PL</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Noto Color Emoji</string>
    </test>
    <edit name="family" mode="append_last">
      <string>emoji</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>emoji</string>
    </test>
    <edit name="family" mode="prepend">
      <string>Noto Color Emoji</string>
    </edit>
  </match>
  <match target="font">
    <test name="family">
      <string>Iosevka Fixed Slab</string>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
    <edit name="fontfeatures" mode="append">
      <string>zero</string>
      <string>ss04</string>
    </edit>
  </match>
  <match target="font">
    <test name="family">
      <string>Cascadia Code PL</string>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
    <edit name="fontfeatures" mode="append">
      <string>calt</string>
      <string>ss19</string>
    </edit>
  </match>
  <match target="font">
    <test name="family">
      <string>Cascadia Code</string>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
    <edit name="fontfeatures" mode="append">
      <string>ss19</string>
      <string>calt</string>
    </edit>
  </match>
  <match target="font">
    <test name="family">
      <string>Cascadia Mono PL</string>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
    <edit name="fontfeatures" mode="append">
      <string>calt</string>
      <string>ss19</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>monospace</string>
    </test>
    <edit name="family" mode="assign_replace" binding="strong">
      <string>Cascadia Mono PL</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>ui-monospace</string>
    </test>
    <edit name="family" mode="assign" binding="same">
      <string>Iosevka Fixed Slab</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Mallanna</string>
    </test>
    <edit name="family" mode="prepend_first" binding="strong">
      <string>Noto Sans Telugu Condensed</string>
      <string>Noto Sans Telugu UI</string>
    </edit>
  </match>
</fontconfig>

Version-Release number of selected component:
fonts-tweak-tool-0.4.6-3.fc38

Additional info:
reporter:       libreport-2.17.11
uid:            1000
runlevel:       N 5
kernel:         6.5.5-200.fc38.x86_64
type:           Python3
crash_function: __render_combobox
reason:         fonts-tweak-alias.py:267:__render_combobox:KeyError: 'ui-monospace'
executable:     /usr/bin/fonts-tweak-tool
interpreter:    python3-3.11.5-1.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/fonts-tweak-tool
package:        fonts-tweak-tool-0.4.6-3.fc38
exception_type: KeyError
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-fonts\x2dtweak\x2dtool-27821.scope

Truncated backtrace:
fonts-tweak-alias.py:267:__render_combobox:KeyError: 'ui-monospace'

Traceback (most recent call last):
  File "/usr/lib64/python3.11/site-packages/fontstweak/main.py", line 60, in do_activate
    self.window = FontsTweakToolMainWindow(self, self.config)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/fontstweak/main.py", line 95, in __init__
    hbox.pack_start(self._get_main_content(), True, True, 0)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/fontstweak/main.py", line 136, in _get_main_content
    ui[u].set_config(self.config)
  File "/usr/lib64/python3.11/site-packages/fontstweak/tweaks.py", line 47, in set_config
    self.do_set_config()
  File "/usr/lib64/python3.11/site-packages/fontstweak/ui/fonts-tweak-alias.py", line 330, in do_set_config
    self.__render_combobox(l, an)
  File "/usr/lib64/python3.11/site-packages/fontstweak/ui/fonts-tweak-alias.py", line 267, in __render_combobox
    self.lists[alias].clear()
    ~~~~~~~~~~^^^^^^^
KeyError: 'ui-monospace'

Local variables in innermost frame:
self: <fonts-tweak-alias.FontsTweakAliasUI object at 0x7febe8c17180 (fontstweak+ui+fonts-tweak-alias+FontsTweakAliasUI at 0x55c1cff4cbb0)>
lang: ''
alias: 'ui-monospace'
kalias: 'ui-monospace'
flocalized: True

Comment 1 Ravi Terala 2023-09-29 14:19:28 UTC
Created attachment 1991095 [details]
File: mountinfo

Comment 2 Ravi Terala 2023-09-29 14:19:29 UTC
Created attachment 1991096 [details]
File: environ

Comment 3 Ravi Terala 2023-09-29 14:19:33 UTC
Created attachment 1991097 [details]
File: 000-fontstweak-ezfc.conf

Comment 4 Ravi Terala 2023-09-29 14:19:36 UTC
Created attachment 1991098 [details]
File: cpuinfo

Comment 5 Ravi Terala 2023-09-29 14:19:39 UTC
Created attachment 1991099 [details]
File: namespaces

Comment 6 Ravi Terala 2023-09-29 14:19:41 UTC
Created attachment 1991100 [details]
File: os_info

Comment 7 Ravi Terala 2023-09-29 14:19:45 UTC
Created attachment 1991101 [details]
File: open_fds

Comment 8 Ravi Terala 2023-09-29 14:19:48 UTC
Created attachment 1991102 [details]
File: backtrace

Comment 9 Akira TAGOH 2023-10-27 13:35:01 UTC
How did you add the following two rules?

  <match target="pattern">
    <test name="family">
      <string>ui-monospace</string>
    </test>
    <edit name="family" mode="assign" binding="same">
      <string>Iosevka Fixed Slab</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Mallanna</string>
    </test>
    <edit name="family" mode="prepend_first" binding="strong">
      <string>Noto Sans Telugu Condensed</string>
      <string>Noto Sans Telugu UI</string>
    </edit>
  </match>

As stated in the comment at the top of file, you don't have to modify this by the hand. that is unsupported.

Comment 10 Fedora Update System 2023-11-06 09:52:54 UTC
FEDORA-2023-74f32232e5 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-74f32232e5

Comment 11 Fedora Update System 2023-11-06 09:55:27 UTC
FEDORA-2023-74f32232e5 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-11-06 10:37:38 UTC
FEDORA-2023-4e24528818 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4e24528818

Comment 13 Fedora Update System 2023-11-06 10:40:26 UTC
FEDORA-2023-4e24528818 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2023-11-07 02:41:22 UTC
FEDORA-2023-b43a26d8ee has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b43a26d8ee

Comment 15 Fedora Update System 2023-11-07 02:42:41 UTC
FEDORA-2023-97cf803152 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-97cf803152

Comment 16 Fedora Update System 2023-11-08 02:51:53 UTC
FEDORA-2023-97cf803152 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-97cf803152`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-97cf803152

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2023-11-08 02:57:38 UTC
FEDORA-2023-b43a26d8ee has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-b43a26d8ee`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b43a26d8ee

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2023-11-16 02:35:09 UTC
FEDORA-2023-b43a26d8ee has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2023-11-16 03:22:19 UTC
FEDORA-2023-97cf803152 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.