RESOLVED FIXED Bug 161950
[media-source] web-platform-test/media-source/mediasource-remove.html test failing
https://bugs.webkit.org/show_bug.cgi?id=161950
Summary [media-source] web-platform-test/media-source/mediasource-remove.html test fa...
Jer Noble
Reported 2016-09-13 23:55:40 PDT
[media-source] Many web-platform-test/media-source tests fail because audio samples are unexpectedly long
Attachments
Patch (35.09 KB, patch)
2016-09-14 02:14 PDT, Jer Noble
no flags
Archive of layout-test-results from ews101 for mac-yosemite (956.84 KB, application/zip)
2016-09-14 02:54 PDT, Build Bot
no flags
Archive of layout-test-results from ews114 for mac-yosemite (1.58 MB, application/zip)
2016-09-14 03:02 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.03 MB, application/zip)
2016-09-14 03:14 PDT, Build Bot
no flags
Patch (46.11 KB, patch)
2016-09-14 14:48 PDT, Jer Noble
no flags
Patch (46.09 KB, patch)
2016-09-14 15:38 PDT, Jer Noble
no flags
Archive of layout-test-results from ews102 for mac-yosemite (983.77 KB, application/zip)
2016-09-14 16:36 PDT, Build Bot
no flags
Archive of layout-test-results from ews116 for mac-yosemite (1.58 MB, application/zip)
2016-09-14 16:37 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (917.92 KB, application/zip)
2016-09-14 16:42 PDT, Build Bot
no flags
Patch (47.75 KB, patch)
2016-09-14 22:34 PDT, Jer Noble
eric.carlson: review+
Jer Noble
Comment 1 2016-09-14 02:14:39 PDT
Build Bot
Comment 2 2016-09-14 02:54:15 PDT
Comment on attachment 288788 [details] Patch Attachment 288788 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2071075 New failing tests: media/media-source/media-source-end-of-stream-buffered.html
Build Bot
Comment 3 2016-09-14 02:54:17 PDT
Created attachment 288795 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 4 2016-09-14 03:02:40 PDT
Comment on attachment 288788 [details] Patch Attachment 288788 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2071078 New failing tests: media/media-source/media-source-end-of-stream-buffered.html
Build Bot
Comment 5 2016-09-14 03:02:44 PDT
Created attachment 288796 [details] Archive of layout-test-results from ews114 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 6 2016-09-14 03:14:15 PDT
Comment on attachment 288788 [details] Patch Attachment 288788 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2071167 New failing tests: media/media-source/media-source-end-of-stream-buffered.html
Build Bot
Comment 7 2016-09-14 03:14:19 PDT
Created attachment 288799 [details] Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Jer Noble
Comment 8 2016-09-14 14:48:47 PDT
Eric Carlson
Comment 9 2016-09-14 15:10:37 PDT
Comment on attachment 288864 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=288864&action=review r=me, assuming the bots are happy with it > Source/WebCore/Modules/mediasource/MediaSource.cpp:273 > + auto ranges = buffered(); Nit: you don't need this if time > duration. > Source/WebCore/Modules/mediasource/MediaSource.cpp:291 > + auto ranges = buffered(); Ditto. > Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:175 > + CMItemCount sampleCount = CMSampleBufferGetNumSamples(m_sample.get()); > + if (samplesBeforePresentationTime >= sampleCount) > + return { this, nullptr }; Is this even possible?
Jer Noble
Comment 10 2016-09-14 15:38:13 PDT
Jer Noble
Comment 11 2016-09-14 15:42:34 PDT
(In reply to comment #9) > Comment on attachment 288864 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=288864&action=review > > r=me, assuming the bots are happy with it > > > Source/WebCore/Modules/mediasource/MediaSource.cpp:273 > > + auto ranges = buffered(); > > Nit: you don't need this if time > duration. Ok. > > Source/WebCore/Modules/mediasource/MediaSource.cpp:291 > > + auto ranges = buffered(); > > Ditto. Ok. > > Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:175 > > + CMItemCount sampleCount = CMSampleBufferGetNumSamples(m_sample.get()); > > + if (samplesBeforePresentationTime >= sampleCount) > > + return { this, nullptr }; > > Is this even possible? "==" is definitely possible, but ">" is theoretically not. ">=" is probably overkill, but will still catch some things (like if someone calls `divide(MediaTime::positiveInfiniteTime())`).
Build Bot
Comment 12 2016-09-14 16:36:03 PDT
Comment on attachment 288872 [details] Patch Attachment 288872 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2074999 New failing tests: media/media-source/media-source-monitor-source-buffers.html
Build Bot
Comment 13 2016-09-14 16:36:06 PDT
Created attachment 288891 [details] Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 14 2016-09-14 16:37:30 PDT
Comment on attachment 288872 [details] Patch Attachment 288872 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2074959 New failing tests: media/media-source/media-source-monitor-source-buffers.html
Build Bot
Comment 15 2016-09-14 16:37:32 PDT
Created attachment 288892 [details] Archive of layout-test-results from ews116 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 16 2016-09-14 16:41:58 PDT
Comment on attachment 288872 [details] Patch Attachment 288872 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2075015 New failing tests: media/media-source/media-source-monitor-source-buffers.html
Build Bot
Comment 17 2016-09-14 16:42:01 PDT
Created attachment 288893 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Jer Noble
Comment 18 2016-09-14 22:34:11 PDT
Jer Noble
Comment 19 2016-09-15 16:16:12 PDT
Ryan Haddad
Comment 20 2016-09-15 17:40:47 PDT
imported/w3c/web-platform-tests/media-source/mediasource-play.html and imported/w3c/web-platform-tests/media-source/mediasource-remove.html crash on ASan with this change.
Jer Noble
Comment 21 2016-09-15 23:34:31 PDT
(In reply to comment #20) > imported/w3c/web-platform-tests/media-source/mediasource-play.html and > imported/w3c/web-platform-tests/media-source/mediasource-remove.html crash > on ASan with this change. Filed <https://bugs.webkit.org/show_bug.cgi?id=162050>.
Note You need to log in before you can comment on or make changes to this bug.