! 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 !
xfce4-xkb-plugin 0.5.3.3-4 crashes when "Use system defaults" is set in Setti...
Status:
RESOLVED: FIXED
Product:
Xfce4-xkb-plugin
Component:
General

Comments

Description dogpizza 2011-04-17 17:40:29 CEST
Plugin crashes randomly when "Use system defaults" is checked under Settings>Keyboard>Layout and some other mechanism is used to switch the layouts, e.g. direct invocations of `setxkbmap`.

STEPS TO REPRODUCE

PRECONDITION:
The checkbox "Use system settings" is checked in XFCE Settings Manager>Keyboard>Layout.

1. Start manually from a startup script or from terminal the command `setxkbmap -option grp:caps_toggle us,es`.

2. Add the Keyboard Layout plugin to a panel.

3. Continue using the plugin.

EXPECTED RESULT:
Plugin continues to work and the correct layout is shown when the hot key is pressed (e.g. caps lock).

ACTUAL RESULT:
Plugin works for some time, but then crashes on relogin or randomly without any apparent reason during the current session.
The plugin always crashes when user selects 'Properties' or 'About' from the right-click context menu.

===kernel.log===
kernel: xfce4-xkb-plugi[10108]: segfault at 11 ip b6b6da0b sp bfd92eac error 4 in libc-2.13.so[b6afa000+145000]

NOTES:
The bug might be related to bug  https://bugs.archlinux.org/task/21067 [FS#21067 - [xfce4-xkb-plugin] crashes in settings and about dialog.]
Comment 1 Azamat H. Hackimov editbugs 2011-04-17 21:46:47 CEST
Try use new version - 0.5.4.0, I hope, it helps: http://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/0.5/xfce4-xkb-plugin-0.5.4.0.tar.bz2
Comment 2 dogpizza 2011-04-20 21:16:05 CEST
Created attachment 3624 
Unexpected symbols in properties dialog

screenshot: unexpected symbols in properties dialog
Comment 3 dogpizza 2011-04-20 22:02:44 CEST
I have built from GIT and the segfaults are indeed gone. But there are now strange characters in the plugin 'Properties' dialog as can be seen in the attached screenshot.

Another thing which probably still needs clarification is whether the Properties dialog should be enabled in the case when Settings>Keyboard>Layout>'Use system defaults' is checked. 

Is there some kind of requirement for this kind of a use case?

I would expect that in the case when keyboard layouts are not configured via XFCE Settings, then (1) the 'Properties' item in the context menu should be grayed out, or even better, (2) selecting 'Properties' would display an alert saying something like 'Keyboard layouts are not managed by XFCE. You can enable layout management in Settings > Keyboard > Layout...' or something like this. This is just an idea; maybe there is a better way to handle this.
Comment 4 dogpizza 2011-04-21 16:24:51 CEST
I have logged in onto my XFCE desktop using a tightvnc session tunnelled via SSH, and have noticed that the plugin (latest git build) segfaults and goes on a loop with the 'Execute/Remove' dialog showing repeatedly until Remove is selected.
Comment 5 Jérôme Guelfucci editbugs 2011-05-06 09:23:07 CEST
Those bugs should be fixed with latest git master branch, can you please try it?
Comment 6 Azamat H. Hackimov editbugs 2011-05-22 21:27:35 CEST
Please try 0.5.4.1 and reopen bug if errors appears again.

Bug #7509

Reported by:
dogpizza
Reported on: 2011-04-17
Last modified on: 2011-05-22

People

Assignee:
Azamat H. Hackimov
CC List:
1 user

Version

Attachments

Additional information