Massive .pam file created in /tmp

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
ponny
Posts: 2
Joined: 2016-02-29T13:43:15-07:00
Authentication code: 1151

Massive .pam file created in /tmp

Post by ponny »

On a couple of my boxes that do image resizing, I'm suddenly getting huge .pam files (there's a 56,804,130,880 byte one today called /tmp/magick-lMnXACg3.pam) created at in /tmp. Any idea what could be causing this?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Massive .pam file created in /tmp

Post by magick »

Chances are you inadvertently processed a very large image and ImageMagick cached the pixels to disk in uncompressed form. See https://www.imagemagick.org/discourse-s ... =4&t=26801. You can set a policy to prevent such large files on your system.
ponny
Posts: 2
Joined: 2016-02-29T13:43:15-07:00
Authentication code: 1151

Re: Massive .pam file created in /tmp

Post by ponny »

Any reason why these files aren't being cleaned up? When I see these files present, there's no imagemagick running. Could be a bug?


Also, looking at my Ubuntu policy.xml there seems to be a typo of EB instead of GB for the example settings:
<policy domain="resource" name="disk" value="16EB"/>
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Massive .pam file created in /tmp

Post by snibgo »

... there seems to be a typo of EB ...
There's nothing wrong with exabytes. If your disk isn't that large, this is effectively an "infinity" setting, or no-limit.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Massive .pam file created in /tmp

Post by magick »

ImageMagick temporary files are cleaned up on a normal program exit or if a catchable signal is thrown. If an uncatchable signal is thrown, such as KILL, there is no opportunity for ImageMagick to clean up temporary files and they will need to be removed manually.
Post Reply