Bug 1918606 - gkbd-keyboard-display crash when Show Keyboard Layout with some input methods
Summary: gkbd-keyboard-display crash when Show Keyboard Layout with some input methods
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Müllner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-21 08:15 UTC by Peng Wu
Modified: 2021-05-11 11:58 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-11 11:58:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peng Wu 2021-01-21 08:15:48 UTC
Description of problem:

When show keyboard layout with ibus-libpinyin ("Intelligent Pinyin")
for Chinese, the gkbd-keyboard-display is crashed.

Version-Release number of selected component (if applicable):
gnome-shell-3.38.3-1.fc33.x86_64

How reproducible:

Add Chinese input method "Intelligent Pinyin", switch to use
this input method, then click the Show Keyboard Layout menu,
gkbd-keyboard-display is crashed.

Steps to Reproduce:
1. Add "Intelligent Pinyin" input method in gnome-control-center
2. Switch to use this input method
3. Click Show Keyboard Layout menu

Actual results:

The following command is run:
$ gkbd-keyboard-display -l default
and it crashed.

Expected results:

The current keyboard layout like "us" is shown.

Additional info:

Some ibus input method doesn't specify the keyboard layout,
it always use the current keyboard layout;
and ibus will return "default" for the keyboard layout.

Then gkbd-keyboard-display will crash with the "default" layout.

Comment 1 fujiwara 2021-01-27 07:14:01 UTC
I think it's good to move the report to upstream and my suggestion is to file a patch to save the previous keymap in gnome-shell.

Comment 2 Peng Wu 2021-03-17 03:22:46 UTC
Okay, upstream issue is created.

URL: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3863

Comment 3 Peng Wu 2021-05-11 09:02:21 UTC
The upstream patch is merged.

URL: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1756


Note You need to log in before you can comment on or make changes to this bug.