Page MenuHomePhabricator

VisualEditor Hangs if Uploaded Image Manipulated with "Advanced Settings"
Closed, DuplicatePublic

Description

If an image is uploaded using VE with the Insert > Media option and the uploaded image is subsequently manipulated using "Advanced Settings," VisualEditor hangs once the save button has been pressed. The following output is found in the console:

load.php?...:1658 Uncaught TypeError: Cannot read property 'type' of null
    at VeDmMWImageModel.ve.dm.MWImageModel.insertImageNode (load.php?...:1658)
    at VeUiMWMediaDialog.handler (load.php?...:1697)
    at load.php?...:403
    at OO.ui.Process.execute (load.php?...:403)
    at VeUiMWMediaDialog.OO.ui.Dialog.executeAction (load.php?...:425)
    at VeUiMWMediaDialog.OO.ui.ProcessDialog.executeAction (load.php?...:433)
    at VeUiMWMediaDialog.OO.ui.Dialog.onActionClick (load.php?...:423)
    at OoUiActionSet.oo.EventEmitter.emit (load.php?...:130)
    at OoUiActionWidget.oo.EventEmitter.emit (load.php?...:130)
    at OoUiActionWidget.OO.ui.mixin.ButtonElement.onClick (load.php?...:161)

Event Timeline

I can't reproduce, what exactly did you change in advanced settings?

Any setting there will trigger for us. Toggling text wrap, changing page justification, etc. The media gets uploaded successfully but VE hangs if you click finish after selecting anything in the advanced settings menu.

Looks like a duplicate of T180521 from the stack trace.

Looks like a duplicate of T180521 from the stack trace.

I notice that you uploaded a patch in early January. Our VE version is current as of about two weeks ago. Is the patch you mention in that issue already in the master branch?