xkb-plugin 0.5.3.2 is crashing when I select a different language. I am using the evdev driver version 2.1.4 and xfce 4.6.0. When I click on the button it switches keyboard layouts and removes itself from the panel. Console shows these messages: ERROR: xkb-util.c:36: xkb_util_get_flag_filename: assertion failed (group_name != NULL) libxfce4panel-Message: Keyboard Layouts: screen changed: 0 libxfce4panel-Message: No valid plug window The last message is about a plugin being unexpectedly removed. I have noticed that when I add the plugin it, it isn't automattically seeing my keyboard layouts. Only english is added and I have to add russian manually. My /etc/hal/fdi/policy/10-keymap.fdi file looks like: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.product" string="Dell Dell USB Keyboard"> <merge key="input.xkb.rules" type="string">base</merge> <merge key="input.xkb.model" type="string">evdev</merge> <merge key="input.xkb.layout" type="string">us,ru</merge> <merge key="input.xkb.variant" type="string">,phonetic</merge> <merge key="input.xkb.options" type="string">grp:ctrl_shift_toggle,grp_led:scroll</merge> </match> </device> </deviceinfo> There are no keyboard entries in xorg.conf.
As I mentioned in the last comment of bug #5017 - keyboards layouts set up like this in HAL do not work for me. For some reason they do not take effect at all. You might want to take a look at the attached preferences.fdi file, attached in bug #5017. On the other hand - there was an issue, when no key combination has been set up to change the layout, and I suppose this is the problem you are experiencing. I've released version 0.5.3.3 of the plugin, please check if the problem persist with this version.
I am experiencing pretty much the same problem. After restart changing the layout by clicking the icon or using the hot key crashes the xkb-plugin. Behaviour is the same with versions 0.5.3.2 and 0.5.3.3. Clicking on the About option also causes a crash. When I readd the plugin to the panel, changing layouts starts to work ok, clicking on About still causes a crash. I have tried setting the layouts through setxkbmap from .profile and with the xfce-settings-manager, results are the same.
(In reply to comment #2) > I am experiencing pretty much the same problem. After restart changing the > layout by clicking the icon or using the hot key crashes the xkb-plugin. > Behaviour is the same with versions 0.5.3.2 and 0.5.3.3. Clicking on the About > option also causes a crash. When I readd the plugin to the panel, changing > layouts starts to work ok, clicking on About still causes a crash. > I have tried setting the layouts through setxkbmap from .profile and with the > xfce-settings-manager, results are the same. Could you specify how are your layouts configured, what distro you are using and the version of libxklavier.
I am using Xubuntu 9.04, upgraded from 8.10, where the plugin worked fine. I am configuring the layouts by adding the line: setxkbmap -option grp:alt_shift_toggle "us,bg(phonetic),de(qwerty)" to /home/.profile. I have also tried configuring them with the Xfce keyboard settings utility. Package: libxklavier12 Priority: optional Section: libs Installed-Size: 160 Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com> Original-Maintainer: Filip Van Raemdonck <mechanix@debian.org> Architecture: i386 Source: libxklavier Version: 3.9-0ubuntu1
(In reply to comment #4) > I am using Xubuntu 9.04, upgraded from 8.10, where the plugin worked fine. > I am configuring the layouts by adding the line: > > setxkbmap -option grp:alt_shift_toggle "us,bg(phonetic),de(qwerty)" > > to /home/.profile. > I have also tried configuring them with the Xfce keyboard settings utility. I'm running Ubuntu 9.04 myself, so I tried both ways to configure my layouts. The first one (using setxkbmap) indeed fails. I'll investigate the problem. The second one works (for me at least). I set the layouts exactly as you describe (us, bg phonetic and de qwerty) from the keyboard settings tool in Xfce, then added the plugin to the panel and had no problems. On a side note - setting the keyboard layouts through .profile is not exactly the legal way to do it, because .profile is executed by your shell, thus you need to start a terminal emulator once you login in your X session in order the layouts to get set up. AFAIK, the legal way to do this is currently through hal.
I've managed to gather a little more specific information about the problem. The plugin crashes only after a restart of the system and only when using the hot key combination to switch layouts. Does clicking on the About option cause a crash on your system too?
No, it doesn't crash here when clicked on About.
I found out that the crash occurs only when automatic login enabled is. When logging in Xfce with username and password the plugin works fine, but with the automatic login pressing on the hotkey for changing the layout causes a crash. Hope this can be fixed...
Version 5.3.3 does crash here on Ubuntu Lucid when I select about option. I am using ru_RU.UTF-8 locale. Crash report sent via apport.
I have the same problem after a resume from hibernate On resume the first change of layouts crashes xkb plugin But keys combination still work - layouts get changed About dialog always works I'm on Gentoo, xfce4-panel 4.6.4, xfce4-xkb-plugin 0.5.3.3-r1,
I have a similar problem. The crash occures right after I plug in my Wacom tablet and then try to change the layout. It doesn't crash just because I connected the tablet only when I try to change the layout. Also noticed that when I plugged the second mouse and made two cursors controlled by each separately (via xinput utility). This is stable crash and I can reproduce it anytime. Oct 9 21:31:08 homecomp kernel: [1392284.396023] usb 2-8: new full speed USB device using ohci_hcd and address 22 Oct 9 21:31:08 homecomp kernel: [1392284.549271] usb 2-8: New USB device found, idVendor=056a, idProduct=0018 Oct 9 21:31:08 homecomp kernel: [1392284.549275] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Oct 9 21:31:08 homecomp kernel: [1392284.549278] usb 2-8: Product: CTE-650 Oct 9 21:31:08 homecomp kernel: [1392284.549280] usb 2-8: Manufacturer: Wacom Co.,Ltd. Oct 9 21:31:08 homecomp kernel: [1392284.552392] input: Wacom BambooFun 6x8 as /devices/pci0000:00/0000:00:0b.0/usb2/2-8/2-8:1.0/input/input50 <here I press Alt+Shift to change the layout> Oct 9 21:31:16 homecomp kernel: [1392292.472461] xfce4-xkb-plugi[5431]: segfault at 0 ip b6a174a3 sp bf9aa7ac error 4 in libc-2.11.2.so[b69a1000+164000] OpenSuSE 11.3 (on 11.2 everything was fine though), xfce4-panel 4.6.4-32.2, xkb plugin 0.5.3.3-60.1. Tried to install xkb plugin and libxklavier15 from 11.2 but nothing changed.
I was able to resolve the issue. I upgraded xorg-server to 1.9. It has dropped hald support in favor of udev. With xorg-server version 1.8 and above keyboard configuration is done in xorg.conf again instead of fdi policy files. Gentoo has a special folder /etc/X11/xorg.conf.d folder for configuration files. I created the next one there and xkb plugin is working just fine now: $ cat /etc/X11/xorg.conf.d/97-keyboard.conf Section "InputClass" Identifier "keyboard-all" Driver "evdev" MatchIsKeyboard "on" Option "XkbOptions" "grp:shift_toggle" Option "XkbLayout" "us,ru" EndSection
ERROR: xkb-util.c:36: xkb_util_get_flag_filename: assertion failed (group_name != NULL) This should be fixed in git master branch, please reopen if it still crashes with this error.