Exception

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Locked
ArunKumar
Posts: 59
Joined: 2020-03-05T00:12:15-07:00
Authentication code: 1152

Exception

Post 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

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Exception

Post by snibgo »

Probably because you don't have enough free space on /tmp.
snibgo's IM pages: im.snibgo.com

ArunKumar
Posts: 59
Joined: 2020-03-05T00:12:15-07:00
Authentication code: 1152

Re: Exception

Post by ArunKumar »

what is /tmp ? how to free that space ?

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Exception

Post by snibgo »

Sorry, I can't help you with Unix system management.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Exception

Post 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

ArunKumar
Posts: 59
Joined: 2020-03-05T00:12:15-07:00
Authentication code: 1152

Re: Exception

Post 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

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Exception

Post 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?
snibgo's IM pages: im.snibgo.com

ArunKumar
Posts: 59
Joined: 2020-03-05T00:12:15-07:00
Authentication code: 1152

Re: Exception

Post 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

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: Exception

Post 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.

ArunKumar
Posts: 59
Joined: 2020-03-05T00:12:15-07:00
Authentication code: 1152

Re: Exception

Post by ArunKumar »

*** stack smashing detected ***: java terminated
java: MagickCore/cache-view.c:1109: SyncCacheViewAuthenticPixels: Assertion `cache_view != (CacheView *) NULL' failed.

ArunKumar
Posts: 59
Joined: 2020-03-05T00:12:15-07:00
Authentication code: 1152

Re: Exception

Post 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 ?

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Exception

Post 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.
snibgo's IM pages: im.snibgo.com

Locked