Fix videoFrame-createImageBitmap.https.any.js failure
Categories
(Core :: Audio/Video: Web Codecs, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: chunmin, Assigned: aosmond)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
videoFrame-createImageBitmap.https.any.js is currently failed. The pixel bytes of the image generated from the encoded-then-decoded are sometimes 0
(e.g., at the index 3000
), so the comparison fails.
Reporter | ||
Comment 1•1 year ago
•
|
||
Besides, XPCOM_MEM_BLOAT_LOG
appears in the logs with rdd
, which might relate to bug 1871768
Comment 2•1 year ago
|
||
The severity field is not set for this bug.
:padenot, could you have a look please?
For more information, please visit BugBot documentation.
![]() |
||
Updated•1 year ago
|
![]() |
||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
We create a canvas of size 1280x720:
https://searchfox.org/mozilla-central/rev/ae3df68e9ba2faeaf76445a7650e4e742eb7b4e7/testing/web-platform/tests/webcodecs/videoFrame-createImageBitmap.https.any.js#6
We set an arbitrary size here:
https://searchfox.org/mozilla-central/rev/ae3df68e9ba2faeaf76445a7650e4e742eb7b4e7/dom/media/webcodecs/VideoDecoder.cpp#761
We calculate the aspect ratio (4/3) of that arbitrary size:
https://searchfox.org/mozilla-central/rev/ae3df68e9ba2faeaf76445a7650e4e742eb7b4e7/dom/media/platforms/wrappers/MediaChangeMonitor.cpp#321
And then we apply that arbitrary aspect ratio to the actual size (1280x720) to get a display size of 960x720:
https://searchfox.org/mozilla-central/rev/ae3df68e9ba2faeaf76445a7650e4e742eb7b4e7/dom/media/platforms/wrappers/MediaChangeMonitor.cpp#404
When we draw the end result, we use the display size of 960x720 as per the spec:
https://searchfox.org/mozilla-central/rev/ae3df68e9ba2faeaf76445a7650e4e742eb7b4e7/testing/web-platform/tests/webcodecs/videoFrame-createImageBitmap.https.any.js#23
That means we never write the pixels in columns 961-1280, and the assertion fails.
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
Backed out for causing wpt failures in videoFrame-createImageBitmap.https.any.worker.html
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | /webcodecs/videoFrame-createImageBitmap.https.any.worker.html | Create ImageBitmap for a VideoFrame from VP9 decoder. - promise_test: Unhandled rejection with value: object "NotSupportedError: Operation is not supported"
Comment 8•1 year ago
|
||
Backed out for causing wpt failures related to webcodecs.
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
bugherder |
Reporter | ||
Updated•1 year ago
|
Description
•