Page MenuHomePhabricator

Large SVG files fail to render in Thumbor (due to lack of use of the --unlimited option in librsvg)
Closed, ResolvedPublic

Description

Details of the error are attached to the report, which will be publicly viewable. If you are not comfortable with that, you can edit the report below and remove all the data you don't want to share.

Yet again, one of my files is not showing in Media Viewer or thumbnails, but the direct file works. I was previously told that it might be the thumbnails and pngs still generating, and my other files' problems solved themselves after a few minutes or hours, but this file has had problems since it was uploaded 2 days ago.

Error details:

error: could not load image from https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Map_of_the_Beboid_languages.svg/1280px-Map_of_the_Beboid_languages.svg.png
URL: https://en.wikipedia.org/wiki/Beboid_languages#/media/File:Map_of_the_Beboid_languages.svg
user agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
screen size: 1920x1080
canvas size: 1893x789
image size: 1526x950
thumbnail size: CSS: 1266x789, screen width: 1266, real width: 1280

Event Timeline

SUM1 created this task.Jul 11 2017, 9:55 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 11 2017, 9:55 PM
SUM1 updated the task description. (Show Details)Jul 11 2017, 9:56 PM

Thanks for reporting this! Indeed, https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Map_of_the_Beboid_languages.svg/1280px-Map_of_the_Beboid_languages.svg.png triggers a "HTTP 500 Internal Server Error".

(Unrelated: https://upload.wikimedia.org/wikipedia/commons/d/da/Map_of_the_Beboid_languages.svg also has font size issues when displaying in Firefox on Linux.
Inkscape on Linux says FontLister::get_best_style_match(): can't find family: Sans here.)

Aklapper renamed this task from Image not showing in Media Viewer or thumbnails to Thumbnails for a certain SVG image not created: HTTP 500 error.Jul 11 2017, 11:45 PM
Aklapper removed a project: MediaViewer.
SUM1 added a comment.Jul 12 2017, 3:23 AM

"can't find family: Sans"
That's interesting. In Inkscape, which I use to make my maps, "Sans" is the default text font. However, a warning icon shows next to it (to indicate that it doesn't exist on my computer). The text essentially shows as Arial in Inkscape, but after uploading to Wikimedia Commons, it shows as some Times New Roman-looking font for me. I try to switch all my text to Arial before I upload, but some Sans must have crept in there.

Tgr added a subscriber: Tgr.Jul 12 2017, 8:53 AM

Same issue as T170109 (ie. blocked on T150734/T169683).

Gilles reopened this task as Open.Jul 12 2017, 12:39 PM
Gilles added a subscriber: Gilles.

Not the same issue. In this case it's an error coming from rsvg-convert:

error: `(['/usr/bin/rsvg-convert', '/srv/thumbor/tmp/thumbor@8811/tmpYms0rR', '-f', 'png', '-w', '603'], '', 'Error reading SVG:Error domain 1 code 1 on line 1 column 1 of file:///srv/thumbor/tmp/thumbor@8811/tmpYms0rR: internal error: Huge input lookup\n\n\n', 1)`

It seems to be explained in T111815: SVG files larger than 10 MB cannot be thumbnailed and should be resolved by the use of the --unlimited option

Gilles renamed this task from Thumbnails for a certain SVG image not created: HTTP 500 error to Large SVG files fail to render in Thumbor.Jul 12 2017, 12:40 PM
Gilles claimed this task.
Gilles triaged this task as High priority.
Gilles added a project: Performance-Team.
Aklapper renamed this task from Large SVG files fail to render in Thumbor to Large SVG files fail to render in Thumbor (due to lack of use of the --unlimited option in librsvg).Jul 12 2017, 2:07 PM

Change 364752 had a related patch set uploaded (by Gilles; owner: Gilles):
[operations/debs/python-thumbor-wikimedia@master] Upgrade to 1.0

https://gerrit.wikimedia.org/r/364752

Change 364752 merged by Filippo Giunchedi:
[operations/debs/python-thumbor-wikimedia@master] Upgrade to 1.0

https://gerrit.wikimedia.org/r/364752

Gilles closed this task as Resolved.Jul 12 2017, 5:04 PM