Hard Light Productions Forums

Community Projects => The FreeSpace Wiki Project => Topic started by: Darius on May 21, 2016, 12:12:34 pm

Title: Error creating thumbnail
Post by: Darius on May 21, 2016, 12:12:34 pm
I've been uploading a few pictures in view of making some ship articles but when I upload them there's an error message about creating a thumbnail.


Code: [Select]
Error creating thumbnail: /var/www/clients/client2/web2/web/wiki/bin/ulimit4.sh: line 4: /usr/bin/convert: No such file or directory
This is illustrated most clearly here (http://www.hard-light.net/wiki/index.php/File:UEFg_Murugan.jpg).

New articles such as here (http://www.hard-light.net/wiki/index.php/UEFg_Murugan) are also affected.

I can view the full sized images just fine.

Is this new? Is it just me?

Can someone else upload something to the wiki and see if they get the same?
Title: Re: Error creating thumbnail
Post by: niffiwan on May 21, 2016, 06:27:26 pm
Yeah, I'm getting the same issue (http://www.hard-light.net/wiki/index.php/File:Faster-debug-graph.png).

Looks like the imagemagick software is missing from the server, although it doesn't make sense that it would suddenly disappear so maybe the problem is more complex than that.
Title: Re: Error creating thumbnail
Post by: mjn.mixael on June 08, 2016, 09:42:26 pm
Blah.. This is still a thing! Plz2Fix? :(

Our Wiki is going to slowly degrade into ugliness if this doesn't get resolved.
Title: Re: Error creating thumbnail
Post by: Goober5000 on June 13, 2016, 12:34:11 am
Thanks for bumping this.  I ran into this a week or two ago and bookmarked it because I didn't have time to look at it then, and never got back to it.

I've been able to confirm what niffiwan said: the wiki is set up to use ImageMagick, but the ImageMagick "convert" command is missing from the server. :confused:

So, I installed ImageMagick.  I didn't check the pages before installing this, so I can't tell whether anything is different, although the two image pages look all right at least.  (The UEFg Murugan page still shows an error, but I don't know if that's leftover or still indicates a problem.)  Can someone try running through the steps to reproduce this and see if it is indeed fixed?
Title: Re: Error creating thumbnail
Post by: mjn.mixael on June 13, 2016, 01:04:00 am
Seems to be working. There was some weirdness with the recent screencap winner image.. but a quick "upload new file version" seems to have solved it.

EDIT: Though, now the Wiki randomly gives me infinite timeouts and I have to start a new incognito session to get it to load again. Script error? Google Chrome conflict? I dunno...
Title: Re: Error creating thumbnail
Post by: Darius on June 13, 2016, 02:26:21 am
That seems to have done the trick, cheers!
Title: Re: Error creating thumbnail
Post by: Androgeos Exeunt on October 23, 2016, 05:44:59 am
:bump:

I get the following error immediately after I upload an image or a new version of an image:

Code: [Select]
Error creating thumbnail: convert: Memory allocation failed `Cannot allocate memory' @ exception.c/AcquireExceptionInfo/108.
Here's a screenshot of File:Pcdsaturn.jpg (http://www.hard-light.net/wiki/index.php/File:Pcdsaturn.jpg) right after I uploaded a new version of the picture:

(http://i.imgur.com/QgZ9k6m.png)

Refreshing a page that suddenly links to a thumbnail of the new image apparently causes the error to disappear completely and the thumbnail to be generated normally; CTRL+F5 on the image page also works.

EDIT: Got another malloc after uploading new versions of Gtfares.jpg, Gtferinyes.jpg, Gtfhercules.jpg and Gtfloki.jpg. A different error shows up after I've uploaded the new Gtfloki.jpg and updated the {{shipimage}} on the GTF Loki (http://www.hard-light.net/wiki/index.php/GTF_Loki) article, changing "Image" to "File", adding a resize parameter to the linked file and changing the caption.

Code: [Select]
Error creating thumbnail: convert: Memory allocation failed `Cannot allocate memory' @ cache.c/AcquirePixelCacheNexus/294.
convert: unable to allocate string `Cannot allocate memory' @ string.c/ConstantString/637.
convert: magick/semaphore.c:344: LockSemaphoreInfo: Assertion `semaphore_info != (SemaphoreInfo *) ((void *)0)' failed.

(http://i.imgur.com/0JZn65p.png)

EDIT2: It looks like the malloc also results in a HTTP 524 error that requires the user to either clear their cache or switch to private browsing mode in order to continue working.
Title: Re: Error creating thumbnail
Post by: Vidmaster on December 27, 2017, 12:04:36 pm
Sorry for the necro but it seemed appropriate :-)

The recent issues with the wiki have resulted in loss of data, we are missing all the thumbnails. I suppose the system should auto-generate them when required or (more likely) when the file is uploaded. As the wiki was restored from backups I believe, those seem to be gone. Or to put it using my Browser's words: "Error creating thumbnail: File missing"
Title: Re: Error creating thumbnail
Post by: ngld on December 27, 2017, 03:33:28 pm
It's a known issue (https://www.hard-light.net/forums/index.php?topic=94213.0). Goober's working on it.
Title: Re: Error creating thumbnail
Post by: emark4 on January 15, 2018, 02:06:02 pm
I would love to know if there are alternative ways to look up user made ship mods. I need pictures to determine if I'm downloading or not.
Title: Re: Error creating thumbnail
Post by: mjn.mixael on February 18, 2018, 09:49:10 am
Is Goober actually working on this? Wiki's been on the fritz for a long time now and Goober has barely been active.