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
convert/ mogrify aborts (SIGABRT or segfault) when resizing an image. #1134
Comments
In ImageMagick, the correct syntax is to read the input first. IM 6 is forgiving, but IM 7 is not. For me on Mac OSX Sierra and ImageMagick 6.9.9-45 and ImageMagick 7.0.7-33, the following two commands work fine. IM6 IM7 What delegates do you have when you run either convert -version or magick -version Does it contain JPG and PNG? |
As I noted, both variants have the problem at my system (and usually I also read the input first, but upon the failure I also tested the other variants).
Yes, it cointains |
.. e.g. on https://aur.archlinux.org/packages/tftpgui/#news, comment from 2017-12-27, you can see that also others have that problem. |
Does it fail if you disable OpenMP? One other guess is whether you had pkg-config when you did your install of ImageMagick? Otherwise, I will bow out and leave it to the IM developers. |
Yes, it fails also with |
Let's get a stack trace. Post the output from:
|
This mentiones OpenCL and HDRI. So I have recompiled ImageMagick without OpenCL or without HDRI, and the problem seems to have to do with OpenCL: Having ImageMagick compiled with
So the problem seems to be related to OpenCL. (And, some convenience: |
Disable OpenCL until our OpenCL developer has a chance to debug the code. |
There seems to be another issue somewhere else: When I do my customised build with many options, but with
The customised many-options build has been done with:
Running Whereas the following build (Arch/ Artix Linux, but with
|
These tests pass on our Fedora 28, Centos 7.2, and Windows systems, otherwise the release would be withheld. Can you try ImageMagick 7.0.7-34 Beta? If that fails, the problem may be specific to your OS, or compiler chain. We do not have access to Artix Linux so we cannot debug ourselves. |
ImageMagick 7.0.7-34 is now in Arch Linux (and Artix Linux). I compiled from https://www.imagemagick.org/download/ImageMagick-7.0.7-34.tar.xz. Problems persist. |
Thanks for the problem report. We have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow. |
With ImageMagick 7.0.7.37 still the Abort-issue when resizing an image. Seems to be related to OpenCL-libraries? |
Can you add another back trace so we can see where this is happening? |
ImageMagick version:
Information about the OpenCL-library on my system (Arch/ Artix Linux):
As always, building ImageMagick without OpenCL produces working |
Probably in |
OK. It has to do with |
ImageMagick's
convert
andmogrify
does segfault or receiveSIGABRT
when resizing an image with-resize
. (I have noticed that over the last months already.)Applies to: At least ImageMagick stable release 7.0.7.33, both
(Artix Linux is Arch Linux without systemd, but OpenRC or Runit.)
Way to reproduce:
convert -resize 16x16 wizard.png wizard.jpg
orconvert wizard.png -resize 16x16 wizard.jpg
(both will fail).In the terminal,
Aborted
will be printed out, andconvert
exits with exitcode 134.The converted image has been written to disk, though.
For this bug, it does not really matter which size is passed to
-resizè
. If no-resize
is specified, conversion works fine. Also when runningmogrify -resize <size>
on the non-resized image does lead to this. Applies also to other images.The
strace
output ofstrace convert wizard.png -resize 16x16 wizard.jpg
is pasted there: http://ix.io/1aOh, and the last lines are:Some system information:
ImageMagick from Artix Linux has been compiled using:
where
arch-fonts.diff
I have uploaded to http://ix.io/1aP1.ImageMagick locally compiled, it was compiled using:
uname -r
:4.15.6-pf
env
:The text was updated successfully, but these errors were encountered: