New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken ffmpeg delegate in AppImage #6890
Comments
That looks like an issue with the ffmpeg install. Type |
I encountered the same problem on Kubuntu 23.10 using the ImageMagick AppImage. |
That suggests an issue with the APPImage environment since all it does is call the
If that fails, unfortunately we cannot help further. |
Setting $ export LD_PRELOAD=/lib/x86_64-linux-gnu/libgobject-2.0.so.0
$ ./magick identify apng:6.png
basename: symbol lookup error: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_uri_ref
/tmp/.mount_magickU9H0yN/AppRun: line 25: /tmp/.mount_magickU9H0yN/usr/bin/: Is a directory
/tmp/.mount_magickU9H0yN/AppRun: line 25: exec: /tmp/.mount_magickU9H0yN/usr/bin/: cannot execute: Is a directory Is it possible to see the exact command that ImageMagick is calling ffmpeg with, so I can try to reproduce and make a test case to send upstream to ffmpeg (or more likely, Ubuntu's packagers)? Edit: actually it changed the error message for |
Try this command:
|
Thanks, that gives me the command! Definitely looks like an AppImage issue, the same command works perfectly outside of it: $ ./magick convert -verbose apng:6.png null:
'ffmpeg' -nostdin -loglevel error -i '/tmp/magick-36xwVmHSL4qRZxVpOJuUnzCJjVkTOmu3' -an -f rawvideo -y -pix_fmt rgba -vcodec webp -lossless 1 '/tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0'
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_uri_ref
convert: no images defined `null:' @ error/convert.c/ConvertImageCommand/3359.
$ file /tmp/magick-36xwVmHSL4qRZxVpOJuUnzCJjVkTOmu3
/tmp/magick-36xwVmHSL4qRZxVpOJuUnzCJjVkTOmu3: symbolic link to /root/6.png
$ file /tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0
/tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0: cannot open `/tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0' (No such file or directory)
$ 'ffmpeg' -nostdin -loglevel error -i '/tmp/magick-36xwVmHSL4qRZxVpOJuUnzCJjVkTOmu3' -an -f rawvideo -y -pix_fmt rgba -vcodec webp -lossless 1 '/tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0'
$ file /tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0
/tmp/magick-rZNHb2geLUvvprDv_PvgKs3SV_ZKQfT0: RIFF (little-endian) data, Web/P image |
ImageMagick version
AppImage (7.1.1-19)
Operating system
Linux
Operating system, version and so on
Ubuntu 22.04.3 LTS
Description
FFmpeg is not included in the AppImage. When I install FFmpeg in the host system, there are issues with gobject which don't appear when calling ffmpeg normally (though I don't know precisely what call is being made to ffmpeg, and setting
MAGICK_DEBUG=all
does not appear to log that)Perhaps of note, I have
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
installed, and it does contain the symbol mentioned:Steps to Reproduce
animated.png
curl -O https://imagemagick.org/archive/binaries/magick
chmod +x ./magick
./magick identify apng:animated.png
sh: 1: ffmpeg: not found
apt install ffmpeg
./magick identify apng:animated.png
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_uri_ref
Images
The text was updated successfully, but these errors were encountered: