Bug 797744

Summary: Apply the default Alias fonts in fonts-tweak-tool produces traceback
Product: [Fedora] Fedora Reporter: Lijun Li <lijli>
Component: fonts-tweak-toolAssignee: James Ni <jni>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: i18n-bugs, jni, lijli, petersen, pwu, tagoh
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: fonts-tweak-tool-0.0.5-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-24 00:27:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Apply the default Alias fonts in fonts-tweak-tool produces traceback
none
traceback file none

Description Lijun Li 2012-02-27 08:02:23 UTC
Description of problem:
Apply the default Alias fonts in fonts-tweak-tool produces traceback


Version-Release number of selected component (if applicable):
fonts-tweak-tool-0.0.3-1.fc16.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install Fedora16 Desktop &fonts-tweak-tool. 
2. run fonts-tweak-tool in Terminal or from the Applications menu.
3. Add a language (ex. Chinese (P.R. of China) - 中文(简体)) via Language Selection in fonts-tweak-tool.
4. Keep the Alias fonts by default and click Apply button.

Actual results:
Apply the default Alias fonts in fonts-tweak-tool produces traceback.

Expected results:
Should no traceback.

Additional info:
also reproduced on en_US.

Comment 1 Lijun Li 2012-02-27 08:03:38 UTC
Created attachment 565978 [details]
Apply the default Alias fonts in fonts-tweak-tool produces traceback

Comment 2 Lijun Li 2012-02-27 08:07:05 UTC
Created attachment 565979 [details]
traceback file

Comment 3 Lijun Li 2012-02-27 08:08:28 UTC
types.py:43:function:GError: No configuration to output

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fontstweak/tool.py", line 196, in applyClicked
    self.config.save()
  File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: No configuration to output

Local variables in innermost frame:
info: <gi.FunctionInfo object (save) at 0x0xead998>
args: (<EzfcConfig at 0xfc2b60>,)
kwargs: {}

Comment 5 Lijun Li 2012-03-16 09:33:04 UTC
Reproduced on fedora 17 fonts-tweak-tool-0.0.3-1.fc17.noarch.

Steps to Reproduce:
1. Install Fedora17 & fonts-tweak-tool. 
http://dl.fedoraproject.org/pub/alt/stage/f17-translation/Fedora-17-Translation-x86_64-Live-Desktop.iso
2. run fonts-tweak-tool from Terminal
3. Add a language (ex. Chinese (P.R. of China) - 中文(简体)) via Language Selection in fonts-tweak-tool.
4. Keep the Alias fonts by default and click Apply button.
5. Click 'Close'.
6. re-run fonts-tweak-tool from Terminal

Actual results:
1. Apply the default Alias fonts in fonts-tweak-tool produces traceback.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fontstweak/tool.py", line 196, in
applyClicked
    self.config.save()
  File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
GError: No configuration to output

2. After re-run fonts-tweak-tool, the added language (ex. Chinese (P.R. of China) - 中文(简体)) is disappeared from the language list box.

Expected results:
1. Should no traceback.
2. The added language should be there in the language list box for user and can apply again.

Comment 6 Akira TAGOH 2012-03-16 09:36:55 UTC
James, can we fix this in beta? please note that the beta change deadline is
next Tuesday.

Comment 7 Fedora Update System 2012-03-19 13:49:13 UTC
fonts-tweak-tool-0.0.4-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.4-1.fc16

Comment 8 Fedora Update System 2012-03-19 13:49:34 UTC
fonts-tweak-tool-0.0.4-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.4-1.fc17

Comment 9 Fedora Update System 2012-03-20 06:03:56 UTC
Package fonts-tweak-tool-0.0.4-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fonts-tweak-tool-0.0.4-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4204/fonts-tweak-tool-0.0.4-1.fc17
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-03-20 09:42:40 UTC
fonts-tweak-tool-0.0.5-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.5-1.fc16

Comment 11 Fedora Update System 2012-03-20 09:43:04 UTC
fonts-tweak-tool-0.0.5-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.5-1.fc17

Comment 12 Fedora Update System 2012-03-24 00:27:57 UTC
fonts-tweak-tool-0.0.5-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2012-04-12 03:45:04 UTC
fonts-tweak-tool-0.0.5-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.