One of the images that had been uploaded to the CDN (Rackspace, in this case) was corrupted, and cron was attempting to create image style derivatives based on it. This interrupted cron and caused several errors from the image processing logic like the following:

imagecreatefrompng(): gd-png error: setjmp returns error condition 2

My temporary solution to this was to change storage_core_bridge_storage_generate() in order to wrap the call to 'image_style_create_derivative' with calls to set_error_handler() and restore_error_handler(). This allows the cron jobs to continue running if gd can't process one of the files.

That is just a quick and dirty hack, though, so please let me know if there is a more appropriate fix.

Comments

Perignon’s picture

Would you care to upload a patch of what you did so it can be reviewed and considered? Or maybe improved upon.