6.8.7-7 throws “clCreateBuffer failed” when using convert

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
dirk123
Posts: 2
Joined: 2013-11-28T21:01:17-07:00
Authentication code: 6789

6.8.7-7 throws “clCreateBuffer failed” when using convert

Post by dirk123 »

convert outputs the following message every time when resizing images.

Code: Select all

convert: clCreateBuffer failed. . @ warning/accelerate.c/ComputeResizeImage/2823.
convert test.jpg test.png works fine, but when resizing like convert -resize 100x test.jpg test-100.jpg the message shown above appears. The action itself (e.g. resizing) works properly: The image gets resized. convert just returns said error message in addition.

Additional info Steps to reproduce
  • install imagemagick 6.8.7-7
  • perform convert -geometry 100x test.jpg test-100.jpg
Version informations

Code: Select all

$ convert --version
Version: ImageMagick 6.8.7-7 Q16 x86_64 2013-11-25 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC HDRI Modules OpenCL OpenMP
Delegates: bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib

$ uname -rms
Linux 3.12.1-3-ARCH x86_64

User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by dlemstra »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.7-9 Beta, available by sometime tomorrow. Thanks.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
dirk123
Posts: 2
Joined: 2013-11-28T21:01:17-07:00
Authentication code: 6789

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by dirk123 »

Sounds great! Thanks for the quick response!
pronaldzito
Posts: 12
Joined: 2013-12-03T15:56:51-07:00
Authentication code: 6789

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by pronaldzito »

I downloaded ImageMagick-6.8.7-9.tar.bz2, configured and built the software, but I am still getting the error:
lt-convert: clCreateBuffer failed. . @ warning/accelerate.c/ComputeResizeImage/2816.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by magick »

It means your GPU does not have enough memory so it reverts to the host CPU. You should get correct results despite the warning. We're looking toward making the warning silent if the GPU does not have enough memory.
pronaldzito
Posts: 12
Joined: 2013-12-03T15:56:51-07:00
Authentication code: 6789

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by pronaldzito »

Is the warning new to version 6.8.7?
We had previously build 6.8.6-9 and see no warning - now I wonder if the GPU is actually being used.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by magick »

Expanded GPU support is a recent contribution, just a few weeks old. It works well but does require a few tweaks.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Post by dlemstra »

We noticed another bug in detecting the device that will be used. We will have a patch in ImageMagick 6.8.7-9 Beta available by sometime tomorrow.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply