如何解决 openSUSE Leap 上用 fcitx5 在 telegram-desktop 里输入中文时导致 telegram 崩溃的问题

我目前正在使用 openSUSE Leap 15.5, 桌面是 KDE Plasma, 输入法用的 fictx5, 现在每次在 telegram 客户端输入中文的时候,telegram 就会立即崩溃并自动退出,输入英文就没有任何问题,似乎是 fcitx5 跟 telegram 有什么冲突。我还尝试求助 telegram 客户端的开发者,在 GitHub 上提交了 这个 issue ,开发者的回应是已经解决,然而我更新到最新版的 telegram 客户端,bug 依然重现。

我之前用 Fedora 和 openSUSE Tumbleweed 这类滚动发行版的时候 telegram 一直可以正常输入中文的,最近转移到 Leap 反而不行了,难道是某个库的版本太落后了?

我还尝试过安装 fcitx-qt5,但是安装有问题,输出内容如下:

Problem: the to be installed fcitx-qt5-1.2.7-bp155.2.23.x86_64 requires 'libfcitx-utils.so.0()(64bit)', but this requirement cannot be provided
  not installable providers: libfcitx-4_2_9-4.2.9.8-bp155.2.18.x86_64[mirror-oss]
 Solution 1: Following actions will be done:
  deinstallation of libFcitx5Core7-5.0.18-bp155.1.14.x86_64
  deinstallation of fcitx5-lua-5.0.10-bp155.1.7.x86_64
  deinstallation of fcitx5-chinese-addons-5.0.16-bp155.1.7.x86_64
  deinstallation of fcitx5-5.0.18-bp155.1.14.x86_64
  deinstallation of fcitx5-table-extra-5.0.12-bp155.1.6.noarch
 Solution 2: do not install fcitx-qt5-1.2.7-bp155.2.23.x86_64
 Solution 3: break fcitx-qt5-1.2.7-bp155.2.23.x86_64 by ignoring some of its dependencies

似乎无法正常安装,请问该如何解决这个问题呢?

你装的是 fcitx-qt5 不是 fcitx5-qt5

我试了一下安装 fcitx5-qt5, 提示已经安装了,再次打开 telegram 试了一下,bug 还是复现,看来问题出在别的地方

Telegram 的版本、安装来源,崩溃的调用栈(看看 coredumpctl)。

Telegram 版本是 5.0.5 beta,二进制文件直接从 telegramdesktop/tdesktop 仓库的 release 页面下载的,coredumpctl info 输出如下:

           PID: 12674 (telegram-deskto)
           UID: 1000 (kholin)
           GID: 100 (users)
        Signal: 11 (SEGV)
     Timestamp: Wed 2024-05-29 17:04:26 CST (57s ago)
  Command Line: telegram-desktop
    Executable: /home/kholin/Documents/Telegram/Telegram
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-de3d67a7f45d4023aafc6a73e7f2aa82.scope
          Unit: user@1000.service
     User Unit: app-org.kde.konsole-de3d67a7f45d4023aafc6a73e7f2aa82.scope
         Slice: user-1000.slice
     Owner UID: 1000 (kholin)
       Boot ID: c922e1639c7a4d2d8007d9079b32736e
    Machine ID: 8ad9e3c212bb434fb193a36cf6519712
      Hostname: pc-opssl
       Storage: /var/lib/systemd/coredump/core.telegram-deskto.1000.c922e1639c7a4d2d8007d9079b32736e.12674.1716973466000000.zst (present)
     Disk Size: 63.1M
       Message: Process 12674 (telegram-deskto) of user 1000 dumped core.
                
                Found module /home/kholin/Documents/Telegram/Telegram with build-id: 85da05facfb1a0dd6eaa46fbfb11f0db615d258b
                Found module linux-vdso.so.1 with build-id: 729fae8cf2c599ad71ec3d7824afaa84341e6761
                Found module libpciaccess.so.0 with build-id: 7981d13bcec477ec86313c90e62b93d2ca428dca
                Found module libxml2.so.2 with build-id: 4ab2cd29f14baa814ae707a67b87253e71d98d6a
                Found module libtinfo.so.6 with build-id: 95c6c544de2a553384e728b907be559bcf142e57
                Found module libedit.so.0 with build-id: 120d2953f833887638d713040dcd5a0e3d670e67
                Found module libstdc++.so.6 with build-id: c74eca671e2dd0f063706372d103f8acef88f1e3
                Found module libdrm_intel.so.1 with build-id: 691242ba04a659a40264024f23a722680ae1841d
                Found module libdrm_nouveau.so.2 with build-id: 6b1bca39a406c272d2871143a0ef198baebd019f
                Found module libdrm_amdgpu.so.1 with build-id: 57746f08fa4084b5d447e3f2851a170af44f8301
                Found module libelf.so.1 with build-id: 98e12dca53ba31dd02a564558d9a368c0f8efe16
                Found module libdrm_radeon.so.1 with build-id: d79e1cda867fde78eb6af97879d48c1918afc01a
                Found module libLLVM.so.15 with build-id: c2d34d2622e4ccbda8dc0d1daff1707b1d88110b
                Found module iris_dri.so with build-id: 609a65797a1bbb30d4602857d48d8b84f42b006f
                Found module libgcc_s.so.1 with build-id: 12f775ec4aeb94b749897b1b65638f18b61d1b1f
                Found module libxshmfence.so.1 with build-id: fb3e380dcf1ee8c1add41c83d9686c398d4e210d
                Found module libxcb-sync.so.1 with build-id: f92841fcc88e26c2daac52a6e90e17eb857d446e
                Found module libxcb-present.so.0 with build-id: 9cdc9c5f5ddaacd96ff4cbe9ce63d8a6eadf06ff
                Found module libxcb-dri3.so.0 with build-id: 0d34835c0f0c507f645dfcc943bd2f68acb7e2f5
                Found module libxcb-xfixes.so.0 with build-id: b47e1cb5fe9d4f5e4948c1ebdcf41e10a5fde9bd
                Found module libxcb-randr.so.0 with build-id: cfc2d0a99c2744f5997ff52d1325771fb081db35
                Found module libxcb-dri2.so.0 with build-id: f3e57e66501dfb9a66b0436f619437cd2ec9a243
                Found module libX11-xcb.so.1 with build-id: b316f0663121e3923dccc62ec96a91953b7d504a
                Found module libglapi.so.0 with build-id: 21b112f30c6d31e32e89eff69bb360e440c1e1f5
                Found module libEGL_mesa.so.0 with build-id: e285708bf204973736ac63f680b41bf07b76a3fa
                Found module libgbm.so.1 with build-id: 27c47592f404bb3655b66f7af39dd30b803e3acf
                Found module libnvidia-egl-gbm.so.1 with build-id: 6757100e5a832d3129514712483f194dd3c75552
                Found module libnvidia-gpucomp.so.550.54.14 with build-id: 5f8c86cbbb6f38bfd82f363f979a2904bdc79268
                Found module libnvidia-eglcore.so.550.54.14 with build-id: 39f270112f450d872e6e5a67ded5629e12b90d8d
                Found module libdrm.so.2 with build-id: 98565ccb5a52b59373312030e63915c1cb09372f
                Found module libwayland-server.so.0 with build-id: 612c9f706f22d292d6710c6ac6ef059d5a07ef57
                Found module libnvidia-egl-wayland.so.1 with build-id: ea248386d9761b7f77a377bdc88059a2dd311e9e
                Found module libnvidia-glsi.so.550.54.14 with build-id: 29ccdeb5960011a26a451bdbd8348010d321d530
                Found module libEGL_nvidia.so.0 with build-id: c13d7141f27ab5ca704f06c71348a702d1e0b3a0
                Found module libspeex.so.1 with build-id: 605a9599058674d58a6596f755243b8668f22d28
                Found module libvorbisenc.so.2 with build-id: fa7195fd33995f7d1ac45065ce9e717c81117005
                Found module libvorbis.so.0 with build-id: 6002c9b6bb455d5da185d939ec917f2e90002ff1
                Found module libogg.so.0 with build-id: 62092ba96a515c150827bc89e5552a205006e8ad
                Found module libFLAC.so.8 with build-id: 65916f0390e614757300c75869c761fe97c34f1f
                Found module libsndfile.so.1 with build-id: 5a41ad46db79309f461bc00a50d896ee4c29c2b3
                Found module libpulsecommon-15.0.so with build-id: d646368c86a0d4d892bd01bf02736bc96a494cea
                Found module libpulse.so.0 with build-id: ab297437b1faa48af5f3bdab3c451caa86d4a671
                Found module libpipewire-0.3.so.0 with build-id: 09ad8ef893750d7665e48f8426ecc8ee2d8fb6e4
                Found module libgvfscommon.so with build-id: 265fce25790b5bd7a9ffee9ac7b4fbb8a38911c1
                Found module libgvfsdbus.so with build-id: 4c7c4bfdd3e6e381b4f2f44b9eecfbeda2fc8c3b
                Found module libdconfsettings.so with build-id: 2b188467f471f6034c13517db18983e7d3bc1cc1
                Found module libatspi.so.0 with build-id: e9f155a8f2f48da3d142624ae33175809b632f2a
                Found module libatk-bridge-2.0.so.0 with build-id: 35aae8dcc58739cdfe13e8bdf4a99dc671fe9c61
                Found module libatk-1.0.so.0 with build-id: 1f96ecb6734fd199e54a048c9d552888726021c7
                Found module libgtk-3.so.0 with build-id: 3fc64d8a182a1b50f265893b2a9740097da56472
                Found module libGLX.so.0 with build-id: 4cc3a878d412de67757aff9308158dc98951e75b
                Found module libGLdispatch.so.0 with build-id: d4dbc4caeab1b82a4468a5b61ca44cfd1a1b9b21
                Found module libdatrie.so.1 with build-id: 3873be37a016a5f431b95b5aa6eaa1b3f5e51aaf
                Found module libgraphite2.so.3 with build-id: 03967adca9db7c839d3c6bc7c44458c6302cb900
                Found module libGL.so.1 with build-id: ef4ad99ca8fae225e647c0f007d81dc9105a8cac
                Found module libxcb-render.so.0 with build-id: 2453a26d05b03239e8b3b2e766141abf9baf3083
                Found module libxcb-shm.so.0 with build-id: b36157ad90e44a1544bcef14d429e0bd7ba8f0bc
                Found module libEGL.so.1 with build-id: efb12e0ccaa2e2dfc3eb86008cf61ec944a398a9
                Found module libpixman-1.so.0 with build-id: d6f203b2433f6392d37a2c834789e76b1cbdce9f
                Found module libXrender.so.1 with build-id: fb4d733856da6d89b203ebc957086b015d1b9543
                Found module libjpeg.so.8 with build-id: 182687a3447abdb232af225929ad0dfdb408af97
                Found module libthai.so.0 with build-id: 55c3c04d22e6686aeab68fc755658bc6a31fc5fe
                Found module libharfbuzz.so.0 with build-id: 0ba540acb184da5c3defce394eb260efd73577a3
                Found module libpangoft2-1.0.so.0 with build-id: d943954d7d9e325c0aedd64b6c22f566eac82149
                Found module libfribidi.so.0 with build-id: ca4f3de5fac67a7309b44b1a6c2efa02ab69821d
                Found module libepoxy.so.0 with build-id: 831aead84803125034e577b808b14251a0e49400
                Found module libcairo.so.2 with build-id: 36a4c2c0ae554e7848f5da995cebba96c6824375
                Found module libXext.so.6 with build-id: cf6a629d03d9cfad61f259ff380a6b4bd6f7cb51
                Found module libwayland-egl.so.1 with build-id: acce817abdd7ffa52c6324ea564804b5a37c0d13
                Found module libwayland-cursor.so.0 with build-id: ee44f2b1697d3c83ee5e0b8b65b11a6f3dae803e
                Found module libxkbcommon.so.0 with build-id: 8286a68a6183be0be032d59b8cf18956221a4c58
                Found module libXfixes.so.3 with build-id: 18008f4547a97c816733abb378765b89d5d68c4b
                Found module libXdamage.so.1 with build-id: 9d08fd3f603d94ea5435057c0a368f48d3d283a9
                Found module libXcomposite.so.1 with build-id: cd63183d8abdf810cecde03f7574b1106b4ed5de
                Found module libXcursor.so.1 with build-id: ace031880ea611dd798d725a22356fff8c1b9783
                Found module libXrandr.so.2 with build-id: d9682b34431c44b7c97eacc832183ebf2fec281c
                Found module libXi.so.6 with build-id: ab4dc4c384333036533ba41a1022480fe3f82d18
                Found module libXinerama.so.1 with build-id: 9e653d4721c3f11cfbbb30e38f82f51f4d6a15ff
                Found module libcairo-gobject.so.2 with build-id: 2c7bf0169850d1cadf6116ade430bc3c4ca06068
                Found module libgdk_pixbuf-2.0.so.0 with build-id: dabe317d0f0e8538fd20560a931d5bf79b865bcc
                Found module libpango-1.0.so.0 with build-id: a0c8552e878fc8b9574fccb1868bcebecd940c33
                Found module libpangocairo-1.0.so.0 with build-id: f33b795a6772534e84a8c3625cc91619ee99c278
                Found module libgdk-3.so.0 with build-id: bd990a637d19d90b829ba98832d338e9e9d9bc59
                Found module libgpg-error.so.0 with build-id: 7703a2c38d4dc0cb40e4b1943f4d3dea9d7b1cae
                Found module libgcrypt.so.20 with build-id: 7d59cb03944197b31fe94501883a634acc3e0721
                Found module libcap.so.2 with build-id: 1b0832431bbde63d8d5a5ef90bbba20dea46bbed
                Found module liblz4.so.1 with build-id: ef9ad25a65c1623b33a365c00c3bc781492e7eaf
                Found module libzstd.so.1 with build-id: d1fb4855c1f72b5941faa9ffac3edff26a2da3bb
                Found module liblzma.so.5 with build-id: 2d656c3bd393d5f9e95fdbbfe4fbbdc19e0cf0ba
                Found module librt.so.1 with build-id: 6acb6f706923513b127e95a0a5e7f7916900018b
                Found module libsystemd.so.0 with build-id: a58e209fcd1fe2caf8e6da65e8f8cc09e30755b1
                Found module libdbus-1.so.3 with build-id: 3c6b20ea7a81f11953c381d0d040d99190634d8d
                Found module libwayland-client.so.0 with build-id: d58e8f0a2caa119503605427aa4d4276ab1dd6da
                Found module libblkid.so.1 with build-id: 3199908bbc05f033062e6b08080851147614af7e
                Found module libXau.so.6 with build-id: 7f7563c2e3af15370c200ce7ac1707fb085eb610
                Found module libpcre.so.1 with build-id: bd429ac11a685687f7f0c381af53a33aec2d3f41
                Found module libffi.so.7 with build-id: 62ece4f953ed6d967d46a60ce7979803ce3f51c3
                Found module libresolv.so.2 with build-id: 83e50ade76c4ef68eb7291ca9eef373d0e5477f9
                Found module libselinux.so.1 with build-id: 58d24c02a015417be0c526fa565cfb868164ab7a
                Found module libmount.so.1 with build-id: 16dbcf60f63d5b907c7e5a52c645825c89586b58
                Found module libgmodule-2.0.so.0 with build-id: f1917ea6c5878006c8bf2ba346f99d3bdb546c71
                Found module libxcb.so.1 with build-id: 20583630b867511565bcc4a09fe53cd8126628c4
                Found module libz.so.1 with build-id: 0bd1b117f07eb8157bb2931e94d966fbb352f652
                Found module libpng16.so.16 with build-id: 5f75035c3b165fede9a1e071c20259bf6d8d9389
                Found module libbz2.so.1 with build-id: ab3bf32de28e526bb13f12afa0084170fa8ea51e
                Found module libuuid.so.1 with build-id: 3296f13cf1306c0657c84abb4ace38e2f6d57a02
                Found module libexpat.so.1 with build-id: 335cb65db76c2fcfe35c0f681636e3f35017f03f
                Found module ld-linux-x86-64.so.2 with build-id: be5d0c46cde7620968b30cd3c9a737179b4f8f5f
                Found module libc.so.6 with build-id: f732026552f6adff988b338e92d466bc81a01c37
                Found module libpthread.so.0 with build-id: 2f8d3c2d0f4d7888c2598d2ff6356537f5708a73
                Found module libm.so.6 with build-id: a81ec982656c9f3b51d4d7ea5384e7c4fd9708de
                Found module libdl.so.2 with build-id: d217b228882341aeb761264b83415f7458617268
                Found module libglib-2.0.so.0 with build-id: 914f0622b3c27486cb92dec34128e251ce2db76a
                Found module libgobject-2.0.so.0 with build-id: 4681b59aefe3b05f904ee7be7d42da7fe2c5c504
                Found module libgio-2.0.so.0 with build-id: ab07dda6832bc93fc15e867b2f0c0dee7d671e8f
                Found module libX11.so.6 with build-id: 07f66fb7313bb5e9790a52abb80fb6f3d8347c3e
                Found module libfreetype.so.6 with build-id: 181dcf70b55637a3a0ae3f497ca1796ac7eded18
                Found module libfontconfig.so.1 with build-id: 764bace0bb80d723090d40f6059cbfcdd3f89c2d
                Stack trace of thread 12674:
                #0  0x000055b6953d860b n/a (/home/kholin/Documents/Telegram/Telegram + 0x5d6660b)
                #1  0x000055b695464ce2 n/a (/home/kholin/Documents/Telegram/Telegram + 0x5df2ce2)
                #2  0x000055b69506abfe n/a (/home/kholin/Documents/Telegram/Telegram + 0x59f8bfe)
                #3  0x000055b691b7b6a6 n/a (/home/kholin/Documents/Telegram/Telegram + 0x25096a6)
                #4  0x000055b695881713 n/a (/home/kholin/Documents/Telegram/Telegram + 0x620f713)
                #5  0x000055b69547af95 n/a (/home/kholin/Documents/Telegram/Telegram + 0x5e08f95)
                #6  0x000055b6954cc6cc n/a (/home/kholin/Documents/Telegram/Telegram + 0x5e5a6cc)
                #7  0x000055b69575fb45 n/a (/home/kholin/Documents/Telegram/Telegram + 0x60edb45)
                #8  0x00007f84c80dd82b g_main_context_dispatch (libglib-2.0.so.0 + 0x5582b)
                #9  0x00007f84c80ddbd0 n/a (libglib-2.0.so.0 + 0x55bd0)
                #10 0x00007f84c80ddc5c g_main_context_iteration (libglib-2.0.so.0 + 0x55c5c)
                #11 0x000055b6959e30f5 n/a (/home/kholin/Documents/Telegram/Telegram + 0x63710f5)
                #12 0x000055b6958822ec n/a (/home/kholin/Documents/Telegram/Telegram + 0x62102ec)
                #13 0x000055b691bc3dd5 n/a (/home/kholin/Documents/Telegram/Telegram + 0x2551dd5)
                #14 0x000055b691b57bba n/a (/home/kholin/Documents/Telegram/Telegram + 0x24e5bba)
                #15 0x000055b691b59701 n/a (/home/kholin/Documents/Telegram/Telegram + 0x24e7701)
                #16 0x000055b690885710 n/a (/home/kholin/Documents/Telegram/Telegram + 0x1213710)
                #17 0x00007f84c7d7a24d __libc_start_main (libc.so.6 + 0x3524d)
                #18 0x000055b690917d2e n/a (/home/kholin/Documents/Telegram/Telegram + 0x12a5d2e)

不建议使用 beta 版——尤其是没有调试符号的 beta 版。
openSUSE 没有打包好的 Telegram 吗?这个静态链接的版本,完全看不出来崩在哪里了。

我最开始是用正式版的,就是因为正式版出了问题,后来经开发人员建议在设置里开启了 beta 版,应该是为了方便调试。目前用的从 GitHub 仓库下载的二进制文件也是打包后的文件,我看 openSUSE Leap 仓库里的 telegram 只有社区维护的,版本较老,就没用。而且我尝试过用 flatpak 安装,还是会出现一样的问题。

重新从 flathub 安装了一下,打开尝试输入中文,一样崩溃,这是 coredumpctl info 输出内容:
telegram-crash-dump.txt (33.3 KB)

我应该没听说过 Qt 6.7.1 和 Telegram 5.0.x 有崩溃的情况。你这没有调试符号也不好办啊(哦对了,有调试符号你也不一定要足够的内存来加载)。总之不好调试。

感谢,看来暂时我还是用 Web 版凑合着用吧,只能期待 Leap 的下一个版本不会出现这个问题

我在 openSUSE Leap 15.5 上使用的 Kotatogram Desktop,可正常输入中文,推荐尝试。

感谢推荐,我尝试了一下,确实能输入中文,不过候选词面板漂移到程序外面去了,不是很方便,而且这个客户端两年没更新,看起来是基于旧版 telegram-desktop 开发的,有些新功能是缺失的

还有这个 https://flathub.org/apps/io.github.kukuruzka165.materialgram(这个挺新的),我也尝试了,输入法没问题

试了下还是崩了… 这个客户端看起来跟官方仓库是同步的,只是换了一层皮肤

我现在怀疑是我的系统哪儿配置出了问题,好像只有我遇到了这个 bug