Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在marktext中打字时,能输入,但是不显示候选框 #1209

Closed
zero-hugo opened this issue Dec 14, 2024 · 18 comments
Closed

在marktext中打字时,能输入,但是不显示候选框 #1209

zero-hugo opened this issue Dec 14, 2024 · 18 comments

Comments

@zero-hugo
Copy link

Summary

在marktext中打字时,能输入文字,但是不显示候选框。marktext是用eletron开发的,我不知道跟这个有没有关系。我该怎么设置让候选框显示出来?
ps:按照下面的信息里显示的缺少组建,我试了一遍,能找到的包我都按上了,下面信息中还报找不到的包我也找不到……

Steps to Reproduce

安装marktext?

Expected Behavior

无法显示输入框?

Output of fcitx5-diagnose command

System Info:

  1. uname -a:

    Linux Yilong15Pro-Series-GM5HG0A-6eda5651 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov  4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
    
  2. lsb_release -a:

    Distributor ID:	Elementary
    Description:	elementary OS 8
    Release:	8
    Codename:	circe
    
  3. lsb_release -d:

    Description:	elementary OS 8
    
  4. /etc/lsb-release:

    DISTRIB_ID=elementary
    DISTRIB_RELEASE=8
    DISTRIB_CODENAME=circe
    DISTRIB_DESCRIPTION="elementary OS 8"
    
  5. /etc/os-release:

    PRETTY_NAME="elementary OS 8"
    NAME="elementary OS"
    CPE_NAME="cpe:/o:elementary:elementary_os:8"
    VERSION_ID="8"
    VERSION="8"
    VERSION_CODENAME=circe
    ID=elementary
    ID_LIKE="ubuntu debian"
    HOME_URL="https://elementary.io/"
    DOCUMENTATION_URL="https://elementary.io/docs/learning-the-basics"
    SUPPORT_URL="https://elementary.io/support"
    BUG_REPORT_URL="https://docs.elementary.io/contributor-guide/feedback/reporting-issues"
    PRIVACY_POLICY_URL="https://elementary.io/privacy-policy"
    UBUNTU_CODENAME=noble
    LOGO=distributor-logo
    UBUNTU_CODENAME=noble
    UBUNTU_PRETTY_NAME="Ubuntu 24.04.1 LTS"
    UBUNTU_NAME="Ubuntu"
    UBUNTU_VERSION_ID="24.04"
    UBUNTU_VERSION="24.04.1 LTS (Noble Numbat)"
    UBUNTU_VERSION_CODENAME=noble
    
  6. Desktop Environment:

    Desktop environment is gnome3.

  7. XDG SESSION TYPE:

    XDG_SESSION_TYPE='wayland'
    
  8. Bash Version:

    BASH_VERSION='5.2.21(1)-release'
    

Environment:

  1. DISPLAY:

    DISPLAY=':0'
    
    
    WAYLAND_DISPLAY='wayland-0'
    
  2. Keyboard Layout:

    1. setxkbmap:

      WARNING: Running setxkbmap against an Xwayland server
      xkb_keymap {
      	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
      	xkb_types     { include "complete"	};
      	xkb_compat    { include "complete"	};
      	xkb_symbols   { include "pc+us+inet(evdev)"	};
      	xkb_geometry  { include "pc(pc105)"	};
      };
      
    2. xprop:

      _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
      
  3. Locale:

    1. All locales:

      C
      C.utf8
      POSIX
      bg_BG.utf8
      ca_AD.utf8
      ca_ES.utf8
      ca_ES.utf8@valencia
      ca_FR.utf8
      ca_IT.utf8
      cs_CZ.utf8
      da_DK.utf8
      de_AT.utf8
      de_BE.utf8
      de_CH.utf8
      de_DE.utf8
      de_IT.utf8
      de_LI.utf8
      de_LU.utf8
      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
      es_AR.utf8
      es_BO.utf8
      es_CL.utf8
      es_CO.utf8
      es_CR.utf8
      es_CU
      es_CU.utf8
      es_DO.utf8
      es_EC.utf8
      es_ES.utf8
      es_GT.utf8
      es_HN.utf8
      es_MX.utf8
      es_NI.utf8
      es_PA.utf8
      es_PE.utf8
      es_PR.utf8
      es_PY.utf8
      es_SV.utf8
      es_US.utf8
      es_UY.utf8
      es_VE.utf8
      fr_BE.utf8
      fr_CA.utf8
      fr_CH.utf8
      fr_FR.utf8
      fr_LU.utf8
      hu_HU.utf8
      id_ID.utf8
      it_CH.utf8
      it_IT.utf8
      ja_JP.utf8
      ko_KR.utf8
      nb_NO.utf8
      nl_AW
      nl_AW.utf8
      nl_BE.utf8
      nl_NL.utf8
      pl_PL.utf8
      pt_BR.utf8
      pt_PT.utf8
      ru_RU.utf8
      ru_UA.utf8
      sv_FI.utf8
      sv_SE.utf8
      th_TH.utf8
      tr_CY.utf8
      tr_TR.utf8
      uk_UA.utf8
      vi_VN
      vi_VN.utf8
      zh_CN.utf8
      zh_HK.utf8
      zh_SG.utf8
      zh_TW.utf8
      
    2. Current locale:

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

    1. Home:

      /home/librer
      
    2. ${XDG_CONFIG_HOME}:

      Environment variable XDG_CONFIG_HOME is not set.

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

    3. Fcitx5 Settings Directory:

      Current fcitx5 settings directory is ~/.config/fcitx5 (/home/librer/.config/fcitx5).

  5. Current user:

    The script is run as librer (1000).

Fcitx State:

  1. executable:

    Found fcitx5 at /usr/bin/fcitx5.

  2. version:

    Fcitx version: 5.1.7

  3. process:

    Found 1 fcitx5 process:

      36233 fcitx5
    
  4. fcitx5-remote:

    fcitx5-remote works properly.

  5. DBus interface:

    Using dbus-send to check dbus.

    Owner of DBus name org.fcitx.Fcitx5 is :1.96.

    PID of DBus name org.fcitx.Fcitx5 owner is 36233.

    Debug information from dbus:

       Group [x11::0] has 3 InputContext(s)
      IC [29b1795c9a7f4744912dad186cd07d5d] program:marktext frontend:dbus cap:6000000032 focus:0
      IC [71e56ef3d71749e3a2663b4315a4ddaf] program:Nutstore frontend:dbus cap:6000000032 focus:0
      IC [644b4e17b97b47089591787237345266] program:Nutstore frontend:dbus cap:6000000032 focus:0
    Group [wayland:] has 27 InputContext(s)
      IC [794598b800734ef598e741ea0158824d] program:io.elementary.terminal frontend:dbus cap:6001000032 focus:0
      IC [b8cd20d56da74290b1390fdb2aaf298d] program:io.elementary.terminal frontend:dbus cap:e001000032 focus:1
      IC [46dce0cf4cdf442f9372433bd46edc2f] program:io.elementary.files frontend:dbus cap:6001000032 focus:0
      IC [9a1be4db89ec4b94a9362992eda55faa] program:io.elementary.files frontend:dbus cap:6001000032 focus:0
      IC [c363a33cebf142c39218ebd92d68c211] program:io.elementary.files frontend:dbus cap:6001000032 focus:0
      IC [ae48b2bd70054d9cb2525ebda6b02d35] program:io.elementary.files frontend:dbus cap:6001000032 focus:0
      IC [bd908aadb518498b884a9dfd31c4c530] program:io.elementary.files frontend:dbus cap:6001000032 focus:0
      IC [6d87950159db428db405ab0541e79bf0] program:io.elementary.tasks frontend:dbus cap:6001000032 focus:0
      IC [91d1d8d80f404cbe9342d634d8ebd890] program:io.elementary.tasks frontend:dbus cap:e001000072 focus:0
      IC [ce26f5f2214442c4802e3bf052f81401] program:io.elementary.tasks frontend:dbus cap:6001000032 focus:0
      IC [e1a1503a17dd4b39b19cd88ca2dfb796] program:io.elementary.tasks frontend:dbus cap:6001000032 focus:0
      IC [affd1b4caa7d4dcdb93be08393012a82] program:io.elementary.tasks frontend:dbus cap:6001000032 focus:0
      IC [0775343bc43a46a2a87fc81cf617758b] program:io.elementary.appcenter frontend:dbus cap:4001000032 focus:0
      IC [0cf179a2360b4b61bc27b34f810cfef0] program:io.elementary.tasks frontend:dbus cap:e001000072 focus:0
      IC [e9c80f2c977047739f6a59182cf29673] program:io.elementary.tasks frontend:dbus cap:6001000032 focus:0
      IC [533a87a4b0ac4e74a5a7ef76cd8dfb5c] program:missioncenter frontend:dbus cap:4001000032 focus:0
      IC [996b98f7061040d0bb2ba0d4a75b22ea] program:missioncenter frontend:dbus cap:4001000032 focus:0
      IC [f4285b8e57574dd897d1fde8f0fd070e] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [ff8a1cfa1f2048b7b21a1d96fa885b8b] program:io.elementary.files frontend:dbus cap:6001000032 focus:0
      IC [2d02316221dc4b24be3e9aa5b4cedee6] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [0bd874a99db84e70b11388c46d07b8b8] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [629301142d72442d854cd229d6e8d542] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [5afa9d3857ce459d8fa36baf9e669579] program:io.elementary.files frontend:dbus cap:e001000072 focus:0
      IC [c9c522bb57d64ed88c4bada60d5987d7] program:clash-verge frontend:dbus cap:e001000460 focus:0
      IC [1f52008b555a4cbb8c54dee0e7883542] program:firefox frontend:dbus cap:6001000032 focus:0
      IC [21ea43a79e8845ce9b9c53612a8d0356] program:firefox frontend:dbus cap:e001000072 focus:0
      IC [91bd9e78f7ac43dc941d473a3f020286] program:io.elementary.wingpanel frontend:dbus cap:e001000072 focus:0
    Input Context without group
    

Fcitx Configure UI:

  1. Config Tool Wrapper:

    Found fcitx5-configtool at /usr/bin/fcitx5-configtool.

  2. Config GUI for qt:

    Found fcitx5-config-qt at /usr/bin/fcitx5-config-qt.

  3. Config GUI for kde:

    Found fcitx5 kcm module.

    kcm_fcitx5    - Configure Input Method
    

Frontends setup:

The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using xargs -0 -L1 /proc/$PID/environ for a certain process that you find not working.

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 is the same with that set in the environment variable.

  3. XIM encoding:

    Your LC_CTYPE is set to C whose encoding is not UTF-8. You may have trouble committing strings using XIM.

Qt:

  1. qt4 - ${QT4_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    fcitx5-qt4-immodule-probing not found.

  2. qt5 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=wayland
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  3. qt6 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=wayland
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  4. Qt IM module files:

    Found fcitx5 qt6 module: /lib/x86_64-linux-gnu/fcitx5/qt6/libfcitx-quickphrase-editor5.so.
    Found unknown fcitx qt module: /lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so.
    Found fcitx5 im module for qt5: /lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.
    Found fcitx5 im module for qt6: /lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    Cannot find fcitx5 input method module for Qt4.

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-gtk2-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    
  2. gtk-query-immodules:

    1. gtk 2:

      Cannot find gtk-query-immodules for gtk 2

      Cannot find fcitx5 im module for gtk 2.

    2. gtk 3:

      Cannot find gtk-query-immodules for gtk 3

      Cannot find fcitx5 im module for gtk 3.

  3. Gtk IM module cache:

    1. gtk 2:

      Found immodules cache for gtk 2.24.33 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-0t64/gtk-query-immodules-2.0 from gtk+-2.24.33
      

      Found fcitx5 im modules for gtk 2.24.33.

      "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
      "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
      "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
      
    2. gtk 3:

      Found immodules cache for gtk 3.24.41 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-0t64/gtk-query-immodules-3.0 from gtk+-3.24.41
      

      Found fcitx5 im modules for gtk 3.24.41.

      "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
      "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
      "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/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.

    3. gtk 4:

      All found Gtk 4 immodule files exist.

Configuration:

Fcitx Addons:

  1. Addon Config Dir:

    Found fcitx5 addon config directory: /usr/share/fcitx5/addon.

  2. Addon List:

    1. Found 31 enabled addons:

      Simplified and Traditional Chinese Translation 5.1.3
      Classic User Interface 5.1.7
      Clipboard 5.1.7
      Cloud Pinyin 5.1.3
      DBus 5.1.7
      DBus Frontend 5.1.7
      Emoji 5.1.7
      Fcitx4 Frontend 5.1.7
      Full width character 5.1.3
      IBus Frontend 5.1.7
      Lua IME API 5.0.12
      Input method selector 5.1.7
      Keyboard 5.1.7
      KDE Input Method Panel 5.1.7
      Lua Addon Loader 5.0.12
      Mozc 
      Status Notifier 5.1.7
      Notification 5.1.7
      Pinyin 5.1.3
      Extra Pinyin functionality 5.1.3
      Punctuation 5.1.3
      Quick Phrase 5.1.7
      Rime 5.1.4
      Spell 5.1.7
      Table 5.1.3
      Unicode 5.1.7
      DBus Virtual Keyboard 5.1.7
      Wayland 5.1.7
      Wayland Input method frontend 5.1.7
      XCB 5.1.7
      X Input Method Frontend 5.1.7
      
    2. Found 0 disabled addons:

  3. Addon Libraries:

    All libraries for all addons are found.

  4. User Interface:

    Found 3 enabled user interface addons:

    Classic User Interface
    KDE Input Method Panel
    DBus Virtual Keyboard
    

Input Methods:

  1. /home/librer/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=默认
    # Layout
    Default Layout=us
    # Default Input Method
    DefaultIM=rime
    
    [Groups/0/Items/0]
    # Name
    Name=keyboard-us
    # Layout
    Layout=
    
    [Groups/0/Items/1]
    # Name
    Name=rime
    # Layout
    Layout=us
    
    [GroupOrder]
    0=默认
    

Log:

  1. date:

    Sat Dec 14 08:41:23 CST 2024
    
  2. /home/librer/.config/fcitx5/crash.log:

    /home/librer/.config/fcitx5/crash.log not found.

Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.

Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.

@wengxt
Copy link
Member

wengxt commented Dec 14, 2024

图片

我测试没啥问题

@wengxt
Copy link
Member

wengxt commented Dec 14, 2024

别的程序什么情况,能正常显示吗?

@zero-hugo
Copy link
Author

别的程序什么情况,能正常显示吗?

我刚试了下,typora也是一样的情况,能打字但不显示输入框,然后google浏览器也这样。是不是我哪里没设置好,导致对chrome内核的软件支持有问题?
还有一些应用,像focuswriter,输入法的皮肤无法应用,还是显示的默认皮肤。

@wengxt
Copy link
Member

wengxt commented Dec 14, 2024

一般这个情况是fcitx界面没有加载正确,经常有 fcitx5-modules-x11 没有安装的人有这种情况,但目前我看不出来你少了什么包,不太确定发生了什么

你能不能在终端执行一下

fcitx5 --verbose=classicui=5 -rd (它会重新启动一个 fcitx)看看有什么输出

@zero-hugo
Copy link
Author

一般这个情况是fcitx界面没有加载正确,经常有 fcitx5-modules-x11 没有安装的人有这种情况,但目前我看不出来你少了什么包,不太确定发生了什么

你能不能在终端执行一下

fcitx5 --verbose=classicui=5 -rd (它会重新启动一个 fcitx)看看有什么输出

librer@Yilong15Pro-Series-GM5HG0A-6eda5651:$ fcitx5 --verbose=classicui=5 -rd
I2024-12-14 11:04:26.790471 instance.cpp:1346] Override Enabled Addons: {}
I2024-12-14 11:04:26.790524 instance.cpp:1347] Override Disabled Addons: {}
I2024-12-14 11:04:26.794703 xcbconnection.cpp:189] Connecting to X11 display, display name::0.
I2024-12-14 11:04:26.794786 xcbconnection.cpp:194] X11 display: :0 is xwayland.
I2024-12-14 11:04:26.794994 addonmanager.cpp:195] Loaded addon xcb
I2024-12-14 11:04:26.795646 addonmanager.cpp:195] Loaded addon imselector
librer@Yilong15Pro-Series-GM5HG0A-6eda5651:
$ I2024-12-14 11:04:26.802165 addonmanager.cpp:195] Loaded addon quickphrase
I2024-12-14 11:04:26.803635 addonmanager.cpp:195] Loaded addon wayland
I2024-12-14 11:04:26.803963 addonmanager.cpp:195] Loaded addon waylandim
I2024-12-14 11:04:26.806770 addonmanager.cpp:195] Loaded addon keyboard
I2024-12-14 11:04:26.807234 addonmanager.cpp:195] Loaded addon clipboard
I2024-12-14 11:04:26.807652 addonmanager.cpp:195] Loaded addon pinyinhelper
I2024-12-14 11:04:26.807989 addonmanager.cpp:195] Loaded addon luaaddonloader
I2024-12-14 11:04:26.809648 addonmanager.cpp:195] Loaded addon dbus
I2024-12-14 11:04:26.811990 addonmanager.cpp:195] Loaded addon ibusfrontend
I2024-12-14 11:04:26.812892 addonmanager.cpp:195] Loaded addon imeapi
I2024-12-14 11:04:26.813335 addonmanager.cpp:195] Loaded addon unicode
I2024-12-14 11:04:26.813906 addonmanager.cpp:195] Loaded addon dbusfrontend
I2024-12-14 11:04:26.821209 addonmanager.cpp:195] Loaded addon fcitx4frontend
E2024-12-14 11:04:26.821775 xim.cpp:137] Failed to open xim, retrying.
I2024-12-14 11:04:27.822281 addonmanager.cpp:195] Loaded addon xim
I2024-12-14 11:04:27.853877 inputmethodmanager.cpp:190] Found 737 input method(s) in addon keyboard
I2024-12-14 11:04:27.854844 addonmanager.cpp:195] Loaded addon kimpanel
I2024-12-14 11:04:27.855129 addonmanager.cpp:195] Loaded addon virtualkeyboard
D2024-12-14 11:04:27.867067 xcbui.cpp:291] Xft.dpi: -1
D2024-12-14 11:04:27.867307 xcbui.cpp:448] Screen rects are: [(Rect(0,0+2560x1600), 193)] Primary DPI: 193 XScreen DPI: 96
D2024-12-14 11:04:27.867377 xcbui.cpp:477] Refresh color map: 23068674 vid: 119 CompMgr: 2097158
D2024-12-14 11:04:27.867396 xcbwindow.cpp:32] Create window with vid: 119
D2024-12-14 11:04:27.867409 xcbwindow.cpp:36] Use shared color map: 23068674
D2024-12-14 11:04:27.867494 xcbwindow.cpp:81] Window created id: 23068675
I2024-12-14 11:04:27.868005 classicui.cpp:66] Created classicui for x11 display::0
I2024-12-14 11:04:27.868036 classicui.cpp:87] Created classicui for wayland display:
I2024-12-14 11:04:27.868054 addonmanager.cpp:195] Loaded addon classicui
D2024-12-14 11:04:27.868076 classicui.cpp:323] Resume ClassicUI
D2024-12-14 11:04:27.868090 waylandui.cpp:113] Resume WaylandUI display name:0x5755b6884c30
D2024-12-14 11:04:27.868108 waylandui.cpp:114] Wayland Input window is initialized:0
I2024-12-14 11:04:27.868586 addonmanager.cpp:195] Loaded addon notificationitem
I2024-12-14 11:04:27.868990 addonmanager.cpp:195] Loaded addon notifications
I2024-12-14 11:04:27.885990 kimpanel.cpp:116] Kimpanel new owner:
I2024-12-14 11:04:27.886066 virtualkeyboard.cpp:223] VirtualKeyboard new owner:
I2024-12-14 11:04:27.886129 portalsettingmonitor.cpp:91] A new portal show up, start a new query.
I2024-12-14 11:04:27.886302 portalsettingmonitor.cpp:91] A new portal show up, start a new query.
D2024-12-14 11:04:27.888761 classicui.cpp:206] XDG Portal AccentColor changed color: optional(has_value=1 Color(#3689e6))
I2024-12-14 11:04:29.005494 addonmanager.cpp:195] Loaded addon rime
E20241214 11:04:29.005697 150421 dict_compiler.cc:86] source file '"/home/librer/.local/share/fcitx5/rime/flypy.dict.yaml"' does not exist.
D2024-12-14 11:04:59.717053 waylandui.cpp:100] Update Wayland Input Window
D2024-12-14 11:04:59.717118 waylandinputwindow.cpp:143] Wayland Input Window visible:0 for IC program:- frontend:-
D2024-12-14 11:04:59.717202 waylandinputwindow.cpp:148] Wayland Input Window has been hidden.
D2024-12-14 11:04:59.717251 waylandui.cpp:100] Update Wayland Input Window
D2024-12-14 11:04:59.717296 waylandinputwindow.cpp:143] Wayland Input Window visible:0 for IC program:- frontend:-
D2024-12-14 11:04:59.717355 waylandinputwindow.cpp:148] Wayland Input Window has been hidden.

@wengxt
Copy link
Member

wengxt commented Dec 14, 2024

没发现什么明显的问题,这样启动的fcitx你再去 marktext 里面打字的话会显示什么新的日志?

@zero-hugo
Copy link
Author

没发现什么明显的问题,这样启动的fcitx你再去 marktext 里面打字的话会显示什么新的日志?

  1. uname -a:

    Linux Yilong15Pro-Series-GM5HG0A-6eda5651 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov  4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
    
  2. lsb_release -a:

    Distributor ID:	Elementary
    Description:	elementary OS 8
    Release:	8
    Codename:	circe
    
  3. lsb_release -d:

    Description:	elementary OS 8
    
  4. /etc/lsb-release:

    DISTRIB_ID=elementary
    DISTRIB_RELEASE=8
    DISTRIB_CODENAME=circe
    DISTRIB_DESCRIPTION="elementary OS 8"
    
  5. /etc/os-release:

    PRETTY_NAME="elementary OS 8"
    NAME="elementary OS"
    CPE_NAME="cpe:/o:elementary:elementary_os:8"
    VERSION_ID="8"
    VERSION="8"
    VERSION_CODENAME=circe
    ID=elementary
    ID_LIKE="ubuntu debian"
    HOME_URL="https://elementary.io/"
    DOCUMENTATION_URL="https://elementary.io/docs/learning-the-basics"
    SUPPORT_URL="https://elementary.io/support"
    BUG_REPORT_URL="https://docs.elementary.io/contributor-guide/feedback/reporting-issues"
    PRIVACY_POLICY_URL="https://elementary.io/privacy-policy"
    UBUNTU_CODENAME=noble
    LOGO=distributor-logo
    UBUNTU_CODENAME=noble
    UBUNTU_PRETTY_NAME="Ubuntu 24.04.1 LTS"
    UBUNTU_NAME="Ubuntu"
    UBUNTU_VERSION_ID="24.04"
    UBUNTU_VERSION="24.04.1 LTS (Noble Numbat)"
    UBUNTU_VERSION_CODENAME=noble
    
  6. Desktop Environment:

    Desktop environment is gnome3.

  7. XDG SESSION TYPE:

    XDG_SESSION_TYPE='wayland'
    
  8. Bash Version:

    BASH_VERSION='5.2.21(1)-release'
    

Environment:

  1. DISPLAY:

    DISPLAY=':0'
    
    
    WAYLAND_DISPLAY='wayland-0'
    
  2. Keyboard Layout:

    1. setxkbmap:

      WARNING: Running setxkbmap against an Xwayland server
      xkb_keymap {
      	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
      	xkb_types     { include "complete"	};
      	xkb_compat    { include "complete"	};
      	xkb_symbols   { include "pc+us+inet(evdev)"	};
      	xkb_geometry  { include "pc(pc105)"	};
      };
      
    2. xprop:

      _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
      
  3. Locale:

    1. All locales:

      C
      C.utf8
      POSIX
      bg_BG.utf8
      ca_AD.utf8
      ca_ES.utf8
      ca_ES.utf8@valencia
      ca_FR.utf8
      ca_IT.utf8
      cs_CZ.utf8
      da_DK.utf8
      de_AT.utf8
      de_BE.utf8
      de_CH.utf8
      de_DE.utf8
      de_IT.utf8
      de_LI.utf8
      de_LU.utf8
      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
      es_AR.utf8
      es_BO.utf8
      es_CL.utf8
      es_CO.utf8
      es_CR.utf8
      es_CU
      es_CU.utf8
      es_DO.utf8
      es_EC.utf8
      es_ES.utf8
      es_GT.utf8
      es_HN.utf8
      es_MX.utf8
      es_NI.utf8
      es_PA.utf8
      es_PE.utf8
      es_PR.utf8
      es_PY.utf8
      es_SV.utf8
      es_US.utf8
      es_UY.utf8
      es_VE.utf8
      fr_BE.utf8
      fr_CA.utf8
      fr_CH.utf8
      fr_FR.utf8
      fr_LU.utf8
      hu_HU.utf8
      id_ID.utf8
      it_CH.utf8
      it_IT.utf8
      ja_JP.utf8
      ko_KR.utf8
      nb_NO.utf8
      nl_AW
      nl_AW.utf8
      nl_BE.utf8
      nl_NL.utf8
      pl_PL.utf8
      pt_BR.utf8
      pt_PT.utf8
      ru_RU.utf8
      ru_UA.utf8
      sv_FI.utf8
      sv_SE.utf8
      th_TH.utf8
      tr_CY.utf8
      tr_TR.utf8
      uk_UA.utf8
      vi_VN
      vi_VN.utf8
      zh_CN.utf8
      zh_HK.utf8
      zh_SG.utf8
      zh_TW.utf8
      
    2. Current locale:

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

    1. Home:

      /home/librer
      
    2. ${XDG_CONFIG_HOME}:

      Environment variable XDG_CONFIG_HOME is not set.

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

    3. Fcitx5 Settings Directory:

      Current fcitx5 settings directory is ~/.config/fcitx5 (/home/librer/.config/fcitx5).

  5. Current user:

    The script is run as librer (1000).

Fcitx State:

  1. executable:

    Found fcitx5 at /usr/bin/fcitx5.

  2. version:

    Fcitx version: 5.1.7

  3. process:

    Found 1 fcitx5 process:

     358789 fcitx5
    
  4. fcitx5-remote:

    fcitx5-remote works properly.

  5. DBus interface:

    Using dbus-send to check dbus.

    Owner of DBus name org.fcitx.Fcitx5 is :1.7714.

    PID of DBus name org.fcitx.Fcitx5 owner is 358789.

    Debug information from dbus:

       Group [x11::0] has 4 InputContext(s)
      IC [c88af5425d1a4cd4b5b0eb67090efddb] program:marktext frontend:dbus cap:6000000032 focus:0
      IC [29e44abcc00f417c8dad628ec1adf612] program:Nutstore frontend:dbus cap:6000000032 focus:0
      IC [cf62cb9c3e3d4527a0a92f1c07c2af97] program:Nutstore frontend:dbus cap:6000000032 focus:0
      IC [02374a830bcf457299428e2654aee86f] program:Typora frontend:dbus cap:6000000032 focus:0
    Group [wayland:] has 17 InputContext(s)
      IC [cf7765c6667f404dbcc0e03c9eefbada] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [effe5d5286704b239396cc6859a023b4] program:io.elementary.settings frontend:dbus cap:c001000032 focus:0
      IC [389d93436ff343428e9542a370a4371f] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [cabf73223d934268bafb461aec1ee99c] program:io.elementary.settings frontend:dbus cap:c001000032 focus:0
      IC [6ecea2d70b324631880709fa49ce3ad2] program:missioncenter frontend:dbus cap:4001000032 focus:0
      IC [676f975ef4bb408c873895b347f3a73a] program:clash-verge frontend:dbus cap:e001000060 focus:0
      IC [6f6eb1bf500948ff81f4f72f45e8737f] program:missioncenter frontend:dbus cap:4001000032 focus:0
      IC [f2a3c1ca6f584ea28ce0e2f42c6b3891] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [edcb3edbc0164568a350c114c1c5f337] program:io.elementary.terminal frontend:dbus cap:e001000032 focus:1
      IC [bf856c72433c4bf5889e5753b3e465da] program:AppFlowy frontend:dbus cap:e001000072 focus:0
      IC [1944870e0400423a921ebcdc236ee9a1] program:firefox frontend:dbus cap:e001000072 focus:0
      IC [2ef5e9ed5ca746e3a62a6ea2b0e80b4f] program:io.elementary.wingpanel frontend:dbus cap:e001000072 focus:0
      IC [c9164d0058f04151bd988ef367af699e] program:firefox frontend:dbus cap:e001000032 focus:0
      IC [0d9d6af3f57440d1a9942e8fae8ccd32] program:io.elementary.files.xdg-desktop-portal frontend:dbus cap:6001000032 focus:0
      IC [c58a5a870e1b40eb82b99ba5cde33340] program:clash-verge frontend:dbus cap:6001000032 focus:0
      IC [8e2a7921cbd44ef18a47b2ad72f6f3ad] program:io.elementary.terminal frontend:dbus cap:6001000032 focus:0
      IC [ea90ed7752344670a613477f8e8da681] program:io.elementary.files.xdg-desktop-portal frontend:dbus cap:6001000032 focus:0
    Input Context without group
    

Fcitx Configure UI:

  1. Config Tool Wrapper:

    Found fcitx5-configtool at /usr/bin/fcitx5-configtool.

  2. Config GUI for qt:

    Found fcitx5-config-qt at /usr/bin/fcitx5-config-qt.

  3. Config GUI for kde:

    Found fcitx5 kcm module.

    kcm_fcitx5    - Configure Input Method
    

Frontends setup:

The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using xargs -0 -L1 /proc/$PID/environ for a certain process that you find not working.

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 is the same with that set in the environment variable.

  3. XIM encoding:

    Your LC_CTYPE is set to C whose encoding is not UTF-8. You may have trouble committing strings using XIM.

Qt:

  1. qt4 - ${QT4_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    fcitx5-qt4-immodule-probing not found.

  2. qt5 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=wayland
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  3. qt6 - ${QT_IM_MODULE}:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

    QT_QPA_PLATFORM=wayland
    QT_IM_MODULE=fcitx
    IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
    
  4. Qt IM module files:

    Found fcitx5 qt6 module: /lib/x86_64-linux-gnu/fcitx5/qt6/libfcitx-quickphrase-editor5.so.
    Found unknown fcitx qt module: /lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so.
    Found fcitx5 im module for qt5: /lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.
    Found fcitx5 im module for qt6: /lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    Cannot find fcitx5 input method module for Qt4.

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-gtk2-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

    GTK_IM_MODULE=fcitx
    
  2. gtk-query-immodules:

    1. gtk 2:

      Cannot find gtk-query-immodules for gtk 2

      Cannot find fcitx5 im module for gtk 2.

    2. gtk 3:

      Cannot find gtk-query-immodules for gtk 3

      Cannot find fcitx5 im module for gtk 3.

  3. Gtk IM module cache:

    1. gtk 2:

      Found immodules cache for gtk 2.24.33 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-0t64/gtk-query-immodules-2.0 from gtk+-2.24.33
      

      Found fcitx5 im modules for gtk 2.24.33.

      "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx5.so" 
      "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
      "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
      
    2. gtk 3:

      Found immodules cache for gtk 3.24.41 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-0t64/gtk-query-immodules-3.0 from gtk+-3.24.41
      

      Found fcitx5 im modules for gtk 3.24.41.

      "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx5.so" 
      "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*" 
      "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/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.

    3. gtk 4:

      All found Gtk 4 immodule files exist.

Configuration:

Fcitx Addons:

  1. Addon Config Dir:

    Found fcitx5 addon config directory: /usr/share/fcitx5/addon.

  2. Addon List:

    1. Found 31 enabled addons:

      Simplified and Traditional Chinese Translation 5.1.3
      Classic User Interface 5.1.7
      Clipboard 5.1.7
      Cloud Pinyin 5.1.3
      DBus 5.1.7
      DBus Frontend 5.1.7
      Emoji 5.1.7
      Fcitx4 Frontend 5.1.7
      Full width character 5.1.3
      IBus Frontend 5.1.7
      Lua IME API 5.0.12
      Input method selector 5.1.7
      Keyboard 5.1.7
      KDE Input Method Panel 5.1.7
      Lua Addon Loader 5.0.12
      Mozc 
      Status Notifier 5.1.7
      Notification 5.1.7
      Pinyin 5.1.3
      Extra Pinyin functionality 5.1.3
      Punctuation 5.1.3
      Quick Phrase 5.1.7
      Rime 5.1.4
      Spell 5.1.7
      Table 5.1.3
      Unicode 5.1.7
      DBus Virtual Keyboard 5.1.7
      Wayland 5.1.7
      Wayland Input method frontend 5.1.7
      XCB 5.1.7
      X Input Method Frontend 5.1.7
      
    2. Found 0 disabled addons:

  3. Addon Libraries:

    All libraries for all addons are found.

  4. User Interface:

    Found 3 enabled user interface addons:

    Classic User Interface
    KDE Input Method Panel
    DBus Virtual Keyboard
    

Input Methods:

  1. /home/librer/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=默认
    # Layout
    Default Layout=us
    # Default Input Method
    DefaultIM=rime
    
    [Groups/0/Items/0]
    # Name
    Name=keyboard-us
    # Layout
    Layout=
    
    [Groups/0/Items/1]
    # Name
    Name=rime
    # Layout
    Layout=us
    
    [GroupOrder]
    0=默认
    

Log:

  1. date:

    Mon Dec 16 20:01:14 CST 2024
    
  2. /home/librer/.config/fcitx5/crash.log:

    /home/librer/.config/fcitx5/crash.log not found.

Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.

Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.

好像跟之前的没什么不一样

@wengxt
Copy link
Member

wengxt commented Dec 16, 2024 via email

@wengxt
Copy link
Member

wengxt commented Dec 16, 2024

另外请问你的 marktext 是怎么安装的,启动的时候是否加了什么参数

@wengxt
Copy link
Member

wengxt commented Dec 16, 2024

等一下,我在虚拟机里面重现了你的问题了

但我觉得是 elementary 的 bug

@wengxt
Copy link
Member

wengxt commented Dec 16, 2024

简单来说,我观察到的现象是,fcitx 的输入框能在第一次使用的时候被显示,然后我能看见 fcitx 正常绘制窗口,但是看不见

测试 elementary 的 X11 会话可以正常显示 fcitx 的窗口

@zero-hugo
Copy link
Author

等一下,我在虚拟机里面重现了你的问题了

但我觉得是 elementary 的 bug

好吧,这系统有点让人无语。谢谢!麻烦你了。

@wengxt
Copy link
Member

wengxt commented Dec 17, 2024

@zero-hugo 我找到了办法workaround,但是我在master修复的话你要是不打算编译自己也用不上吧

@zero-hugo
Copy link
Author

@zero-hugo 我找到了办法workaround,但是我在master修复的话你要是不打算编译自己也用不上吧

重新编译安装fcitx5吗?这……我研究研究怎么弄。你已经在master更新修复代码了吗?

@wengxt
Copy link
Member

wengxt commented Dec 17, 2024

@zero-hugo 我找到了办法workaround,但是我在master修复的话你要是不打算编译自己也用不上吧

重新编译安装fcitx5吗?这……我研究研究怎么弄。你已经在master更新修复代码了吗?

还并没有,因为那个属性还是有用的 它也是为了解决 fcitx 4 曾经遇到的问题 fcitx/fcitx#191

我在研究怎么写一个 minimal case 给 elementary 汇报 bug

@zero-hugo
Copy link
Author

@zero-hugo 我找到了办法workaround,但是我在master修复的话你要是不打算编译自己也用不上吧

重新编译安装fcitx5吗?这……我研究研究怎么弄。你已经在master更新修复代码了吗?

还并没有,因为那个属性还是有用的 它也是为了解决 fcitx 4 曾经遇到的问题 fcitx/fcitx#191

我在研究怎么写一个 minimal case 给 elementary 汇报 bug

哦好的,谢谢你啦!

@wengxt
Copy link
Member

wengxt commented Dec 17, 2024

@zero-hugo 我找到了办法workaround,但是我在master修复的话你要是不打算编译自己也用不上吧

重新编译安装fcitx5吗?这……我研究研究怎么弄。你已经在master更新修复代码了吗?

还并没有,因为那个属性还是有用的 它也是为了解决 fcitx 4 曾经遇到的问题 fcitx/fcitx#191
我在研究怎么写一个 minimal case 给 elementary 汇报 bug

哦好的,谢谢你啦!

elementary/gala#2172

里面有一个测试程序,你也可以看看是不是和我的视频里面的现象一样

wengxt added a commit that referenced this issue Dec 17, 2024
Pantheon has a bug that can't not display popup window under Xwayland
twice. While the bug is reported, it's not clear when it may be fixed.
Also, input method window is indeed more like a combo box and wmspec
mentioned that it's also a common override redirect. So try to use that
instead.

Workaround #1209
wengxt added a commit that referenced this issue Dec 21, 2024
Pantheon has a bug that can't not display popup window under Xwayland
twice. While the bug is reported, it's not clear when it may be fixed.
Also, input method window is indeed more like a combo box and wmspec
mentioned that it's also a common override redirect. So try to use that
instead.

Workaround #1209
@wengxt
Copy link
Member

wengxt commented Jan 13, 2025

anyway I'll close this, since I already did the workaround on fcitx side.

If you want to try the patch, please refer to c0e1c7e .

@wengxt wengxt closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants