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

Skizzo’s picture

Any 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!

alexx90’s picture

I still get the same message too

foko’s picture

I 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.

bmango’s picture

I'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.

HS’s picture

bmango, I'm experiencing this after 1and1 updated Apache. How did you resolve it?

bmango’s picture

@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.

mariusagricola’s picture

I 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.

subi1kenobi’s picture

Where is the settings.php file? is it in directory of /modules?

aniebel’s picture

You can find settings.php in the "sites/default" directory

subi1kenobi’s picture

Thanks! yup, that worked. I am also with 1and1.com.

peteranthonywynn’s picture

I 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 ...