Page MenuHomePhabricator

Media viewer stuck on black screen after trying to open a .stl (3D) file on the file page [TypeError: mw.mmv.MultimediaViewerBootstrap is not a constructor]
Closed, ResolvedPublic

Description

Media viewer gets stuck on black screen after trying to open a .stl (3D) file on the file page, e.g. https://en.wikipedia.org/wiki/File:Compound_of_five_cubes.stl.

It navigates to https://en.wikipedia.org/wiki/File:Compound_of_five_cubes.stl#/media/https://upload.wikimedia.org/wikipedia/commons/e/e5/Compound_of_five_cubes.stl when clicking the file thumbnail, which doesn't work.

Clicking on the file thumbnail causes the bug, while clicking "Open in Media Viewer" works correctly.

Likely related to recent work in T335997.

Associated error report is TypeError: mw.mmv.MultimediaViewerBootstrap is not a constructor or TypeError: undefined is not a constructor (evaluating 'new mw.mmv. MultimediaViewerBootstrap()')
1501 errors in last 7 days
https://logstash.wikimedia.org/goto/ac090e509b9fc93e51ae1f8507b9f326

Event Timeline

Will look into this tomorrow.

Jdlrobson renamed this task from Media viewer stuck on black screen after trying to open a .stl (3D) file on the file page to Media viewer stuck on black screen after trying to open a .stl (3D) file on the file page [TypeError: mw.mmv.MultimediaViewerBootstrap is not a constructor].Jun 8 2023, 2:17 PM
Jdlrobson edited projects, added 3D; removed MediaViewer.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task from Untriaged to May 2023 on the Wikimedia-production-error board.

Change 928874 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/3D@master] Obtain MultimediaViewerBootstrap using require

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

Change 928874 merged by jenkins-bot:

[mediawiki/extensions/3D@master] Obtain MultimediaViewerBootstrap using require

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

Change 928949 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/3D@master] Fixes media viewer for 3D images

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

Change 929008 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/3D@master] mmvBootstrap.openImage requires only one argument

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

Change 928949 abandoned by Jdlrobson:

[mediawiki/extensions/3D@master] Fixes media viewer for 3D images

Reason:

See https://gerrit.wikimedia.org/r/c/mediawiki/extensions/3D/+/929008

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

Change 929008 merged by jenkins-bot:

[mediawiki/extensions/3D@master] mmvBootstrap.openImage requires only one argument

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