FS#47864 - [imagemagick] OpenCL related crashes

Attached to Project: Arch Linux
Opened by gambyte (gambyte) - Friday, 22 January 2016, 19:31 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 16 April 2018, 23:07 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Laurent Carlier (lordheavy)
Antonio Rojas (arojas)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: Whenever run the program crashes. Both when invoked directly or through another program.


Additional info:
Others report the issue to upstream here: http://www.imagemagick.org/discourse-server/viewtopic.php?t=27846
Both users are on Arch. They have AMD chips but I have Intel, so I don't think it is hardware as they suggest.
* package version(s) imagemagick 6.9.3.0-1


Steps to reproduce:
I first encountered when within emacs:
M-x eww RET xkcd.com
output:
LLVM ERROR: Cannot select: 0x37bac38: v2i32,ch = REGISTER_LOAD 0x3f41950, 0x4b9d260, 0x24b40c8, 0x3ddcb88 [ORD=58] [ID=874]
0x4b9d260: i32 = srl 0x2dcaf60, 0x3f58dc0 [ORD=58] [ID=870]
0x2dcaf60: i32 = add 0x3488378, 0x34886f0 [ORD=57] [ID=866]
0x3488378: i32 = srl 0x3f41df0, 0x4b4ae38 [ORD=57] [ID=861]
0x3f41df0: i32 = add 0x3f41ba0, 0x4b9d828 [ORD=43] [ID=856]
0x3f41ba0: i32 = and 0x3ddcf00, 0x4b9d700 [ORD=42] [ID=852]
0x3ddcf00: i32 = shl 0x3f42608, 0x3ddc938 [ORD=41] [ID=848]
0x3f42608: i32 = select_cc 0x4b4b1b0, 0x4b74000, 0x4b9d4b0, 0x24b47b8, 0x2514298 [ORD=38] [ID=843]
0x4b4b1b0: i32 = srl 0x24b47b8, 0x4b75e98 [ORD=28] [ID=823]
0x24b47b8: i32 = bitcast 0x2dcb088 [ORD=5] [ID=820]

0x4b75e98: i32 = Constant<23> [ID=14]
0x4b74000: i32 = Constant<0> [ID=18]
0x4b9d4b0: i32 = bitcast 0x2513a80 [ORD=33] [ID=839]
0x2513a80: f32 = fadd 0x2dca870, 0x4b4b778 [ORD=32] [ID=835]


0x24b47b8: i32 = bitcast 0x2dcb088 [ORD=5] [ID=820]
0x2dcb088: f32 = fadd 0x2dca620, 0x2dca620 [ORD=4] [ID=817]


0x3ddc938: i32 = Constant<1> [ID=21]
0x4b9d700: i32 = Constant<65536> [ID=22]
0x4b9d828: i32 = and 0x3f42608, 0x3f423b8 [ORD=40] [ID=847]
0x3f42608: i32 = select_cc 0x4b4b1b0, 0x4b74000, 0x4b9d4b0, 0x24b47b8, 0x2514298 [ORD=38] [ID=843]
0x4b4b1b0: i32 = srl 0x24b47b8, 0x4b75e98 [ORD=28] [ID=823]
0x24b47b8: i32 = bitcast 0x2dcb088 [ORD=5] [ID=820]
0x2dcb088: f32 = fadd 0x2dca620, 0x2dca620 [ORD=4] [ID=817]


0x4b75e98: i32 = Constant<23> [ID=14]
0x4b74000: i32 = Constant<0> [ID=18]
0x4b9d4b0: i32 = bitcast 0x2513a80 [ORD=33] [ID=839]
0x2513a80: f32 = fadd 0x2dca870, 0x4b4b778 [ORD=32] [ID=835]
0x2dca870: f32 = bitcast 0x2dca748 [ORD=31] [ID=828]

0x4b4b778: f32 = ConstantFP<-1.000000e+00> [ID=7]
0x24b47b8: i32 = bitcast 0x2dcb088 [ORD=5] [ID=820]
0x2dcb088: f32 = fadd 0x2dca620, 0x2dca620 [ORD=4] [ID=817]
0x2dca620: f32,ch = CopyFromReg 0x2ef9000, 0x4b9d5d8 [ORD=4] [ID=556]

0x2dca620: f32,ch = CopyFromReg 0x2ef9000, 0x4b9d5d8 [ORD=4] [ID=556]

0x3f423b8: i32 = Constant<8323072> [ID=20]
0x4b4ae38: i32 = Constant<13> [ID=36]
0x34886f0: i32 = Constant<8> [ID=42]
0x3f58dc0: i32 = Constant<2> [ID=329]
0x24b40c8: i32 = TargetConstant<0> [ID=330]
0x3ddcb88: i32 = undef [ID=25]
In function: AddNoise



A similar error is returned when running:
convert possible_undiscovered_planets.png -resize 128x128\> possible_undiscovered_planets-128.png

where possible_undiscovered_planets.png is from http://imgs.xkcd.com/comics/possible_undiscovered_planets.png
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 16 April 2018, 23:07 GMT
Reason for closing:  Works for me
Additional comments about closing:  Should work with the current packages. If you get an error, remove $HOME/.cache/ImageMagick and rerun the convert command.
Comment by michael (michis) - Sunday, 31 January 2016, 23:13 GMT
Not reproducible here. The given example

convert possible_undiscovered_planets.png -resize 128x128 possible_undiscovered_planets-128.png

works as expected with imagemagick-6.9.3.0-1 on [testing] system.

Comment by brian downing (bsd) - Wednesday, 10 February 2016, 10:30 GMT
I have same AMD, NVidia graphics, imagemagick-6.9.3.0-1
convert -resize
spews "NVIDIA: no NVIDIA devices found"

Web search results
Old imagemagick OpenCL bug (says closed, but...)
http://www.imagemagick.org/discourse-server/viewtopic.php?t=24603

Can they add output from
convert -list configure
and
convert -debug all possible_undiscovered_planets.png -resize 128x128 possible_undiscovered_planets-128.png

Comment by gambyte (gambyte) - Thursday, 11 February 2016, 00:50 GMT
convert -list configure:
Path: /usr/lib/ImageMagick-6.9.3//config-Q16HDRI/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdrm -I/usr/include/libpng16 -pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdrm -I/usr/include/libpng16 -pthread -I/usr/include/OpenEXR -I/usr/include/libdrm -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/openjpeg-2.1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -mtune=x86-64 -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /usr/lib/ImageMagick-6.9.3/modules-Q16HDRI/coders
CONFIGURE ./configure '--prefix=/usr' '--sysconfdir=/etc' '--with-modules' '--enable-hdri' '--with-wmf' '--with-openexr' '--with-xml' '--with-webp' '--with-gslib' '--with-gs-font-dir=/usr/share/fonts/Type1' '--with-perl' '--with-perl-options=INSTALLDIRS=vendor' '--with-lqr' '--with-rsvg' '--enable-opencl' '--with-openjp2' '--without-gvc' '--without-djvu' '--without-autotrace' '--without-jbig' '--without-fpx' '--without-dps' '--without-fftw' '--with-gcc-arch=x86-64' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong'
CONFIGURE_PATH /etc/ImageMagick-6/
COPYRIGHT Copyright (C) 1999-2016 ImageMagick Studio LLC
CPPFLAGS -I/usr/include/ImageMagick-6
CXX g++
CXXFLAGS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib mpeg fontconfig freetype gslib jng jpeg lcms lqr lzma openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' --disable-deprecated --with-quantum-depth=16 --with-jemalloc=no --with-umem=no --with-autotrace=no --with-dps=no --with-fftw=no --with-fpx=no --with-djvu=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/Type1 --with-gvc=no
DOCUMENTATION_PATH /usr/share/doc/ImageMagick-6
EXEC-PREFIX /usr
EXECUTABLE_PATH /usr/bin
FEATURES DPC HDRI Cipher OpenCL OpenMP Modules
FILTER_PATH /usr/lib/ImageMagick-6.9.3/modules-Q16HDRI/filters
GIT_REVISION 10443
HOST x86_64-unknown-linux-gnu
INCLUDE_PATH /usr/include/ImageMagick-6
LDFLAGS -L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro
LIB_VERSION 0x693
LIB_VERSION_NUMBER 6,9,3,0
LIBRARY_PATH /usr/lib/ImageMagick-6.9.3
LIBS -llcms2 -lfreetype -llqr-1 -lglib-2.0 -lfontconfig -lfreetype -lXext -lX11 -lXt -llzma -lbz2 -lz -lltdl -lm -lgomp -lm
NAME ImageMagick
PCFLAGS -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /usr
QuantumDepth 16
RELEASE_DATE 2016-01-15
SHARE_PATH /usr/share/ImageMagick-6
SHAREARCH_PATH /usr/lib/ImageMagick-6.9.3/config-Q16HDRI
TARGET_CPU x86_64
TARGET_OS linux-gnu
TARGET_VENDOR unknown
VERSION 6.9.3
WEBSITE http://www.imagemagick.org

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
FEATURES OpenMP
NAME ImageMagick
QuantumDepth 16



convert -debug all possible_undiscovered_planets.png -resize 128x128 possible_undiscovered_planets-128.png

2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: utility.c/ExpandFilenames/940/Configure
Command line: convert {-debug} {all} {possible_undiscovered_planets.png} {-resize} {128x128} {possible_undiscovered_planets-128.png}
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.9.3//config-Q16HDRI/coder.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/graham/.config/ImageMagick/coder.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/graham/.magick/coder.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: coder.c/LoadCoderCache/823/Configure
Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Module convert[14882]: module.c/OpenModule/1286/Module
Searching for module "PNG" using filename "png.la"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Module convert[14882]: module.c/GetMagickModulePath/556/Module
Searching for coder module file "png.la" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Module convert[14882]: module.c/OpenModule/1295/Module
Opening module at path "/usr/lib/ImageMagick-6.9.3//modules-Q16HDRI/coders/png.la"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Module convert[14882]: module.c/OpenModule/1322/Module
Method "RegisterPNGImage" in module "PNG" at address 0x7f92ebad9110
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Module convert[14882]: module.c/OpenModule/1336/Module
Method "UnregisterPNGImage" in module "PNG" at address 0x7f92ebad96e0
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Policy convert[14882]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="possible_undiscovered_planets.png" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Blob convert[14882]: blob.c/OpenBlob/2594/Blob
read 3 magic header bytes
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Map: 168KB/165KiB/7.4602GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/RelinquishMagickResource/1004/Resource
Map: 168KB/0B/7.4602GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Cache convert[14882]: cache.c/DestroyPixelCache/996/Cache
destroy
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.9.3//config-Q16HDRI/magic.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/graham/.config/ImageMagick/magic.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: configure.c/GetConfigureOptions/679/Configure
Searching for configure file: "/home/graham/.magick/magic.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: magic.c/LoadMagicCache/789/Configure
Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Policy convert[14882]: policy.c/IsRightsAuthorized/574/Policy
Domain: Coder; rights=Read; pattern="PNG" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadPNGImage/3907/Coder
Enter ReadPNGImage()
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Policy convert[14882]: policy.c/IsRightsAuthorized/574/Policy
Domain: Path; rights=Read; pattern="possible_undiscovered_planets.png" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Blob convert[14882]: blob.c/OpenBlob/2594/Blob
read 3 magic header bytes
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Map: 168KB/165KiB/7.4602GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2024/Coder
Enter ReadOnePNGImage()
IM version = 6.9.3-0
Libpng version = 1.6.20
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2034/Coder
running with 1.6.21
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2037/Coder
Zlib version = 1.2.8
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2067/Coder
Before reading:
image->matte=0
image->rendering_intent=2
image->colorspace=13
image->gamma=0.454545
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/MagickPNGWarningHandler/1653/Coder
libpng-1.6.20 warning: iCCP: known incorrect sRGB profile
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/ImageMagick-6/locale.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/lib/ImageMagick-6.9.3//config-Q16HDRI/locale.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/etc/ImageMagick-6/locale.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/locale.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/home/graham/.config/ImageMagick/locale.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/home/graham/.magick/locale.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: locale.c/LoadLocaleCache/1176/Configure
Loading locale configure file "/usr/share/ImageMagick-6/locale.xml" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/ImageMagick-6/english.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/lib/ImageMagick-6.9.3//config-Q16HDRI/english.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/etc/ImageMagick-6/english.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/english.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/home/graham/.config/ImageMagick/english.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Locale convert[14882]: locale.c/GetLocaleOptions/825/Locale
Searching for locale file: "/home/graham/.magick/english.xml"
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Configure convert[14882]: locale.c/LoadLocaleCache/1176/Configure
Loading locale configure file "/usr/share/ImageMagick-6/english.xml" ...
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Exception convert[14882]: png.c/MagickPNGWarningHandler/1656/Exception
iCCP: known incorrect sRGB profile `possible_undiscovered_planets.png'
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/read_vpag_chunk_callback/1796/Coder
read_vpag_chunk: found iTXt chunk
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2352/Coder
PNG width: 740, height: 697
PNG color_type: 2, bit_depth: 8
PNG compression_method: 0
PNG interlace_method: 0, filter_method: 0
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2368/Coder
Found PNG iCCP chunk.
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2376/Coder
Found PNG gAMA chunk.
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2384/Coder
Found PNG cHRM chunk.
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2436/Coder
Reading PNG iCCP chunk.
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2470/Coder
Got a 3144-byte ICC profile (potentially sRGB)
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2477/Coder
with crc=f29e526d
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2484/Coder
It is sRGB with rendering intent = Relative Intent
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2553/Coder
Reading PNG gAMA chunk: gamma: 0.454550
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/2671/Coder
Reading PNG pHYs chunk: xres: 3150, yres: 3150, units: 1.
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/3067/Coder
Reading PNG IDAT chunk(s)
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Memory: 2.22KB/2.17KiB/3.7301GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/3081/Coder
Converting PNG pixels to pixel packets
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Width: 740B/740B/107.4MB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Height: 697B/697B/107.4MB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Area: 8.252MB/8.252MB/8.0103GB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/AcquireMagickResource/312/Resource
Memory: 8.252MB/7.872MiB/3.7301GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Cache convert[14882]: cache.c/OpenPixelCache/3637/Cache
open possible_undiscovered_planets.png[0] (Heap Memory, 740x697 7.87MiB)
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/3163/Coder
Looking for cheap transparent pixel
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/3400/Coder
No transparent pixel was found
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/3557/Coder
image->colorspace=13
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/RelinquishMagickResource/1004/Resource
Memory: 2.22KB/7.87MiB/3.7301GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadOnePNGImage/3860/Coder
exit ReadOnePNGImage()
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Resource convert[14882]: resource.c/RelinquishMagickResource/1004/Resource
Map: 168KB/0B/7.4602GiB
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadPNGImage/3983/Coder
page.w: 0, page.h: 0,page.x: 0, page.y: 0.
2016-02-10T19:45:30-05:00 0:00.000 0.000u 6.9.3 Coder convert[14882]: png.c/ReadPNGImage/3989/Coder
exit ReadPNGImage()
LLVM ERROR: Cannot select: 0x2507c08: v2i32,ch = REGISTER_LOAD 0x2726e10, 0x271edc0, 0x2721f08, 0x24eaab8 [ORD=58] [ID=874]
0x271edc0: i32 = srl 0x231ca50, 0x24e7bc0 [ORD=58] [ID=870]
0x231ca50: i32 = add 0x272b1b8, 0x272b530 [ORD=57] [ID=866]
0x272b1b8: i32 = srl 0x27272b0, 0x2314438 [ORD=57] [ID=861]
0x27272b0: i32 = add 0x2727060, 0x271f388 [ORD=43] [ID=856]
0x2727060: i32 = and 0x24eae30, 0x271f260 [ORD=42] [ID=852]
0x24eae30: i32 = shl 0x2727ac8, 0x24ea868 [ORD=41] [ID=848]
0x2727ac8: i32 = select_cc 0x23147b0, 0x24e4df0, 0x271f010, 0x27225f8, 0x272aae8 [ORD=38] [ID=843]
0x23147b0: i32 = srl 0x27225f8, 0x231d938 [ORD=28] [ID=823]
0x27225f8: i32 = bitcast 0x231cb78 [ORD=5] [ID=820]

0x231d938: i32 = Constant<23> [ID=14]
0x24e4df0: i32 = Constant<0> [ID=18]
0x271f010: i32 = bitcast 0x272a2d0 [ORD=33] [ID=839]
0x272a2d0: f32 = fadd 0x231c360, 0x2314d78 [ORD=32] [ID=835]


0x27225f8: i32 = bitcast 0x231cb78 [ORD=5] [ID=820]
0x231cb78: f32 = fadd 0x231c110, 0x231c110 [ORD=4] [ID=817]


0x24ea868: i32 = Constant<1> [ID=21]
0x271f260: i32 = Constant<65536> [ID=22]
0x271f388: i32 = and 0x2727ac8, 0x2727878 [ORD=40] [ID=847]
0x2727ac8: i32 = select_cc 0x23147b0, 0x24e4df0, 0x271f010, 0x27225f8, 0x272aae8 [ORD=38] [ID=843]
0x23147b0: i32 = srl 0x27225f8, 0x231d938 [ORD=28] [ID=823]
0x27225f8: i32 = bitcast 0x231cb78 [ORD=5] [ID=820]
0x231cb78: f32 = fadd 0x231c110, 0x231c110 [ORD=4] [ID=817]


0x231d938: i32 = Constant<23> [ID=14]
0x24e4df0: i32 = Constant<0> [ID=18]
0x271f010: i32 = bitcast 0x272a2d0 [ORD=33] [ID=839]
0x272a2d0: f32 = fadd 0x231c360, 0x2314d78 [ORD=32] [ID=835]
0x231c360: f32 = bitcast 0x231c238 [ORD=31] [ID=828]

0x2314d78: f32 = ConstantFP<-1.000000e+00> [ID=7]
0x27225f8: i32 = bitcast 0x231cb78 [ORD=5] [ID=820]
0x231cb78: f32 = fadd 0x231c110, 0x231c110 [ORD=4] [ID=817]
0x231c110: f32,ch = CopyFromReg 0x2669d60, 0x271f138 [ORD=4] [ID=556]

0x231c110: f32,ch = CopyFromReg 0x2669d60, 0x271f138 [ORD=4] [ID=556]

0x2727878: i32 = Constant<8323072> [ID=20]
0x2314438: i32 = Constant<13> [ID=36]
0x272b530: i32 = Constant<8> [ID=42]
0x24e7bc0: i32 = Constant<2> [ID=329]
0x2721f08: i32 = TargetConstant<0> [ID=330]
0x24eaab8: i32 = undef [ID=25]
In function: AddNoise
Comment by gambyte (gambyte) - Thursday, 11 February 2016, 01:15 GMT
I just tried rebuilding the package with the option --disable-opencl as suggested in the linked bug report. I can confirm that it fixes this issue.
Comment by brian downing (bsd) - Thursday, 11 February 2016, 10:43 GMT
Then it's not an Arch bug, but an ImageMagick bug.

Someone needs to reopen the ImageMagick OpenCL bug, let them know problem persists in ImageMagick 6.9.3.0-1
http://www.imagemagick.org/discourse-server/viewtopic.php?t=24603
Comment by brian downing (bsd) - Saturday, 13 February 2016, 11:09 GMT
I submitted the above output on the IM bugs forum, hoping to have someone look at the problem.
Comment by Frank Carlyle McLaughlin (frankspace) - Friday, 03 June 2016, 15:01 GMT
I have just discovered that this bug exists, and it persists for me in ImageMagick 6.9.4.6. Recompiling with --disable-opencl fixed it. I reported it in the ImageMagick forum thread linked by brian downing.
Comment by Olivier (olive) - Friday, 14 October 2016, 04:56 GMT
I have also this bug. I was trying to convert a pnm file pdf with the following command:

convert -density 300x300 -monochrome -compress Group4 test.pnm test.pdf

Recompiling the package with the latest upstream version (7.0.3.4) fix it for me. I suspect that a freshly recompiled package will fix the bug whatever the version. Probably the package have been compiled usoing older version of some libraries.
Comment by Olivier (olive) - Saturday, 15 October 2016, 05:18 GMT
This is related to opencl indeed. opencl can be disabled at run tile by setting MAGICK_OCL_DEVICE=OFF and this fix the crash. The latest upstream version seemed to be unaffected but maybe I have compiled it without having opencl installed; more tests are necessary.
Comment by Siarhei (nartes) - Monday, 20 March 2017, 04:00 GMT
The problem still persists in ImageMagick 6.9.8-1 Q16 x86_64 2017-03-18. I'm using opencl-mesa with gallium backend.
But MAGICK_OCL_DEVICE=OFF really works. I wonder why don't they write about it in their help?!
Comment by Evangelos Foutras (foutrelis) - Friday, 13 April 2018, 10:41 GMT
OpenCL-enabled imagemagick works for me on Intel (i3-4005U) with beignet.

But on Radeon HD 6870 with opencl-mesa, I'm hitting https://bugs.freedesktop.org/show_bug.cgi?id=105200.

I will look into this some more (should be fixable by LLVM and/or libclc updates).

@arojas: We might want to consider disabling opencl support in imagemagick; it appears to be problematic and probably slower for small-ish images (only tested with possible_undiscovered_planets.png and the difference was like 80ms (CPU) vs 260ms (OpenCL w/ i3-4005U).
Comment by Evangelos Foutras (foutrelis) - Friday, 13 April 2018, 11:30 GMT
The failure on the AMD card appears to have been caused by $HOME/.cache/ImageMagick/magick_badcl.cl being generated from an incompatible libclc version.

The AMD card works after removing $HOME/.cache/ImageMagick, but I believe libclc 0.2.0+506+96d10f2-1 is also needed (I just moved it out of [testing]).

Anyone affected, please test with current intel+beignet or amd+libclc-0.2.0+506+96d10f2-1. (Also make sure to clear $HOME/.cache/ImageMagick/.)

Loading...