Bug 133686 - REGRESSION (r169725): Several TextTrackCue tests became very flaky
Summary: REGRESSION (r169725): Several TextTrackCue tests became very flaky
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-10 11:24 PDT by Alexey Proskuryakov
Modified: 2016-03-22 13:34 PDT (History)
14 users (show)

See Also:


Attachments
Proposed patch. (2.39 KB, patch)
2014-06-12 08:50 PDT, Eric Carlson
simon.fraser: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion (508.05 KB, application/zip)
2014-06-12 10:17 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (509.47 KB, application/zip)
2014-06-12 11:24 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2 (533.73 KB, application/zip)
2014-06-12 14:58 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2014-06-10 11:24:09 PDT
Multiple TextTrackCue tests have started to fail frequently on all Mac bots yesterday:

http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=media%2Ftrack%2Fw3c%2Finterfaces%2FTextTrackCue%2FendTime.html

media/track/w3c/interfaces/TextTrackCue/align.html
media/track/w3c/interfaces/TextTrackCue/endTime.html
media/track/w3c/interfaces/TextTrackCue/id.html
media/track/w3c/interfaces/TextTrackCue/pauseOnExit.html
media/track/w3c/interfaces/TextTrackCue/startTime.html
media/track/w3c/interfaces/TextTrackCue/track.html
Comment 1 Andy Estes 2014-06-10 14:37:36 PDT
Skipped in r169767: http://trac.webkit.org/changeset/169767
Comment 2 Andy Estes 2014-06-10 14:57:45 PDT
Changed from [ Skip ] to [ Pass Failure ] in r169771: http://trac.webkit.org/changeset/169771
Comment 3 Simon Fraser (smfr) 2014-06-10 16:07:47 PDT
When they fail the TextTrack mode is "disabled".
Comment 4 Simon Fraser (smfr) 2014-06-10 16:09:00 PDT
Mode is set to disabled via:

* thread #1: tid = 0xe6efb, 0x0000000105d13097 WebCore`WebCore::TextTrack::setMode(this=0x000000010ff2d390, mode=0x0000000117703270) + 23 at TextTrack.cpp:213, queue = 'com.apple.main-thread', stop reason = breakpoint 10.1
  * frame #0: 0x0000000105d13097 WebCore`WebCore::TextTrack::setMode(this=0x000000010ff2d390, mode=0x0000000117703270) + 23 at TextTrack.cpp:213
    frame #1: 0x000000010498f173 WebCore`WebCore::HTMLMediaElement::configureTextTrackGroup(this=0x0000000113833200, group=0x00007fff5fbfce90) + 2275 at HTMLMediaElement.cpp:3634
    frame #2: 0x00000001049819fb WebCore`WebCore::HTMLMediaElement::configureTextTracks(this=0x0000000113833200) + 1307 at HTMLMediaElement.cpp:3795
    frame #3: 0x000000010497da93 WebCore`WebCore::HTMLMediaElement::loadTimerFired(this=0x0000000113833200, =0x00000001138332c0) + 99 at HTMLMediaElement.cpp:799
Comment 5 Brent Fulgham 2014-06-10 16:27:55 PDT
The system is determining that the tracks in the test are not a close enough match to the user's caption preferences, and is turning them all off.

1. DRT/WKTR should probably override these preferences.
2. The step to make the track "display" may need to happen in the onload handler, since it seems like that is firing before the property is being set.
Comment 6 Simon Fraser (smfr) 2014-06-10 17:19:34 PDT
In DRT, CaptionUserPreferencesMediaAF::captionDisplayMode() is testing testingMode(), which is true in DRT, so captionDisplayMode() returns ForcedOnly. In MiniBrowser, it returns Automatic.
Comment 7 Simon Fraser (smfr) 2014-06-10 17:29:26 PDT
Eric, this regressed with r169725. Please take a look.
Comment 8 Eric Carlson 2014-06-12 08:50:39 PDT
Created attachment 232954 [details]
Proposed patch.
Comment 9 Simon Fraser (smfr) 2014-06-12 09:10:37 PDT
Comment on attachment 232954 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=232954&action=review

> Source/WebCore/html/HTMLMediaElement.cpp:1580
> +    LOG(Media, "HTMLMediaElement::textTrackModeChanged - mode = %s", String(track->mode()).utf8().data());

It would have been helpful when debugging this if logging had included data on which track was being logged; either the value of |this| or some kind of track ID.
Comment 10 Alexey Proskuryakov 2014-06-12 09:15:00 PDT
Comment on attachment 232954 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=232954&action=review

> Source/WebCore/ChangeLog:6
> +        Reviewed by NOBODY (OOPS!).

Please remove the tests from TestExpectations.
Comment 11 Build Bot 2014-06-12 10:17:46 PDT
Comment on attachment 232954 [details]
Proposed patch.

Attachment 232954 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/4652199305019392

New failing tests:
media/video-trackmenu-selection.html
Comment 12 Build Bot 2014-06-12 10:17:53 PDT
Created attachment 232961 [details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-05  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 13 Build Bot 2014-06-12 11:24:49 PDT
Comment on attachment 232954 [details]
Proposed patch.

Attachment 232954 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/4661729837449216

New failing tests:
media/video-trackmenu-selection.html
Comment 14 Build Bot 2014-06-12 11:24:59 PDT
Created attachment 232968 [details]
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-01  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 15 Build Bot 2014-06-12 14:57:54 PDT
Comment on attachment 232954 [details]
Proposed patch.

Attachment 232954 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6058470381977600

New failing tests:
media/video-trackmenu-selection.html
Comment 16 Build Bot 2014-06-12 14:58:02 PDT
Created attachment 232993 [details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 17 Simon Fraser (smfr) 2014-06-12 19:50:13 PDT
Looks like this breaks media/video-trackmenu-selection.html. What's the plan?
Comment 18 Alexey Proskuryakov 2014-07-17 10:06:18 PDT
Ping?
Comment 19 Alexey Proskuryakov 2016-03-16 12:03:28 PDT
Is this patch still relevant?