Bug 1918606

Summary: gkbd-keyboard-display crash when Show Keyboard Layout with some input methods
Product: [Fedora] Fedora Reporter: Peng Wu <pwu>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: fmuellner, gnome-sig, i18n-bugs, jadahl, mfabian, otaylor, philip.wyett, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-11 11:58:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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