IM hangs trying to open always the same temporary file

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
dinotoa

IM hangs trying to open always the same temporary file

Post by dinotoa »

The code for the random key generation is quite complex and therefore I couldn't figure out where exactly the problem is.
By the way, until this file is present in the temporary directory of the machine, every operation requiring the cache hangs waiting forever for this file to disappear.

I think it would be very useful if the core traced the file it is trying to open at a level different from trace, perhaps at the resource (-debug Resource) level, although I'm confident there are simpler ways for generating a temporary file name (just kidding).

I'll be glad to help you fixing the bug, can you suggest some test I could run?
The platform I'm running on is:

Double pentium 4 dual core w/2 gigabytes of ram
Windows XP with latest service packs and patches
Visual Studio 2005 installed
Binary distribution http://www.imagemagick.org/download/bin ... ws-dll.exe

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

Re: IM hangs trying to open always the same temporary file

Post by magick »

We updated the ImageMagick 6.3.7-7 Windows distribution can you download and try again? Try these command:
  • convert logo: logo.ps
    convert -verbose logo.ps logo.png
The verbose output should include several temporary files and they should have different random names. Does this work for you? If you are still having problems with temporary filenames let us know how we can reproduce the problem.
dinotoa

Re: IM hangs trying to open always the same temporary file

Post by dinotoa »

I'm not sure I understand, the version I'm talking about is the 3.6.8-7 Q16 not the 6.3.7-7.
I ran the commands you suggested with the 3.6.8-7 Q16 and the created temporary file name was magick-AAAAAAAA.
The command hangs after creating this file and a file monitor shows that it is continuously accessing the temp directory looking for that file name.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: IM hangs trying to open always the same temporary file

Post by magick »

We just downloaded ImageMagick 6.3.8-7 for Windows, the latest release. We cannot reproduce the problem you posted. All the temporary files we generated with ImageMagick appear random.
dinotoa

Re: IM hangs trying to open always the same temporary file

Post by dinotoa »

Just tested with version ImageMagick-6.3.8-7-Q16-windows-dll.exe which does NOT exhibit the described behavior anymore, all temporary files are created with a random name.
Thanks for your support.
Post Reply