Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Magick: Postscript delegate failed `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/713 [1197]

$
0
0
Windows Server 2008R2 has Ghostscript 9.14 64bit version, with latest Magick.NET-x64.dll 6.8.8.901 of 23March2014. Used in ASP.NET 4.0 application with Full Trust Level.

```
Magick: Postscript delegate failed `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/713
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(String fileName, MagickReadSettings readSettings)
```

Problem starts after once read timeout and thread abort in ASP.NET application. Its already kept to 300ms timeout.

Subsequent try gets following.

```
Magick: unable to create temporary file `C:\CCP\CCP_363.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/400
at ImageMagick.MagickImageCollection.HandleReadException(MagickException exception)
at ImageMagick.MagickImageCollection.Read(String fileName, MagickReadSettings readSettings)
```

PDF Size: 829kb
PDF Pages: 17

```
Magick: unable to extend cache `C:\Windows\TEMP\magick-3700Zf3OhYnRtPra17': No space left on device @ error/cache.c/OpenPixelCache/3691
```

It create more than 1.3GB temp files. Its not removing temp files after writing Tiff. I just cleared about 10Gb+ temp files of different tests. But the issue remains is lots of time taken for conversion along with unexpected errors as noted above.
Comments: ** Comment from web user: ozmosis **

Hi Dirk, it seems the binaries get extracted to "C:/Windows/Temp/Magick.NET.7.0.0.0010" as soon as the app starts, even before any Magick.NET code is called.

I set the path to the MagickAnyCPU.CacheDirectory in the first line of Global.asax before anything else gets called, but it's still extracting the binaries to "C:/Windows/Temp/Magick.NET.7.0.0.0010" as soon as the app starts.

The path I'm setting is:


Global.asax
```
protected void Application_Start()
{
// "C:/Uploads/Cache/"
ImageMagick.MagickNET.SetTempDirectory(Services.ApplicationService.ImageMagickTempDirectory);

// "C:/Uploads/Cache/ImageMagick"
MagickAnyCPU.CacheDirectory = Services.ApplicationService.ImageMagickCacheDirectory;

...
}
```

I deleted the "C:/Windows/Temp/Magick.NET.7.0.0.0010" directory before starting my app, but it gets extracted to that directory as soon as the app starts.

Environment:
__Project__: Web API 2
__Installation method__: Nuget
__ID__: Magick.NET-Q16-AnyCPU
__Magick.NET Version__: 7.0.0.0010

Any ideas? Thanks!


Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>