Closed vvlaw closed 2 years ago
I think I got a similar issue. The latest fcitx5 will just crash when trying to load fcitx5-rime input method.
The log is like this
*** stack smashing detected ***: terminated
=========================
Fcitx 5.0.19 -- Get Signal No.: 6
Date: try "date -d @1667831270" if you are using GNU date ***
ProcessID: 1282958
fcitx5(+0xe48d)[0x55f3c047a48d]
/lib64/libc.so.6(+0x3daa0)[0x7f7945ae1aa0]
/lib64/libc.so.6(+0x8956c)[0x7f7945b2d56c]
/lib64/libc.so.6(raise+0x12)[0x7f7945ae1a02]
/lib64/libc.so.6(abort+0xcf)[0x7f7945acc469]
/lib64/libc.so.6(+0x7d888)[0x7f7945b21888]
/lib64/libc.so.6(__fortify_fail+0x22)[0x7f7945bbd5d2]
/lib64/libc.so.6(__fortify_fail+0x0)[0x7f7945bbd5b0]
/usr/lib64/rime-plugins/lua.so(+0x5ba34)[0x7f793456ca34]
/usr/lib64/librime.so.1(_ZN4rime13PluginManager11LoadPluginsEN5boost10filesystem4pathE+0x45b)[0x7f7934a1d09b]
/usr/lib64/librime.so.1(+0xe87c3)[0x7f7934a1d7c3]
/usr/lib64/librime.so.1(_ZN4rime11LoadModulesEPPKc+0x91)[0x7f7934a668f1]
/usr/lib64/librime.so.1(RimeInitialize+0x24)[0x7f7934a23b04]
/usr/lib64/fcitx5/rime.so(+0xcacd)[0x7f793c1b8acd]
/usr/lib64/fcitx5/rime.so(+0xe397)[0x7f793c1ba397]
/usr/lib64/fcitx5/rime.so(+0xf4bc)[0x7f793c1bb4bc]
/usr/lib64/fcitx5/rime.so(+0x131f0)[0x7f793c1bf1f0]
/usr/lib64/libFcitx5Core.so.7(+0x86651)[0x7f7946067651]
/usr/lib64/libFcitx5Core.so.7(+0x893bb)[0x7f794606a3bb]
/usr/lib64/libFcitx5Core.so.7(+0x89bff)[0x7f794606abff]
/usr/lib64/libFcitx5Core.so.7(_ZN5fcitx12AddonManager5addonERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb+0xff)[0x7f7946068b2f]
/usr/lib64/libFcitx5Core.so.7(_ZN5fcitx8Instance19activateInputMethodERNS_17InputContextEventE+0x288)[0x7f794602b718]
/usr/lib64/libFcitx5Core.so.7(_ZNK5fcitx8Instance9postEventERNS_5EventE+0x324)[0x7f794602a614]
/usr/lib64/libFcitx5Core.so.7(+0x4b07b)[0x7f794602c07b]
/usr/lib64/libFcitx5Core.so.7(_ZN5fcitx8Instance21setCurrentInputMethodEPNS_12InputContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb+0x249)[0x7f794602da29]
/usr/lib64/fcitx5/libnotificationitem.so(+0x2778f)[0x7f793e39278f]
/usr/lib64/libFcitx5Utils.so.2(+0x462d2)[0x7f7945f502d2]
/lib64/libsystemd.so.0(+0x7f1cc)[0x7f79459e41cc]
/lib64/libsystemd.so.0(sd_event_dispatch+0x11d)[0x7f79459e450d]
/lib64/libsystemd.so.0(sd_event_run+0xc0)[0x7f79459e4c70]
/lib64/libsystemd.so.0(sd_event_loop+0x57)[0x7f79459e4e87]
/usr/lib64/libFcitx5Utils.so.2(_ZN5fcitx9EventLoop4execEv+0x11)[0x7f7945f50441]
@goduck777 your distro didn't compile fcitx5-lua in dlopen mode.
What's your distro? Also the so name doesn't look similar to what arch have. So I'd guess some some your package is not up to date (at least your distro didn't provide a update to date version).
And your problem is not related to the original reporter.
@vvlaw You problem is very likely due to arch remove pambase's user env support. Please use an alternative way to set environment variable.
See also: https://fcitx-im.org/wiki/Setup_Fcitx_5 https://wiki.archlinux.org/title/Environment_variables
@wengxt Thank you for reminding me. I indeed did not install fcitx-lua (I didn't know because everything works well before without it). However, after I installed it with USE_DLOPEN (I think it is ON by default), I still got the same error.
I am using Gentoo. All my fcitx components, including fcitx-rime, fcitx-qt, are all from git. I am not sure about rime. Do I need to recompile all the rime after installing fcitx-lua?
If you didn't install fcitx5-lua at all. Then it's not the issue that I'm thinking of. The issue I'm talking about is when rime + lua and fcitx5-lua are installed together but linked to different version of lua. That issue is intended to be solved with USE_DLOPEN option (and relies on dlmopen).
As for your issue, then I feel like it might be your rime configuration or rime itself need rebuild. If you don't use rime's lua at all, maybe consider disable it. Or your rime-lua is building with a old version of rime or whatever.
Because on arch, rime is loading plugin differently on itself and using a different file name for rime lua plugin.
Thank you again. I recompile librime-lua and the problem is solved. It seems that this library should be recompiled when lua is upgraded but the package was not configured well.
I apologize as this is not a fcitx issue.
Yeah. Every lua minor version is not binary compatible.
System Info:
uname -a
:lsb_release -a
:lsb_release -d
:/etc/lsb-release
:/etc/os-release
:Desktop Environment:
Cannot determine desktop environment.
XDG SESSION TYPE:
Bash Version:
Environment:
DISPLAY:
Keyboard Layout:
setxkbmap
:xprop
:Locale:
All locales:
Current locale:
Directories:
Home:
${XDG_CONFIG_HOME}
:Environment variable
XDG_CONFIG_HOME
is not set.Current value of
XDG_CONFIG_HOME
is~/.config
(/home/vvlaw/.config
).Fcitx5 Settings Directory:
Current fcitx5 settings directory is
~/.config/fcitx5
(/home/vvlaw/.config/fcitx5
).Current user:
The script is run as vvlaw (1000).
Fcitx State:
executable:
Found fcitx5 at
/usr/bin/fcitx5
.version:
Fcitx version:
5.0.19
process:
Fcitx5 is not running. Please check the Configure link of your distribution in Beginner's Guide for how to setup fcitx5 autostart.
Fcitx Configure UI:
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:
kcmshell5
not found.Frontends setup:
Xim:
${XMODIFIERS}
:XMODIFIERS is not set
Please set environment variable XMODIFIERS to "@im=fcitx" using the tool your distribution provides or add
export XMODIFIERS=@im=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: XMODIFIERS. 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.
Qt:
qt4 -
${QT4_IM_MODULE}
:Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add
export QT_IM_MODULE=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: QT_IM_MODULE.qt5 -
${QT_IM_MODULE}
:Please set environment variable QT_IM_MODULE to "fcitx" using the tool your distribution provides or add
export QT_IM_MODULE=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: QT_IM_MODULE.Qt IM module files:
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 fcitx5 im module for qt6:/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
. Found unknown fcitx qt module:/usr/lib/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
. Cannot find fcitx5 input method module for Qt4.Gtk:
gtk -
${GTK_IM_MODULE}
:Please set environment variable GTK_IM_MODULE to "fcitx" using the tool your distribution provides or add
export GTK_IM_MODULE=fcitx
to your~/.xprofile
. See Input Method Related Environment Variables: GTK_IM_MODULE.gtk-query-immodules
:gtk 2:
Found
gtk-query-immodules
for gtk2.24.33
at/usr/bin/gtk-query-immodules-2.0
. Version Line:Found fcitx5 im modules for gtk
2.24.33
.gtk 3:
Found
gtk-query-immodules
for gtk3.24.34
at/usr/bin/gtk-query-immodules-3.0
. Version Line:Found fcitx5 im modules for gtk
3.24.34
.Found
gtk-query-immodules
for gtk3.24.34
at/usr/bin/gtk-query-immodules-3.0-32
. Version Line: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:Found fcitx5 im modules for gtk
2.24.33
.gtk 3:
Found immodules cache for gtk
3.24.34
at/usr/lib/gtk-3.0/3.0.0/immodules.cache
. Version Line:Found fcitx5 im modules for gtk
3.24.34
.Found immodules cache for gtk
3.24.34
at/usr/lib32/gtk-3.0/3.0.0/immodules.cache
. Version Line:Failed to find fcitx5 in immodule cache at
/usr/lib32/gtk-3.0/3.0.0/immodules.cache
gtk 4:
Found immodules cache for gtk
4
at/usr/lib/gtk-4.0/4.0.0/immodules/giomodule.cache
.Failed to find fcitx5 in immodule cache at
/usr/lib/gtk-4.0/4.0.0/immodules/giomodule.cache
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.
Configuration:
Fcitx Addons:
Addon Config Dir:
Found fcitx5 addon config directory:
/usr/share/fcitx5/addon
.Addon List:
Found 27 enabled addons:
Found 0 disabled addons:
Addon Libraries:
All libraries for all addons are found.
User Interface:
Found 2 enabled user interface addons:
Input Methods:
/home/vvlaw/.config/fcitx5/profile
:Log:
date
:/home/vvlaw/.config/fcitx5/crash.log
:/home/vvlaw/.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.