New issue
Advanced search Search tips

Issue 592676 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 1
Type: Bug

Blocking:
issue 596344



Sign in to add a comment

ThemeServiceWin::OnDwmKeyUpdated causing assert on Windows 10

Project Member Reported by wfh@chromium.org, Mar 7 2016

Issue description

Version: since revision 1b7b24793aceb615c9d54ae73c0cbbd7b9480622
OS: Windows 10 - 10.0.10586.103 64-bit

all crash with 

base::MessageLoop::AddDestructionObserver [0x00007FF6EAB6F348+24]
	base::win::ObjectWatcher::StartWatchingInternal [0x00007FF6EABA77EB+491]
	base::win::RegKey::StartWatching [0x00007FF6EAB79757+135]
	ThemeServiceWin::OnDwmKeyUpdated [0x00007FF6EA2ED433+211]
	ThemeServiceWin::ThemeServiceWin [0x00007FF6EA2ED236+150]
	ThemeServiceFactory::BuildServiceInstanceFor [0x00007FF6EA19B654+36]
	BrowserContextKeyedServiceFactory::BuildServiceInstanceFor [0x00007FF6EC9FF032+18]
	KeyedServiceFactory::GetServiceForContext [0x00007FF6EAFDBE37+519]
	DependencyManager::CreateContextServices [0x00007FF6EAFDD36D+173]
	BrowserContextDependencyManager::DoCreateBrowserContextServices [0x00007FF6EC9FF3BC+236]
	TestingProfile::Init [0x00007FF6EA83D240+608]
	TestingProfile::TestingProfile [0x00007FF6EA83AF8D+285]
	ExtensionWelcomeNotificationTest::SetUp [0x00007FF6E9AC5E6D+285]
	testing::Test::Run [0x00007FF6EA82B4FF+143]
	testing::TestInfo::Run [0x00007FF6EA82B92B+267]
	testing::TestCase::Run [0x00007FF6EA82B734+308]
	testing::internal::UnitTestImpl::RunAllTests [0x00007FF6EA82BDDE+670]
	testing::UnitTest::Run [0x00007FF6EA82BAFE+254]
	base::TestSuite::Run [0x00007FF6ED5CE44A+218]
	content::UnitTestTestSuite::Run [0x00007FF6EE55FED4+20]
	base::`anonymous namespace'::LaunchUnitTestsInternal [0x00007FF6ED5D49F3+819]
	base::LaunchUnitTests [0x00007FF6ED5D469C+140]
	main [0x00007FF6ED5F8AC9+153]
	__tmainCRTStartup [0x00007FF6ED4FD7EC+324] (f:\dd\vctools\crt\crtw32\startup\crt0.c:255)
	BaseThreadInitThunk [0x00007FFE878E8102+34]
	RtlUserThreadStart [0x00007FFE87C2C5B4+52]

see https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Win%2010/builds/2366/steps/unit_tests/logs/stdio

adding blame list from FYI bot to CC.

 

Comment 1 by wfh@chromium.org, Mar 7 2016

Cc: -yoichio@chromium.org -f...@opera.com -kinuko@chromium.org -mnissler@chromium.org -perkj@chromium.org -r...@igalia.com -gabadie@chromium.org -pkasting@chromium.org -hayato@chromium.org wfh@chromium.org
Owner: pkasting@chromium.org
Status: Assigned (was: Untriaged)
stack trace from my VM sitting at crrev.com/e531fbd

0:000> kn
 # Child-SP          RetAddr           Call Site
00 (Inline Function) --------`-------- unit_tests!std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<base::MessageLoop::DestructionObserver *> > >::{ctor} [d:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\vc\include\vector @ 47]
01 (Inline Function) --------`-------- unit_tests!std::vector<base::MessageLoop::DestructionObserver *,std::allocator<base::MessageLoop::DestructionObserver *> >::end [d:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\vc\include\vector @ 1040]
02 (Inline Function) --------`-------- unit_tests!ContainsValue [d:\src\gclient\src\base\stl_util.h @ 198]
03 (Inline Function) --------`-------- unit_tests!base::ObserverListBase<base::MessageLoop::DestructionObserver>::AddObserver+0x14 [d:\src\gclient\src\base\observer_list.h @ 163]
04 0000004c`1eefeb60 00007ff6`258aef4b unit_tests!base::MessageLoop::AddDestructionObserver+0x18 [d:\src\gclient\src\base\message_loop\message_loop.cc @ 255]
05 0000004c`1eefeb90 00007ff6`258809d7 unit_tests!base::win::ObjectWatcher::StartWatchingInternal+0x1eb [d:\src\gclient\src\base\win\object_watcher.cc @ 111]
06 0000004c`1eefed20 00007ff6`25115e73 unit_tests!base::win::RegKey::StartWatching+0x87 [d:\src\gclient\src\base\win\registry.cc @ 422]
07 0000004c`1eefed50 00007ff6`25115c76 unit_tests!ThemeServiceWin::OnDwmKeyUpdated+0xd3 [d:\src\gclient\src\chrome\browser\themes\theme_service_win.cc @ 65]
08 0000004c`1eefeda0 00007ff6`24f222f4 unit_tests!ThemeServiceWin::ThemeServiceWin+0x96 [d:\src\gclient\src\chrome\browser\themes\theme_service_win.cc @ 22]
09 0000004c`1eefedd0 00007ff6`27866602 unit_tests!ThemeServiceFactory::BuildServiceInstanceFor+0x24 [d:\src\gclient\src\chrome\browser\themes\theme_service_factory.cc @ 61]
0a 0000004c`1eefee00 00007ff6`25d1a787 unit_tests!BrowserContextKeyedServiceFactory::BuildServiceInstanceFor+0x12 [d:\src\gclient\src\components\keyed_service\content\browser_context_keyed_service_factory.cc @ 94]
0b 0000004c`1eefee30 00007ff6`25d1babd unit_tests!KeyedServiceFactory::GetServiceForContext+0x207 [d:\src\gclient\src\components\keyed_service\core\keyed_service_factory.cc @ 91]
0c 0000004c`1eefef50 00007ff6`27866a1c unit_tests!DependencyManager::CreateContextServices+0xad [d:\src\gclient\src\components\keyed_service\core\dependency_manager.cc @ 66]
0d 0000004c`1eefefb0 00007ff6`255406f0 unit_tests!BrowserContextDependencyManager::DoCreateBrowserContextServices+0xec [d:\src\gclient\src\components\keyed_service\content\browser_context_dependency_manager.cc @ 48]
0e 0000004c`1eeff020 00007ff6`2553e33a unit_tests!TestingProfile::Init+0x260 [d:\src\gclient\src\chrome\test\base\testing_profile.cc @ 477]
0f 0000004c`1eeff0c0 00007ff6`2475a70d unit_tests!TestingProfile::TestingProfile+0x12a [d:\src\gclient\src\chrome\test\base\testing_profile.cc @ 270]
10 0000004c`1eeff0f0 00007ff6`2552eb6f unit_tests!ExtensionWelcomeNotificationTest::SetUp+0x11d [d:\src\gclient\src\chrome\browser\notifications\extension_welcome_notification_unittest.cc @ 140]
11 (Inline Function) --------`-------- unit_tests!testing::internal::HandleExceptionsInMethodIfSupported+0x2f [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 2458]
12 0000004c`1eeff120 00007ff6`2552ef9b unit_tests!testing::Test::Run+0x8f [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 2472]
13 0000004c`1eeff150 00007ff6`2552eda4 unit_tests!testing::TestInfo::Run+0x10b [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 2660]
14 0000004c`1eeff1b0 00007ff6`2552f44e unit_tests!testing::TestCase::Run+0x134 [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 2773]
15 0000004c`1eeff220 00007ff6`2552f16e unit_tests!testing::internal::UnitTestImpl::RunAllTests+0x29e [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 4646]
16 (Inline Function) --------`-------- unit_tests!testing::internal::HandleExceptionsInMethodIfSupported+0x2f [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 2458]
17 0000004c`1eeff2a0 00007ff6`2842ca3a unit_tests!testing::UnitTest::Run+0xfe [d:\src\gclient\src\testing\gtest\src\gtest.cc @ 4258]
18 (Inline Function) --------`-------- unit_tests!RUN_ALL_TESTS+0xd [d:\src\gclient\src\testing\gtest\include\gtest\gtest.h @ 2237]
19 0000004c`1eeff2d0 00007ff6`291a4574 unit_tests!base::TestSuite::Run+0xda [d:\src\gclient\src\base\test\test_suite.cc @ 231]
1a 0000004c`1eeff350 00007ff6`28432fa3 unit_tests!content::UnitTestTestSuite::Run+0x14 [d:\src\gclient\src\content\public\test\unittest_test_suite.cc @ 54]
1b (Inline Function) --------`-------- unit_tests!base::Callback<int __cdecl(void)>::Run+0x9 [d:\src\gclient\src\base\callback.h @ 394]
1c 0000004c`1eeff380 00007ff6`28432c4c unit_tests!base::`anonymous namespace'::LaunchUnitTestsInternal+0x333 [d:\src\gclient\src\base\test\launcher\unit_test_launcher.cc @ 244]
1d 0000004c`1eeff7a0 00007ff6`28457309 unit_tests!base::LaunchUnitTests+0x8c [d:\src\gclient\src\base\test\launcher\unit_test_launcher.cc @ 450]
1e 0000004c`1eeff7f0 00007ff6`283c160c unit_tests!main+0x99 [d:\src\gclient\src\chrome\test\base\run_all_unittests.cc @ 18]
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\system32\KERNEL32.DLL - 
1f 0000004c`1eeff840 00007ffd`47758102 unit_tests!__tmainCRTStartup+0x144 [f:\dd\vctools\crt\crtw32\startup\crt0.c @ 255]
20 0000004c`1eeff880 00007ffd`4a1cc574 KERNEL32!BaseThreadInitThunk+0x22
21 0000004c`1eeff8b0 00000000`00000000 ntdll!RtlUserThreadStart+0x34

this appears to be 9fcf69e0bc440b16661c39c4b9f13182f0430725. Will revert.
Project Member

Comment 2 by bugdroid1@chromium.org, Mar 7 2016

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

commit 5855bedc3af9746d0a68471f182dcc99bbfa3299
Author: wfh <wfh@chromium.org>
Date: Mon Mar 07 19:38:11 2016

Revert of Monitor the system native frame color on Win 10. (patchset #4 id:60001 of https://codereview.chromium.org/1744483002/ )

Reason for revert:
This breaks the win10 bot. see  bug 592676 

Original issue's description:
> Monitor the system native frame color on Win 10.
>
> GetColor(COLOR_FRAME...) will now report the actual in-use color for Win 10
> native frames.  This is not used yet, but will be useful for:
> (a) Dynamically choosing the right incognito icon color
> (b) Dynamically choosing the right COLOR_TOOLBAR_TOP_SEPARATOR
> (c) Eventually, converting Win 10 to custom-drawing the frame but still
>     respecting the user's color choice
>
> BUG= 505013 , 585470 
> TEST=none
>
> Committed: https://crrev.com/9fcf69e0bc440b16661c39c4b9f13182f0430725
> Cr-Commit-Position: refs/heads/master@{#378989}

TBR=estade@chromium.org,bsep@chromium.org,pkasting@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG= 505013 , 585470 , 592676 

Review URL: https://codereview.chromium.org/1771933002

Cr-Commit-Position: refs/heads/master@{#379611}

[modify] https://crrev.com/5855bedc3af9746d0a68471f182dcc99bbfa3299/chrome/browser/themes/theme_service.cc
[modify] https://crrev.com/5855bedc3af9746d0a68471f182dcc99bbfa3299/chrome/browser/themes/theme_service.h
[modify] https://crrev.com/5855bedc3af9746d0a68471f182dcc99bbfa3299/chrome/browser/themes/theme_service_factory.cc
[delete] https://crrev.com/cf3ba9b8d726e7b53b93dae034957b059573bb81/chrome/browser/themes/theme_service_win.cc
[delete] https://crrev.com/cf3ba9b8d726e7b53b93dae034957b059573bb81/chrome/browser/themes/theme_service_win.h
[modify] https://crrev.com/5855bedc3af9746d0a68471f182dcc99bbfa3299/chrome/chrome_browser.gypi

Comment 3 by wfh@chromium.org, Mar 8 2016

Status: Fixed (was: Assigned)
revert turned the bot green - https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Win%2010/builds/2430

Comment 4 by wfh@chromium.org, Mar 23 2016

Status: Assigned (was: Fixed)
Summary: ThemeServiceWin::OnDwmKeyUpdated causing assert on Windows 10 (was: ExtensionWelcomeNotificationTest.* failing on windows 10)
This very similar assert seems to be happening on the Win10 bots:

https://chromium-swarm.appspot.com/user/task/2db943735fec4810

This is based on a compile of 51.0.2687.0 (don't have exact git rev handy).

[4832:5956:0322/153747:70071718:FATAL:registry.cc(64)] Check failed: key. base::debug::StackTrace::StackTrace [0x00007FF7EE166811+33]

	logging::LogMessage::~LogMessage [0x00007FF7EE101ADC+76]
	base::win::RegKey::Watcher::StartWatching [0x00007FF7EE11D8D4+100]
	base::win::RegKey::StartWatching [0x00007FF7EE11D857+135]
	ThemeServiceWin::OnDwmKeyUpdated [0x00007FF7ED898F1B+203]
	ThemeServiceWin::ThemeServiceWin [0x00007FF7ED898D36+150]
	ThemeServiceFactory::BuildServiceInstanceFor [0x00007FF7ED5D8C74+36]
	BrowserContextKeyedServiceFactory::BuildServiceInstanceFor [0x00007FF7F08825B2+18]
	KeyedServiceFactory::GetServiceForContext [0x00007FF7EE66532C+476]
	DependencyManager::CreateContextServices [0x00007FF7EE666895+245]
	BrowserContextDependencyManager::DoCreateBrowserContextServices [0x00007FF7F0882A06+246]
	TestingProfile::Init [0x00007FF7EDDAA1C2+690]
	TestingProfile::TestingProfile [0x00007FF7EDDA76E1+497]
	TestingProfile::Builder::Build [0x00007FF7EDDA80F3+275]
	TestingProfileManager::CreateTestingProfile [0x00007FF7EDDB1C2E+398]
	IncidentReportingServiceTest::CreateProfile [0x00007FF7ED1FE6BB+587]
	IncidentReportingServiceTest_ProcessWideNoUploadAfterProfile_Test::TestBody [0x00007FF7ED20561C+204]
	testing::Test::Run [0x00007FF7EDD982F6+278]
	testing::TestInfo::Run [0x00007FF7EDD9869B+267]
	testing::TestCase::Run [0x00007FF7EDD984A4+308]
	testing::internal::UnitTestImpl::RunAllTests [0x00007FF7EDD98B4E+670]
	testing::UnitTest::Run [0x00007FF7EDD9886E+254]
	base::TestSuite::Run [0x00007FF7F1795EFA+218]
	base::LaunchUnitTests [0x00007FF7F179D64D+1069]
	base::LaunchUnitTests [0x00007FF7F179D2AC+140]
	main [0x00007FF7F17C86F9+153]
	__scrt_common_main_seh [0x00007FF7F16A41F4+292] (f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264)
	BaseThreadInitThunk [0x00007FFBB4972D92+34]
	RtlUserThreadStart [0x00007FFBB4CF9F64+52]

Comment 5 by wfh@chromium.org, Mar 23 2016

Blocking: 596344
exact revision being run here is 9861e39f90174b134366db95471a64e0a474d874
That's odd.  That means we couldn't open the registry key with the requested permissions.

I can work around this easily.  I'd like to know why this fails on these bots, but I'm not sure how one would debug on them.
Project Member

Comment 8 by bugdroid1@chromium.org, Mar 23 2016

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

commit 6d73369e32f4cb2dbeec4d8080c377f545ff8640
Author: pkasting <pkasting@chromium.org>
Date: Wed Mar 23 10:55:06 2016

Fix DCHECK failure on bots when registry key can't be opened successfully.

I don't know why this happens, but we should have this sanity check anyway.

BUG= 592676 
TEST=none
TBR=estade

Review URL: https://codereview.chromium.org/1822263002

Cr-Commit-Position: refs/heads/master@{#382825}

[modify] https://crrev.com/6d73369e32f4cb2dbeec4d8080c377f545ff8640/chrome/browser/themes/theme_service_win.cc

Status: Fixed (was: Assigned)

Comment 10 by wfh@chromium.org, Mar 24 2016

Thanks for fixing - all tests pass now - https://chromium-swarm.appspot.com/user/task/2dc2d14fde3dab10

Sign in to add a comment