New issue
Advanced search Search tips

Issue 836097 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Check failed: context.NeedsVisualRectUpdate(object) browser tests flakes linux-chromeos-rel

Project Member Reported by noel@chromium.org, Apr 24 2018

Issue description

linux-chromeos-rel is a CQ bot, and I'm seeing intermittent flakes in browser tests due to a check stop in paint invalidation.  

No record of it in crbug.com that I could find, so new bug, seems like a recent change in behavior then. 


 

Comment 1 by noel@chromium.org, Apr 24 2018

One example I saw scanning linux-chromeos-rel today:

GalleryBrowserTest.EnableDisableOverwriteOriginalCheckboxOnDownloads

[ RUN      ] GalleryBrowserTest.EnableDisableOverwriteOriginalCheckboxOnDownloads
[4359:4359:0423/215216.227014:WARNING:statistics_provider.cc(330)] Statistics loaded after waiting 0ms.
[4359:4510:0423/215216.305810:ERROR:account_manager.cc(37)] Failed to read tokens file
[4359:4359:0423/215216.311698:WARNING:user_policy_manager_factory_chromeos.cc(198)] No policy loaded for known non-enterprise user
[4359:4359:0423/215216.323160:WARNING:user_session_manager.cc(1086)] Attempting to save user password for non enterprise user.
[4359:4359:0423/215216.607967:ERROR:network_type_pattern.cc(134)] NetworkTypePattern: wifi: Can not match empty type.
[4359:4359:0423/215216.608351:ERROR:network_type_pattern.cc(134)] NetworkTypePattern: wifi: Can not match empty type.
[4359:4359:0423/215216.609349:ERROR:network_type_pattern.cc(134)] NetworkTypePattern: wifi: Can not match empty type.
[4359:4359:0423/215216.616746:ERROR:network_type_pattern.cc(134)] NetworkTypePattern: wifi: Can not match empty type.
[4359:4359:0423/215217.011220:INFO:file_manager_browsertest_base.cc(581)] FileManagerBrowserTest::StartTest enableDisableOverwriteOriginalCheckboxOnDownloads
[4359:4359:0423/215218.775031:INFO:CONSOLE(1169)] "Cache database creating or upgrading.", source: chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp/background_scripts.js (1169)
[4359:4359:0423/215219.008354:INFO:CONSOLE(4327)] "Waiting for the result of getFilesUnderVolume", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4327)
[4359:4359:0423/215219.029647:INFO:CONSOLE(4995)] "Requesting volume list.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4995)
[4359:4359:0423/215219.037343:INFO:CONSOLE(4997)] "Volume list fetched with: 2 items.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4997)
[1,1828407168:04:52:19.037507] Native Client module will be loaded at base address 0x00007d3f00000000
[4359:4359:0423/215219.039951:INFO:CONSOLE(5007)] "Initializing volume: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5007)
[4359:4359:0423/215219.043003:INFO:CONSOLE(5410)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5410)
[4359:4359:0423/215219.045589:INFO:CONSOLE(4995)] "Requesting volume list.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4995)
[4359:4359:0423/215219.054552:INFO:CONSOLE(5007)] "Initializing volume: drive:drive-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5007)
[4359:4359:0423/215219.055787:INFO:CONSOLE(5410)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5410)
[4359:4359:0423/215219.063617:INFO:CONSOLE(5458)] "File system obtained: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5458)
[4359:4359:0423/215219.071116:INFO:CONSOLE(5011)] "Initialized volume: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5011)
[4359:4359:0423/215219.072674:INFO:CONSOLE(5458)] "File system obtained: drive:drive-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5458)
[4359:4359:0423/215219.078020:INFO:CONSOLE(5011)] "Initialized volume: drive:drive-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5011)
[4359:4359:0423/215219.078822:INFO:CONSOLE(5015)] "Initialized all volumes.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5015)
[4359:4359:0423/215219.083116:INFO:CONSOLE(4324)] "Received the result of getFilesUnderVolume", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4324)
[4359:4359:0423/215219.083789:INFO:CONSOLE(4997)] "Volume list fetched with: 2 items.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4997)
[4359:4359:0423/215219.085343:INFO:CONSOLE(5007)] "Initializing volume: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5007)
[4359:4359:0423/215219.087136:INFO:CONSOLE(5410)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5410)
[4359:4359:0423/215219.092719:INFO:CONSOLE(4327)] "Waiting for the result of openGallery", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4327)
[4359:4359:0423/215219.102571:INFO:CONSOLE(5007)] "Initializing volume: drive:drive-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5007)
[4359:4359:0423/215219.103973:INFO:CONSOLE(5410)] "Requesting file system.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5410)
[4359:4359:0423/215219.125584:INFO:CONSOLE(5458)] "File system obtained: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5458)
[4359:4359:0423/215219.173647:INFO:CONSOLE(5011)] "Initialized volume: downloads:Downloads", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5011)
[4359:4359:0423/215219.173791:INFO:CONSOLE(5458)] "File system obtained: drive:drive-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5458)
[4359:4359:0423/215219.192426:INFO:CONSOLE(5011)] "Initialized volume: drive:drive-user", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5011)
[4359:4359:0423/215219.192655:INFO:CONSOLE(5015)] "Initialized all volumes.", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (5015)
[4359:4359:0423/215219.543039:INFO:CONSOLE(0)] "Styling master document from stylesheets defined in HTML Imports is deprecated. Please refer to https://goo.gl/EGXzpw for possible migration paths.", source:  (0)
[4359:4359:0423/215220.465961:INFO:CONSOLE(4324)] "Received the result of openGallery", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4324)
[4359:4359:0423/215221.550204:INFO:CONSOLE(4327)] "Waiting for the result of getFilesUnderVolume", source: chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/background/js/background_common_scripts.js (4327)
[1,1828407168:04:52:22.188619] Native Client module will be loaded at base address 0x00006a9e00000000
[1,1828407168:04:52:22.272217] Native Client module will be loaded at base address 0x000072bd00000000
[1:1:0423/215221.604697:FATAL:paint_invalidator.cc(63)] Check failed: context.NeedsVisualRectUpdate(object). 
#0 0x0000044dc4dc base::debug::StackTrace::StackTrace()
#1 0x0000044599bb logging::LogMessage::~LogMessage()
#2 0x0000087c6075 blink::PaintInvalidator::MapLocalRectToVisualRectInBacking<>()
#3 0x0000087c5fec blink::PaintInvalidatorContext::MapLocalRectToVisualRectInBacking()
#4 0x0000087c1c77 blink::ObjectPaintInvalidatorWithContext::InvalidatePartialRect()
#5 0x0000087c1d59 blink::ObjectPaintInvalidatorWithContext::InvalidatePaintWithComputedReason()
#6 0x000008776114 blink::BoxPaintInvalidator::InvalidatePaint()
#7 0x000008799010 blink::HTMLCanvasPaintInvalidator::InvalidatePaint()
#8 0x000008573f99 blink::LayoutHTMLCanvas::InvalidatePaint()
#9 0x0000087c852b blink::PaintInvalidator::InvalidatePaint()
#10 0x0000087fb88e blink::PrePaintTreeWalk::WalkInternal()
#11 0x0000087fabbd blink::PrePaintTreeWalk::Walk()
#12 0x0000087fac1b blink::PrePaintTreeWalk::Walk()
#13 0x0000087fac1b blink::PrePaintTreeWalk::Walk()
#14 0x0000087fac1b blink::PrePaintTreeWalk::Walk()
#15 0x0000087fac1b blink::PrePaintTreeWalk::Walk()
#16 0x0000087fac1b blink::PrePaintTreeWalk::Walk()
#17 0x0000087fac1b blink::PrePaintTreeWalk::Walk()
#18 0x0000087fa6b5 blink::PrePaintTreeWalk::Walk()
#19 0x0000087f9dfe blink::PrePaintTreeWalk::WalkTree()
#20 0x0000081cf247 blink::LocalFrameView::PrePaint()
#21 0x0000081cd48e blink::LocalFrameView::UpdateLifecyclePhasesInternal()
#22 0x0000081ccf6a blink::LocalFrameView::UpdateAllLifecyclePhases()
#23 0x00000874839e blink::PageAnimator::UpdateAllLifecyclePhases()
#24 0x00000811d988 blink::WebViewImpl::UpdateLifecycle()
#25 0x000009c9a1cb blink::WebViewFrameWidget::UpdateLifecycle()
#26 0x000009053912 content::RenderWidget::UpdateVisualState()
#27 0x000005fd6a8f cc::ProxyMain::BeginMainFrame()
#28 0x000005ffb832 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIMN2cc9ProxyMainEFvNSt3__110unique_ptrINS4_28BeginMainFrameAndCommitStateENS6_14default_deleteIS8_EEEEENS_7WeakPtrIS5_EEJSB_EEEvOT_OT0_DpOT1_
#29 0x000005ffb721 _ZN4base8internal7InvokerINS0_9BindStateIMN2cc9ProxyMainEFvNSt3__110unique_ptrINS3_28BeginMainFrameAndCommitStateENS5_14default_deleteIS7_EEEEEJNS_7WeakPtrIS4_EENS0_13PassedWrapperISA_EEEEEFvvEE7RunOnceEPNS0_13BindStateBaseE
#30 0x000004445d85 base::debug::TaskAnnotator::RunTask()
#31 0x000004274f71 blink::scheduler::internal::ThreadControllerImpl::DoWork()
#32 0x00000074928b _ZN4base8internal7InvokerINS0_9BindStateIMN12_GLOBAL__N_116SimpleHttpServerEFviEJNS_7WeakPtrIS4_EEiEEEFvvEE7RunOnceEPNS0_13BindStateBaseE
#33 0x000004445d85 base::debug::TaskAnnotator::RunTask()
#34 0x000004501209 base::internal::IncomingTaskQueue::RunTask()
#35 0x000004461cfb base::MessageLoop::RunTask()
#36 0x00000446208a base::MessageLoop::DeferOrRunPendingTask()
#37 0x0000044622dc base::MessageLoop::DoWork()
#38 0x000004464176 base::MessagePumpDefault::Run()
#39 0x0000044616e4 base::MessageLoop::Run()
#40 0x000004488949 base::RunLoop::Run()
#41 0x000009062d9d content::RendererMain()
#42 0x0000043f626e content::RunZygote()
#43 0x0000043f7bed content::ContentMainRunnerImpl::Run()
#44 0x00000654eee2 service_manager::Main()
#45 0x0000043f5864 content::ContentMain()
#46 0x000004ab8229 content::LaunchTests()
#47 0x00000443b1a4 LaunchChromeTests()
#48 0x00000443ac7e main
#49 0x7f3a4bc5ef45 __libc_start_main
#50 0x0000005e323a _start

Owner: wangxianzhu@chromium.org
Status: Assigned (was: Untriaged)

Comment 3 by noel@chromium.org, Apr 24 2018

Components: Platform>Apps>FileManager
Labels: Test-Flaky
https://ci.chromium.org/buildbot/tryserver.chromium.chromiumos/linux-chromeos-rel/108405 build, for the record.

Search the browser_tests (with patch) 'stdout' log to see the trace in #1. 

Comment 5 by noel@chromium.org, May 2 2018

Labels: CrOSFilesCategory-Testing
Status: Started (was: Assigned)
Flakiness dashboard: https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=GalleryBrowserTest.EnableDisableOverwriteOriginalCheckboxOnDownloads. It's more flaky on linux-chromeos-dbg and Linux Chromium OS ASan LSan Tests (1), though all retries succeeded in the past week. I think the flakiness is not new. It had not been reported before this bug perhaps because the bots have tests that are much more flaky than this test.

Comment 7 by noel@chromium.org, May 2 2018

Yeap agree, retries are working so it's a TIMEOUT PASS.  Low flake rate though, sometimes happens on the linux-chromeos-rel bot [1], reading browser_tests (with patch) in the flakiness dashboard. 

[1] Persistent browser_test flakiness cause on linux-chromeos-rel December 17 .. April 22 has been identified and fixed.  Other flakes maybe went unreported during that time :/

Labels: OS-Chrome
Didn't reproduce locally by repeating the test 100 times, with both release and debug builds. Will try to add some debugging information and see what the bot will log when the test fails. May need some time to fix. Keeping priority 3 because for now the flakiness doesn't fail the bots.

Comment 9 by noel@chromium.org, May 3 2018

For repro, with a DEBUG build browser_tests, run it in one window, and in another window do a clean compile of chrome: that might increase the chance of flake. P3 sounds good to me, btw.
Project Member

Comment 10 by bugdroid1@chromium.org, May 3 2018

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

commit 71b78364f8a51dd48b4d21bf3c8aa8726d062197
Author: Xianzhu Wang <wangxianzhu@chromium.org>
Date: Thu May 03 22:01:04 2018

[SPv175] Disable more code when PartialRasterInvalidation is not enabled

The code disabled in this CL had some side effects, e.g. left
PartialInvalidationRect not cleared after PrePaintClean, and the next
document lifecycle might do unexpected rect mapping while no
NeedsVisualRect flag set.

Bug:  836097 
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: Ib05ccfd439be78666771f8483a0b462128848c08
Reviewed-on: https://chromium-review.googlesource.com/1041570
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555889}
[modify] https://crrev.com/71b78364f8a51dd48b4d21bf3c8aa8726d062197/third_party/blink/renderer/core/layout/layout_object.cc
[modify] https://crrev.com/71b78364f8a51dd48b4d21bf3c8aa8726d062197/third_party/blink/renderer/core/paint/object_paint_invalidator.cc
[modify] https://crrev.com/71b78364f8a51dd48b4d21bf3c8aa8726d062197/third_party/blink/renderer/core/paint/object_paint_invalidator_test.cc

Seems no more flakiness after the CL.
Status: Fixed (was: Started)

Sign in to add a comment