After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 390318 - keyboard indicator show ? sign
keyboard indicator show ? sign
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: keyboard indicator (gswitchit)
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-28 11:39 UTC by Sebastien Bacher
Modified: 2007-03-05 00:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Sebastien Bacher 2006-12-28 11:39:25 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/gnome-applets/+bug/75988

"Binary package hint: gnome-applets

- Add keyboard indicator to the panel.
- Go to Keyboard Preferences and add one more language.
- Click on the keyboard indicator applet.
- It will show "?" sign (without the quotes)
..."
Comment 1 Sergey V. Udaltsov 2006-12-28 23:22:53 UTC
Sebastien, this is in feisty - so it should be 2.17 rather than 2.16. May be, the reason is broken xkeyboard-config package. Could the person who reported the bug build libgnomekbd and try to run the indicator test (test/gkbd-indicator-test)?
Comment 2 Sebastien Bacher 2006-12-29 10:37:04 UTC
No gnome-applets 2.17 tarball has been rolled
Comment 3 Sergey V. Udaltsov 2006-12-29 11:59:29 UTC
That's your answer. g-a 2.17 (HEAD) work with g-s-d 2.17. g-a 2.16 work with g-s-d 2.16. All other combinations are not supported.

So, you should chase Davyd and make him release g-a 2.17.x. I will do the same.
Comment 4 Sebastien Bacher 2007-01-06 15:17:39 UTC
it's doing the same with 2.17.1, reopening
Comment 5 Sergey V. Udaltsov 2007-01-07 18:24:29 UTC
Great! :) Sebastien, do you have libgnomekbd built on your system? Could you please run test/gkbd-indicator-test ? What do you see?
Comment 6 Sebastien Bacher 2007-01-07 19:04:01 UTC
gkbd-indicator-test displays the right country code and not a "?"
Comment 7 Sergey V. Udaltsov 2007-01-07 21:53:25 UTC
This is really odd! The thing is that the applet is 99% same as the test - they are using the same widget. Could it be some version clash or smth? Could you please try to run the applet from the console setting the XKL_DEBUG to 150 or more - it should show you where (at which point) it takes that stupid question mark...
Comment 8 Sebastien Bacher 2007-01-07 22:44:51 UTC
in fact it happens with gkbd-indicator-test too, but not every time (or it's correct after some time or something like that):
* configure one layout (french by example) from the keyboard capplet
* start gkbd-indicator-test
* use the capplet to add another layout (english by example)
* left click on the label from gkbd-indicator-test

the code is switched to "?"

Log from gkbd-indicator-test after one left click on the layout label:

[1168209754,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    Xkb event detected
[1168209754,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    XkbStateNotify detected, changes: 2000/(mask F0), new group 0
[1168209754,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    Xkb event detected
[1168209754,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    XkbStateNotify detected, changes: 2000/(mask F0), new group 0
[1168209755,150,gkbd-indicator.c:gkbd_indicator_button_pressed/]        Flag img size 226 x 110
[1168209755,150,gkbd-indicator.c:gkbd_indicator_button_pressed/]        Mouse button pressed on applet
[1168209755,100,xklavier_xkb.c:xkl_xkb_lock_group/]     Posted request for change the group to 1 ##
[1168209755,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    Xkb event detected
[1168209755,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    XkbStateNotify detected, changes: 2000/(mask F0), new group 0
[1168209755,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    Xkb event detected
[1168209755,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    XkbStateNotify detected, changes: 90/(mask F0), new group 1
[1168209755,150,xklavier_evt.c:xkl_engine_process_state_modification/]  Focused window: 4000003, 'gkbd-indicator-test'
[1168209755,150,xklavier_util.c:xkl_engine_update_current_state/]       Updating the current state with [g:1/i:0], reason: Restoring the state from the window
[1168209755,150,xklavier.c:xkl_engine_try_call_state_func/]     change_type: 0, group: 1, secondary_group_mask: 0, allowsecondary: 0
[1168209755,150,xklavier.c:xkl_engine_one_switch_to_secondary_group_performed/]         Resetting allow_one_switch_to_secondary_group flag
[1168209755,150,gkbd-indicator.c:gkbd_indicator_state_callback/]        group is now 1, restore: 0
[1168209755,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    Xkb event detected
[1168209755,150,xklavier_evt_xkb.c:xkl_xkb_process_x_event/]    XkbIndicatorStateNotify
[1168209755,150,xklavier_evt.c:xkl_engine_process_state_modification/]  Focused window: 4000003, 'gkbd-indicator-test'
[1168209755,150,xklavier_util.c:xkl_engine_update_current_state/]       Updating the current state with [g:1/i:0], reason: Restoring the state from the window
[1168209755,150,xklavier.c:xkl_engine_try_call_state_func/]     change_type: 1, group: 1, secondary_group_mask: 0, allowsecondary: 0
[1168209755,150,gkbd-indicator.c:gkbd_indicator_state_callback/]        group is now 1, restore: 1
Comment 9 Sergey V. Udaltsov 2007-01-08 23:19:31 UTC
I cannot reproduce it - I still have normal readoable IDs. Another idea - could you please try killing gnome-settings-daemon and start test/gkbd-config-registry-server instead (before starting gkbd-indicator-test). Again, setting some XKL_DEBUG might be handy.
Comment 10 Sebastien Bacher 2007-01-11 15:27:23 UTC
The bug doesn't happen with the previous steps exactly now, starting with a french locale, then adding an english one:

[1168528950,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  ids: [fr][]
[1168528950,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  description: [Fra][France][][]
[1168528950,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  ids: [gb][]
[1168528950,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  description: [GBr][Royaume-Uni][][]

then adding a spanish one:

[1168528961,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  ids: [fr][]
[1168528961,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  description: [Fra][France][][]
[1168528961,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  ids: [gb][]
[1168528961,100,gkbd-config-registry.c:gkbd_config_registry_get_descriptions_as_utf8/]  description: [GBr][Royaume-Uni][][]


Then the gnome layout capplet list french, english, spanish, the gkbd-indicator-test cycles between "Fra", "GBr" and "?".

You might need to remove a layout to trigger it, if adding a layout works fine try to remove it and add it again then, it should be listed with the "?" label
Comment 11 Sergey V. Udaltsov 2007-01-12 11:30:29 UTC
The bad thing is that I cannot really reproduce it - I added/removed layouts many times. May be, there is some kind of race condition here? It seems even after you added 3rd Spanish layout, the indicator is still asking for two layouts. Do you see anything in gkbd-indicator-test debug output anything which could explain this strange effect?
Comment 12 Sebastien Bacher 2007-03-04 17:45:30 UTC
works fine now
Comment 13 Sergey V. Udaltsov 2007-03-05 00:38:55 UTC
Funny. I'd love to find out what is the difference between "now" and "then". Just in case, you know...:)