Some problem with libvapoursynth file too short in kde plasma 6

Hi everybody, pleased to meet you.

I have some problem with some library (or something) called libvapoursynth.
First, I cannot open spectacle to screen capture. It shows warning :

spectacle: error while loading shared libraries: /usr/lib/libvapoursynth-script.so.0: file too short

Second, I cannot open telegram Desktop. It shows same warning :

telegram-desktop: error while loading shared libraries: /usr/lib/libvapoursynth-script.so.0: file too short

and so many application I don’t remember.

I’ve tried to reinstall vapoursynth package but it’s no use. And I can’t find any solution from internet.
Please help me. Thanks in advance!

What version of vapoursynth do you have.

here’s the result of pacman -Qi vapoursynth :

Name : vapoursynth
Version : R66-1
Description : None
Architecture : None
URL : None
Licenses : None
Groups : None
Provides : None
Depends On : None
Optional Deps : None
Required By : ffmpeg mpv
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 0,00 B
Packager : None
Build Date : Kam 01 Jan 1970 07:00:00
Install Date : Kam 01 Jan 1970 07:00:00
Install Reason : Explicitly installed
Install Script : No
Validated By : Unknown

Ok, so we have the same version. From what I am able to gather. Spectacle does not depend on the vapoursynth package. It is required by both mpv and ffmpeg, My guess on the dependency chain is spectacle depnds on → kpipewire → ffmpeg → vapoursynth. Maybe one of those other packages is actually having the error. Is the system up to date? Have you tried updating your mirrors to make sure you current mirror hasn’t gotten out of sync?

yes, I’ve just do yay so I’m sure my system is up to date. And about updating mirror, what should I do? I do reflector-simple and it’s no use.

What do you mean it is of no use? Does it fail?

yes I still have the same problem

What is the error message when it fails?

same as above, like this:

spectacle: error while loading shared libraries: /usr/lib/libvapoursynth-script.so.0: file too short

I meant the error message for reflector? I was asking if that was failing?

no, the reflector not fail. it prompt me to save configuration file. So I save it, and then I do yay, there’s nothing to update. And I do spectacle again, it’s the same.

I wonder if we try a clean removable and then reinstall will that fix it. Try doing sudo pacman -Rdd vapoursynth and then sudo pacman -S vapoursynth.

here is the message when I sudo pacman -Rdd vapoursynth :
(1/1) removing vapoursynth [---------------------------------------] 100%
ldconfig: File /usr/lib/libbsd.so.0 is empty, not checked.
ldconfig: File /usr/lib/libvapoursynth.so is empty, not checked.
ldconfig: File /usr/lib/libvapoursynth-script.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libvapoursynth-script.so is empty, not checked.
ldconfig: File /usr/lib/libbsd.so.0.12.2 is empty, not checked.
ldconfig: File /usr/lib/libbsd.so is empty, not checked.
ldconfig: File /usr/lib/libvapoursynth-script.so.0 is empty, not checked.

and got this message when sudo pacman -S vapoursynth :
resolving dependencies…
looking for conflicting packages…

Package (1) New Version Net Change

extra/vapoursynth R66-1 3,27 MiB

Total Installed Size: 3,27 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [---------------------------------------] 100%
(1/1) checking package integrity [---------------------------------------] 100%
(1/1) loading package files [---------------------------------------] 100%
(1/1) checking for file conflicts [---------------------------------------] 100%
error: failed to commit transaction (conflicting files)
vapoursynth: /usr/bin/vspipe exists in filesystem
vapoursynth: /usr/include/vapoursynth/VSConstants4.h exists in filesystem
vapoursynth: /usr/include/vapoursynth/VSHelper.h exists in filesystem
vapoursynth: /usr/include/vapoursynth/VSHelper4.h exists in filesystem
vapoursynth: /usr/include/vapoursynth/VSScript.h exists in filesystem
vapoursynth: /usr/include/vapoursynth/VSScript4.h exists in filesystem
vapoursynth: /usr/include/vapoursynth/VapourSynth.h exists in filesystem
vapoursynth: /usr/include/vapoursynth/VapourSynth4.h exists in filesystem
vapoursynth: /usr/lib/libvapoursynth-script.so exists in filesystem
vapoursynth: /usr/lib/libvapoursynth-script.so.0 exists in filesystem
vapoursynth: /usr/lib/libvapoursynth-script.so.0.0.0 exists in filesystem
vapoursynth: /usr/lib/libvapoursynth.so exists in filesystem
vapoursynth: /usr/lib/pkgconfig/vapoursynth-script.pc exists in filesystem
vapoursynth: /usr/lib/pkgconfig/vapoursynth.pc exists in filesystem
vapoursynth: /usr/lib/python3.11/site-packages/vapoursynth.so exists in filesystem
vapoursynth: /usr/share/licenses/vapoursynth/ter-116n.ofl.txt exists in filesystem
vapoursynth: /usr/share/mime/packages/vapoursynth.xml exists in filesystem
Errors occurred, no packages were upgraded.

There seems to have been some kind of corruption file. There seem to be left over files which shouldn’t normally happen on functioning system. Let me look into it some more. If I can’t find anything, we will have to manually remove those leftover files.

yes please, thanks in advance

First lets check that the conflicting files are not being provided by another package with pacman -Qo /usr/lib/libvapoursynth-script.so.0

here’s the result

error: No package owns /usr/lib/libvapoursynth-script.so.0

Alright should be safe to remove them then. I believe we can simply overwrite the files without removing them with sudo pacman -S --overwrite "*" vapoursynth

alright it works, now thanks. At least the app has opened, but I got some warnings like these :

kpipewire_record_logging: VAAPI: Failed to initialize display
kpipewire_record_logging: DRM device not found
kpipewire_record_logging: VAAPI: Failed to initialize display
kpipewire_record_logging: DRM device not found
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/57-dejavu-sans-mono.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/57-dejavu-sans.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/57-dejavu-serif.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/58-dejavu-lgc-sans.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/58-dejavu-lgc-serif.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-serif.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans-mono.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-serif.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/57-dejavu-sans-mono.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/57-dejavu-sans.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/57-dejavu-serif.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/58-dejavu-lgc-sans-mono.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/58-dejavu-lgc-sans.conf", line 1: no element found
Fontconfig error: "/usr/share/fontconfig/conf.avail/58-dejavu-lgc-serif.conf", line 1: no element found
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"

Seems like some missing font stuff. Did the system crash during an update or something? Seems like a lot of missing or corrupted stuff.