When I start electron apps I run into an error with a shared library from dav1d. Does anyone else run into this issue? ❯ electron /usr/lib/electron25/electron: error while loading shared libraries: libdav1d.so.6: cannot open shared object file: No such file or directory I get the error when starting an electron app itself (e.g. obsidian) or the electron command. Electron seems to link to an old version of the library: ❯ pacman -F libdav1d.so.6 ❯ pacman -F libdav1d.so.7 extra/dav1d 1.3.0-1 [installed] usr/lib/libdav1d.so.7 I tried reinstalling obsidian, electron(25), and dav1d. So my suspicion is that electron was not rebuilt for the new dav1d version. Possibly causing a problem for all election versions. Is there another package I should try reinstalling? Christian
On Sat, 7 Oct 2023 19:12:31 +0200 Christian <syphdias+archlinuxml@gmail.com> wrote:
So my suspicion is that electron was not rebuilt for the new dav1d version.
Except it was. https://gitlab.archlinux.org/archlinux/packaging/packages/electron25/-/commi... What version do you have? You should always include complete version information when asking questions like this. If you have the latest version, run lddtree from the pax-utils package on the electron binary and see exactly what's linked to the old version.
Okay, I found the issue. Thank you!
Sounds like you did a partial upgrade, it was rebuilt -
So the issue persisted after `pacman -Syu` and a reboot (and I have not held packages), so I did have the latest version of electron25 (25.9.0-2) – sorry for omitting that earlier. I did that even before sending to the mailing list. ldd was unhelpful but lddtree was immensely helpful. Thank you for the hint! (Also not using it on the launch script /usr/bin/electron25 but the actual binary /usr/lib/electron25/electron helps…) It was in fact not a partial upgrade but another unsupported case that I did not consider. You can probably already small the three letters coming. lddtree helped me identify it. So looking at output of lddtree ❯ lddtree /usr/lib/electron25/electron | grep -5 libdav1d libavcodec.so.60 => /usr/lib/libavcodec.so.60 libswresample.so.4 => /usr/lib/libswresample.so.4 libsoxr.so.0 => /usr/lib/libsoxr.so.0 libgomp.so.1 => /usr/lib/libgomp.so.1 libvpx.so.8 => /usr/lib/libvpx.so.8 libdav1d.so.6 => None libopencore-amrwb.so.0 => /usr/lib/libopencore-amrwb.so.0 librsvg-2.so.2 => /usr/lib/librsvg-2.so.2 libaom.so.3 => /usr/lib/libaom.so.3 libgsm.so.1 => /usr/lib/libgsm.so.1 libjxl.so.0.8 => /usr/lib/libjxl.so.0.8 -- libva-x11.so.2 => /usr/lib/libva-x11.so.2 libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 libxcb-dri3.so.0 => /usr/lib/libxcb-dri3.so.0 libvdpau.so.1 => /usr/lib/libvdpau.so.1 libOpenCL.so.1 => /usr/lib/libOpenCL.so.1 libdav1d.so.7 => /usr/lib/libdav1d.so.7 libX11.so.6 => /usr/lib/libX11.so.6 libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 libXdamage.so.1 => /usr/lib/libXdamage.so.1 libXext.so.6 => /usr/lib/libXext.so.6 libXfixes.so.3 => /usr/lib/libXfixes.so.3 Note that the libdav1d shows up two times: The correct version libdav1d.so.7 in the "root" and the old version libdav1d.so.6 used by libavcodec.so.60. ❯ pacman -F libavcodec.so.60 extra/ffmpeg 2:6.0-12 usr/lib/libavcodec.so.60 So not an electron issue but a ffmpeg issue, but… ❯ pacman -Qi ffmpeg |grep -e Name -e Prov Name : ffmpeg-obs Provides : ffmpeg=6.0.r12.ga6dc929 libavcodec.so=60-64 libavdevice.so=60-64 libavfilter.so=9-64 libavformat.so=60-64 libavutil.so=58-64 libpostproc.so=57-64 libswresample.so=4-64 libswscale.so=7-64 Since I installed an AUR package that brings its own AUR ffmpeg [1] that wasn't rebuilt yet, well, I ended up with a broken ffmpeg. I am actually surprised that only electron broke and not more media related things. I guess they only load libavcodec when they need it and my graphics card does not support it. TL;DR: The pain of AUR. Thanks for the help! Christian [1]: https://aur.archlinux.org/packages/ffmpeg-obs
Sounds like you did a partial upgrade, it was rebuilt - https://gitlab.archlinux.org/archlinux/packaging/packages/electron25/-/commi... pacman -Q electron25 will probably give you 25.9.0-1 instead of -2. Martin On Sun, Oct 8, 2023 at 12:38 AM Christian <syphdias+archlinuxml@gmail.com> wrote:
When I start electron apps I run into an error with a shared library from dav1d. Does anyone else run into this issue?
❯ electron /usr/lib/electron25/electron: error while loading shared libraries: libdav1d.so.6: cannot open shared object file: No such file or directory
I get the error when starting an electron app itself (e.g. obsidian) or the electron command.
Electron seems to link to an old version of the library: ❯ pacman -F libdav1d.so.6 ❯ pacman -F libdav1d.so.7 extra/dav1d 1.3.0-1 [installed] usr/lib/libdav1d.so.7
I tried reinstalling obsidian, electron(25), and dav1d. So my suspicion is that electron was not rebuilt for the new dav1d version. Possibly causing a problem for all election versions. Is there another package I should try reinstalling?
Christian
participants (3)
-
Christian
-
Doug Newgard
-
Martin Rys