Bug 887371

Summary: XklWrapperError: Failed to remove layout 'us ()'
Product: [Fedora] Fedora Reporter: Reartes Guillermo <rtguille>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: awilliam, g.kaviyarasu, jonathan, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:00d3887e3caa9d0fbe25f08c5570a897bda118ee938cfac88d826b48309f914d
Fixed In Version: anaconda-19.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-10 03:49:31 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
File: anaconda.log
none
File: environ
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: anaconda-tb none

Description Reartes Guillermo 2012-12-14 20:11:55 UTC
Description of problem:
clicked "-" and then i did something weird. It is something i do not believe that will normally happen.
The following was filed automatically by anaconda:
anaconda 18.37.2 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 526, in remove_layout
    variant))
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/keyboard.py", line 358, in _removeLayout
    self._xkl_wrapper.remove_layout(store[itr][0])
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/keyboard.py", line 394, in on_add_clicked
    self._removeLayout(self._store, itr)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/utils.py", line 30, in wrap
    func(*args)
XklWrapperError: Failed to remove layout 'us ()'

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2018-TC2\x20x86_64 quiet gpt BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.6.10-4.fc18.x86_64
other involved packages: 
package:        anaconda-18.37.2
product:        Fedora
release:        Cannot get release name.
type:           libreport
version:        18-TC2

Comment 1 Reartes Guillermo 2012-12-14 20:11:59 UTC
Created attachment 663770 [details]
File: anaconda.log

Comment 2 Reartes Guillermo 2012-12-14 20:12:01 UTC
Created attachment 663771 [details]
File: environ

Comment 3 Reartes Guillermo 2012-12-14 20:12:04 UTC
Created attachment 663772 [details]
File: ifcfg.log

Comment 4 Reartes Guillermo 2012-12-14 20:12:09 UTC
Created attachment 663773 [details]
File: packaging.log

Comment 5 Reartes Guillermo 2012-12-14 20:12:16 UTC
Created attachment 663774 [details]
File: program.log

Comment 6 Reartes Guillermo 2012-12-14 20:12:28 UTC
Created attachment 663775 [details]
File: storage.log

Comment 7 Reartes Guillermo 2012-12-14 20:12:32 UTC
Created attachment 663776 [details]
File: syslog

Comment 8 Reartes Guillermo 2012-12-14 20:12:59 UTC
Created attachment 663777 [details]
File: anaconda-tb

Comment 9 Chris Lumens 2012-12-16 14:42:33 UTC
Can you remember what "something weird" you did that caused this?  Without it, I don't think we'll be able to reproduce and fix this problem.

Comment 10 Reartes Guillermo 2012-12-16 16:13:11 UTC
I could not replicate it. 

I was some junk imput, so i don't think it will happen very often.
If i can reproduce it i will update this bug-report.

Comment 11 Reartes Guillermo 2012-12-16 16:24:12 UTC
Well, i believe i speaker too quickly... I was able to reproduce it.

0. Boot, enter KEYBOARD
1. Click '-' key
2. Type: spaX
3. Double click the now empty keyboard layout are (the center of the widget)
4. The 'input' is accepted and the 'unknown error' appears.


Partially unrelated: in recent times i noticed that there is now a delay for the unknown error to show up. Previously they were almost instantaneous. There is at least one case in which there is an anaconda-tb-XXX file but no unknown error has been ever displayed.

Comment 12 Vratislav Podzimek 2012-12-17 08:53:01 UTC
(In reply to comment #11)
> Well, i believe i speaker too quickly... I was able to reproduce it.
> 
> 0. Boot, enter KEYBOARD
> 1. Click '-' key
> 2. Type: spaX
> 3. Double click the now empty keyboard layout are (the center of the widget)
> 4. The 'input' is accepted and the 'unknown error' appears.
Thanks for the reproducer. I'm sending an easy fix for this issue to anaconda-patches.

> 
> 
> Partially unrelated: in recent times i noticed that there is now a delay for
> the unknown error to show up. Previously they were almost instantaneous.
I have seen this too some time ago and it was caused by dumping some big data that should have been skipped (yum instance). In the anaconda-tb file you have provided I can see some unimportant rubbish that could be skipped. I'll look at this too.

> There is at least one case in which there is an anaconda-tb-XXX file but no
> unknown error has been ever displayed.
Whenever this happens, please switch to tty1 because there will likely be a traceback from python-meh (our exception handling). You can use tmux capabilities [1] to copy-paste these and file a bug against python-meh. Thanks!

[1] http://awhan.wordpress.com/2010/06/20/copy-paste-in-tmux/

Comment 13 Reartes Guillermo 2013-01-04 13:39:43 UTC
It still happens with TC4 (18.37.8)

Comment 14 Vratislav Podzimek 2013-01-05 13:49:16 UTC
(In reply to comment #13)
> It still happens with TC4 (18.37.8)
That's expected. This bug was not marked as blocker nor NTH and thus the patch was pushed only for Rawhide, not F18.

Comment 15 Adam Williamson 2013-05-10 03:49:31 UTC
Tested with F19, cannot reproduce; the fix worked.