Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'getView' of null
Open, LowPublicPRODUCTION ERROR

Description

Error

https://logstash.wikimedia.org/app/kibana#/doc/logstash-*/logstash-2020.09.09/clienterror/?id=AXRzDYVo3_NNwgAUvLlu
MediaWiki version: n/a

message
Uncaught TypeError: Cannot read property 'getView' of null

Impact

Notes

Details

Request ID
undefined
Request URL
https://he.wikipedia.org/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93:%D7%AA%D7%A8%D7%92%D7%95%D7%9D_%D7%AA%D7%95%D7%9B%D7%9F&page=The+Story+of+the+Trapp+Family+Singers&from=en&to=he&targettitle=&campaign=interlanguagelink
Stack Trace
exception.trace
at VeInitMwCXTarget.ve.init.mw.CXTarget.alignSectionPairs  https://he.wikipedia.org/w/load.php?lang=he&modules=ext.cx.widgets.spinner%7Cext.cx.wikibase.link%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%2Cui%2Cutil%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CHeader%2CInfobar%2CMessageWidget%2CPageTitleWidget%2CPersonalMenuWidget%2CTranslationToolWidget%2CTranslationView%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=vector&version=1305h:869:375
at later  https://he.wikipedia.org/w/load.php?lang=he&modules=ext.cx.widgets.spinner%7Cext.cx.wikibase.link%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui%7Cmw.cx.MachineTranslation%2CMwApiRequestManager%2Cdm%2Cinit%2Cui%2Cutil%7Cmw.cx.dm.PageTitleModel%2CTranslation%2CTranslationIssue%2CWikiPage%7Cmw.cx.init.Translation%7Cmw.cx.tools.IssueTrackingTool%2CTranslationTool%2CTranslationToolFactory%7Cmw.cx.ui.Categories%2CCategoryMultiselectWidget%2CHeader%2CInfobar%2CMessageWidget%2CPageTitleWidget%2CPersonalMenuWidget%2CTranslationToolWidget%2CTranslationView%7Cve.ce.CXLintableNode%7Cve.dm.CXLintableNode%7Cve.init.mw.CXTarget%7Cve.ui.CXDesktopContext%2CCXSurface&skin=vector&version=1305h:159:240

Event Timeline

I accessed the URL and checked logstash for logs and couldn't find anything around the time I used the URL.
The URL leads to a new translation and there's one user with a translation started already so I can't load the translation .

Not sure what to make of this...

The error in https://gerrit.wikimedia.org/g/mediawiki/extensions/ContentTranslation/+/789f5073e0a44ca0e955f1c0b5f8fd787ebdab37/modules/ve-cx/init/ve.init.mw.CXTarget.js#591 suggests that either this.sourceSurface or this.targetSurface is not defined.

I'm not sure when that would be true and what the repercussions of this would be. Maybe this could be simulated locally to understand and confirm that no data loss or inability to use the tool is occurring.

The error in https://gerrit.wikimedia.org/g/mediawiki/extensions/ContentTranslation/+/789f5073e0a44ca0e955f1c0b5f8fd787ebdab37/modules/ve-cx/init/ve.init.mw.CXTarget.js#591 suggests that either this.sourceSurface or this.targetSurface is not defined.

I'm not sure when that would be true and what the repercussions of this would be. Maybe this could be simulated locally to understand and confirm that no data loss or inability to use the tool is occurring.

@Nikerabbit is this something you can do?
I'll try but I was never successful at debugging CX.

I could try reading the code. But given this is a low priority (due to having relatively few occurrences compared to others), there are other productions errors to be dealt with first. If you cannot easily reproduce, I suggest just to move this task out of this sprint.