RocketChat / Rocket.Chat.Electron

Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
https://rocket.chat/
MIT License
1.6k stars 706 forks source link

App does not start anymore after icu library upgrade from version 72.1 to 73.2 #2696

Open designst opened 1 year ago

designst commented 1 year ago

Search before asking

Operating System

Operating System Version

Arch (Kernel 6.4.1)

It happens on the web browser too?

No, it just happens on the Desktop app

Rocket.Chat Desktop App Version

3.9.5-1

Rocket.Chat Server Version

5.4

Describe the bug

After upgrading the system library icu (International Components for Unicode library) from version 72.1 to the new version 73.2 (upgraded icu (72.1-2 -> 73.2-1)) the rocketchat-desktop app does not start anymore.

The following error is displayed every time i run the command rocketchat-desktop in terminal

/usr/lib/electron21/electron: error while loading shared libraries: libicui18n.so.72: cannot open shared object file: No such file or directory

There is no libicui18n.so.72 in /usr/lib directory

❯ ls /usr/lib | grep libicu
libicudata.so
libicudata.so.73
libicudata.so.73.2
libicui18n.so
libicui18n.so.73
libicui18n.so.73.2
libicuio.so
libicuio.so.73
libicuio.so.73.2
libicutest.so
libicutest.so.73
libicutest.so.73.2
libicutu.so
libicutu.so.73
libicutu.so.73.2
libicuuc.so
libicuuc.so.73
libicuuc.so.73.2

Also a reinstallation of the rocketchat-desktop application did not help, even with --rebuild parameter.

How to Reproduce

  1. Install package icu version 72.1-2 on your system (pacman -S icu=72.1-2)
  2. Install rocketchat-desktop version 3.9.5-1 on your system (paru -S rocketchat-desktop)
  3. Upgrade icu to version 73.2-1 ('pacman -S icu`)
  4. Try to start rocketchat-desktop application

Describe your Expected behavior

No response

Anything else

No response

Are you willing to submit a code contribution?

sebastiangaiser commented 1 year ago

+1

khao-soi commented 1 year ago

Anything new on this one?

I tried to solve it with symlinks to the previous version

ln -s libicui18n.so.73 libicui18n.so.72
ln -s libicuuc.so.73 libicuuc.so.72

but this only leads to new problems

/usr/lib/electron21/electron: symbol lookup error: /usr/lib/electron21/electron: undefined symbol: uscript_getScript_72

No idea what uscript is or how to install it.

BSerpent86 commented 1 year ago

@jeanfbrito this issue is a non-issue, it has nothing to do with the Rocketchat Electron application and can be closed.

The AUR package rocketchat-desktop compiles the Rocketchat application on the end users system and uses the system's electron21. https://aur.archlinux.org/packages/rocketchat-desktop

As electron21 is also an AUR package, all that is needed is to recompile electron21 against the new icu and rocketchat works again. For AUR packages, this recompilation is in the hands of the end user, not of package/repository maintainers. https://aur.archlinux.org/packages/electron21

khao-soi commented 1 year ago

I have removed both electron21 and rocketchat-desktop and installed rocketchat again with electron21-bin. It now works as expected.