Topic on Project:Support desk

[RESOLVED] SVG thumbnail creation error

5
Minoa (talkcontribs)

Hello,

I am having a problem with rendering new svg thumbnails on this wiki. I get an error that says:

Error creating thumbnail: libgomp: Thread creation failed: Resource temporarily unavailable

The error happens at attempts to create a thumbnail of any size. JPGs and PNGs render fine.

I am using:

  • Debian 4.7.2 on 64-bit architecture
  • Apache 2.4.10
  • ImageMagick 6.7.7-10
  • MediaWiki 1.24.1
  • MySQL 5.5.40
  • PHP 5.4.35

(Source: https://nsindex.net/wiki/Special:Version)

Relevant switches on LocalSettings.php:

$wgMaxShellMemory = 204800;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = '/usr/bin/convert';
$wgFileExtensions = array('png ... oga');

(NB: the last option was snipped for length).

I did check the FAQs. Can you provide advice please? Thanks.

MarkAHershberger (talkcontribs)

Have you tried increasing $wgMaxShellMemory? Searching for the error offers this page which suggests that.

Minoa (talkcontribs)

Hi,

It appears that the error I got was very misleading because I was lead to think that something in the configuration was missing.

Fortunately, I have been able to resolve this by clearing the thumbnail cache via FTP and then, for measure, increasing the memory to 819600. I am quite surprised, because I got the error in question when the value was set to 307200, leading me to initially think that the wiki was complaining about "too much memory" or "out of range".

I am concerned though, that a much larger value in six digits or more, could cause the installation to crash or seriously slow down. Does $wgMaxShellMemory support "unlimited" or similar?

MarkAHershberger (talkcontribs)

From $wgMaxShellMemory:

Under Linux, shell commands are executed with the time and memory limits given by $wgMaxShellTime and $wgMaxShellMemory. Setting either variable to 0 will disable both limits.
Minoa (talkcontribs)

Thank you!

Hopefully, users who look up "Error creating thumbnail: libgomp: Thread creation failed: Resource temporarily unavailable" will find this topic and they will not be as confused as I was at first because of the wording.

Reply to "[RESOLVED] SVG thumbnail creation error"