Page MenuHomePhabricator

TypeError: Cannot read property 'byteLength' of null
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
normalized_message
TypeError: Cannot read property 'byteLength' of null
exception.trace
at ArrayBufferBackend.onXHRLoad  https://commons.m.wikimedia.org/w/load.php?lang=en&modules=ext.tmh.OgvJs%2COgvJsSupport%2Cvideo-js%2Cvideojs-ogvjs&skin=minerva&version=n0yzk:105:658
at XMLHttpRequest.<anonymous>  https://commons.m.wikimedia.org/w/load.php?lang=en&modules=ext.tmh.OgvJs%2COgvJsSupport%2Cvideo-js%2Cvideojs-ogvjs&skin=minerva&version=n0yzk:9:847
Impact

No user-facing impact observed thus far

Notes

14 occurrences, all since yesterday post-train. May have been caused by switch from WBMI to MediaSearch

Details

Request URL
https://commons.m.wikimedia.org/w/index.php?search=[search term]&title=Special:MediaSearch&type=video

Event Timeline

Appears to be inside the ogv.js library (not the videojs library, nor the MW payload). Note that this is about the native Uint8Array#byteLength field, and not related to our jquery.byteLength plugin.

https://codesearch.wmcloud.org/deployed/?q=byteLength&i=nope&files=&excludeFiles=&repos=mediawiki/extensions/TimedMediaHandler

Like T265425, this is not a MediaSearch-specific issue; I suspect the problem comes when unsupported mobile devices (old Android phones) try to run the ogv.js transcoding library and fail. Not sure if there's anything we can do about this – mobile video support on Commons has always been somewhat flaky from what I understand. I'm going to remove the MediaSearch tag and suppress this error in our logs for now.