New issue
Advanced search Search tips

Issue 731904 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

WebRtcImageCaptureBrowserTest.ManipulateZoom flaky on Android

Project Member Reported by pkotw...@chromium.org, Jun 9 2017

Issue description

WebRtcImageCaptureBrowserTest.ManipulateZoom fails on Android

Sample failure: https://uberchromegw.corp.google.com/i/chromium.android/builders/Marshmallow%2064%20bit%20Tester/builds/12904

I  472.978s run_tests_on_device(00a8c2fa96e54558)  Note: Google Test filter = WebRtcImageCaptureBrowserTest.ManipulateZoom/1
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [==========] Running 1 test from 1 test case.
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [----------] Global test environment set-up.
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [----------] 1 test from WebRtcImageCaptureBrowserTest
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [ RUN      ] WebRtcImageCaptureBrowserTest.ManipulateZoom/1
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [WARNING:dns_config_service_posix.cc(326)] Failed to read DnsConfig.
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [ERROR:devtools_http_handler.cc(226)] Cannot start http server for devtools. Stop devtools.
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [ERROR:child_process_launcher_helper_posix.cc(118)] Ignoring invalid file assets/snapshot_blob_32.bin
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [WARNING:simple_synchronous_entry.cc(1102)] Could not open platform files for entry.
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [INFO:CONSOLE(139)] "zoom not supported, skipping test", source: http://127.0.0.1:42270/media/image_capture_test.html (139)
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [INFO:CONSOLE(29)] "Test Success", source: http://127.0.0.1:42270/media/webrtc_test_utilities.js (29)
I  472.978s run_tests_on_device(00a8c2fa96e54558)  [FATAL:interface_endpoint_client.cc(33)] Check failed: !is_valid. The callback passed to ImageCapture::GetCapabilities() was never run.
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #00 0x0000007f7ff351b3 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x00000000010031b3
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #01 0x0000007f7fd67c9f /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000e35c9f
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #02 0x0000007f7fd67d27 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000e35d27
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #03 0x0000007f80dae553 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000001e7c553
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #04 0x0000007f80dae5df /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000001e7c5df
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #05 0x0000007f7ff0bfaf /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000fd9faf
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #06 0x0000007f7f9c6b27 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000a94b27
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #07 0x0000007f7ff0bfaf /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000fd9faf
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #08 0x0000007f7faccdd3 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000b9add3
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #09 0x0000007f7ff0bfaf /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000fd9faf
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #10 0x0000007f7ff5dc5f /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000102bc5f
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #11 0x0000007f7ff3ef2f /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000100cf2f
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #12 0x0000007f7ff3f14f /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000100d14f
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #13 0x0000007f7ff3f5a3 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000100d5a3
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #14 0x0000007f80f3ee57 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000200ce57
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #15 0x0000007f80f3ee9b /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000200ce9b
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #16 0x0000007f80f4055b /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000200e55b
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #17 0x0000007f80f3aaaf /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000002008aaf
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #18 0x0000007f822941db /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x00000000033621db
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #19 0x0000007f82264bd3 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000003332bd3
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #20 0x0000007f7fc486df /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000d166df
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #21 0x0000007f8219ab93 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000003268b93
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #22 0x0000007f821a00e3 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000326e0e3
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #23 0x0000007f821a0247 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000326e247
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #24 0x0000007f821a0303 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x000000000326e303
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #25 0x0000007f821a3ed7 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000003271ed7
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #26 0x0000007f821a40e3 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x00000000032720e3
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #27 0x0000007f822fe92f /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x00000000033cc92f
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #28 0x0000007f822674db /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x00000000033354db
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #29 0x0000007f822c6073 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000003394073
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #30 0x0000007f7f990733 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000a5e733
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #31 0x0000007f7fefa313 /data/app/org.chromium.content_browsertests_apk-1/lib/arm64/lib_content_browsertests__library.so+0x0000000000fc8313
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #32 0x0000007f873b140b /data/app/org.chromium.content_browsertests_apk-1/oat/arm64/base.odex+0x0000000000f9640b
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #33 0x0000007f873b242b /data/app/org.chromium.content_browsertests_apk-1/oat/arm64/base.odex+0x0000000000f9742b
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #34 0x0000007f873b12bb /data/app/org.chromium.content_browsertests_apk-1/oat/arm64/base.odex+0x0000000000f962bb
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #35 0x0000007f873b0b6f /data/app/org.chromium.content_browsertests_apk-1/oat/arm64/base.odex+0x0000000000f95b6f
I  472.978s run_tests_on_device(00a8c2fa96e54558)  #36 0x00000000729046e3 /data/dalvik-cache/arm64/system@framework@boot.oat+0x00000000029d06e3
I  472.979s run_tests_on_device(00a8c2fa96e54558)  
I  472.979s run_tests_on_device(00a8c2fa96e54558)  [ERROR:test_suite.cc(297)] Currently running: WebRtcImageCaptureBrowserTest.ManipulateZoom/1
I  472.979s run_tests_on_device(00a8c2fa96e54558)  [INFO:test_support_android.cc(185)] MessagePumpForUIFactory already set, unable to override.
I  472.979s run_tests_on_device(00a8c2fa96e54558)  >>ScopedMainEntryLogger

 
Cc: pkotw...@chromium.org
Summary: WebRtcImageCaptureBrowserTest.ManipulateZoom flaky on Android (was: WebRtcImageCaptureBrowserTest.ManipulateZoom fails on Android)
A different error for the same test

I  621.568s run_tests_on_device(00d752eb42bca748)  Note: Google Test filter = WebRtcImageCaptureBrowserTest.ManipulateZoom/1
I  621.568s run_tests_on_device(00d752eb42bca748)  [==========] Running 1 test from 1 test case.
I  621.568s run_tests_on_device(00d752eb42bca748)  [----------] Global test environment set-up.
I  621.568s run_tests_on_device(00d752eb42bca748)  [----------] 1 test from WebRtcImageCaptureBrowserTest
I  621.568s run_tests_on_device(00d752eb42bca748)  [ RUN      ] WebRtcImageCaptureBrowserTest.ManipulateZoom/1
I  621.568s run_tests_on_device(00d752eb42bca748)  [WARNING:dns_config_service_posix.cc(326)] Failed to read DnsConfig.
I  621.568s run_tests_on_device(00d752eb42bca748)  [ERROR:devtools_http_handler.cc(226)] Cannot start http server for devtools. Stop devtools.
I  621.569s run_tests_on_device(00d752eb42bca748)  [ERROR:child_process_launcher_helper_posix.cc(118)] Ignoring invalid file assets/snapshot_blob_32.bin
I  621.569s run_tests_on_device(00d752eb42bca748)  [WARNING:simple_synchronous_entry.cc(1102)] Could not open platform files for entry.
I  621.569s run_tests_on_device(00d752eb42bca748)  [INFO:CONSOLE(147)] "Setting zoom from 1 to 1.1", source: http://127.0.0.1:39416/media/image_capture_test.html (147)
I  621.569s run_tests_on_device(00d752eb42bca748)  [ERROR:webrtc_image_capture_browsertest.cc(111)] Error: expected '1.1', got '1.1001697778701782'.
I  621.569s run_tests_on_device(00d752eb42bca748)      at failTest (http://127.0.0.1:39416/media/webrtc_test_utilities.js:40:15)
I  621.569s run_tests_on_device(00d752eb42bca748)      at assertEquals (http://127.0.0.1:39416/media/webrtc_test_utilities.js:250:5)
I  621.569s run_tests_on_device(00d752eb42bca748)      at navigator.mediaDevices.getUserMedia.then.then.then.then.appliedConstraints (http://127.0.0.1:39416/media/image_capture_test.html:154:9)
I  621.569s run_tests_on_device(00d752eb42bca748)      at <anonymous>
I  621.569s run_tests_on_device(00d752eb42bca748)  referenceTable head length=54 1
I  621.569s run_tests_on_device(00d752eb42bca748)  ../../content/browser/webrtc/webrtc_image_capture_browsertest.cc:148: Failure
I  621.569s run_tests_on_device(00d752eb42bca748)  Value of: RunImageCaptureTestCase("testManipulateZoom()")
I  621.569s run_tests_on_device(00d752eb42bca748)    Actual: false
I  621.570s run_tests_on_device(00d752eb42bca748)  Expected: true
I  621.570s run_tests_on_device(00d752eb42bca748)  [  FAILED  ] WebRtcImageCaptureBrowserTest.ManipulateZoom/1, where GetParam() = 1-byte object <00> (1251 ms)
I  621.570s run_tests_on_device(00d752eb42bca748)  [----------] 1 test from WebRtcImageCaptureBrowserTest (1252 ms total)
I  621.570s run_tests_on_device(00d752eb42bca748)  
I  621.570s run_tests_on_device(00d752eb42bca748)  [----------] Global test environment tear-down
I  621.570s run_tests_on_device(00d752eb42bca748)  [==========] 1 test from 1 test case ran. (1252 ms total)
I  621.570s run_tests_on_device(00d752eb42bca748)  [  PASSED  ] 0 tests.
I  621.570s run_tests_on_device(00d752eb42bca748)  [  FAILED  ] 1 test, listed below:
I  621.570s run_tests_on_device(00d752eb42bca748)  [  FAILED  ] WebRtcImageCaptureBrowserTest.ManipulateZoom/1, where GetParam() = 1-byte object <00>
I was able to reproduce the error in comment #2 locally by running the test multiple times (10x) on a Nexus 9.
Components: Blink>ImageCapture
Project Member

Comment 5 by bugdroid1@chromium.org, Jun 10 2017

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

commit 377f71877f1da432e31fa19fbc9f464ae5d5c285
Author: Miguel Casas-Sanchez <mcasas@chromium.org>
Date: Sat Jun 10 00:51:20 2017

Image Capture: Skip 3 flaky content_browsertest test cases in Android 

Skip 3 flaky content browsertests in Android because it seems to
upset the mojo channel underneath and fails consistently on the bots.

The tests are: GetTrackCapabilities, GetTrackSettings and 
ManipulateZoom.  I'll fix them and reenable.

Bug:  731904 , 656810
Change-Id: I23f685e2edd4893a93e8bc64a64605c7ded1255c
Reviewed-on: https://chromium-review.googlesource.com/530264
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#478481}
[modify] https://crrev.com/377f71877f1da432e31fa19fbc9f464ae5d5c285/content/browser/webrtc/webrtc_image_capture_browsertest.cc

Project Member

Comment 6 by bugdroid1@chromium.org, Jun 10 2017

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

commit 1e963ee8ad0c396688f3ce5d86d880a60d3e19d8
Author: Miguel Casas-Sanchez <mcasas@chromium.org>
Date: Sat Jun 10 04:25:55 2017

Image Capture: reenable disabled android content_browsertests

Some android content_browsertests were disabled because of a crash
in a mojo DCHECK : ImageCapture tries to retrieve the capabilities 
of the Device upon construction and asynchronously. If the test 
finishes early, this request is in flight and we hit a DCHECK.

To work around this, we introduce a delay in the form of a request
of getPhotoCapabilities(), which goes through the same pipe and
that we can control from JS.  This is a bandaid until a more 
permanent solution comes to https://crbug.com/711524.

Also, ManipulateZoom hit in some devices a numerical accuracy
problem, e.g. |zoom| was increase by 0.1 but when retrieved it
was read as 0.100001. This CL also fixes that problem.

Bug:  731904 , 656810
Change-Id: Ifc99d0048b704d0d82584b423cce7d28ddba6e0e
Reviewed-on: https://chromium-review.googlesource.com/530513
Reviewed-by: Vincent Scheib <scheib@chromium.org>
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#478510}
[modify] https://crrev.com/1e963ee8ad0c396688f3ce5d86d880a60d3e19d8/content/browser/webrtc/webrtc_image_capture_browsertest.cc
[modify] https://crrev.com/1e963ee8ad0c396688f3ce5d86d880a60d3e19d8/content/test/data/media/image_capture_test.html

Comment 7 by mcasas@chromium.org, Jun 10 2017

Status: Fixed (was: Assigned)

Sign in to add a comment