-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gracefully handle time limit #333
Comments
I do see similar messages in my error log.
My feeling is that this could be the result of multiple processes writing simultaneously to the pixel cache. From the comment above line 1716.
We see this error typically with photoalbums where multiple large pictures need to be resized into thumbnails at the same time. |
They are 3 problems related to time limit:
|
Setting the time resource limit to some value, either by policy or by calling
Imagick::setResourceLimit(Imagick::RESOURCETYPE_TIME,$timeout);
and executing an action that exceeds that time limit causes the process to exit without returning control to the php code.From the ImageMagick code here and here it looks like they just call _exit() when the time limit is reached. Not sure if have any control from the calling code, or if I should report this in ImageMagick as well.
Repro case (but any slow code should do):
I tried it both with IM6 and 7.
On IM6, o got a single
before it exited
On IM7 I got a several of those, and then segfaults most of the time
The text was updated successfully, but these errors were encountered: