Page 1 of 1

IM hangs trying to open always the same temporary file

Posted: 2008-02-13T12:00:40-07:00
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

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

Posted: 2008-02-13T12:56:53-07:00
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.

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

Posted: 2008-02-15T02:23:27-07:00
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.

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

Posted: 2008-02-15T08:35:21-07:00
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.

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

Posted: 2008-02-19T05:49:52-07:00
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.