Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

ImageGallery: GD.php out of memory


Reply


5 Posts   2013 Views

Avatar
AdamJ

Community Member, 145 Posts

8 October 2009 at 2:24pm

Hey guys,

I have had the DataObjectManager and ImageGallery installed on a website with absolutely no issues, runs amazingly. However it seems to have reached an invisible ceiling and wont take anymore images in a folder. The folder in question has 103 images, and image number 104 tips it over the edge and gives me this error message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2560 bytes) in /home/horrigan/public_html/sapphire/filesystem/GD.php on line 24

I get the above error message on both the gallery page for that folder, and in the backend on the photos tab for that folder. I have increased the memory limit of php to 128M and this is confirmed in the phpinfo();.

Any ideas what could be at play here?

Avatar
UncleCheese

Forum Moderator, 4094 Posts

8 October 2009 at 3:40pm

I've only seen this happen when I upload a really large image. Resampling an image requires that the image data be stored in memory while it creates a new file, so the larger the input, the more memory it requires. The memory allocation is not additive, however. AFAIK, it is freed after each process, so the number of images in the gallery shouldn't matter.

So, are you uploading a large image? When does the error occur? After the upload or on the gallery page?

Avatar
AdamJ

Community Member, 145 Posts

8 October 2009 at 4:15pm

Ah sorry man, I checked everything except the obvious. I was busy with some other stuff yesterday and just took the easy route and posted here. Thanks for the quick response, it was just a large image it seems.

Avatar
AdamJ

Community Member, 145 Posts

8 October 2009 at 5:39pm

Edited: 08/10/2009 5:56pm

Its wierd. I can upload a 1.5mb image, but my sister can't upload an image she has, and on trying the image myself, i can't do it either. Must be something with her image...

Avatar
banal

Community Member, 901 Posts

8 October 2009 at 8:28pm

Edited: 08/10/2009 8:28pm

What kind of image is it and how/when does the upload fail? Several things could cause problems:
- unusual characters in the filename
- unrecognized file format (eg. bmp?)
- CMYK instead of RGB colorspace
- Image with different color-depth (more than the usual 8bit per channel)