Bug 172602 - [WebRTC] Prevent capturing at unconventional resolutions when using the SW encoder on Mac
Summary: [WebRTC] Prevent capturing at unconventional resolutions when using the SW en...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on: 173563
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-25 11:54 PDT by youenn fablet
Modified: 2017-06-23 14:28 PDT (History)
7 users (show)

See Also:


Attachments
Patch (5.82 KB, patch)
2017-05-25 11:57 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-elcapitan (1.04 MB, application/zip)
2017-05-25 12:34 PDT, Build Bot
no flags Details
Patch (8.14 KB, patch)
2017-05-25 13:05 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (7.82 KB, patch)
2017-05-25 13:30 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-elcapitan (933.77 KB, application/zip)
2017-05-25 14:22 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews116 for mac-elcapitan (1.92 MB, application/zip)
2017-05-25 14:28 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews124 for ios-simulator-wk2 (11.94 MB, application/zip)
2017-05-25 15:51 PDT, Build Bot
no flags Details
Patch (23.07 KB, patch)
2017-05-26 12:51 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (23.12 KB, patch)
2017-05-26 14:09 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (23.14 KB, patch)
2017-05-26 14:16 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (23.18 KB, patch)
2017-05-26 14:40 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-elcapitan (753.62 KB, application/zip)
2017-05-26 15:38 PDT, Build Bot
no flags Details
Patch for landing (23.55 KB, patch)
2017-05-30 16:04 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-elcapitan (976.79 KB, application/zip)
2017-05-30 17:02 PDT, Build Bot
no flags Details
Adding more logging for WK1 (24.61 KB, patch)
2017-05-30 17:27 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-elcapitan (977.72 KB, application/zip)
2017-05-30 18:26 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews117 for mac-elcapitan (1.74 MB, application/zip)
2017-05-30 18:48 PDT, Build Bot
no flags Details
Patch for landing (26.00 KB, patch)
2017-06-19 10:19 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews115 for mac-elcapitan (1.75 MB, application/zip)
2017-06-19 11:40 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews102 for mac-elcapitan (977.26 KB, application/zip)
2017-06-19 12:12 PDT, Build Bot
no flags Details
Marking captureCanvas-webrtc.html as flaky on WK1 (25.46 KB, patch)
2017-06-19 13:03 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (27.27 KB, patch)
2017-06-20 16:50 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (27.24 KB, patch)
2017-06-20 17:12 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (27.23 KB, patch)
2017-06-21 13:20 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (27.07 KB, patch)
2017-06-22 08:14 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2017-05-25 11:54:44 PDT
[WebRTC] Prevent capturing at unconventional resolutions when using the SW encoder on Mac
Comment 1 youenn fablet 2017-05-25 11:55:01 PDT
rdar://problem/32283710
Comment 2 Radar WebKit Bug Importer 2017-05-25 11:55:29 PDT
<rdar://problem/32407693>
Comment 3 youenn fablet 2017-05-25 11:57:52 PDT
Created attachment 311257 [details]
Patch
Comment 4 Build Bot 2017-05-25 12:00:21 PDT
Attachment 311257 [details] did not pass style-queue:


ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Build Bot 2017-05-25 12:34:37 PDT
Comment on attachment 311257 [details]
Patch

Attachment 311257 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3815718

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 6 Build Bot 2017-05-25 12:34:38 PDT
Created attachment 311264 [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
Comment 7 youenn fablet 2017-05-25 13:05:47 PDT
Created attachment 311273 [details]
Patch
Comment 8 Build Bot 2017-05-25 13:08:03 PDT
Attachment 311273 [details] did not pass style-queue:


ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Jon Lee 2017-05-25 13:25:06 PDT
Comment on attachment 311273 [details]
Patch

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

r- with lack of test for non-standard resolution.

> Source/ThirdParty/libwebrtc/ChangeLog:3
> +        fix-172602

?

> Source/ThirdParty/libwebrtc/ChangeLog:20
> +        * Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:

Double Changelog.

> LayoutTests/ChangeLog:9
> +        * webrtc/captureCanvas-webrtc.html: Using standard resolutions.

we should have a test with expected behavior of non-standard resolutions as well.
Comment 10 youenn fablet 2017-05-25 13:27:34 PDT
> > Source/ThirdParty/libwebrtc/ChangeLog:20
> > +        * Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:
> 
> Double Changelog.
> 
> > LayoutTests/ChangeLog:9
> > +        * webrtc/captureCanvas-webrtc.html: Using standard resolutions.
> 
> we should have a test with expected behavior of non-standard resolutions as
> well.

This would require switching off the hardware encoder as some bots have one but not others. Doable with an Internals API but I am not sure this is worth it.
Comment 11 youenn fablet 2017-05-25 13:30:05 PDT
Created attachment 311280 [details]
Patch
Comment 12 Build Bot 2017-05-25 13:31:44 PDT
Attachment 311280 [details] did not pass style-queue:


ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 13 Build Bot 2017-05-25 14:22:01 PDT
Comment on attachment 311280 [details]
Patch

Attachment 311280 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3816614

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 14 Build Bot 2017-05-25 14:22:02 PDT
Created attachment 311290 [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
Comment 15 Build Bot 2017-05-25 14:28:39 PDT
Comment on attachment 311280 [details]
Patch

Attachment 311280 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/3816548

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 16 Build Bot 2017-05-25 14:28:40 PDT
Created attachment 311293 [details]
Archive of layout-test-results from ews116 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 17 Build Bot 2017-05-25 15:51:10 PDT
Comment on attachment 311280 [details]
Patch

Attachment 311280 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/3817068

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 18 Build Bot 2017-05-25 15:51:12 PDT
Created attachment 311306 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.5
Comment 19 youenn fablet 2017-05-26 12:51:13 PDT
Created attachment 311366 [details]
Patch
Comment 20 Build Bot 2017-05-26 12:53:46 PDT
Attachment 311366 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:573:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 21 youenn fablet 2017-05-26 14:09:30 PDT
Created attachment 311372 [details]
Patch
Comment 22 Build Bot 2017-05-26 14:10:31 PDT
Attachment 311372 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:573:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 23 youenn fablet 2017-05-26 14:16:40 PDT
Created attachment 311374 [details]
Patch
Comment 24 Build Bot 2017-05-26 14:19:29 PDT
Attachment 311374 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:573:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 25 youenn fablet 2017-05-26 14:40:01 PDT
Created attachment 311376 [details]
Patch
Comment 26 Build Bot 2017-05-26 14:42:09 PDT
Attachment 311376 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:573:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 27 Build Bot 2017-05-26 15:38:16 PDT
Comment on attachment 311376 [details]
Patch

Attachment 311376 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3823914

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 28 Build Bot 2017-05-26 15:38:17 PDT
Created attachment 311384 [details]
Archive of layout-test-results from ews102 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 29 youenn fablet 2017-05-30 09:46:19 PDT
(In reply to Build Bot from comment #27)
> Comment on attachment 311376 [details]
> Patch
> 
> Attachment 311376 [details] did not pass mac-ews (mac):
> Output: http://webkit-queues.webkit.org/results/3823914
> 
> New failing tests:
> webrtc/captureCanvas-webrtc.html

Test is failing due to the following message appearing in the console log:
AVDCreateGPUAccelerator: Error loading GPU renderer

I don't think this invalidates the patch.
Comment 30 Eric Carlson 2017-05-30 13:50:28 PDT
Comment on attachment 311376 [details]
Patch

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

> Source/WebCore/ChangeLog:12
> +        Adding internal API to switch on/off hardware H264 encoder.
> +        Adding checks for standard size. If using a software encoder and frame size is not standard,

Nit: "Adding" => "Add"

> LayoutTests/webrtc/captureCanvas-webrtc.html:49
> +    if (video.videoWidth === width && videoi.videoHeight === height)

Nit: "videoi"
Comment 31 Eric Carlson 2017-05-30 14:14:46 PDT
(In reply to youenn fablet from comment #29)
> (In reply to Build Bot from comment #27)
> > Comment on attachment 311376 [details]
> > Patch
> > 
> > Attachment 311376 [details] did not pass mac-ews (mac):
> > Output: http://webkit-queues.webkit.org/results/3823914
> > 
> > New failing tests:
> > webrtc/captureCanvas-webrtc.html
> 
> Test is failing due to the following message appearing in the console log:
> AVDCreateGPUAccelerator: Error loading GPU renderer
> 
> I don't think this invalidates the patch.

You should probably add "AVDCreateGPUAccelerator:" to the list of stderr strings that are not logged so it doesn't cause tests to be flakey on whatever configurations are causing this.
Comment 32 youenn fablet 2017-05-30 16:04:37 PDT
Created attachment 311549 [details]
Patch for landing
Comment 33 youenn fablet 2017-05-30 16:05:32 PDT
(In reply to Eric Carlson from comment #31)
> (In reply to youenn fablet from comment #29)
> > (In reply to Build Bot from comment #27)
> > > Comment on attachment 311376 [details]
> > > Patch
> > > 
> > > Attachment 311376 [details] did not pass mac-ews (mac):
> > > Output: http://webkit-queues.webkit.org/results/3823914
> > > 
> > > New failing tests:
> > > webrtc/captureCanvas-webrtc.html
> > 
> > Test is failing due to the following message appearing in the console log:
> > AVDCreateGPUAccelerator: Error loading GPU renderer
> > 
> > I don't think this invalidates the patch.
> 
> You should probably add "AVDCreateGPUAccelerator:" to the list of stderr
> strings that are not logged so it doesn't cause tests to be flakey on
> whatever configurations are causing this.

Let's see whether this happens again during cq and news bots.
If so, I will add it.
Comment 34 Build Bot 2017-05-30 16:07:24 PDT
Attachment 311549 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:576:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 35 Build Bot 2017-05-30 17:02:43 PDT
Comment on attachment 311549 [details]
Patch for landing

Attachment 311549 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3845023

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 36 Build Bot 2017-05-30 17:02:44 PDT
Created attachment 311556 [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
Comment 37 youenn fablet 2017-05-30 17:27:03 PDT
Created attachment 311561 [details]
Adding more logging for WK1
Comment 38 youenn fablet 2017-05-30 17:27:54 PDT
(In reply to Build Bot from comment #36)
> Created attachment 311556 [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

Now this is a real failure...
Comment 39 Build Bot 2017-05-30 17:30:16 PDT
Attachment 311561 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:576:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 40 Build Bot 2017-05-30 18:26:24 PDT
Comment on attachment 311561 [details]
Adding more logging for WK1

Attachment 311561 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3845382

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 41 Build Bot 2017-05-30 18:26:25 PDT
Created attachment 311564 [details]
Archive of layout-test-results from ews101 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 42 Build Bot 2017-05-30 18:48:03 PDT
Comment on attachment 311561 [details]
Adding more logging for WK1

Attachment 311561 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/3845398

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 43 Build Bot 2017-05-30 18:48:05 PDT
Created attachment 311565 [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
Comment 44 youenn fablet 2017-05-30 19:51:21 PDT
And here comes again "AVDCreateGPUAccelerator: Error loading GPU render"...
I'll add it to the stderr filter
Comment 45 youenn fablet 2017-06-19 10:19:35 PDT
Created attachment 313309 [details]
Patch for landing
Comment 46 youenn fablet 2017-06-19 10:20:07 PDT
(In reply to youenn fablet from comment #45)
> Created attachment 313309 [details]
> Patch for landing

Adding filtering of AVDCreateGPUAccelerator.
Comment 47 Build Bot 2017-06-19 10:21:26 PDT
Attachment 313309 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:583:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 48 Build Bot 2017-06-19 11:40:53 PDT
Comment on attachment 313309 [details]
Patch for landing

Attachment 313309 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/3960044

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 49 Build Bot 2017-06-19 11:40:54 PDT
Created attachment 313319 [details]
Archive of layout-test-results from ews115 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 50 Build Bot 2017-06-19 12:12:04 PDT
Comment on attachment 313309 [details]
Patch for landing

Attachment 313309 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3961186

New failing tests:
webrtc/captureCanvas-webrtc.html
Comment 51 Build Bot 2017-06-19 12:12:05 PDT
Created attachment 313325 [details]
Archive of layout-test-results from ews102 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 52 youenn fablet 2017-06-19 13:03:35 PDT
Created attachment 313326 [details]
Marking captureCanvas-webrtc.html as flaky on WK1
Comment 53 Build Bot 2017-06-19 13:17:03 PDT
Attachment 313326 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:583:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
WARNING: Not running on native Windows.
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 54 WebKit Commit Bot 2017-06-19 13:42:08 PDT
Comment on attachment 313326 [details]
Marking captureCanvas-webrtc.html as flaky on WK1

Clearing flags on attachment: 313326

Committed r218505: <http://trac.webkit.org/changeset/218505>
Comment 55 WebKit Commit Bot 2017-06-19 13:42:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 56 WebKit Commit Bot 2017-06-19 14:25:17 PDT
Re-opened since this is blocked by bug 173563
Comment 57 youenn fablet 2017-06-20 16:50:44 PDT
Created attachment 313455 [details]
Patch
Comment 58 Build Bot 2017-06-20 17:06:21 PDT
Attachment 313455 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:583:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
WARNING: Not running on native Windows.
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebCore/platform/mediastream/libwebrtc/H264VideoToolBoxEncoder.mm:102:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebCore/platform/mediastream/libwebrtc/H264VideoToolBoxEncoder.mm:125:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
Total errors found: 7 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 59 youenn fablet 2017-06-20 17:12:08 PDT
Created attachment 313458 [details]
Patch
Comment 60 Build Bot 2017-06-20 17:14:43 PDT
Attachment 313458 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:583:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
WARNING: Not running on native Windows.
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 61 youenn fablet 2017-06-21 13:20:51 PDT
Created attachment 313541 [details]
Patch
Comment 62 Build Bot 2017-06-21 13:31:30 PDT
Attachment 313541 [details] did not pass style-queue:


ERROR: Source/WebCore/testing/Internals.h:583:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
WARNING: Not running on native Windows.
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm:569:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:72:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 63 youenn fablet 2017-06-22 08:14:27 PDT
Created attachment 313627 [details]
Patch
Comment 64 Build Bot 2017-06-22 08:21:24 PDT
Attachment 313627 [details] did not pass style-queue:


ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.mm:536:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.mm:570:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebCore/testing/Internals.h:583:  The parameter name "allowed" adds no information, so it should be removed.  [readability/parameter_name] [5]
WARNING: Not running on native Windows.
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.h:73:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/Framework/Classes/VideoToolbox/encoder.h:74:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 5 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 65 WebKit Commit Bot 2017-06-22 08:29:18 PDT
Comment on attachment 313627 [details]
Patch

Clearing flags on attachment: 313627

Committed r218699: <http://trac.webkit.org/changeset/218699>
Comment 66 WebKit Commit Bot 2017-06-22 08:29:20 PDT
All reviewed patches have been landed.  Closing bug.
Comment 67 Matt Lewis 2017-06-23 14:26:54 PDT
It looks like the test platform/mac/webrtc/captureCanvas-webrtc-software-encoder.html is flaky and has been since being added. 
The Dashboard shows failures on all macOS testers.

https://build.webkit.org/results/Apple%20Sierra%20Release%20WK2%20(Tests)/r218757%20(2498)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=platform%2Fmac%2Fwebrtc%2FcaptureCanvas-webrtc-software-encoder.html

diff:
--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/platform/mac/webrtc/captureCanvas-webrtc-software-encoder-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/platform/mac/webrtc/captureCanvas-webrtc-software-encoder-actual.txt
@@ -1,4 +1,4 @@
    
 
-PASS captureStream with webrtc 
+FAIL captureStream with webrtc promise_test: Unhandled rejection with value: "test4 failed"