JetBrainsRuntime icon indicating copy to clipboard operation
JetBrainsRuntime copied to clipboard

Wrong position of input window with fcitx and sogoupinyin input method on ubuntu 20.04

Open Sud0x67 opened this issue 3 years ago • 2 comments

Dear engineers: When I use a Chinese input method, the input window is at a wired position(left bottom) and I can't see preview texts. shown as below. image

I have tried the option :-Dauto.disable.input.methods=false , but it didn't work. Finally, I found a innormal patch idea patch which solved this problem but with other side effects, for example that I can't use markdown plugin with this patch. As I kown, this bug appeared 8 years ago, please fix it officially so that we can use pycharm more conveniently.

And bellow is the diagnose information for fcitx, which may be helpful:

# System Info:
1.  `uname -a`:

       Linux asus 5.8.0-45-generic #51~20.04.1-Ubuntu SMP Tue Feb 23 13:46:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

2.  `lsb_release -a`:

       No LSB modules are available.
       Distributor ID:	Ubuntu
       Description:	Ubuntu 20.04.2 LTS
       Release:	20.04
       Codename:	focal

3.  `lsb_release -d`:

       Description:	Ubuntu 20.04.2 LTS

4.  `/etc/lsb-release`:

       DISTRIB_ID=Ubuntu
       DISTRIB_RELEASE=20.04
       DISTRIB_CODENAME=focal
       DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

5.  `/etc/os-release`:

       NAME="Ubuntu"
       VERSION="20.04.2 LTS (Focal Fossa)"
       ID=ubuntu
       ID_LIKE=debian
       PRETTY_NAME="Ubuntu 20.04.2 LTS"
       VERSION_ID="20.04"
       HOME_URL="https://www.ubuntu.com/"
       SUPPORT_URL="https://help.ubuntu.com/"
       BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
       PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
       VERSION_CODENAME=focal
       UBUNTU_CODENAME=focal

6.  Desktop Environment:

   Desktop environment is `gnome3`.

7.  Bash Version:

       BASH_VERSION='5.0.17(1)-release'

# Environment:
1.  DISPLAY:

       DISPLAY=':1'

2.  Keyboard Layout:

   1.  `setxkbmap`:

           xkb_keymap {
           	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
           	xkb_types     { include "complete"	};
           	xkb_compat    { include "complete"	};
           	xkb_symbols   { include "pc+cn+us:2+inet(evdev)"	};
           	xkb_geometry  { include "pc(pc105)"	};
           };

   2.  `xprop`:

           _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "cn,us", ",", ""

3.  Locale:

   1.  All locale:

           C
           C.UTF-8
           en_AG
           en_AG.utf8
           en_AU.utf8
           en_BW.utf8
           en_CA.utf8
           en_DK.utf8
           en_GB.utf8
           en_HK.utf8
           en_IE.utf8
           en_IL
           en_IL.utf8
           en_IN
           en_IN.utf8
           en_NG
           en_NG.utf8
           en_NZ.utf8
           en_PH.utf8
           en_SG.utf8
           en_US.utf8
           en_ZA.utf8
           en_ZM
           en_ZM.utf8
           en_ZW.utf8
           POSIX
           zh_CN.utf8
           zh_SG.utf8

   2.  Current locale:

           LANG=en_US.UTF-8
           LANGUAGE=en_US:en
           LC_CTYPE="en_US.UTF-8"
           LC_NUMERIC=zh_CN.UTF-8
           LC_TIME=zh_CN.UTF-8
           LC_COLLATE="en_US.UTF-8"
           LC_MONETARY=zh_CN.UTF-8
           LC_MESSAGES="en_US.UTF-8"
           LC_PAPER=zh_CN.UTF-8
           LC_NAME=zh_CN.UTF-8
           LC_ADDRESS=zh_CN.UTF-8
           LC_TELEPHONE=zh_CN.UTF-8
           LC_MEASUREMENT=zh_CN.UTF-8
           LC_IDENTIFICATION=zh_CN.UTF-8
           LC_ALL=

4.  Directories:

   1.  Home:

           /home/user

   2.  `${XDG_CONFIG_HOME}`:

       Environment variable `XDG_CONFIG_HOME` is not set.

       Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/user/.config`).

   3.  Fcitx Settings Directory:

       Current fcitx settings directory is `~/.config/fcitx` (`/home/user/.config/fcitx`).

5.  Current user:

   The script is run as user (1000).

# Fcitx State:
1.  executable:

   Found fcitx at `/usr/bin/fcitx`.

2.  version:

   Fcitx version: `4.2.9.7`

3.  process:

   Found 3 fcitx processes:

        240598 fcitx <defunct>
        240600 fcitx
        240611 fcitx-dbus-watc

4.  `fcitx-remote`:

   `fcitx-remote` works properly.

5.  DBus interface:

   Using `dbus-send` to check dbus.

   Owner of DBus name `org.fcitx.Fcitx` is `:1.6`.

   PID of DBus name `org.fcitx.Fcitx` owner is `240600`.

# Fcitx Configure UI:
1.  Config Tool Wrapper:

   Found fcitx-configtool at `/usr/bin/fcitx-configtool`.

2.  Config GUI for gtk2:

   **Config GUI for gtk2 not found.**

3.  Config GUI for gtk3:

   Found `fcitx-config-gtk3` at `/usr/bin/fcitx-config-gtk3`.

4.  Config GUI for kde:

   **`kcmshell4` not found.**

# Frontends setup:
## Xim:
1.  `${XMODIFIERS}`:

   Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
   Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

   **Xim server name: "ibus" is different from that set in the environment variable: "fcitx".**

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

   Environment variable QT4_IM_MODULE is set to "fcitx" correctly.

2.  qt5 - `${QT_IM_MODULE}`:

   Environment variable QT_IM_MODULE is set to "fcitx" correctly.

3.  Qt IM module files:

   Found fcitx im module for Qt5: `/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
   Found fcitx qt module: `/lib/x86_64-linux-gnu/fcitx/qt/libfcitx-quickphrase-editor5.so`.
   **Cannot find fcitx input method module for Qt4.**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

   Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

2.  `gtk-query-immodules`:

   1.  gtk 2:

       **Cannot find `gtk-query-immodules` for gtk 2**

       **Cannot find fcitx im module for gtk 2.**

   2.  gtk 3:

       **Cannot find `gtk-query-immodules` for gtk 3**

       **Cannot find fcitx im module for gtk 3.**

3.  Gtk IM module cache:

   1.  gtk 2:

       Found immodules cache for gtk `2.24.32` at `/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache`.
       Version Line:

           # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.32

       Found fcitx im modules for gtk `2.24.32`.

           "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so" 
           "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

   2.  gtk 3:

       Found immodules cache for gtk `3.24.20` at `/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache`.
       Version Line:

           # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.24.20

       Found fcitx im modules for gtk `3.24.20`.

           "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx.so" 
           "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 

4.  Gtk IM module files:

   1.  gtk 2:

       All found Gtk 2 immodule files exist.

   2.  gtk 3:

       All found Gtk 3 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

   Found fcitx addon config directory: `/usr/share/fcitx/addon`.

2.  Addon List:

   1.  Found 25 enabled addons:

           fcitx-autoeng
           fcitx-chttrans
           fcitx-classic-ui
           fcitx-clipboard
           fcitx-dbus
           fcitx-freedesktop-notify
           fcitx-fullwidth-char
           fcitx-imselector
           fcitx-ipc
           fcitx-ipcportal
           fcitx-keyboard
           fcitx-kimpanel-ui
           fcitx-lua
           fcitx-notificationitem
           fcitx-punc
           fcitx-quickphrase
           fcitx-remote
           fcitx-sogoupinyin
           fcitx-spell
           fcitx-unicode
           fcitx-vk
           fcitx-x11
           fcitx-xim
           fcitx-xkb
           fcitx-xkbdbus

   2.  Found 0 disabled addons:

3.  Addon Libraries:

   All libraries for all addons are found.

4.  User Interface:

   Found 2 enabled user interface addons:

       fcitx-classic-ui
       fcitx-kimpanel-ui

## Input Methods:
1.  Found 2 enabled input methods:

       sogoupinyin
       fcitx-keyboard-cn

2.  Default input methods:

   **Your first (default) input method is sogoupinyin instead of a keyboard input method. You may have trouble deactivate fcitx.**

# Log:
1.  `date`:

       2021年 06月 25日 星期五 14:04:44 CST

2.  `~/.config/fcitx/log/`:

       total 4
       -rw-r--r-- 1 user user 44 6月  25 11:02 crash.log

3.  `~/.config/fcitx/log/crash.log`:

       fcitx: BadWindow (invalid Window parameter)

Sud0x67 avatar Jun 25 '21 06:06 Sud0x67

I have the same problem!

skyddyyu avatar Jun 29 '21 02:06 skyddyyu

me too

aohanhongzhi avatar Jun 16 '23 09:06 aohanhongzhi