Active
Project:
ImageAPI
Version:
6.x-1.10
Component:
ImageAPI Imagick
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 03:14 UTC
Updated:
11 Aug 2012 at 15:20 UTC
yesterday I tried to upload images to my drupal 6 but after images uploaded in the view of node or image thumbs i get this error
user error: ImageMagick reported error code 1. Message: libgomp: Thread creation failed: Resource temporarily unavailable in /home/siteweb/mypublicfiles/sites/all/modules/imageapi/imageapi_imagemagick.module on line 235.
I don't know how to fix this error, please someone help me.
Comments
Comment #1
Skizzo-1 commentedAny news on this issue? I still get the same message while uploading pictures. Drupal does show the thumbnails, but not the larger sizes. Suggestions more than welcome!
Comment #2
alexx90 commentedI still get the same message too
Comment #3
foko commentedI get the same error message too.. Somebody got a solution for this problem?
I'm using pdf-to-imagefield (via ImageApi/Magick/Cache) in order to convert a uploaded PDF-file to jpg.
Comment #4
bmango commentedI'm also having the same problem. It started when I moved my website and database to a new server. I get the error
"ImageMagick reported an error: libgomp: Thread creation failed: Resource temporarily unavailable"
I get this error whenever I try uploading images in an image field. I tried switching to using GD2 but this didn't make any difference. It seems to me like it may be a server issue rather than a Drupal one. I had migrated from a 1&1 hosting account to a newer 1&1 hosting account...
It seems like the ImageCache files are not being generated.
I'm not sure what to try next.
Comment #5
HS commentedbmango, I'm experiencing this after 1and1 updated Apache. How did you resolve it?
Comment #6
bmango commented@HS - I actually got a solution from 1&1 they said:
You are using the "convert" function of ImageMagick. This tool uses too much memory, if not tweaked properly. You have to put this line in PHP code:
putenv("MAGICK_THREAD_LIMIT=1");I added their line to the settings.php file and it solved my problem.
Comment #7
mariusagricola commentedI saw this error on a completely unrelated application (but hosted on 1&1!!), and the solution given by bmango worked for me. Thank you for tracking that down. I would have pulled my hair out after too much longer.
Comment #8
subi1kenobi commentedWhere is the settings.php file? is it in directory of /modules?
Comment #9
aniebel commentedYou can find settings.php in the "sites/default" directory
Comment #10
subi1kenobi commentedThanks! yup, that worked. I am also with 1and1.com.
Comment #11
peteranthonywynn commentedI placed the code in the settings.php at the top of the page? I have 1&1 but this has not solved the challenge... did I place this code incorrectly
putenv("MAGICK_THREAD_LIMIT=1");
Here is what we are getting
user error: ImageMagick reported error code 1. Message: libgomp: Thread creation failed: Resource temporarily unavailable in /homepages/29/d353376109/htdocs/shearmiracles/sites/all/modules/imageapi/imageapi_imagemagick.module on line 235.
We are trying to load the images into our uber cart, in the preview the image exists but it will not let us see the thumbnail, nor will it let us continue to create the product ... so we are stuck ... any advice would be amazing ...