Image Resize Error“libgomp: Thread creation failed"

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cem3203
Posts: 2
Joined: 2014-09-11T13:27:15-07:00
Authentication code: 6789

Image Resize Error“libgomp: Thread creation failed"

Post by cem3203 »

Taking
"Image Resize Error libgomp: Thread creation failed: Resource temporarily unavailable"
errors

im using vBulletin + ImageMagick 6 ( BlueHost Shared Hosting Service)

This error only occur if image Width+Height more then 1024px, if images less then 1024px everything fine.
Error screen: http://i60.tinypic.com/96gl51.jpg

what can i do about that?

Thank you
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Image Resize Error“libgomp: Thread creation failed"

Post by magick »

Reduce the number of threads. Add -limit thread 1 to your command-line or set the MAGICK_THREAD_LIMIT environment variable or set the threads policy in policy.xml. You can then try 2 threads, 4 threads, 8 threads, etc. until it fails.
cem3203
Posts: 2
Joined: 2014-09-11T13:27:15-07:00
Authentication code: 6789

Re: Image Resize Error“libgomp: Thread creation failed"

Post by cem3203 »

magick wrote:Reduce the number of threads. Add -limit thread 1 to your command-line or set the MAGICK_THREAD_LIMIT environment variable or set the threads policy in policy.xml. You can then try 2 threads, 4 threads, 8 threads, etc. until it fails.
Thank you for fast answer :)
can you explain "for dummies" style ? im using shared hosting ( with cPanel ) , can i do that changes with myself or i have to ask hoster ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Resize Error“libgomp: Thread creation failed"

Post by fmw42 »

I believe that you can add -limit thread 1 after convert in your command-line or set the MAGICK_THREAD_LIMIT before convert in your command line. You may also be able to export MAGICK_THREAD_LIMIT at the top of your script to enable it for the whole script. To change policy, I think your ISP would need to do that.

One of the developers can correct me if I am wrong about the above.

see
viewtopic.php?f=2&t=20756&p=83407&hilit ... ead#p83407
Post Reply