Open shizhx opened 1 year ago
Can you check if fcitx is using abnormal amount of memory or CPU when you find it's laggy?
Is there any other process using cpu?
Also, can you run fcitx5-diagnose when you think it's laggy?
@wengxt
no other process using cpu,here is top -p <pid of fcitx>
result:
the fcitx5-diagnose
output when laggy:
uname -a
:
Linux hsz-linux 6.1.38-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Jul 5 23:49:30 UTC 2023 x86_64 GNU/Linux
lsb_release -a
:
LSB Version: n/a
Distributor ID: ManjaroLinux
Description: Manjaro Linux
Release: 23.0.0
Codename: UltimaThule
lsb_release -d
:
Description: Manjaro Linux
/etc/lsb-release
:
DISTRIB_ID="ManjaroLinux"
DISTRIB_RELEASE="23.0.0"
DISTRIB_CODENAME="Ultima Thule"
DISTRIB_DESCRIPTION="Manjaro Linux"
/etc/os-release
:
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://forum.manjaro.org/"
BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/"
PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/"
LOGO=manjarolinux
Desktop Environment:
Desktop environment is kde
.
XDG SESSION TYPE:
XDG_SESSION_TYPE='x11'
Bash Version:
BASH_VERSION='5.1.16(1)-release'
DISPLAY:
DISPLAY=':0'
WAYLAND_DISPLAY=''
Keyboard Layout:
setxkbmap
:
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(pc104)" };
};
xprop
:
_XKB_RULES_NAMES(STRING) = "evdev", "pc104", "us", "", ""
Locale:
All locales:
aa_DJ.utf8
aa_ER.utf8
aa_ET.utf8
af_ZA.utf8
agr_PE.utf8
ak_GH.utf8
am_ET.utf8
an_ES.utf8
anp_IN.utf8
ar_AE.utf8
ar_BH.utf8
ar_DZ.utf8
ar_EG.utf8
ar_IN.utf8
ar_IQ.utf8
ar_JO.utf8
ar_KW.utf8
ar_LB.utf8
ar_LY.utf8
ar_MA.utf8
ar_OM.utf8
ar_QA.utf8
ar_SA.utf8
ar_SD.utf8
ar_SS.utf8
ar_SY.utf8
ar_TN.utf8
ar_YE.utf8
as_IN.utf8
ast_ES.utf8
ayc_PE.utf8
az_AZ.utf8
az_IR.utf8
be_BY.utf8
bem_ZM.utf8
ber_DZ.utf8
ber_MA.utf8
bg_BG.utf8
bhb_IN.utf8
bho_IN.utf8
bho_NP.utf8
bi_VU.utf8
bn_BD.utf8
bn_IN.utf8
bo_CN.utf8
bo_IN.utf8
br_FR.utf8
brx_IN.utf8
bs_BA.utf8
byn_ER.utf8
C
ca_AD.utf8
ca_ES.utf8
ca_FR.utf8
ca_IT.utf8
ce_RU.utf8
chr_US.utf8
cmn_TW.utf8
crh_UA.utf8
csb_PL.utf8
cs_CZ.utf8
C.utf8
C.UTF-8
cv_RU.utf8
cy_GB.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
doi_IN.utf8
dsb_DE.utf8
dv_MV.utf8
dz_BT.utf8
el_CY.utf8
el_GR.utf8
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.utf8
en_IN.utf8
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SC.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM.utf8
en_ZW.utf8
eo.utf8
es_AR.utf8
es_BO.utf8
es_CL.utf8
es_CO.utf8
es_CR.utf8
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
et_EE.utf8
eu_ES.utf8
fa_IR.utf8
ff_SN.utf8
fi_FI.utf8
fil_PH.utf8
fo_FO.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
fur_IT.utf8
fy_DE.utf8
fy_NL.utf8
ga_IE.utf8
gd_GB.utf8
gez_ER.utf8
gez_ET.utf8
gl_ES.utf8
gu_IN.utf8
gv_GB.utf8
hak_TW.utf8
ha_NG.utf8
he_IL.utf8
hif_FJ.utf8
hi_IN.utf8
hne_IN.utf8
hr_HR.utf8
hsb_DE.utf8
ht_HT.utf8
hu_HU.utf8
hy_AM.utf8
ia_FR.utf8
id_ID.utf8
ig_NG.utf8
ik_CA.utf8
is_IS.utf8
it_CH.utf8
it_IT.utf8
iu_CA.utf8
ja_JP.utf8
kab_DZ.utf8
ka_GE.utf8
kk_KZ.utf8
kl_GL.utf8
km_KH.utf8
kn_IN.utf8
kok_IN.utf8
ko_KR.utf8
ks_IN.utf8
ku_TR.utf8
kw_GB.utf8
ky_KG.utf8
lb_LU.utf8
lg_UG.utf8
li_BE.utf8
lij_IT.utf8
li_NL.utf8
ln_CD.utf8
lo_LA.utf8
lt_LT.utf8
lv_LV.utf8
lzh_TW.utf8
mag_IN.utf8
mai_IN.utf8
mai_NP.utf8
mfe_MU.utf8
mg_MG.utf8
mhr_RU.utf8
mi_NZ.utf8
miq_NI.utf8
mjw_IN.utf8
mk_MK.utf8
ml_IN.utf8
mni_IN.utf8
mn_MN.utf8
mnw_MM.utf8
mr_IN.utf8
ms_MY.utf8
mt_MT.utf8
my_MM.utf8
nan_TW.utf8
nb_NO.utf8
nds_DE.utf8
nds_NL.utf8
ne_NP.utf8
nhn_MX.utf8
niu_NU.utf8
niu_NZ.utf8
nl_AW.utf8
nl_BE.utf8
nl_NL.utf8
nn_NO.utf8
nr_ZA.utf8
nso_ZA.utf8
oc_FR.utf8
om_ET.utf8
om_KE.utf8
or_IN.utf8
os_RU.utf8
pa_IN.utf8
pap_AW.utf8
pap_CW.utf8
pa_PK.utf8
pl_PL.utf8
POSIX
ps_AF.utf8
pt_BR.utf8
pt_PT.utf8
quz_PE.utf8
raj_IN.utf8
ro_RO.utf8
ru_RU.utf8
ru_UA.utf8
rw_RW.utf8
sah_RU.utf8
sa_IN.utf8
sat_IN.utf8
sc_IT.utf8
sd_IN.utf8
se_NO.utf8
sgs_LT.utf8
shn_MM.utf8
shs_CA.utf8
sid_ET.utf8
si_LK.utf8
sk_SK.utf8
sl_SI.utf8
sm_WS.utf8
so_DJ.utf8
so_ET.utf8
so_KE.utf8
so_SO.utf8
sq_AL.utf8
sq_MK.utf8
sr_ME.utf8
sr_RS.utf8
ss_ZA.utf8
st_ZA.utf8
sv_FI.utf8
sv_SE.utf8
sw_KE.utf8
sw_TZ.utf8
szl_PL.utf8
ta_IN.utf8
ta_LK.utf8
tcy_IN.utf8
te_IN.utf8
tg_TJ.utf8
the_NP.utf8
th_TH.utf8
ti_ER.utf8
ti_ET.utf8
tig_ER.utf8
tk_TM.utf8
tl_PH.utf8
tn_ZA.utf8
to_TO.utf8
tpi_PG.utf8
tr_CY.utf8
tr_TR.utf8
ts_ZA.utf8
tt_RU.utf8
ug_CN.utf8
uk_UA.utf8
unm_US.utf8
ur_IN.utf8
ur_PK.utf8
uz_UZ.utf8
ve_ZA.utf8
vi_VN.utf8
wa_BE.utf8
wae_CH.utf8
wal_ET.utf8
wo_SN.utf8
xh_ZA.utf8
yi_US.utf8
yo_NG.utf8
yue_HK.utf8
yuw_PG.utf8
zh_CN.utf8
zh_HK.utf8
zh_SG.utf8
zh_TW.utf8
zu_ZA.utf8
Current locale:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
Directories:
Home:
/home/hsz
${XDG_CONFIG_HOME}
:
Environment variable XDG_CONFIG_HOME
is not set.
Current value of XDG_CONFIG_HOME
is ~/.config
(/home/hsz/.config
).
Fcitx5 Settings Directory:
Current fcitx5 settings directory is ~/.config/fcitx5
(/home/hsz/.config/fcitx5
).
Current user:
The script is run as hsz (1000).
executable:
Found fcitx5 at /usr/bin/fcitx5
.
version:
Fcitx version: 5.0.23
process:
Found 1 fcitx5 process:
1856 fcitx5
fcitx5-remote
:
fcitx5-remote
works properly.
DBus interface:
Using dbus-send
to check dbus.
Owner of DBus name org.fcitx.Fcitx5
is :1.54
.
PID of DBus name org.fcitx.Fcitx5
owner is 1856
.
Debug information from dbus:
Group [x11::0] has 40 InputContext(s)
IC [01354e71c6d64e56b228eb8535183790] program:kate frontend:dbus cap:6000800072 focus:0
IC [1b312fdb986a41a48adbc83c9a83a5c6] program:konsole frontend:dbus cap:6000820872 focus:0
IC [e4552700df9e4ace82242861cb8f93ac] program:konsole frontend:dbus cap:16000800072 focus:0
IC [4bc2c1b8b4e54f4a9b243d98d9ef19f7] program:konsole frontend:dbus cap:6000820872 focus:1
IC [8650333d3a27446aa2863816d538de52] program:dolphin frontend:dbus cap:16000800072 focus:0
IC [7c9ba72a8f064f9581e3f63dc692cb04] program:dolphin frontend:dbus cap:16000800072 focus:0
IC [d9f609bf098b4e16a7619556e75b0632] program:dolphin frontend:dbus cap:16000800072 focus:0
IC [2b9ec851c56c48b7a219f24718b4829d] program:et frontend:fcitx4 cap:800060 focus:0
IC [6eb1567f00964480ab88d74ee5363ef2] program:typora frontend:dbus cap:6000000032 focus:0
IC [03b549bebdab4f6cbb8f17839e0f8b1f] program:dolphin frontend:dbus cap:16000800072 focus:0
IC [10873677cd6f4003b5f05cbd368e4f79] program:konsole frontend:dbus cap:6000820872 focus:0
IC [02100849ba1a470a86c0a4a6f56a1e31] program:kate frontend:dbus cap:16000800072 focus:0
IC [9dd8555515814bf0ae2f79926b431159] program:konsole frontend:dbus cap:6000820872 focus:0
IC [073abc83a23a4933b2ab68a51d2ca7b2] program:dolphin frontend:dbus cap:16000800072 focus:0
IC [7099560fdfd04aebbcbe8e727b015078] program:copyq frontend:dbus cap:6000800072 focus:0
IC [2f48800e13dd42c8b05303d705307227] program:google-chrome frontend:dbus cap:6000000032 focus:0
IC [4bc42f356cbc49fd9ad99943ecb1e8b6] program:google-chrome frontend:dbus cap:6000000032 focus:0
IC [6d7a038363af4d929e6933175c841d85] program:konsole frontend:dbus cap:16000800072 focus:0
IC [1aab6b73b4374744af5250658c2a093b] program:yakuake frontend:dbus cap:6000820872 focus:0
IC [ac04728462b24fbfae6d2ba9b34983ac] program:virt-viewer frontend:dbus cap:6000000032 focus:0
IC [901078c43e4e40e486758ec10dfc6ca0] program:code frontend:dbus cap:6000000032 focus:0
IC [0146fd69b4b4425cb7108ea13f66ffb7] program:mattermost-desktop frontend:dbus cap:6000000032 focus:0
IC [cacb1e9b4e6142a4813be721ea5e9eac] program:plasmashell frontend:dbus cap:16000800072 focus:0
IC [51dc8acbb5214b51b9130d0739c2cf67] program:kate frontend:dbus cap:16000800072 focus:0
IC [44d21026ad2646d5b6e3976365b5d444] program:konsole frontend:dbus cap:6000820872 focus:0
IC [402c3c2bceb0434f9c7e07083b8f389b] program:electron frontend:dbus cap:6000000032 focus:0
IC [9cfbff118b294ca38279e4531fedea84] program:konsole frontend:dbus cap:16000800072 focus:0
IC [537998506555440f872f81dd632818dd] program:krunner frontend:dbus cap:6000820072 focus:0
IC [1c860e326d904a8ea059baf246b1990b] program:virt-viewer frontend:dbus cap:6000000032 focus:0
IC [4c0f0bac76d243d7a4268aa5886c5ccb] program:konsole frontend:dbus cap:16000800072 focus:0
IC [5ebb2e0489754278ae78af8fd0a9bfb7] program:konsole frontend:dbus cap:16000800072 focus:0
IC [7a8300e61ffc4a46b2dcc54203676f5f] program:plasmashell frontend:dbus cap:16000800072 focus:0
IC [e16d1dd940574bdd83d7d4fbf736ff15] program:kate frontend:dbus cap:6000800072 focus:0
IC [1c1fd13af5e449d8995d9f5d1849f525] program:plasmashell frontend:dbus cap:16000800072 focus:0
IC [9afb57c5b1b14e16bd263e630f4f79e1] program:kate frontend:dbus cap:16000800072 focus:0
IC [47b45fe053ff41aeacea0772375bd289] program:kate frontend:dbus cap:16000800072 focus:0
IC [9b3171f68d6c45bca510ddcc029d2f9f] program:kate frontend:dbus cap:16000800072 focus:0
IC [210818b581534f2797b95cd3bbe07ba2] program:kate frontend:dbus cap:16000800072 focus:0
IC [a2b50a4142284fa5ae17e96020b24ac7] program:virt-viewer frontend:dbus cap:6000000032 focus:0
IC [dd24eb82c3dd46249931d3322f74c9de] program:kate frontend:dbus cap:16000800072 focus:0
Input Context without group
Config Tool Wrapper:
Found fcitx5-configtool at /usr/bin/fcitx5-configtool
.
Config GUI for qt:
Found fcitx5-config-qt
at /usr/bin/fcitx5-config-qt
.
Config GUI for kde:
Found fcitx5 kcm module.
kcm_fcitx5 - Configure Input Method
${XMODIFIERS}
:
Environment variable XMODIFIERS is set to "@im=fcitx" correctly. Xim Server Name from Environment variable is fcitx.
XIM_SERVERS on root window:
Xim server name is the same with that set in the environment variable.
qt4 - ${QT4_IM_MODULE}
:
Environment variable QT_IM_MODULE is set to "fcitx" correctly.
qt5 - ${QT_IM_MODULE}
:
Environment variable QT_IM_MODULE is set to "fcitx" correctly.
Qt IM module files:
Found fcitx5 im module for qt6: /usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
.
Found fcitx5 im module for qt: /usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
.
Found unknown fcitx qt module: /usr/lib/qt/plugins/kcms/kcm_fcitx5.so
.
Found fcitx5 qt5 module: /usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so
.
Found unknown fcitx qt module: /usr/lib/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.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 - ${GTK_IM_MODULE}
:
Environment variable GTK_IM_MODULE is set to "fcitx" correctly.
gtk-query-immodules
:
gtk 2:
Found gtk-query-immodules
for gtk 2.24.33
at /usr/bin/gtk-query-immodules-2.0
.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33
Found fcitx5 im modules for gtk 2.24.33
.
"/usr/lib/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:*"
gtk 3:
Found gtk-query-immodules
for gtk 3.24.38
at /usr/bin/gtk-query-immodules-3.0
.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.38
Found fcitx5 im modules for gtk 3.24.38
.
"/usr/lib/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:*"
Found gtk-query-immodules
for gtk 3.24.38
at /usr/bin/gtk-query-immodules-3.0-32
.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0-32 from gtk+-3.24.38
Failed to find fcitx5 in the output of /usr/bin/gtk-query-immodules-3.0-32
Gtk IM module cache:
gtk 2:
Found immodules cache for gtk 2.24.33
at /usr/lib/gtk-2.0/2.10.0/immodules.cache
.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33
Found fcitx5 im modules for gtk 2.24.33
.
"/usr/lib/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:*"
gtk 3:
Found immodules cache for gtk 3.24.38
at /usr/lib/gtk-3.0/3.0.0/immodules.cache
.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.38
Found fcitx5 im modules for gtk 3.24.38
.
"/usr/lib/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:*"
Found immodules cache for gtk 3.24.38
at /usr/lib32/gtk-3.0/3.0.0/immodules.cache
.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0-32 from gtk+-3.24.38
Failed to find fcitx5 in immodule cache at /usr/lib32/gtk-3.0/3.0.0/immodules.cache
gtk 4:
Cannot find immodules cache for gtk 4
Cannot find fcitx5 im module for gtk 4 in cache.
Gtk IM module files:
gtk 2:
All found Gtk 2 immodule files exist.
gtk 3:
All found Gtk 3 immodule files exist.
gtk 4:
All found Gtk 4 immodule files exist.
Addon Config Dir:
Found fcitx5 addon config directory: /usr/share/fcitx5/addon
.
Addon List:
Found 25 enabled addons:
Simplified and Traditional Chinese Translation 5.0.17
Classic User Interface 5.0.23
Cloud Pinyin 5.0.17
DBus 5.0.23
DBus Frontend 5.0.23
Emoji 5.0.23
Fcitx4 Frontend 5.0.23
Full width character 5.0.17
IBus Frontend 5.0.23
Input method selector 5.0.23
Keyboard 5.0.23
KDE Input Method Panel 5.0.23
Status Notifier 5.0.23
Notification 5.0.23
Pinyin 5.0.17
Extra Pinyin functionality 5.0.17
Punctuation 5.0.17
Quick Phrase 5.0.23
Spell 5.0.23
Table 5.0.17
Unicode 5.0.23
Wayland 5.0.23
Wayland Input method frontend 5.0.23
XCB 5.0.23
X Input Method Frontend 5.0.23
Found 1 disabled addons:
Clipboard 5.0.23
Addon Libraries:
All libraries for all addons are found.
User Interface:
Found 2 enabled user interface addons:
Classic User Interface
KDE Input Method Panel
/home/hsz/.config/fcitx5/profile
:
[Groups/0]
# Group Name
Name=Default
# Layout
Default Layout=us
# Default Input Method
DefaultIM=pinyin
[Groups/0/Items/0]
# Name
Name=keyboard-us
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=pinyin
# Layout
Layout=
[GroupOrder]
0=Default
date
:
Mon Jul 31 10:21:24 AM CST 2023
/home/hsz/.config/fcitx5/crash.log
:
/home/hsz/.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 here are the contents of /proc/<pid>/maps
I captured at two timings that desktop became laggy.
I also dumped the memory of fcitx process and took one coredump file, but they contains many sensitive informations
You seems to run a lot of applications already on the system. I don't know if that matters. I don't think things like minimize a window could be affected by fcitx at all. Are you using a fcitx theme that has kwin blur feature enabled or sth?
@wengxt
Material-Color-DeepPurple
theme from https://github.com/hosxy/Fcitx5-Material-Color有没有试过重启 kwin
kwin_x11 --replace
kwin_x11 --replace
same issue here, I'd love to test that while my device is getting laggy.
Desktop operation likes moving or minimizing window becomes laggy. These disappear after restarting fcitx5.
fcitx5-diagnose
result(after restarting):