Code oss doesn't launch/can't load a shared libary

So, as the title says, while launching code oss, it fails to load a shared libary, resulting into a failed launch. Full error -

/usr/lib/electron17/electron: error while loading shared libraries: libSvtAv1Enc.so.0: cannot open shared object file: No such file or directory

I have comfirmed that there is a libary called libSvtAv1Enc.so in my lib folder.
I did try copying the libary into the electron17 swiftshader folder, and the root folder. No result. Reinstalling, no result.
image
All the files shown are in the /lib folder.
Additional info -
pacman -Qi code **
Name : code
Version : 1.68.1-1
Description : The Open Source build of Visual Studio Code (vscode) editor
Architecture : x86_64
URL : GitHub - microsoft/vscode: Visual Studio Code
Licenses : MIT
Groups : None
Provides : vscode
Depends On : electron17 libsecret libx11 libxkbfile ripgrep
Optional Deps : bash-completion: Bash completions
** zsh-completions: ZSH completitons [installed]

** x11-ssh-askpass: SSH authentication [installed]**
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 88.34 MiB
Packager : Massimiliano Torromeo mtorromeo@archlinux.org
Build Date : Thu 16 Jun 2022 11:13:13 AM +03
Install Date : Wed 29 Jun 2022 02:44:34 PM +03
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

Show output of (and please use preformatted text: </>):

pacman -Qo /usr/lib/electron17
pacman -Qo /usr/lib/libSvtAv1Enc.so* 
1 Like
output for - pacman -Qo /usr/lib/libSvtAv1Enc.so*

/usr/lib/libSvtAv1Enc.so is owned by svt-av1 1.1.0-1
/usr/lib/libSvtAv1Enc.so.1 is owned by svt-av1 1.1.0-1
/usr/lib/libSvtAv1Enc.so.1.1.0 is owned by svt-av1 1.1.0-1
----------------------------------------------------------

output for pacman -Qo /usr/lib/electron17

/usr/lib/electron17/ is owned by electron17 17.4.3-1

Also:

pacman -Qi ffmpeg electron17 svt-av1

Does reinstalling electron17 make any difference?

Name            : ffmpeg-vulkan
Version         : 2:5.0-1
Description     : Complete solution to record, convert and stream audio and video
Architecture    : x86_64
URL             : https://ffmpeg.org/
Licenses        : GPL3
Groups          : None
Provides        : ffmpeg  libavcodec.so=59-64  libavdevice.so=59-64  libavfilter.so=8-64  libavformat.so=59-64  libavutil.so=57-64  libpostproc.so=56-64
                  libswresample.so=4-64  libswscale.so=6-64
Depends On      : alsa-lib  aom  bzip2  fontconfig  fribidi  gmp  gnutls  gsm  jack  lame  libass.so=9-64  libavc1394  libbluray.so=2-64  libdav1d.so=6-64
                  libdrm  libfreetype.so=6-64  libiec61883  libmfx  libmodplug  libpulse  librav1e.so=0-64  libraw1394  librsvg-2.so=2-64  libsoxr  libssh
                  libtheora  libva.so=2-64  libva-drm.so=2-64  libva-x11.so=2-64  libvdpau  libvidstab.so=1.1-64  libvorbisenc.so=2-64  libvorbis.so=0-64
                  libvpx.so=7-64  libwebp  libx11  libx264.so=164-64  libx265.so=199-64  libxcb  libxext  libxml2  libxv  libxvidcore.so=4-64
                  libzimg.so=2-64  opencore-amr  openjpeg2  opus  sdl2  speex  srt  svt-av1  v4l-utils  vmaf  xz  zlib  vulkan-icd-loader  glslang
                  spirv-tools
Optional Deps   : avisynthplus: AviSynthPlus support [installed]
                  intel-media-sdk: Intel QuickSync support
                  ladspa: LADSPA filters [installed]
                  nvidia-utils: Nvidia NVDEC/NVENC support [installed]
Required By     : alvr  ani-cli  chromaprint  chromium  droidcam  electron12  electron13  electron17  ffmpegthumbs  firefox  flowblade  gst-libav
                  kfilemetadata  motion  mpv  obs-studio  opencv  qt5-webengine
Optional For    : alsa-plugins  gegl  libde265  mlt6
Conflicts With  : ffmpeg
Replaces        : None
Installed Size  : 35.38 MiB
Packager        : Unknown Packager
Build Date      : Tue 07 Jun 2022 12:20:23 PM +03
Install Date    : Tue 07 Jun 2022 12:30:02 PM +03
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

Name            : electron17
Version         : 17.4.3-1
Description     : Build cross platform desktop apps with web technologies
Architecture    : x86_64
URL             : https://electronjs.org/
Licenses        : MIT  custom
Groups          : None
Provides        : None
Depends On      : c-ares  ffmpeg  gtk3  libevent  libxslt  minizip  nss  re2  snappy
Optional Deps   : kde-cli-tools: file deletion support (kioclient5) [installed]
                  libappindicator-gtk3: StatusNotifierItem support [installed]
                  pipewire: WebRTC desktop sharing under Wayland [installed]
                  trash-cli: file deletion support (trash-put)
                  xdg-utils: open URLs with desktop's default (xdg-email, xdg-open) [installed]
Required By     : code
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 182.94 MiB
Packager        : Nicola Squartini <tensor5@gmail.com>
Build Date      : Sat 07 May 2022 12:28:00 PM +03
Install Date    : Fri 13 May 2022 02:44:49 PM +03
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : svt-av1
Version         : 1.1.0-1
Description     : Scalable Video Technology AV1 encoder and decoder
Architecture    : x86_64
URL             : https://gitlab.com/AOMediaCodec/SVT-AV1
Licenses        : BSD  custom: Alliance for Open Media Patent License 1.0
Groups          : None
Provides        : None
Depends On      : glibc
Optional Deps   : None
Required By     : ffmpeg-vulkan  ffmpeg4.4  libavif
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 7.10 MiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Sun 12 Jun 2022 11:42:56 AM +03
Install Date    : Wed 29 Jun 2022 02:43:22 PM +03
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

no, it doesn’t, I tried reinstalling electron, code, dependencies, etc. Didn’t fix it.

If you install custom/unsupported packages, then it’s your job to maintain them, ie. rebuild.

In 99% cases of “cannot open shared object file” it’s some AUR/custom package not being rebuilt.

1 Like

Is there a reason you use the vulkan version of ffmpeg from the AUR instead of ffmpeg from the repository?

Most likely ffmpeg-vulkan it was built against the previous version of svt-av1. Rebuilt it as @zbe suggested…

1 Like

vscodium runs fine on pi4 for me. Please try it if you haven’t

yay -S vscodium-bin
Version: 1.68.1

Commit: 30d9c6cd9483b2cc586687151bcbcd635f373630
Date: 2022-06-16T00:17:59.642Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux arm64 5.15.48-1-MANJARO-ARM-RPI

Now that I think about it. I did install ffmpeg with yay not too long ago, for a project. I will try to remove it and then install it using the official repository.

Yep, rebuilding it/reinstalling it from an official repository worked!
Thanks to @moson @zbe <3

As a thank you, you can at least give credit where credit is due - not by marking your own post as a solution.

EDIT: :+1: @maycne.sonahoz

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.