Page MenuHomePhabricator

Unable able to thumb large PNG file
Closed, ResolvedPublic

Description

Error details:

error: could not load image from https://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Otto_E._F._Grashof_-_Parada_en_el_campo.png/1280px-Otto_E._F._Grashof_-_Parada_en_el_campo.png
URL: https://commons.wikimedia.org/wiki/File:Otto_E._F._Grashof_-_Parada_en_el_campo.png#/media/File:Otto_E._F._Grashof_-_Parada_en_el_campo.png
user agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
screen size: 1920x1080
canvas size: 1906x864
image size: 4482x3491
thumbnail size: CSS: 1109x864, screen width: 1109, real width: 1280

Event Timeline

Reedy renamed this task from Thumbnail not generated. to Thumbnail not generated.Sep 30 2016, 5:04 PM
Reedy edited projects, added SRE-swift-storage; removed MediaViewer.
Reedy renamed this task from Thumbnail not generated to Unable able to thumb large PNG file.Sep 30 2016, 5:09 PM
Zeroth claimed this task.

The upload was broken, that's why it didn't generate the thumb.
Now.. i wonder, why if it the upload was incomplete it created the file anyway...

Thanks.

Well, this is kind of worrying… files are not supposed to be just accidentally truncated. The original upload of https://commons.wikimedia.org/wiki/File:Otto_E._F._Grashof_-_Parada_en_el_campo.png was apparently cut off after exactly 35 MB, the full size is 37.59 MB.

There could be a problem with UploadWizard, or with chunked uploading (UW uploads files in chunks of 5 MB), or with AssembleUploadChunks or PublishStashedFile jobs (UW uses async uploads for files over 10 MB).

However, I couldn't reproduce this problem when uploading the complete file neither locally, or to Commons (I stopped before publishing, but verified that the whole file was in stash and could be thumbnailed, and it was identified as a duplicate of the existing one). Perhaps something messed up the file on your side, or perhaps it's the elusive server pixies.

I also tried searching logstash for the file name, hoping to find something interesting, but I only found lots of "Removing bad 0-byte thumbnail" entries for all the failed thumbnailing attempts.

@Zeroth Please make sure to file a bug if you ever notice this happening again.