Page 1 of 1

Image Processing Stopped Working.

Posted: 13 Mar 2009, 15:19
by jptkts
Hey all, new to phoca but had a little problem yesterday. (the new beta version)

I added a gallery of about 20 pictures worked great. I then created a new category and added pictures to it (slightly larger). After uploading the images I had it process the thumbnails. it got about halfway through and I got a php error saying the memory was exhausted. OK, so I realize I can raise the memory.

The problem started when I tried to go back to the control panel after the upload and it went straight to the image processing view (with the progress bar saying what picture it was on). It was like the component knew it wasn't dont processing those thumbnails before after that error so it kept trying but was not working right. So I pressed the "stopped processing / thumbnail processing" the red link in the corner so it brought me back to the main screen.

Things seemed back to normal but now when I try to process thumbnails it always fails (it adds a record to the DB for the image but doesnt generate the thumbs...I just get a gray thumbnail that points to an image that doesn't exist. I have tried it with a very tiny picture as well that the server should have no problem processing and that fails. Other GD scripts work fine so I don't think its a problem with my server. I cleared all my cookies incase it thought I was still trying to process those other images, but still have no luck.

Any idea why this could have suddenly stopped working? is there an image processing queue anywhere? Can anyone tell me the script I could examine where the image resizing is done?

Thanks!

Re: Image Processing Stopped Working.

Posted: 13 Mar 2009, 15:41
by jptkts
OK I found the problem.

Apparently when I told it to stop the processing due to the error (in the view with the progress bar) It changed the parameters. This was kind of unexpected, and maybe an issue that should be examined in future versions if you have time, since it really was never clear it would go in and change my parameters.

After telling it 'yes' to generate thumbnails it works fine again

EDIT: Actually I see now it says the parameters have been changed...

However I am only trying to process one image and i get the error: Allowed memory size of 52428800 bytes exhausted

How can one image resize be using that much memory!!??

Thanks
JP

Re: Image Processing Stopped Working.

Posted: 14 Mar 2009, 19:45
by Jan

Re: Image Processing Stopped Working.

Posted: 15 Apr 2009, 23:01
by Jan
Hi, Fatal errors cannot be catched in PHP... if there is no memory, there is no memory for making some exception :-(