Page 1 of 1

Exception

Posted: 2020-04-29T06:47:57-07:00
by ArunKumar
unable to extend cache 'OriginalImages/image104.jpg': No space left on device @ error/cache.c/OpenPixelCache/3888

unable to write pixel cache '/tmp/magick-27356o9E96NGd2Qaw': No space left on device @ error/cache.c/WritePixelCachePixels/583

Why I am getting this exception ?
Im using MagickWand API to resize the image

Re: Exception

Posted: 2020-04-29T08:53:11-07:00
by snibgo
Probably because you don't have enough free space on /tmp.

Re: Exception

Posted: 2020-04-29T08:59:31-07:00
by ArunKumar
what is /tmp ? how to free that space ?

Re: Exception

Posted: 2020-04-29T10:03:36-07:00
by snibgo
Sorry, I can't help you with Unix system management.

Re: Exception

Posted: 2020-04-29T12:00:18-07:00
by fmw42
sudo rm -f any_file(s)

but I recommend only removing files belonging to ImageMagick that include "magick" in the name. I do not know what the other files do. Use at your own risk

Re: Exception

Posted: 2020-04-29T21:20:51-07:00
by ArunKumar
MagickWandGenesis();
NewMagickWand();
MagickReadImage();
MagickResizeImage();
MagickWriteImage();
DestroyMagickWand();

When I called this method using Multithread concept Im getting this Exception
Exception:insufficient image data in file `OriginalImages/image197.jpg' @ error/jpeg.c/ReadJPEGImage_/1191
But there is no fault regarding images

Re: Exception

Posted: 2020-04-30T06:08:30-07:00
by snibgo
Arunkumar wrote:insufficient image data in file
Either the JPEG file is corrupt, or your program has a bug, or both.

Try reading the JPEG file with "magick" or "convert". Does that report the same error?

Re: Exception

Posted: 2020-05-04T03:03:43-07:00
by ArunKumar
java: MagickCore/cache-view.c:1109: SyncCacheViewAuthenticPixels: Assertion `cache_view != (CacheView *) NULL' failed.
Why Im Getting this ?
Im using MagickWand API to resize the image

And Im getting this Exception too
insufficient image data in file `OriginalImages/image21.jpg' @ error/jpeg.c/ReadJPEGImage_/1191
but I checked My Image before resizing .There is no fault in image

Re: Exception

Posted: 2020-05-04T03:43:26-07:00
by magick
Are you using threads? How 'bout OpenCP? Did you call MagickWandGenesis() first before any threads are issued? Try a single threaded resize. Does that help? Did you try to use a wand after you destroyed it? Otherwise, MagickWand is designed to protect the programmer against such low-level exceptions. If the issue is not threading, or using a wand after it is destroyed, we'll need to reproduce the problem locally to trace the source of the exception. We'll need the MagickWand program, the java wrapper, the source image, and instructions on how to reproduce the problem.

Re: Exception

Posted: 2020-05-04T04:21:08-07:00
by ArunKumar
*** stack smashing detected ***: java terminated
java: MagickCore/cache-view.c:1109: SyncCacheViewAuthenticPixels: Assertion `cache_view != (CacheView *) NULL' failed.

Re: Exception

Posted: 2020-05-07T21:11:16-07:00
by ArunKumar
ArunKumar wrote:
2020-05-04T04:21:08-07:00
*** stack smashing detected ***: java terminated
java: MagickCore/cache-view.c:1109: SyncCacheViewAuthenticPixels: Assertion `cache_view != (CacheView *) NULL' failed.
why I'm getting this ?

Re: Exception

Posted: 2020-05-07T21:51:15-07:00
by snibgo
Please answer the questions in the post by "magick" above.

I probably can't help with Java code. But if you don't show your code, we can't say what the problem might be.