Page MenuHomePhabricator

VisualEditor:The Save page seems to continue for indefinite amount of time for a specific case
Closed, ResolvedPublic0 Estimated Story Points

Description

Screenshot of the error

Steps to reproduce:

1.Click on the Edit button
2.Type something on the first line
3.Place the cursor at the beginning of the line and insert a template "Bronze Age"
4.Save the page
5.Reopen the editor
6.Click on More>Reference and add a reference
7.Type something on the CE
8.Click on Save Page

Observed Result:
The Save page loader continues for indefinite amount of time.
The following errors are found in the developers tool:

Uncaught TypeError: Cannot call method 'apply' of undefined load.php:2
Uncaught Error: Unbalanced input passed to document load.php:109
Uncaught TypeError: Cannot read property 'keyedNodes' of undefined load.php:201


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2013-12-02_at_3.17.41_PM.png (680×1 px, 228 KB)

Details

Reference
bz57898

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:41 AM
bzimport set Reference to bz57898.

Test Environment: production
Browser: Chrome Version 26.0.1410.65 & FF 25
OS: MAC OS X 10. 8. 5
Example Page:https://en.wikipedia.org/wiki/User:RYasmeen_%28WMF%29/infinite_save?veaction=edit

This issue can be reproduced with images too instead of template.

Another way to reproduce it:
After step 5 just click on "Delete" and click the button "Save".

The following error appear this time:

Uncaught Error: Unbalanced set of replace operations found load.php:65
Uncaught Error: Unbalanced data: looking for closing /mwBlockImage load.php:146

I can't reproduce now - perhaps due to fixing bug 57654?

Now The Save Page button does not work after the following steps:
1.Click on the Edit button
2.Type something on the first line
3.Place the cursor at the beginning of the line and insert an image
4.Save the page
5.Reopen the editor
6.Press Delete twice
7.Type something
8.Click the button "save page"

Following error appears:
Uncaught Error: Unbalanced data: looking for closing /mwBlockImage load.php:150

Aklapper changed the task status from Open to Stalled.Mar 4 2015, 10:46 PM
Aklapper subscribed.

Could not reproduce on https://en.wikipedia.org/w/index.php?title=User%3AAKlapper_%28WMF%29%2FSandbox%2FT88306&diff=649905376&oldid=649903809 following exactly the steps in T59898#645389 in Firefox 36.

Is this still an issue, 15 months later? Setting task status to "Stalled".

I encountered a very similar bug two days ago at https://en.wikipedia.org/w/index.php?title=San_Francisco%E2%80%93Oakland_Bay_Bridge&oldid=650099835&veaction=edit, twice (once when clicking the Save button, and then after starting anew and clicking "Switch to source editing" in the Hamburger menu. In both cases, nothing happened after the click except console error messages, and consequently I wasn't able to save my edit).

I wasn't able to reproduce it again, but I remember that the edit involved deleting the first reference and replacing it with a different one, using a citation template where I added an additional (non-default) parameter and then deleted it again in the template editor.

This was in Chrome on a MacBook. Unfortunately I lost the JavaScipt console's output due to an unrelated crash, but I remember that it contained the word "unbalanced" just like in the original bug report here.

This is so old I wonder if it still happens?

Deskana claimed this task.
Deskana subscribed.

I can't reproduce this, so I assume it is fixed. Please reopen if reproduction of the bug is achieved.

Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.