New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 904586 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Nov 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: ----



Sign in to add a comment

veyron_minnie-tot-chrome-pfq-informational failure at video_ChromeRTCHWEncodeUsed

Project Member Reported by weidongg@chromium.org, Nov 12

Issue description

PFQ-informational failed:

  video_ChromeRTCHWEncodeUsed           [ FAILED ]
  video_ChromeRTCHWEncodeUsed             ERROR: Cannot find Media.RTCVideoEncoderInitEncodeSuccess histogram.

https://luci-logdog.appspot.com/logs/chromeos/buildbucket/cr-buildbucket.appspot.com/8930049422602915424/+/steps/HWTest__bvt-cq_/0/stdout
 
Cc: jcliang@chromium.org
+jcliang@ who made change to video_ChromeRTCHWEncodeUsed.py most recently.
Components: OS>Kernel>Video
Labels: -Build-PFQ-Failures
Usually that means that somebody broke video inside of Chrome. You will have to bisect Chrome against the test to figure out the change that broke it. Alternatively you can temporarily change the control file from ATTRIBUTES suite:bvt-cq to suite:bvt-perbuild with a TODO to revert, chump it, and assign this issue to the video team.
Project Member

Comment 4 by bugdroid1@chromium.org, Nov 13

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/a40526be5a2d1307fdb760587bcb743275054d66

commit a40526be5a2d1307fdb760587bcb743275054d66
Author: Weidong Guo <weidongg@chromium.org>
Date: Tue Nov 13 00:21:29 2018

Temporarily change attributes to suite:bvt-perbuild

The change fixed the failure in veyron_minnie-tot-chrome-pfq-informational builder caused by video_ChromeRTCHWEncodeUsed failure. It should be revert when the test failure is fixed.

BUG= chromium:904586 
TEST=None

Change-Id: Ib8646e8626b645650761d612251ded90bb4dc9f1
Reviewed-on: https://chromium-review.googlesource.com/c/1333067
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Ilja H. Friedel <ihf@chromium.org>

[modify] https://crrev.com/a40526be5a2d1307fdb760587bcb743275054d66/client/site_tests/video_ChromeRTCHWEncodeUsed/control

Owner: hiroh@chromium.org
Status: Started (was: Untriaged)
Assigning to hiroh@ who's been looking into this issue. Thank you.
Cc: hiroh@chromium.org dpranke@google.com
Owner: phoglund@chromium.org
I bisected and found crrev.com/c/1323089 is culprit.
The CL breaks v4l2_ioctl on at least minnie (perhaps widely Chrome OS).
assign to phoglund@ and cc others.
Cc: tfiga@chromium.org
If this does not reproduce on all V4L2 devices, this would suggest that there is an issue with v4l2_ioctl, and likely libv4l plugins. If this is not reproducing on kevin, that would suggest an issue with libv4l2 encoder plugin on minnie, that is not present in kevin's plugin?
Can I remove "Restrict-View-Google" label so that tomas.popela@gmail.com is able to view this issue?
Labels: -Restrict-View-Google
Doesn't look like we need to restrict this.
Cc: tomas.po...@gmail.com
+tomas.poela@gmail.com, who is AUTHORS of the CL.
I still can't access any logs. Can someone paste here the actual error? Or there is no error, but it just started to misbehave? That CL I've done was actually fixing things, because it was only passing the first variadic parameter (and was ignoring the others that were passed to the stub). Could this be a thing that some code now doesn't expect that more parameters are passed to it?
This issue also happens on kevin. So the issue is common when libv4l plugins are used.
Yep, I am investigating the issue. It may be due to the plugin or driver issue.

The test fails because v4l2_ioctl(fd, VIDICO_ENUM_FMT, &v4l2_fmtdesc) is processed properly, so that no pixel format is supported on the device.
In the new below generated code, how are the variadic arguments passed to v4l2_ioctl_ptr?

LIBV4L_PUBLIC int  v4l2_ioctl(int fd, unsigned long int request, ...) {
#define v4l2_ioctl_ptr_variadic(fd, request, ...) v4l2_ioctl_ptr(fd, request, ##__VA_ARGS__)
  return v4l2_ioctl_ptr_variadic(fd, request);
}
Project Member

Comment 17 by bugdroid1@chromium.org, Nov 13

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cc6ae6a34d49604633b77f030a78a49d8bb89e3d

commit cc6ae6a34d49604633b77f030a78a49d8bb89e3d
Author: Hirokazu Honda <hiroh@chromium.org>
Date: Tue Nov 13 10:27:37 2018

Revert "Add support for variadic arguments in generated stubs"

This reverts commit d27bb5431562964962e8eef4a4374d27290b218d.

Reason for revert: This CL causes HW encoding functionality loss on some Chrome OS devices, minnie and kevin.

Original change's description:
> Add support for variadic arguments in generated stubs
>
> Previously we were using va_list for variadic arguments. The downside
> for this was that only the first value from the variadic argument was
> passed to the original function.
>
> To make it work properly we have to use the __VA_ARGS__ variadic macro
> that was introduces in C99 and is available in all major C/C++
> compilers.
>
> Change-Id: I50652f7348a16214811aaab8af116d78cdb70444
> Reviewed-on: https://chromium-review.googlesource.com/c/1323089
> Reviewed-by: Patrik Höglund <phoglund@chromium.org>
> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
> Commit-Queue: Tomáš Popela <tomas.popela@gmail.com>
> Cr-Commit-Position: refs/heads/master@{#606588}

TBR=phoglund@chromium.org,dpranke@chromium.org,braveyao@chromium.org,brucedawson@chromium.org,tomas.popela@gmail.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug:  904586 
Change-Id: I04157ea305decc170d5efd4ba228c92bd4020ef6
Reviewed-on: https://chromium-review.googlesource.com/c/1333013
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607545}
[modify] https://crrev.com/cc6ae6a34d49604633b77f030a78a49d8bb89e3d/tools/generate_stubs/generate_stubs.py
[modify] https://crrev.com/cc6ae6a34d49604633b77f030a78a49d8bb89e3d/tools/generate_stubs/generate_stubs_unittest.py

The lastest two runs of veyron_minnie-tot-chrome-pfq-informational are both green, thanks for the fix!
Status: Fixed (was: Started)

Sign in to add a comment