Bug 963103 - XklWrapperError: Failed to initialize layouts (anaconda should fail gracefully or fall back to a default when kickstart specifies an invalid keyboard layout)
Summary: XklWrapperError: Failed to initialize layouts (anaconda should fail gracefull...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vratislav Podzimek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:595d6fe0ab6efef7664d6fbaafb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-15 07:12 UTC by Jens Petersen
Modified: 2013-05-30 02:07 UTC (History)
11 users (show)

Fixed In Version: anaconda-19.29-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-30 02:07:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (136.20 KB, text/plain)
2013-05-15 07:12 UTC, Jens Petersen
no flags Details
File: anaconda.log (2.05 KB, text/plain)
2013-05-15 07:12 UTC, Jens Petersen
no flags Details
File: backtrace (1.05 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: environ (744 bytes, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: ifcfg.log (381 bytes, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: ks.cfg (1.72 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: lsblk_output (1.21 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: nmcli_dev_list (3.13 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: packaging.log (9.58 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: program.log (21.14 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: storage.log (30.96 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details
File: syslog (71.40 KB, text/plain)
2013-05-15 07:13 UTC, Jens Petersen
no flags Details

Description Jens Petersen 2013-05-15 07:12:46 UTC
Description of problem:
tried to install with f19 gnome-boxes with preset user a/c
The following was filed automatically by anaconda:
anaconda 19.25-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 369, in __init__
    raise XklWrapperError("Failed to initialize layouts")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 345, in get_instance
    XklWrapper._instance = XklWrapper()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 49, in __init__
    self._xklwrapper = keyboard.XklWrapper.get_instance()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 331, in __init__
    LanguageMixIn.__init__(self)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/__init__.py", line 322, in _instantiateAction
    obj = actionClass(self.data, self.storage, self.payload, self.instclass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/__init__.py", line 360, in run
    self._currentAction = self._instantiateAction(self._actions[0])
  File "/sbin/anaconda", line 1085, in <module>
    anaconda._intf.run()
XklWrapperError: Failed to initialize layouts

Version-Release number of selected component:
anaconda-19.25-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   ks=hd:sda:/fedora.ks
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC4

Truncated backtrace:
Traceback (most recent call last):
  File "/sbin/anaconda", line 1085, in <module>
    anaconda._intf.run()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/__init__.py", line 360, in run
    self._currentAction = self._instantiateAction(self._actions[0])
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/__init__.py", line 322, in _instantiateAction
    obj = actionClass(self.data, self.storage, self.payload, self.instclass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 331, in __init__
    LanguageMixIn.__init__(self)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 49, in __init__
    self._xklwrapper = keyboard.XklWrapper.get_instance()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 345, in get_instance
    XklWrapper._instance = XklWrapper()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 369, in __init__
    raise XklWrapperError("Failed to initialize layouts")
XklWrapperError: Failed to initialize layouts

Comment 1 Jens Petersen 2013-05-15 07:12:50 UTC
Created attachment 748085 [details]
File: anaconda-tb

Comment 2 Jens Petersen 2013-05-15 07:12:57 UTC
Created attachment 748086 [details]
File: anaconda.log

Comment 3 Jens Petersen 2013-05-15 07:13:00 UTC
Created attachment 748087 [details]
File: backtrace

Comment 4 Jens Petersen 2013-05-15 07:13:02 UTC
Created attachment 748088 [details]
File: environ

Comment 5 Jens Petersen 2013-05-15 07:13:04 UTC
Created attachment 748089 [details]
File: ifcfg.log

Comment 6 Jens Petersen 2013-05-15 07:13:06 UTC
Created attachment 748090 [details]
File: ks.cfg

Comment 7 Jens Petersen 2013-05-15 07:13:09 UTC
Created attachment 748091 [details]
File: lsblk_output

Comment 8 Jens Petersen 2013-05-15 07:13:11 UTC
Created attachment 748092 [details]
File: nmcli_dev_list

Comment 9 Jens Petersen 2013-05-15 07:13:15 UTC
Created attachment 748094 [details]
File: packaging.log

Comment 10 Jens Petersen 2013-05-15 07:13:18 UTC
Created attachment 748097 [details]
File: program.log

Comment 11 Jens Petersen 2013-05-15 07:13:22 UTC
Created attachment 748099 [details]
File: storage.log

Comment 12 Jens Petersen 2013-05-15 07:13:24 UTC
Created attachment 748101 [details]
File: syslog

Comment 13 Vratislav Podzimek 2013-05-15 09:26:48 UTC
'ja_JP.UTF-8' (from the kickstart file used) is not a valid X layout. I'll change the code not to raise this exception when an invalid layout is passed, but it's the kickstart creator's responsibility to use valid values.

Comment 14 Tim Flink 2013-05-15 19:26:38 UTC
Description of problem:
I started an install of a F19 VM with boxes and clicked on the new VM's entry before the installation finished

Version-Release number of selected component:
anaconda-19.25-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   ks=hd:sda:/fedora.ks
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC4

Truncated backtrace:
Traceback (most recent call last):
  File "/sbin/anaconda", line 1085, in <module>
    anaconda._intf.run()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/__init__.py", line 360, in run
    self._currentAction = self._instantiateAction(self._actions[0])
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/__init__.py", line 322, in _instantiateAction
    obj = actionClass(self.data, self.storage, self.payload, self.instclass)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 331, in __init__
    LanguageMixIn.__init__(self)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/welcome.py", line 49, in __init__
    self._xklwrapper = keyboard.XklWrapper.get_instance()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 345, in get_instance
    XklWrapper._instance = XklWrapper()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 369, in __init__
    raise XklWrapperError("Failed to initialize layouts")
XklWrapperError: Failed to initialize layouts

Comment 15 Adam Williamson 2013-05-15 20:26:00 UTC
I filed https://bugzilla.redhat.com/show_bug.cgi?id=963464 for the Boxes part of this. This bug can just be for making anaconda cope gracefully with errors.

Comment 16 Fedora Update System 2013-05-21 23:34:51 UTC
anaconda-19.29-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/anaconda-19.29-1.fc19

Comment 17 Fedora Update System 2013-05-22 22:36:11 UTC
Package anaconda-19.29-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.29-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-8821/anaconda-19.29-1.fc19
then log in and leave karma (feedback).

Comment 18 Adam Williamson 2013-05-30 02:07:20 UTC
Confirmed fixed in Beta. If I specify 'ja_JP.UTF-8' as the keyboard layout it doesn't crash, it falls back to US, and logs it in anaconda.log.


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