! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xkb crashes with two keyboard layouts with different keyboard variants
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Xfce4-xkb-plugin
Component:
General

Comments

Description Heiko Baums 2009-02-02 15:14:09 CET
xkb crashes, when using two keyboard layouts with two different keyboard variants.

With this configuration in /etc/hal/fdi/policy/10-keymap.fdi xkb is starting and working correctly:

<merge key="input.xkb.layout" type="string">de,ru</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys</merge>

But with this settings nodeadkeys is ignored by X.

See my bug report there:
http://bugs.freedesktop.org/show_bug.cgi?id=19897

In the answer I was pointed to a syntax error in my configuration.

With the correct configuration X is working correctly, but xkb crashes, when it's added to the panel:

<merge key="input.xkb.layout" type="string">de,ru</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys,</merge>
Comment 1 Alexander Iliev 2009-02-02 15:53:47 CET
Could you post the full contents of /etc/hal/fdi/policy/10-keymap.fdi?

Could you also specify which version of the plugin are you using?

I'm not so familiar with the HAL way to configure Xkb and so far I didn't
manage to create a file that correctly configures the keyboard with
your settings.

I tried configuring the layouts through setxkbmap:

setxkbmap -layout de,ru -variant nodeadkeys, -option grp:alt_shift_toggle

and the plugin did not not crash.

I also tried to configure the layouts through the plugin and it
did not crash.
Comment 2 Heiko Baums 2009-02-02 17:38:30 CET
Created attachment 2143 
10-keymap.fdi
Comment 3 Heiko Baums 2009-02-02 17:40:32 CET
Created attachment 2144 
10-x11-input.fdi
Comment 4 Heiko Baums 2009-02-02 17:41:52 CET
Created attachment 2145 
xorg.conf
Comment 5 Alexander Iliev 2009-02-02 17:48:22 CET
Could you also specify which version of the plugin are you using?
Comment 6 Heiko Baums 2009-02-02 18:01:54 CET
I attached the files, which are necessary to configure the input devices for the new evdev driver from xorg with hal:
/etc/hal/fdi/policy/10-keymap.fdi
/etc/hal/fdi/policy/10-x11-input.fdi
/etc/X11/xorg.conf

These are the versions I'm using:
xfce4-xkb-plugin 0.5.1
xf86-input-evdev 2.1.0
xorg-server 1.5.3
xorg 7.4

I haven't used setxkbmap, yet. I always configured the keyboard in xorg.conf and now in the two fdi files above.

I wasn't able to configure the layouts in the plugin. Originally I only had de and nodeadkeys in 10-keymap.fdi. When I needed to enter a few russian words in cyrillic some days ago, I first tried to add the keyboard layout in the plugin. It seemed to have added ru, but after closing the settings dialog and trying to switch to ru, it crashed. And now it's always crashing, except if I have the wrong settings in 10-keymap.fdi:

<merge key="input.xkb.layout" type="string">de,ru</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys</merge>

It's also crashing, if I only have de in 10-keymap.fdi:

<merge key="input.xkb.layout" type="string">de</merge>
<merge key="input.xkb.variant" type="string">nodeadkeys</merge>

Btw., where does the plugin save its own settings?
Comment 7 Alexander Iliev 2009-02-02 18:47:15 CET
Created attachment 2146 
My preferences.fdi file
Comment 8 Alexander Iliev 2009-02-02 18:50:55 CET
The settings are stored in ~/.config/xfce4/panel/xkb-plugin-$ID.xml, 
where $ID is the ID of the plugin, as specified in
~/.config/xfce4/panel/panels.xml.

I did store the 10-keymap.fdi and 10-x11-input.fdi files in
/etc/hal/fdi/policy, but for some reason it didn't take effect
(also I restarted hal of course).

I have attached my preferences.fdi file, where I have specified
the options, which do manage to set up your keymap through hal.
I saw that syntax here:
http://cgit.freedesktop.org/xorg/xserver/tree/config/x11-input.fdi


Yesterday I released a new version of the plugin - 0.5.3.1.
Could you try to build that version and check whether the
problem remains. (A segfault problem, causing a crash in the
plugin was fixed in that version, and it's possible that this
is the problem you are expiriencing.)
Comment 9 Heiko Baums 2009-02-02 19:35:37 CET
(In reply to comment #8)
> The settings are stored in ~/.config/xfce4/panel/xkb-plugin-$ID.xml, 
> where $ID is the ID of the plugin, as specified in
> ~/.config/xfce4/panel/panels.xml.

I don't have this file. Maybe it was automatically deleted, when I removed the plugin from the panel.

> I did store the 10-keymap.fdi and 10-x11-input.fdi files in
> /etc/hal/fdi/policy, but for some reason it didn't take effect
> (also I restarted hal of course).
> 
> I have attached my preferences.fdi file, where I have specified
> the options, which do manage to set up your keymap through hal.
> I saw that syntax here:
> http://cgit.freedesktop.org/xorg/xserver/tree/config/x11-input.fdi

I'll have a look at these files.

> Yesterday I released a new version of the plugin - 0.5.3.1.
> Could you try to build that version and check whether the
> problem remains. (A segfault problem, causing a crash in the
> plugin was fixed in that version, and it's possible that this
> is the problem you are expiriencing.)

The Archlinux package is already flagged out of date. So let's wait some days, until it's updated in the official Archlinux repos.

I'll tell you, as soon as it's updated there.
Comment 10 Heiko Baums 2009-03-01 12:19:14 CET
(In reply to comment #8)
> Yesterday I released a new version of the plugin - 0.5.3.1.
> Could you try to build that version and check whether the
> problem remains. (A segfault problem, causing a crash in the
> plugin was fixed in that version, and it's possible that this
> is the problem you are expiriencing.)

Finally Archlinux has updated Xfce to 4.6.0 and this plugin to 0.5.3.2,
The crash problem seems to be solved.

But now there's another bug in it. But I'll open a new bug report for this one, if this bug wasn't already filed.

Bug #4889

Reported by:
Heiko Baums
Reported on: 2009-02-02
Last modified on: 2009-07-15

People

Assignee:
Alexander Iliev
CC List:
0 users

Version

Version:
unspecified

Attachments

10-keymap.fdi (914 bytes, text/plain)
2009-02-02 17:38 CET , Heiko Baums
no flags
10-x11-input.fdi (906 bytes, text/plain)
2009-02-02 17:40 CET , Heiko Baums
no flags
xorg.conf (5.40 KB, text/plain)
2009-02-02 17:41 CET , Heiko Baums
no flags
My preferences.fdi file (1.87 KB, text/plain)
2009-02-02 18:47 CET , Alexander Iliev
no flags

Additional information