Description

Strictly speaking, this is probably a Firefox bug, not MoinMoin, although there is the possibility that MoinMoin is doing something in scripting that is an edge case to trigger the Firefox problem.

Uploading a large file to MoinMoin such as a zip file of photos results in the computer using 100% CPU and eventually the posting of the "Unresponsive script" dialog. It is possible to implement a workaround with some size files by increasing the setting of max_script_run_time to be larger but there is always a filesize that will fail.

The browser becomes locked up for the duration of the upload. Hitting "Stop script" will unlock and return control. If you have waited long enough for the upload, your file will likely be complete in spite of the non-completion of the script. It appears that Firefox is using up the CPU for no benefit.

Uploading the same file using Internet Explorer works as expected and doesn't utilize 100% of the CPU.

Steps to reproduce

  1. Create a large zip file, say of photos.
  2. Go to the attachments page of a MoinMoin wiki that allows large file uploads.

  3. Attach the large file and observe the high cpu utilization and eventual "Unresponsive script" dialog.

Component selection

Details

MoinMoin Version

1.5.7

OS and Version

Ubuntu Feisty

Python Version

2.5.1

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

English

See this bug report for the Firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=407587

Workaround

Some people increase the value of dom.max_script_run_time from config and that will let some file sizes work. But it isn't reliable.

Discussion

Uploading a file via AttachFile action just does a POST with the file contents. There is no javascript involved.

Please check what happens if you disable javascript in your browser.

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/FirefoxUnresponsiveScript (last edited 2008-04-11 18:52:20 by ThomasWaldmann)