GaZaTu / im-emoji-picker

emoji picker compatible with Linux systems using either XServer or Wayland with either Fcitx5 or IBus
MIT License
45 stars 3 forks source link

Leads to fcitx5 crash when trying on using it on xdroid (Anbox-like app) #6

Closed schrmh closed 1 year ago

schrmh commented 1 year ago

When I use the shortcut to launch im-emoji-picker in one app launched by xdroid but it instantly leads to a fcitx5 segmentation fault. Interestingly, it is so far only in this app but it is the only demanding app I have installed and it uses Unity and uses a lot of resources (will try to test other Unity apps):

I2023-03-21 07:56:39.525837 instance.cpp:1275] Override Enabled Addons: {}
I2023-03-21 07:56:39.525867 instance.cpp:1276] Override Disabled Addons: {}
I2023-03-21 07:56:39.557436 addonmanager.cpp:191] Loaded addon xcb
I2023-03-21 07:56:39.557615 addonmanager.cpp:191] Loaded addon imselector
I2023-03-21 07:56:39.558595 addonmanager.cpp:191] Loaded addon quickphrase
I2023-03-21 07:56:39.560622 addonmanager.cpp:191] Loaded addon m17n
I2023-03-21 07:56:39.564900 addonmanager.cpp:191] Loaded addon keyboard
I2023-03-21 07:56:39.566043 addonmanager.cpp:191] Loaded addon dbus
I2023-03-21 07:56:39.569153 addonmanager.cpp:191] Loaded addon fcitx4frontend
I2023-03-21 07:56:39.569931 addonmanager.cpp:191] Loaded addon dbusfrontend
I2023-03-21 07:56:39.571092 addonmanager.cpp:191] Loaded addon ibusfrontend
I2023-03-21 07:56:39.571547 addonmanager.cpp:191] Loaded addon luaaddonloader
I2023-03-21 07:56:39.572148 addonmanager.cpp:191] Loaded addon xim
E2023-03-21 07:56:39.573750 waylandmodule.cpp:243] Failed to open wayland connection
I2023-03-21 07:56:39.573766 addonmanager.cpp:191] Loaded addon wayland
I2023-03-21 07:56:39.584101 addonmanager.cpp:191] Loaded addon fcitx5imemojipicker
I2023-03-21 07:56:39.584472 addonmanager.cpp:191] Loaded addon clipboard
I2023-03-21 07:56:39.585366 addonmanager.cpp:191] Loaded addon imeapi
I2023-03-21 07:56:39.588185 addonmanager.cpp:191] Loaded addon pinyinhelper
I2023-03-21 07:56:39.588431 addonmanager.cpp:191] Loaded addon waylandim
I2023-03-21 07:56:39.588588 addonmanager.cpp:191] Loaded addon unicode
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0755 instead of 0700
I2023-03-21 07:56:39.630706 inputmethodmanager.cpp:198] Found 133 input method(s) in addon m17n
I2023-03-21 07:56:39.656468 inputmethodmanager.cpp:198] Found 727 input method(s) in addon keyboard
I2023-03-21 07:56:39.680951 addonmanager.cpp:191] Loaded addon kimpanel
I2023-03-21 07:56:39.695959 addonmanager.cpp:191] Loaded addon classicui
I2023-03-21 07:56:39.696285 addonmanager.cpp:191] Loaded addon notificationitem
I2023-03-21 07:56:39.696507 addonmanager.cpp:191] Loaded addon notifications
I2023-03-21 07:56:39.705714 kimpanel.cpp:112] Kimpanel new owner: 
I2023-03-21 07:56:40.852362 addonmanager.cpp:191] Loaded addon anthy
I2023-03-21 07:56:52.384829 addonmanager.cpp:191] Loaded addon emoji
I2023-03-21 07:56:52.387016 emoji.cpp:221] Trying to load emoji for de from StandardPathFile(fd=11,path=/usr/share/fcitx5/emoji/data/de.dict): 2563 entry(s) loaded.
I2023-03-21 07:56:52.389374 addonmanager.cpp:191] Loaded addon spell
=========================
Fcitx 5.0.22 -- Get Signal No.: 11
Date: try "date -d @1679381826" if you are using GNU date ***
ProcessID: 140006
fcitx5(+0x1520c)[0x5b719183020c]
/usr/lib/libc.so.6(+0x38f50)[0x7ee26d051f50]
/usr/lib/libQt5Gui.so.5(_ZNK7QScreen8geometryEv+0x4)[0x7ee263d62fb4]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_Z19createPointInScreenP7QWidget5QRect+0xe1)[0x7ee264d745ca]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_ZN17EmojiPickerWindow17setCursorLocationEPK5QRect+0x17c)[0x7ee264d77aa2]
/usr/lib/fcitx5/fcitx5imemojipicker.so(+0x178dcd)[0x7ee264d78dcd]
/usr/lib/fcitx5/fcitx5imemojipicker.so(+0x179e43)[0x7ee264d79e43]
/usr/lib/fcitx5/fcitx5imemojipicker.so(+0x179dbd)[0x7ee264d79dbd]
/usr/lib/fcitx5/fcitx5imemojipicker.so(+0x179d0c)[0x7ee264d79d0c]
/usr/lib/libQt5Core.so.5(+0x2bea71)[0x7ee2638bea71]
/usr/lib/libQt5Core.so.5(_ZN6QTimer7timeoutENS_14QPrivateSignalE+0x3f)[0x7ee2638c0fcf]
/usr/lib/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x1d6)[0x7ee2638b1b56]
/usr/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7ee264578b5c]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x128)[0x7ee26388df48]
/usr/lib/libQt5Core.so.5(_ZN14QTimerInfoList14activateTimersEv+0x3a3)[0x7ee2638d84b3]
/usr/lib/libQt5Core.so.5(+0x2d8af2)[0x7ee2638d8af2]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x19b)[0x7ee265330afb]
/usr/lib/libglib-2.0.so.0(+0xb75d9)[0x7ee26538d5d9]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x32)[0x7ee26532e382]
/usr/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x6c)[0x7ee2638d8c6c]
/usr/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x12c)[0x7ee2638866ec]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x99)[0x7ee263891219]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_Z8gui_mainiPPc+0x288)[0x7ee264d79152]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_ZSt13__invoke_implIvPFviPPcEJiDnEET_St14__invoke_otherOT0_DpOT1_+0x47)[0x7ee264d9102b]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_ZSt8__invokeIPFviPPcEJiDnEENSt15__invoke_resultIT_JDpT0_EE4typeEOS5_DpOS6_+0x4f)[0x7ee264d90ad8]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_ZNSt6thread8_InvokerISt5tupleIJPFviPPcEiDnEEE9_M_invokeIJLm0ELm1ELm2EEEEvSt12_Index_tupleIJXspT_EEE+0x5f)[0x7ee264d90601]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_ZNSt6thread8_InvokerISt5tupleIJPFviPPcEiDnEEEclEv+0x18)[0x7ee264d8fc2a]
/usr/lib/fcitx5/fcitx5imemojipicker.so(_ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJPFviPPcEiDnEEEEE6_M_runEv+0x1c)[0x7ee264d8f670]
/usr/lib/libstdc++.so.6(+0xd72c3)[0x7ee26d2d72c3]
/usr/lib/libc.so.6(+0x85bb5)[0x7ee26d09ebb5]
/usr/lib/libc.so.6(+0x107d90)[0x7ee26d120d90]

[1]+  Speicherzugriffsfehler  (Speicherabzug geschrieben) LANG=C fcitx5

Other things in fcitx5 work, input methods and QuickPhrase so the problem is most likel really somewhere in the im-emoji-picker engine. The engine works in all other apps I tried so far. I'm on X11, Arch Linux x86_64.

GaZaTu commented 1 year ago

@schrmh try out #7

schrmh commented 1 year ago

@GaZaTu Amazing, this fixed it.