Page MenuHomePhabricator

Uploading files (around 6MB) makes browsers stall
Open, Needs TriagePublic

Description

It has been reported at Commons, that the UploadWizard randomly causes the latest Firefox version without any addons to crash. This can also be reproduced in iOS. Multiple uploads in batches of 10, 5, 2 etc. images will create an error message and a stalled browser leaving up to 20 aborted uploads in the UploadStash.

Could this be related to T183075?

Event Timeline

De728631 created this task.Aug 21 2018, 9:24 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 21 2018, 9:24 AM

Hi,

Which version is "the latest Firefox version" exactly?

If Firefox crashes (according to the task description):
That's a problem in Firefox and not a problem with the content it is supposed to display or handle: See and http://support.mozilla.com/kb/Firefox%20crashes https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines and report a bug to Firefox under https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox

If Firefox hangs (according to the task title):
Can you please run the upload wizard with the debug option enabled? Just add "?debug=true" at the end of the web address (after "Special:UploadWizard") and then reload the page. Does anything appear in your browser's console when loading the page? For more information please see: https://developer.mozilla.org/en-US/docs/Tools/Web_Console
What's the setting for "Maximum number of concurrent uploads" preference https://commons.wikimedia.org/wiki/Special:Preferences#mw-prefsection-uploads ?

Restricted Application added a project: Multimedia. · View Herald TranscriptAug 21 2018, 9:54 AM

Firefox (61.0.1 (64 bit) canonical 1.0) hangs. In the UploadStash there are still this files:

This page provides access to files that are uploaded or in the process of uploading, but are not yet published to the wiki. These files are not visible to anyone but the user who uploaded them.

15z6dpcr58f8.g8j6fj.6080484.jpg (view thumbnail)
15z6i4b9uxgc.78fv6m.6080484.jpg (view thumbnail)
15z6i6ggmvz4.u7l9ij.6080484.jpg (view thumbnail)
15z6i6rbru0o.6g08zr.6080484.jpg (view thumbnail)
15z6i72ia490.jf8uvs.6080484.jpg (view thumbnail)
15z6i77wcfno.qgyy55.6080484.jpg (view thumbnail)
15z6i7ao71is.i4320p.6080484.jpg (view thumbnail)
15z6i7e1nv4k.6hngb5.6080484.jpg (view thumbnail)
15z6i7ete3p8.77ogw6.6080484.jpg (view thumbnail)
15z6i7hc08qk.gefxsm.6080484.jpg (view thumbnail)
15z6i7jcquvk.dumqdi.6080484.jpg (view thumbnail)
15z6i7kzwxz8.6r5vzr.6080484.jpg (view thumbnail)
15z6i7m06cks.nkoq6e.6080484.jpg (view thumbnail)
15z6i7mv0wqw.crv851.6080484.jpg (view thumbnail)
15z6i7ncq0js.c3z20.6080484.jpg (view thumbnail)
15z6i7o5bbes.plrfo0.6080484.jpg (view thumbnail)
15z6i7ovhzag.3xyga1.6080484.jpg (view thumbnail)
15z6i7pewha0.av5j6c.6080484.jpg (view thumbnail)
15z6i7pg38pg.nqawa3.6080484.jpg (view thumbnail)
15z6i7poaz04.y0mex5.6080484.jpg (view thumbnail)

The thumbnails show files that are about 80% complete. In the Uploadassistent the remaining times goes up to hours or more. Firefox will not accept any input, no tabs in any open window can be accessed.

I will try with debug=true, but that might take time, if the browser hangs again.

C.Suthorn added a comment.EditedAug 21 2018, 11:03 AM

Four minutes later the assistent showed a remaining time of 4 hours. I could not access any debug info, as the browser did not take any input.

The thumb from the stash.

Firefox will not accept any input, no tabs in any open window can be accessed.

For that specific aspect, see https://support.mozilla.org/en-US/kb/firefox-hangs-or-not-responding instead.

Firefox (61.0.1 (64 bit) canonical 1.0) hangs

(On an unrelated note, that is not "the latest Firefox version". 61.0.2 was released 13 days ago.)

Also the same happens with iOS/Safari, only that after a short time the upload form changes to red icons for all files to be uploaded and an error message of "Error" (full quote of the error message (!) ). The files in the UploadStash look the same.

Any reliable method to reproduce this issue? If not, do you have 'exact steps' in which the issue appears for you?

Any reliable method to reproduce this issue? If not, do you have 'exact steps' in which the issue appears for you?

It happens with my account simply by invoking the UploadWizard. As I can see, that others use the wizard without problems, and I have not upgraded Firefox and I upload unmodified files from the same camera as ever, I assume, it might have to do with my account? Is there a way for DB-Admins to look into the files in the UploadStash and look for irregularities?

by invoking the UploadWizard

  1. I went to https://commons.wikimedia.org/wiki/Special:UploadWizard
  2. My firefox neither hang nor crash

Can't reproduce.

it might have to do with my account?

Unlikely, unless something is wrong with your personal JS.

Is there a way for DB-Admins to look into the files in the UploadStash and look for irregularities?

Well, they can look in the stash, but browser weirdness are unlikely to have an effect on the data in the stash.

A complete list of steps is welcome. File types, number of files, location of files, etc. Every parameter is important. "simply invoking" is not exact steps. :)

A complete list of steps is welcome. File types, number of files, location of files, etc. Every parameter is important. "simply invoking" is not exact steps. :)

Number of files: I tried with 10, 5, 2 and 1 file with the same result.
File type: jpeg from Nikon L830, I uploaded thousends of files from the same camera without problem.
Location: "pictures" folder on harddrive

This is the thumb from the UploadStash of a file I already ulploaded about two weeks ago successfully. If it was 1%, or 97 % or 100 % complete in the Stash, I would be willing to accept that this is some local problem at my side, maybe Javascript. But it is about 80 % complete and I cannot think what might go wrong on my side, while 80 % of a file has been uploaded and instead of going on with the last 20 percent the remaining time goes up from a minute to four minutes to 37 minutes to an hour to two hours to fours hours within less than a minute.

AFAICT, you started uploading, so it's more than just invoking.

So what step is it hanging on? Do you have a screenshot? Could you put the original file somewhere so we can test if we can reproduce? I just put a random image of mine through the "Upload" step to the "Release rights" step without any issues.

The thumb in the post above is the same file as: https://commons.wikimedia.org/wiki/File:Dyke_March_Heidelberg_2018_29.jpg

You will find a screenshot in the post from today 11:03 am

another try

and the result

That looks a bit like T201379 which was merged into T190988. Are those cross-wiki uploads or not?

C.Suthorn added a comment.EditedAug 21 2018, 3:26 PM

uploads on commons with uploadwizard, and the files are around 6MB, which means it can very likely break at 5MB.

That looks a bit like T201379 which was merged into T190988. Are those cross-wiki uploads or not?

I think that bug is about files that were successfully uploaded.

The thumb in the post above is the same file as: https://commons.wikimedia.org/wiki/File:Dyke_March_Heidelberg_2018_29.jpg

no visible network activity in console

but the file in the stash looks the same again.

does still not work. also with iOS. also with old upload form.

does still not work. also with iOS. also with old upload form.

Thanks. If you can reproduce also the the old upload form it's not an UploadWizard issue.

Aklapper renamed this task from UploadWizard makes browsers stall to Uloading files makes browsers stall.Aug 28 2018, 9:17 AM
Aklapper renamed this task from Uloading files makes browsers stall to Uploading files (around 6MB) makes browsers stall.

In the meantime I managed to upload files with HighSierra/Safari, but not with iOS or Firefox/Ubuntu. It also did not work with files cropped to 4.6, 4.8 and 4.9 MB (by blacking part of the image but keeping the image dimension). This happens with files I uploaded without problems in the past to commons without problems (with the same computer and software). I also cannot upload new files with firefox, that I now uploaded successfully with HighSierra.

I also had for some time the problem that the browser stalled always if I tried to upload 11 or more files, while in the past it was no problem to upload a batch of 50 files.

I can still not upload with ubuntu.

It is possible with High Sierra, but very slow:

I'm wondering a little bit if this might be a connection issue (unlikely though): https://wikitech.wikimedia.org/wiki/Reporting_a_connectivity_issue