New issue
Advanced search Search tips

Issue 652872 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Some Media related tests are broken on low end devices

Project Member Reported by sgu...@chromium.org, Oct 4 2016

Issue description

These tests below are broken lollipop low end tester

https://uberchromegw.corp.google.com/i/chromium.android/waterfall?show=Lollipop%20Low-end%20Tester

org.chromium.chrome.browser.media.remote.CastNotificationTest#testNotificationPause ( Code Search )
org.chromium.chrome.browser.media.remote.CastPositionTransferTest#testLocalToRemotePositionTransfer ( Code Search )
org.chromium.chrome.browser.media.remote.CastPositionTransferTest#testRemoteToLocalPositionTransfer ( Code Search )
org.chromium.chrome.browser.media.remote.CastStartStopTest#testCastingGenericVideo ( Code Search )
org.chromium.chrome.browser.media.remote.CastStartStopTest#testStopFromNotification ( Code Search )
org.chromium.chrome.browser.media.remote.CastStartStopTest#testStopFromVideoControls ( Code Search )
org.chromium.chrome.browser.media.remote.CastVideoControlsTest#testPauseButton ( Code Search )
org.chromium.chrome.browser.video.VideoTest#testLoadMediaUrl ( Code Search )


In a similar kind of failure, Toby tracked the failure reason to https://codereview.chromium.org/2344353003
which disables autoplay on low-end devices and fixed it by adding a play button to start.

see crbug/652389 for the other broken tests and fixed in android_webview.



 
the tests are failing with:
at org.chromium.chrome.browser.media.remote.CastTestBase.waitUntilVideoReady(CastTestBase.java:255)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.browser.media.remote.CastTestBase.prepareDefaultVideofromPage(CastTestBase.java:265)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.browser.media.remote.CastTestBase.castDefaultVideoFromPage(CastTestBase.java:273)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.browser.media.remote.CastNotificationTest.testNotificationPause(CastNotificationTest.java:31)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at org.chromium.chrome.test.ChromeActivityTestCaseBase.runTest(ChromeActivityTestCaseBase.java:726)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
I  791.447s run_tests_on_device(AG86044208C42GC)    	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
I  791.448s run_tests_on_device(AG86044208C42GC)    	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555)
I  791.448s run_tests_on_device(AG86044208C42GC)    	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853)
Cc: esprehn@chromium.org dalecur...@chromium.org
Components: Blink>Media>Video
Owner: foolip@chromium.org
foolip: Dale is OOO. Can you help forward this crbug to the right person to fix the tests. Let's not leave them broken till then.
Can we just revert that patch?
Cc: sande...@chromium.org ddorwin@chromium.org
Owner: avayvod@chromium.org
Status: Started (was: Untriaged)
I'm looking into fixing the Cast tests.

+Dan and David to take a look at the EME tests that I think are failing for the same reason:

https://uberchromegw.corp.google.com/i/chromium.android/builders/Lollipop%20Low-end%20Tester/builds/4118/steps/content_browsertests/logs/stdio
Cc: jrumm...@chromium.org xhw...@chromium.org
Components: Internals>Media>Encrypted
What device is this? Is it possible its hardware decoders are blacklisted?
Just FWIW, on low end devices the GPU process is in in-process mode (running as a thread in the browser process). Not sure whether this could be related. See a previous low-end bug (issue 609905) for the context.
Just in case it's related, you can use --in-process-gpu for testing/repro.
It's an Android 1 with LMY47W.
Do these tests rely on the default preload to load the media?
If not, perhaps, we should split it into another bug.
Have https://codereview.chromium.org/2400543002 out for the Cast tests.
Based on the logs, it seems the EME failures are in requestMediaKeySystemAccess(), and has no reliance on load(). The tests do expect play() to work without interaction, but we are using --disable-gesture-requirement-for-media-playback to avoid that.

Seems like a different bug.
The EME failures are being tracked in  issue 652896 . As sandersd@ noted, they are failures in requestMediaKeySystemAccess().
Project Member

Comment 13 by bugdroid1@chromium.org, Oct 7 2016

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

commit 680764f10bc0dc6f8aa7bfaef566b685983599cd
Author: rockot <rockot@chromium.org>
Date: Fri Oct 07 05:22:30 2016

Revert of [Cast, Tests] Handle low end and JB devices that don't preload videos (patchset #1 id:1 of https://codereview.chromium.org/2400543002/ )

Reason for revert:
Speculative revert because cast tests started flaking very heavily at this revision and it's effectively blocking things in the CQ.

See https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng?numbuilds=200 for example failures

Original issue's description:
> [Cast, Tests] Handle low end and JB devices that don't preload videos
>
> BUG= 652872 , 652389 
> TEST=run_chrome_public_test_apk --verbose --gtest_filter=org.chromium.chrome.browser.media.remote.* on both low end and not a low end device.
>
> Since https://codereview.chromium.org/2344353003 on low-end and JB devices videos
> are not preloaded so we have to trigger that in a button onclick handler.
>
> Committed: https://crrev.com/6e5b06e0201d483a1596aedf438fb931fbbe7b42
> Cr-Commit-Position: refs/heads/master@{#423775}

TBR=mlamouri@chromium.org,avayvod@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= 652872 , 652389 

Review-Url: https://codereview.chromium.org/2394273003
Cr-Commit-Position: refs/heads/master@{#423799}

[modify] https://crrev.com/680764f10bc0dc6f8aa7bfaef566b685983599cd/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java
[modify] https://crrev.com/680764f10bc0dc6f8aa7bfaef566b685983599cd/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastTestBase.java
[modify] https://crrev.com/680764f10bc0dc6f8aa7bfaef566b685983599cd/chrome/test/data/android/media/simple_video.html
[modify] https://crrev.com/680764f10bc0dc6f8aa7bfaef566b685983599cd/chrome/test/data/android/media/simple_video2.html
[modify] https://crrev.com/680764f10bc0dc6f8aa7bfaef566b685983599cd/chrome/test/data/android/media/two_videos.html

avayvod@, is there anything else to do here? Should we close? or maybe re-assess priority?
Owner: mlamouri@chromium.org
Status: Untriaged (was: Started)
Assigning all my bugs to Mounir for him to triage and close/reassign later.
Status: Fixed (was: Untriaged)

Sign in to add a comment