unable to acquire cache view `Success'
Posted: 2008-10-27T16:40:33-07:00
What does this message mean? What might cause it?
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=12352
Code: Select all
123 cache_view->virtual_pixel_method=GetImageVirtualPixelMethod(image);
(gdb) n
124 cache_view->debug=IsEventLogging();
(gdb)
125 cache_view->signature=MagickSignature;
(gdb)
126 if (cache_view->id == 0)
(gdb)
127 ThrowFatalException(CacheFatalError,"UnableToAcquireCacheView");
(gdb) whe
#0 AcquireCacheView (image=0x80ecec0) at magick/cache-view.c:127
#1 0xb7970b0d in AcquireCacheViewThreadSet (image=0x80ecec0) at magick/cache-view.c:308
#2 0xb79829fd in CompareImageChannels (image=0x80ecec0, reconstruct_image=0x80ecec0, channel=DefaultChannels,
metric=MeanAbsoluteErrorMetric, distortion=0xbfa4d0e8, exception=0xbfa4d0c8) at magick/compare.c:196
Code: Select all
(gdb) p *cache_view
$10 = {id = 0, image = 0x80ecec0, virtual_pixel_method = UndefinedVirtualPixelMethod, debug = MagickFalse, signature = 2880220587}
Code: Select all
require 'RMagick'
$stdout.sync = true
logo = Magick::Image.read("logo.miff").first
1000.times do |n|
cimg, diff = logo.compare_channel(logo, Magick::MeanAbsoluteErrorMetric)
cimg.destroy!
printf("Iteration %d (diff=%f)\r", n+1, diff)
puts(" ") if n+1 == 256
end