RESOLVED FIXED 168409
[mac-wk1] LayoutTest media/modern-media-controls/airplay-button/airplay-button.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=168409
Summary [mac-wk1] LayoutTest media/modern-media-controls/airplay-button/airplay-butto...
Attachments
Patch (4.73 KB, patch)
2017-03-01 20:03 PST, Antoine Quint
no flags
Patch (4.49 KB, patch)
2017-03-08 11:51 PST, Antoine Quint
no flags
Patch (4.92 KB, patch)
2017-03-09 07:35 PST, Antoine Quint
no flags
Patch for landing (8.36 KB, patch)
2017-03-10 02:52 PST, Antoine Quint
no flags
Patch (16.56 KB, patch)
2017-03-28 11:59 PDT, Antoine Quint
no flags
Archive of layout-test-results from ews100 for mac-elcapitan (1.13 MB, application/zip)
2017-03-28 13:00 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.29 MB, application/zip)
2017-03-28 13:16 PDT, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-elcapitan (1.85 MB, application/zip)
2017-03-28 13:18 PDT, Build Bot
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (1.13 MB, application/zip)
2017-03-28 13:52 PDT, Build Bot
no flags
Patch (17.33 KB, patch)
2017-03-28 15:08 PDT, Antoine Quint
no flags
Patch (17.96 KB, patch)
2017-03-28 15:57 PDT, Antoine Quint
no flags
Archive of layout-test-results from ews117 for mac-elcapitan (2.04 MB, application/zip)
2017-03-28 17:06 PDT, Build Bot
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (1.12 MB, application/zip)
2017-03-28 17:22 PDT, Build Bot
no flags
Archive of layout-test-results from ews126 for ios-simulator-wk2 (1.09 MB, application/zip)
2017-03-28 17:45 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.13 MB, application/zip)
2017-03-28 17:52 PDT, Build Bot
no flags
Patch (17.98 KB, patch)
2017-03-28 23:48 PDT, Antoine Quint
no flags
Patch (18.17 KB, patch)
2017-03-29 00:34 PDT, Antoine Quint
no flags
Patch (17.96 KB, patch)
2017-03-29 00:45 PDT, Antoine Quint
no flags
Patch for landing (17.96 KB, patch)
2017-03-29 01:57 PDT, Antoine Quint
no flags
Patch for landing (2.51 KB, patch)
2017-03-30 05:30 PDT, Antoine Quint
no flags
Patch for landing (4.04 KB, patch)
2017-03-30 23:03 PDT, Antoine Quint
no flags
Patch for landing (4.06 KB, patch)
2017-03-31 00:44 PDT, Antoine Quint
no flags
Patch (16.55 KB, patch)
2017-05-22 09:30 PDT, Antoine Quint
no flags
Patch for landing (24.39 KB, patch)
2017-05-22 12:14 PDT, Antoine Quint
no flags
Patch for landing (1.62 KB, patch)
2017-05-24 01:22 PDT, Antoine Quint
no flags
Ryan Haddad
Comment 1 2017-02-16 15:50:48 PST
Radar WebKit Bug Importer
Comment 2 2017-03-01 20:02:41 PST
Antoine Quint
Comment 3 2017-03-01 20:03:48 PST
WebKit Commit Bot
Comment 4 2017-03-01 21:23:08 PST
Comment on attachment 303164 [details] Patch Clearing flags on attachment: 303164 Committed r213263: <http://trac.webkit.org/changeset/213263>
WebKit Commit Bot
Comment 5 2017-03-01 21:23:12 PST
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 6 2017-03-02 14:36:06 PST
This test has timed out 3 times today on mac-wk1. Reopening.
Antoine Quint
Comment 7 2017-03-08 11:51:05 PST
Dean Jackson
Comment 8 2017-03-08 13:15:19 PST
Comment on attachment 303825 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=303825&action=review > LayoutTests/media/modern-media-controls/airplay-button/airplay-button.html:27 > +airplayButton._image.addEventListener("load", event => { Will this image always be not-yet-loaded when this code runs?
Antoine Quint
Comment 9 2017-03-08 13:28:27 PST
(In reply to comment #8) > Comment on attachment 303825 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=303825&action=review > > > LayoutTests/media/modern-media-controls/airplay-button/airplay-button.html:27 > > +airplayButton._image.addEventListener("load", event => { > > Will this image always be not-yet-loaded when this code runs? On a first run, it should be, yes. On a re-run, it won't. But bots will always be in the first case.
WebKit Commit Bot
Comment 10 2017-03-08 13:56:15 PST
Comment on attachment 303825 [details] Patch Clearing flags on attachment: 303825 Committed r213595: <http://trac.webkit.org/changeset/213595>
WebKit Commit Bot
Comment 11 2017-03-08 13:56:19 PST
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 12 2017-03-08 14:10:07 PST
Reopenng since the last patch was only about adding more assertions for more detailed logging but likely not fixing the overall issue.
Ryan Haddad
Comment 13 2017-03-08 16:13:42 PST
I marked the test as pass/fail in http://trac.webkit.org/projects/webkit/changeset/213604 because it was making the bots red.
Antoine Quint
Comment 14 2017-03-09 05:03:12 PST
OK, so with the additional logging, we have an interesting timeout here: https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/r213599%20(12043)/media/modern-media-controls/airplay-button/airplay-button-pretty-diff.html PASS airplayButton.element.classList.contains("icon") is true PASS airplayButton.element.classList.contains("airplay") is true PASS airplayButton.iconName is "airplay" -PASS airplayButton.width is 0 -PASS airplayButton.height is 0 +FAIL airplayButton.width should be 0. Was 25. +FAIL airplayButton.height should be 0. Was 22. PASS airplayButton._image is iconService.imageForIconNameAndLayoutTraits(Icons.Airplay, LayoutTraits.macOS) PASS airplayButton._image.src is not "" -PASS airplayButton._image.complete is false +FAIL airplayButton._image.complete should be false. Was true. PASS airplayButton.width is not 0 PASS airplayButton.height is not 0 PASS airplayButton.needsLayout is true PASS scheduler.hasScheduledLayoutCallbacks is true -PASS airplayButton.element.style.webkitMaskImage.includes("macOS/airplay@") became true -PASS macOSFullscreenAirplayButton.element.style.webkitMaskImage.includes("macOS/airplay-fullscreen@") became true -PASS iOSAirplayButton.element.style.webkitMaskImage.includes("iOS/airplay@") became true So, the "load" event is dispatched on button's image, since the new assertions that happen during that event are reached. However, this assertions times out: shouldBecomeEqual('airplayButton.element.style.webkitMaskImage.includes("macOS/airplay@")', "true", …) So… _updateImage() is called but somehow we're not getting the right properties committed and the CSS change never happens.
Antoine Quint
Comment 15 2017-03-09 07:35:04 PST
Eric Carlson
Comment 16 2017-03-09 07:37:32 PST
Comment on attachment 303919 [details] Patch rs=me
WebKit Commit Bot
Comment 17 2017-03-09 08:17:50 PST
Comment on attachment 303919 [details] Patch Clearing flags on attachment: 303919 Committed r213642: <http://trac.webkit.org/changeset/213642>
WebKit Commit Bot
Comment 18 2017-03-09 08:17:55 PST
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 19 2017-03-09 08:18:17 PST
Reopenng since the last patch was only about adding more assertions for more detailed logging but likely not fixing the overall issue.
Antoine Quint
Comment 20 2017-03-10 02:15:19 PST
So with the new logging the state looks as expected but somehow the rAF call that is scheduled never completes. There's still a chance that for some reason we are causing the rAF call to be canceled. I'll add some more logging so we can see what's wrong. The other reason might be that the rAF call, for other reasons outside of the MMC codebase, never happens.
Antoine Quint
Comment 21 2017-03-10 02:24:23 PST
Actually, looking at the code some more, we never unregister rAF calls. Something is terribly wrong here, and I don't have any evidence that this is a failure in the MMC codebase.
Antoine Quint
Comment 22 2017-03-10 02:52:42 PST
Created attachment 304036 [details] Patch for landing
WebKit Commit Bot
Comment 23 2017-03-10 03:31:59 PST
Comment on attachment 304036 [details] Patch for landing Clearing flags on attachment: 304036 Committed r213706: <http://trac.webkit.org/changeset/213706>
WebKit Commit Bot
Comment 24 2017-03-10 03:32:05 PST
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 25 2017-03-10 04:31:27 PST
Reopening since we're only adding additional assertions.
Ryan Haddad
Comment 27 2017-03-16 10:23:03 PDT
Marked test as a flaky timeout on mac-wk1 in http://trac.webkit.org/projects/webkit/changeset/214050
Antoine Quint
Comment 28 2017-03-17 07:53:26 PDT
The next step will be to add some logging in WebCore to try to understand why the rAF callback isn't being fired.
Antoine Quint
Comment 29 2017-03-28 11:59:45 PDT
Dean Jackson
Comment 30 2017-03-28 12:13:40 PDT
Comment on attachment 305619 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=305619&action=review > Source/WebCore/dom/ScriptedAnimationController.cpp:341 > +{ > + m_document->dispatchEvent(Event::create(type, false, false)); > +} What about the if (m_shouldDispatchEvents) ?
Build Bot
Comment 31 2017-03-28 13:00:32 PDT
Comment on attachment 305619 [details] Patch Attachment 305619 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3428448 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 32 2017-03-28 13:00:34 PDT
Created attachment 305627 [details] Archive of layout-test-results from ews100 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 33 2017-03-28 13:16:04 PDT
Comment on attachment 305619 [details] Patch Attachment 305619 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3428510 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 34 2017-03-28 13:16:06 PDT
Created attachment 305630 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 35 2017-03-28 13:18:50 PDT
Comment on attachment 305619 [details] Patch Attachment 305619 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3428483 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 36 2017-03-28 13:18:52 PDT
Created attachment 305632 [details] Archive of layout-test-results from ews113 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 37 2017-03-28 13:52:40 PDT
Comment on attachment 305619 [details] Patch Attachment 305619 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3428668 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 38 2017-03-28 13:52:42 PDT
Created attachment 305637 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Antoine Quint
Comment 39 2017-03-28 15:08:09 PDT
Dean Jackson
Comment 40 2017-03-28 15:26:53 PDT
../../Source/WebCore/dom/ScriptedAnimationController.h:99:10: note: initializing argument 1 of 'void WebCore::ScriptedAnimationController::dispatchLoggingEventIfRequired(const int&)' ../../Source/WebCore/dom/ScriptedAnimationController.cpp:202:69: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
Dean Jackson
Comment 41 2017-03-28 15:31:35 PDT
Comment on attachment 305648 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=305648&action=review > Source/WebCore/dom/ScriptedAnimationController.cpp:84 > + dispatchLoggingEventIfRequired("raf-suspend"); GTK is failing because this function expects an AtomicString, not a char*. You either want something like AtomicString("raf-suspend", AtomicString::ConstructFromLiteral) or ASCIILiteral("raf-suspend") (which itself will do a conversion)
Antoine Quint
Comment 42 2017-03-28 15:57:00 PDT
Build Bot
Comment 43 2017-03-28 17:06:49 PDT
Comment on attachment 305657 [details] Patch Attachment 305657 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3429927 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html fast/animation/request-animation-frame-remove-client.html
Build Bot
Comment 44 2017-03-28 17:06:52 PDT
Created attachment 305676 [details] Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 45 2017-03-28 17:22:41 PDT
Comment on attachment 305657 [details] Patch Attachment 305657 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3430091 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 46 2017-03-28 17:22:43 PDT
Created attachment 305679 [details] Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 47 2017-03-28 17:44:58 PDT
Comment on attachment 305657 [details] Patch Attachment 305657 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/3430118 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 48 2017-03-28 17:45:01 PDT
Created attachment 305683 [details] Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 49 2017-03-28 17:52:39 PDT
Comment on attachment 305657 [details] Patch Attachment 305657 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3430337 New failing tests: fast/animation/request-animation-frame-detach-element.html fast/animation/request-animation-frame-detach-element2.html
Build Bot
Comment 50 2017-03-28 17:52:42 PDT
Created attachment 305684 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Antoine Quint
Comment 51 2017-03-28 23:48:09 PDT
Antoine Quint
Comment 52 2017-03-29 00:34:36 PDT
Antoine Quint
Comment 53 2017-03-29 00:45:41 PDT
Antoine Quint
Comment 54 2017-03-29 01:57:47 PDT
Created attachment 305716 [details] Patch for landing
WebKit Commit Bot
Comment 55 2017-03-29 02:39:44 PDT
Comment on attachment 305716 [details] Patch for landing Clearing flags on attachment: 305716 Committed r214532: <http://trac.webkit.org/changeset/214532>
WebKit Commit Bot
Comment 56 2017-03-29 02:39:49 PDT
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 57 2017-03-29 03:44:27 PDT
Reopening since we only added logging.
Antoine Quint
Comment 58 2017-03-30 04:57:23 PDT
The addition of ScriptedAnimationController reveals the issue, ScriptedAnimationController gets suspended: https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214547%20(229)/media/modern-media-controls/airplay-button/airplay-button-pretty-diff.html https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214536%20(226)/media/modern-media-controls/airplay-button/airplay-button-pretty-diff.html https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214598%20(247)/media/modern-media-controls/airplay-button/airplay-button-pretty-diff.html All of those show a call to suspend() right before registerCallback() is called, and as a result scheduleAnimation() is never called. There are two call sites for ScriptedAnimationController::suspend(), Document::suspendScriptedAnimationControllerCallbacks() and Document::requestAnimationFrame() in case there's no page or animations are suspended on that page when we're trying to create the ScriptedAnimationController.
Antoine Quint
Comment 59 2017-03-30 05:14:49 PDT
The logging seems to indicate that it's the call to requestAnimationFrame() from JS that triggers the call to suspend() through Document::requestAnimationFrame(). We're likely hitting this condition: // It's possible that the Page may have suspended scripted animations before // we were created. We need to make sure that we don't start up the animation // controller on a background tab, for example. if (!page() || page()->scriptedAnimationsSuspended()) m_scriptedAnimationController->suspend(); I'll add more logging to figure out if that's correct and which of those conditions are true.
Antoine Quint
Comment 60 2017-03-30 05:30:13 PDT
Created attachment 305859 [details] Patch for landing
WebKit Commit Bot
Comment 61 2017-03-30 06:11:28 PDT
Comment on attachment 305859 [details] Patch for landing Clearing flags on attachment: 305859 Committed r214603: <http://trac.webkit.org/changeset/214603>
WebKit Commit Bot
Comment 62 2017-03-30 06:11:35 PDT
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 63 2017-03-30 06:20:19 PDT
Reopening since the last patch was just providing more logging.
Antoine Quint
Comment 64 2017-03-30 23:03:04 PDT
Created attachment 305944 [details] Patch for landing
WebKit Commit Bot
Comment 65 2017-03-30 23:04:31 PDT
Comment on attachment 305944 [details] Patch for landing Rejecting attachment 305944 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 305944, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit /Volumes/Data/EWS/WebKit/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://webkit-queues.webkit.org/results/3446233
Antoine Quint
Comment 66 2017-03-31 00:44:33 PDT
Created attachment 305951 [details] Patch for landing
Antoine Quint
Comment 67 2017-03-31 00:50:46 PDT
Some comments on IRC from Alexey about past changes related to throttling or suspending animations: ap: graouts: looking for changes in history... ap: graouts: not the one I was thinking of, but related: https://trac.webkit.org/r184807 ap: graouts: more related, http://trac.webkit.org/r183488 ap: graouts: multiple related fixes in https://bugs.webkit.org/show_bug.cgi?id=144155 ap: graouts: and https://bugs.webkit.org/show_bug.cgi?id=147718
WebKit Commit Bot
Comment 68 2017-03-31 01:25:45 PDT
Comment on attachment 305951 [details] Patch for landing Clearing flags on attachment: 305951 Committed r214659: <http://trac.webkit.org/changeset/214659>
WebKit Commit Bot
Comment 69 2017-03-31 01:25:47 PDT
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 70 2017-03-31 02:15:55 PDT
Reopening since commit was to add logging only.
Antoine Quint
Comment 71 2017-03-31 22:35:32 PDT
So it's definitely the page()->scriptedAnimationsSuspended() condition that causes the call to requestAnimationFrame() to suspend the ScriptedAnimationController. However, the call to Page::suspendScriptedAnimations() must happen before we set internals.settings.setShouldDispatchRequestAnimationFrameEvents(true) because we don't see the backtrace for the call to Page::suspendScriptedAnimations(). https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK1%20(Tests)/r214699%20(292)/media/modern-media-controls/airplay-button/airplay-button-pretty-diff.html
Antoine Quint
Comment 72 2017-05-22 09:30:19 PDT
Simon Fraser (smfr)
Comment 73 2017-05-22 10:58:14 PDT
Comment on attachment 310887 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=310887&action=review > Source/WebCore/page/Page.cpp:1146 > + WTFReportBacktrace(); You might want to WTFLogAlways() something just before this so people know why you're logging backtraces.
Antoine Quint
Comment 74 2017-05-22 12:14:22 PDT
Created attachment 310899 [details] Patch for landing
WebKit Commit Bot
Comment 75 2017-05-22 12:44:57 PDT
Comment on attachment 310899 [details] Patch for landing Clearing flags on attachment: 310899 Committed r217239: <http://trac.webkit.org/changeset/217239>
WebKit Commit Bot
Comment 76 2017-05-22 12:45:00 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 77 2017-05-22 16:52:03 PDT
(In reply to Simon Fraser (smfr) from comment #73) > Comment on attachment 310887 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=310887&action=review > > > Source/WebCore/page/Page.cpp:1146 > > + WTFReportBacktrace(); > > You might want to WTFLogAlways() something just before this so people know > why you're logging backtraces. It looks like logging these backtraces has caused performance tests to fail due to the unexpected output: https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20(Perf)/builds/466
Ryan Haddad
Comment 78 2017-05-22 17:05:42 PDT
I see the logging in the stdio for this LayoutTest run, not sure if it is what you were hoping for: https://build.webkit.org/builders/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/builds/1383
Michael Catanzaro
Comment 79 2017-05-22 18:50:24 PDT
Thanks for tackling this issue; I've been seeing assertions relating to this code for some time. Unfortunately this broke the GTK+ layout test bot really badly: it's not uploading results at all anymore. Anyway, you achieved the desired effect of figuring out what layout tests cause this, because we have a detailed log: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20(Tests)/builds/1292/steps/layout-test/logs/stdio It's currently crashing on this (excepted from that log): 14:41:59.836 32412 worker/1: UnicodeEncodeError(''ascii' codec can't encode character u'\u2013' in position 119: ordinal not in range(128)') raised: 14:41:59.842 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/common/message_pool.py", line 255, in run 14:41:59.842 32412 worker.handle(message.name, message.src, *message.args) 14:41:59.842 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py", line 259, in handle 14:41:59.842 32412 self._run_test(test_input, test_list_name) 14:41:59.842 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py", line 283, in _run_test 14:41:59.842 32412 result = self._run_test_with_or_without_timeout(test_input, test_timeout_sec, stop_when_done) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py", line 326, in _run_test_with_or_without_timeout 14:41:59.843 32412 return self._run_test_in_this_thread(test_input, stop_when_done) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py", line 407, in _run_test_in_this_thread 14:41:59.843 32412 return self._run_single_test(self._driver, test_input, stop_when_done) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py", line 411, in _run_single_test 14:41:59.843 32412 self._name, driver, test_input, stop_when_done) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py", line 46, in run_single_test 14:41:59.843 32412 return runner.run() 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py", line 105, in run 14:41:59.843 32412 return self._run_compare_test() 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py", line 108, in _run_compare_test 14:41:59.843 32412 driver_output = self._driver.run_test(self._driver_input(), self._stop_when_done) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/driver.py", line 680, in run_test 14:41:59.843 32412 return self._driver.run_test(driver_input, stop_when_done) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/driver.py", line 227, in run_test 14:41:59.843 32412 self.error_from_test, crash_log = self._get_crash_log(text, self.error_from_test, newer_than=start_time) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/driver.py", line 244, in _get_crash_log 14:41:59.843 32412 return self._port._get_crash_log(self._crashed_process_name, self._crashed_pid, stdout, stderr, newer_than) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/gtk.py", line 225, in _get_crash_log 14:41:59.843 32412 return GDBCrashLogGenerator(name, pid, newer_than, self._filesystem, self._path_to_driver).generate_crash_log(stdout, stderr) 14:41:59.843 32412 File "/home/slave/webkitgtk/gtk-linux-64-release-tests/build/Tools/Scripts/webkitpy/port/linux_get_crash_log.py", line 76, in generate_crash_log 14:41:59.843 32412 errors_str = cppfilt_proc.communicate(errors_str)[0] 14:41:59.843 32412 File "/usr/lib/python2.7/subprocess.py", line 799, in communicate 14:41:59.843 32412 return self._communicate(input) 14:41:59.843 32412 File "/usr/lib/python2.7/subprocess.py", line 1409, in _communicate 14:41:59.843 32412 stdout, stderr = self._communicate_with_poll(input) 14:41:59.843 32412 File "/usr/lib/python2.7/subprocess.py", line 1473, in _communicate_with_poll 14:41:59.843 32412 input_offset += os.write(fd, chunk) I'm tempted to roll this out, but first I'll try a speculative fix. I bet the text "Page::suspendScriptedAnimations() – webkit.org/b/168409" is what's breaking the text runner. I will try changing the Unicode – to an ASCII hyphen -.
Michael Catanzaro
Comment 80 2017-05-22 18:57:44 PDT
Michael Catanzaro
Comment 81 2017-05-22 20:28:42 PDT
The bot is reporting results again, so that did the trick. We should make the test runner not fail when it sees Unicode.
Antoine Quint
Comment 82 2017-05-23 00:53:31 PDT
(In reply to Ryan Haddad from comment #77) > It looks like logging these backtraces has caused performance tests to fail > due to the unexpected output: > https://build.webkit.org/builders/ > Apple%20El%20Capitan%20Release%20WK2%20(Perf)/builds/466 Hopefully I'll be able to remove them sometime today when we can see this test timing out and can see what's happening that might cause this based on the backtraces.
Ryan Haddad
Comment 83 2017-05-23 22:17:18 PDT
(In reply to Antoine Quint from comment #82) > (In reply to Ryan Haddad from comment #77) > > It looks like logging these backtraces has caused performance tests to fail > > due to the unexpected output: > > https://build.webkit.org/builders/ > > Apple%20El%20Capitan%20Release%20WK2%20(Perf)/builds/466 > > Hopefully I'll be able to remove them sometime today when we can see this > test timing out and can see what's happening that might cause this based on > the backtraces. It doesn't seem like the test has timed out. I don't think we should leave perf tests broken any longer.
Antoine Quint
Comment 84 2017-05-24 01:22:03 PDT
Reopening to attach new patch.
Antoine Quint
Comment 85 2017-05-24 01:22:06 PDT
Created attachment 311108 [details] Patch for landing
Antoine Quint
Comment 86 2017-05-24 01:24:24 PDT
(In reply to Ryan Haddad from comment #83) > It doesn't seem like the test has timed out. I don't think we should leave > perf tests broken any longer. I agree, just sent a patch out to turn the logging off.
WebKit Commit Bot
Comment 87 2017-05-24 02:01:02 PDT
Comment on attachment 311108 [details] Patch for landing Clearing flags on attachment: 311108 Committed r217348: <http://trac.webkit.org/changeset/217348>
WebKit Commit Bot
Comment 88 2017-05-24 02:01:05 PDT
All reviewed patches have been landed. Closing bug.
Antoine Quint
Comment 89 2017-06-07 05:20:42 PDT
This test has been rebaselined for the latest modern media controls codebase and yet it started timing out again, on Sierra Debug WK1 only for now. At this point I think we should expose a way to explicitly unsuspend rAF through Internals for modern-media-controls tests.
Antoine Quint
Comment 90 2017-06-07 05:21:07 PDT
Reopened due to recent flakiness.
Antoine Quint
Comment 91 2017-06-07 05:30:11 PDT
Antoine Quint
Comment 92 2017-06-13 13:55:30 PDT
https://bugs.webkit.org/show_bug.cgi?id=173326 will be adding extra logging to hopefully finally understand the root cause of this.
Antoine Quint
Comment 93 2017-06-16 12:00:13 PDT
The flakiness may be caused by https://bugs.webkit.org/show_bug.cgi?id=173485.
Antoine Quint
Comment 94 2017-06-20 17:05:03 PDT
Alas, we're stil hitting this issue, adding more, targeted logging in https://bugs.webkit.org/show_bug.cgi?id=173626.
Antoine Quint
Comment 95 2017-06-20 17:11:54 PDT
*** Bug 173620 has been marked as a duplicate of this bug. ***
Antoine Quint
Comment 96 2017-06-20 17:27:54 PDT
Let's close this, and track the issue with https://bugs.webkit.org/show_bug.cgi?id=173628 instead.
Note You need to log in before you can comment on or make changes to this bug.