Page MenuHomePhabricator

VE hangs when editing reference
Closed, ResolvedPublic

Description

MacOS 10.13.6
Chrome Version 85.0.4183.102 (Official Build) (64-bit)

I'm editing https://en.wikipedia.org/w/index.php?title=User:RoySmith/drafts/Robert_Weinberg_(urban_planner)&oldid=978201279. I've just added a reference, and when I go to save it, it hangs in the edit box. Hitting either the Apply Change or the X button have no effect, but I'm able to dismiss the edit box by typing ESC.

In the javascript console. I've got:

Uncaught TypeError: Cannot read property 'isReadOnly' of null
    at VeDmMWTransclusionInlineNode.ve.dm.Node.getOffset (load.php?lang=en&modules=ext.visualEditor.core&skin=vector&version=64but:55)
    at VeDmMWTransclusionInlineNode.ve.Node.getOuterRange (load.php?lang=en&modules=ext.visualEditor.core&skin=vector&version=64but:6)
    at VeDmMWTransclusionModel.ve.dm.MWTransclusionModel.updateTransclusionNode (<anonymous>:511:402)
    at <anonymous>:367:175
    at fire (load.php?lang=en&modules=jquery%2Coojs-ui-core|jquery.ui&skin=vector&version=1rnvg:46)
    at Object.add [as done] (load.php?lang=en&modules=jquery%2Coojs-ui-core|jquery.ui&skin=vector&version=1rnvg:46)
    at <anonymous>:366:411
    at <anonymous>:16:96
    at OO.ui.Process.execute (<anonymous>:16:754)
    at VeUiMWCitationDialog.OO.ui.Dialog.executeAction (<anonymous>:40:46)

Screenshot attached.

Screen Shot 2020-09-13 at 10.56.22 AM.png (2×2 px, 1 MB)

Event Timeline

Change 627292 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[VisualEditor/VisualEditor@master] ve.dm.Node: Check if attached before accessing document

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

Change 627292 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] ve.dm.Node: Check if attached before accessing document

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

Does this need a backport?

Probably not, seems like a very low volume of errors (Logstash finds exactly 1 result ever: https://logstash.wikimedia.org/goto/3047fa1c3cbbd5669a3487680fb5dcd3), and I couldn't reproduce on the linked page either.

Change 628077 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (53af216aa)

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

Change 628077 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (53af216aa)

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