New issue
Advanced search Search tips

Issue 788232 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 3
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

BrowserFocusTest.BackgroundBrowserDontStealFocus crashes on linux-chromeos-rel

Project Member Reported by grt@chromium.org, Nov 23 2017

Issue description

From https://chromium-swarm.appspot.com/task?id=39f295311020aa10&refresh=10&show_raw=1:

[ RUN      ] BrowserFocusTest.BackgroundBrowserDontStealFocus
[23945:23945:1120/061124.687847:WARNING:chrome_browser_main_chromeos.cc(644)] Running as stub user with profile dir: test-user
[23945:23945:1120/061125.140988:WARNING:install_attributes.cc(117)] Install attributes missing, first sign in
[23945:23963:1120/061125.173232:ERROR:logging_chrome.cc(210)] Unable to create symlink /b/s/w/itqAy93b/.org.chromium.Chromium.A5cHUx/dziLvCK/test-user/chrome_debug.log pointing at /b/s/w/itqAy93b/.org.chromium.Chromium.A5cHUx/dziLvCK/test-user/chrome_debug_20171120-061125: No such file or directory (2)
[23977:23977:1120/061125.178577:ERROR:gpu_info.cc(103)] No active GPU found, returning primary GPU.
[23945:23945:1120/061125.255907:ERROR:input_method_manager_impl.cc(1031)] IMEEngine for "fgoepimhcoialccpbmpnnblemnepkkao" is not registered
[23945:23959:1120/061125.263555:WARNING:freezer_cgroup_process_manager.cc(62)] Cgroup freezer does not exist or is not writable. Unable to freeze renderer processes.
[23945:23970:1120/061125.279655:WARNING:child_process_launcher_helper_posix.cc(118)] Ignoring invalid file v8_context_snapshot.bin
[23945:23970:1120/061125.407094:WARNING:child_process_launcher_helper_posix.cc(118)] Ignoring invalid file v8_context_snapshot.bin
BrowserTestBase received signal: Segmentation fault. Backtrace:
#0 0x0000038d963c base::debug::StackTrace::StackTrace()
#1 0x000002f38412 content::(anonymous namespace)::DumpStackTraceSignalHandler()
#2 0x7f8171cc4cb0 <unknown>
#3 0x000002aeaca2 ui_test_utils::NavigateToURLWithDispositionBlockUntilNavigationsComplete()
#4 0x000000511379 (anonymous namespace)::BrowserFocusTest_BackgroundBrowserDontStealFocus_Test::RunTestOnMainThread()
#5 0x000002f38173 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop()
#6 0x000002afaf05 [23945:23966:1120/061125.435794:WARNING:simple_synchronous_entry.cc(1179)] Could not open platform files for entry.
[23945:23963:1120/061125.435805:WARNING:simple_synchronous_entry.cc(1179)] Could not open platform files for entry.
ChromeBrowserMainParts::PreMainMessageLoopRunImpl()
#7 0x000002af9d2d ChromeBrowserMainParts::PreMainMessageLoopRun()
#8 0x000001b8f10c chromeos::ChromeBrowserMainPartsChromeos::PreMainMessageLoopRun()
#9 0x000001070d71 content::BrowserMainLoop::PreMainMessageLoopRun()
#10 0x0000014aedb5 content::StartupTaskRunner::RunAllTasksNow()
#11 0x00000106f17f content::BrowserMainLoop::CreateStartupTasks()
#12 0x000001074338 content::BrowserMainRunnerImpl::Initialize()
#13 0x00000106ccc2 content::BrowserMain()
#14 0x000002ace1f1 content::ContentMainRunnerImpl::Run()
#15 0x0000049057ab service_manager::Main()
#16 0x000002accbd4 content::ContentMain()
#17 0x000002f37de5 content::BrowserTestBase::SetUp()
#18 0x000002ae8899 InProcessBrowserTest::SetUp()
#19 0x0000006a8901 testing::Test::Run()
#20 0x0000006a93f0 testing::TestInfo::Run()
#21 0x0000006a98d7 testing::TestCase::Run()
#22 0x0000006afe87 testing::internal::UnitTestImpl::RunAllTests()
#23 0x0000006afb07 testing::UnitTest::Run()
#24 0x0000038c4ea2 base::TestSuite::Run()
#25 0x0000005633e3 InteractiveUITestSuiteRunner::RunTestSuite()
#26 0x000002f3f304 content::LaunchTests()
#27 0x000002ae2dd5 LaunchChromeTests()
#28 0x00000056336c main
#29 0x7f8171caff45 __libc_start_main
#30 0x000000440a0a _start
[59/177] BrowserFocusTest.BackgroundBrowserDontStealFocus (CRASHED)

Assigning to a random browser OWNER. Please re-assign as desired.
 
Components: Tests>Disabled
Labels: Test-Disabled
Project Member

Comment 3 by bugdroid1@chromium.org, Jul 3

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

commit 6cfcfea2ee54c671f1634c8d4b8fc66bcccb515e
Author: Trent Apted <tapted@chromium.org>
Date: Tue Jul 03 07:48:42 2018

Repair BrowserFocusTest.BackgroundBrowserDontStealFocus

On ChromeOS, it started segfaulting when the ChromeOS bots switched
to Ozone (see  https://crbug.com/671355 ). Activation on ChromeOS is
more similar to Windows than X11 anyway. But the test did other weird
stuff. Fix it on Linux too by catering for asynchronous window
activation.

To address the history of flakiness on Desktop Linux, add judicious use
of ui_test_utils::BringBrowserWindowToFront(..) to ensure the state of
the window server process is in sync with the window state in the
browser process.

Bug:  788232 , 62538 
Change-Id: Ibceb4fbaf5b72a4f4b6b03e58b3dc1e936aff830
Reviewed-on: https://chromium-review.googlesource.com/1117972
Commit-Queue: Trent Apted <tapted@chromium.org>
Reviewed-by: Michael Wasserman <msw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#572140}
[modify] https://crrev.com/6cfcfea2ee54c671f1634c8d4b8fc66bcccb515e/chrome/browser/ui/browser_focus_uitest.cc

Status: Fixed (was: Assigned)

Sign in to add a comment