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

Issue 689272 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Check failed: program->color_matrix_location() != -1 (-1 vs. -1) [content_browsertests is flaky]

Project Member Reported by briander...@chromium.org, Feb 7 2017

Issue description

Here's a link to the flakes. They only appear on cast_shell_linux and started appearing pretty often on Feb 2.

http://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNyLAsSBUZsYWtlIiFjb250ZW50X2Jyb3dzZXJ0ZXN0cyAod2l0aCBwYXRjaCkM

Likely related to https://codereview.chromium.org/2670773002.

The log usually looks like this:

[2836:2836:0202/115437.660640:953214687:ERROR:gles2_cmd_decoder.cc(5271)] Error: 5 for Command kLoseContextCHROMIUM
[2836:2836:0202/115437.660768:953214799:ERROR:gpu_channel_manager.cc(226)] Exiting GPU process because some drivers cannot recover from problems.
[2811:2811:0202/115437.663925:953217957:ERROR:program_binding.cc(220)] Error compiling shader: 
 shader program: #define TexCoordPrecision highp
attribute TexCoordPrecision vec4 a_position;
uniform mat4 matrix;
varying TexCoordPrecision vec2 v_uvTexCoord;
varying TexCoordPrecision vec2 v_yaTexCoord;
attribute TexCoordPrecision vec2 a_texCoord;
uniform TexCoordPrecision vec2 uvTexOffset;
uniform TexCoordPrecision vec2 uvTexScale;
uniform TexCoordPrecision vec2 yaTexOffset;
uniform TexCoordPrecision vec2 yaTexScale;
void main() {
  // Compute the position.
  vec4 pos = a_position;
  gl_Position = matrix * pos;
  // Compute texture coordinates.
  vec2 texCoord = a_texCoord;
  v_yaTexCoord = texCoord * yaTexScale + yaTexOffset;
  v_uvTexCoord = texCoord * uvTexScale + uvTexOffset;
}

[2811:2811:0202/115437.664012:953218042:FATAL:gl_renderer.cc(2297)] Check failed: program->color_matrix_location() != -1 (-1 vs. -1)
#0 0x000002226bb7 base::debug::StackTrace::StackTrace()
#1 0x00000223885b logging::LogMessage::~LogMessage()
#2 0x000004f3c1bf cc::GLRenderer::DrawYUVVideoQuad()
#3 0x000004f395a8 cc::GLRenderer::DoDrawQuad()
#4 0x000004f36864 cc::DirectRenderer::DrawRenderPass()
#5 0x000004f35d7d cc::DirectRenderer::DrawRenderPassAndExecuteCopyRequests()
#6 0x000004f35afe cc::DirectRenderer::DrawFrame()
#7 0x000003272e49 cc::Display::DrawAndSwap()
#8 0x000003274ad6 cc::DisplayScheduler::DrawAndSwap()
#9 0x00000327435d cc::DisplayScheduler::AttemptDrawAndSwap()
#10 0x000003273ba7 cc::DisplayScheduler::OnBeginFrameDeadline()
#11 0x000000a9233a _ZN4base8internal13FunctorTraitsIMN7content21EmbeddedServiceRunnerEFvvEvE6InvokeIRKNS_7WeakPtrIS3_EEJEEEvS5_OT_DpOT0_
#12 0x000000c7d393 base::CancelableCallback<>::Forward()
#13 0x000000a9233a _ZN4base8internal13FunctorTraitsIMN7content21EmbeddedServiceRunnerEFvvEvE6InvokeIRKNS_7WeakPtrIS3_EEJEEEvS5_OT_DpOT0_
#14 0x0000022c35ae base::debug::TaskAnnotator::RunTask()
#15 0x00000224117d base::MessageLoop::RunTask()
#16 0x000002241836 base::MessageLoop::DoWork()
#17 0x000002243f99 base::MessagePumpLibevent::Run()
#18 0x000002240ed3 base::MessageLoop::RunHandler()
#19 0x000002261cfc base::RunLoop::Run()
#20 0x000001ecfb8b content::TitleWatcher::WaitAndGetTitle()
#21 0x0000006f75b8 content::MediaBrowserTest::RunTest()
#22 0x0000006f718e content::MediaBrowserTest::RunMediaTestPage()
#23 0x0000006f4a1f content::EncryptedMediaTest::RunEncryptedMediaTest()
#24 0x0000006f42e9 content::EncryptedMediaTest::TestFrameSizeChange()
#25 0x000001ec1a0e content::ContentBrowserTest::RunTestOnMainThreadLoop()
#26 0x000001ecba06 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop()
#27 0x000001f33144 content::ShellBrowserMainParts::PreMainMessageLoopRun()
#28 0x000001803675 content::BrowserMainLoop::PreMainMessageLoopRun()
#29 0x000001bdc846 content::StartupTaskRunner::RunAllTasksNow()
#30 0x00000180156b content::BrowserMainLoop::CreateStartupTasks()
#31 0x000001806aea content::BrowserMainRunnerImpl::Initialize()
#32 0x000001f1898c ShellBrowserMain()
#33 0x000001f0ec12 content::ShellMainDelegate::RunProcess()
#34 0x0000017213d3 content::RunNamedProcessTypeMain()
#35 0x000001721e56 content::ContentMainRunnerImpl::Run()
#36 0x000000d9cd90 content::ContentMain()
#37 0x000001ecb310 content::BrowserTestBase::SetUp()
#38 0x000001ec1883 content::ContentBrowserTest::SetUp()
#39 0x0000020e237e testing::Test::Run()
#40 0x0000020e2f40 testing::TestInfo::Run()
#41 0x0000020e32b7 testing::TestCase::Run()
#42 0x0000020ea397 testing::internal::UnitTestImpl::RunAllTests()
#43 0x0000020ea017 testing::UnitTest::Run()
#44 0x000001eeed21 base::TestSuite::Run()
#45 0x000001ec6156 content::ContentTestLauncherDelegate::RunTestSuite()
#46 0x000001edfa4c content::LaunchTests()
#47 0x000001ec6103 main
#48 0x7ff7e86e0f45 __libc_start_main
#49 0x000000497cd1 <unknown>

[1702/1702] MSE_ClearKey/EncryptedMediaTest.FrameSizeChangeVideo/0 (454 ms)
 

Comment 1 by kbr@chromium.org, Feb 7 2017

Labels: -Pri-3 Pri-1
Raising to P1 because this flake is happening a lot on the commit queue, blocking developers' patches. Is the issue that the GPU process is exiting frequently, causing the context to be lost and consequently queries like GetUniformLocation to return -1.

Taking a look at this.

I can't imagine why this would be a flake and not a consistent failure.
Okay, this is just a lost context -- the program is never compiled, but I assert that it was.
Project Member

Comment 4 by bugdroid1@chromium.org, Feb 7 2017

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

commit f1c951d183fe777019f31e16b55b22c280afb3d2
Author: ccameron <ccameron@chromium.org>
Date: Tue Feb 07 23:30:43 2017

Don't DCHECK that we didn't lose the GL context

We will lose GL contexts.

BUG= 689272 
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

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

[modify] https://crrev.com/f1c951d183fe777019f31e16b55b22c280afb3d2/cc/output/gl_renderer.cc

Status: Fixed (was: Assigned)
Thanks Chris!

Sign in to add a comment