Active
Project:
ImageAPI
Version:
6.x-1.x-dev
Component:
ImageAPI Imagick
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2011 at 20:16 UTC
Updated:
18 Mar 2015 at 20:18 UTC
Jump to comment: Most recent
Comments
Comment #1
drewish commentedI don't think that's necessarily ImageAPI's fault. There's lots of code that gets executed that could be leaking but since ImageAPI makes big requests for memory it'll be the one left holding the bag when it finally runs out. I think that's exactly the reason Drush monitors memory usage and starts new processes periodically to work around this.
Comment #2
mikeytown2 commentedDrush was running the imagecache generation script for around 6 hours before it finally gave up the ghost; so it's a slow leak, wherever it is. Luckily I just needed to restart it and it kept going where it was last.
Comment #3
pribeh commentedI'm experiencing this as well. What did you do to resolve this mikeytown2?
Comment #4
mikeytown2 commented@pribeh
This was caused from running the drush generate imagecache preset. I just ran it again because the drush script only generates files that do not exist. This leak turned fatal after several hours of it running the same script. Are these the same conditions that caused this error for you or was it something else?
Comment #5
pribeh commentedHi mikeytown2, no it isn't under the same conditions. I wrote the comment in a rush and also because it's the only one similar enough to what I'm experiencing. Every so often I'll run into a node (with several cck imagefields) that when attempting to edit the node I will get a very similar report (except I'm using gd instead of imagemagick).
Comment #6
mikeytown2 commented@pribeh
sounds like GD is using up your php memory when loading a large image. This is to be expected and in your case up your php memory limit. drewish's comment in #1 makes sense for you. In my case this is the same code running again and again for several hours, slowly eating up ram for no good reason. It may not be ImageAPI that is leaking, but it does have something to do with the image generation logic. It only affects me rarely and and it has an easy solution (run the drush script again), so I haven't debugged this to find the exact cause.
Comment #7
danepowell commentedThis is still an issue with image in Drupal core. With every round of image generation by drush image-generate, I see memory usage tick up by about 30KB, until it eventually errors out. When you're dealing with hundreds of thousands of images, that's a pain. I haven't been able to narrow down where the memory leak is.