New issue
Advanced search Search tips
Starred by 1 user

Issue metadata

Status: Fixed
Closed: Jan 4
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Sign in to add a comment

Issue 915238: [Bug] DCHECK fires in telemetry_perf_unittests

Reported by, Dec 14 Project Member

Issue description

DCHECK fires when I run the telemetry tests:

autoninja -C out/Android chrome_public_apk && CHROMIUM_OUTPUT_DIR=out/Android tools/perf/run_tests -v --browser=android-chromium --test-filter=benchmarks.system_health_smoke_test.SystemHealthBenchmarkSmokeTest.system_health.memory_mobile/load:tools:drive

Stack trace:
I    3.384s Main  [] Check failed: !account_name.empty() || account_id.empty(). Can't find account name, account_id=105787132709220979048'
  	I    3.384s Main    v------>  base::debug::(anonymous namespace)::DebugBreak()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ../../base/debug/
  	I    3.384s Main    0014609d  base::debug::BreakDebugger()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ../../base/debug/
  	I    3.384s Main    000e5093  logging::LogMessage::~LogMessage()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ../../base/
  	I    3.384s Main    00c23e07  OAuth2TokenServiceDelegateAndroid::MapAccountIdToAccountName(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&) const                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ../../chrome/browser/signin/
  	I    3.385s Main    00c23ce1  OAuth2TokenServiceDelegateAndroid::RefreshTokenIsAvailable(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&) const                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ../../chrome/browser/signin/
  	I    3.385s Main    00d237bf  syncer::DetermineAccountToUse(identity::IdentityManager*, bool)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ../../components/sync/driver/
  	I    3.385s Main    00ef162d  autofill::PersonalDataManager::GetSyncSigninState() const                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ../../components/autofill/core/browser/
  	I    3.385s Main    00ecc545  autofill::AutofillManager::ShouldParseForms(std::__ndk1::vector<autofill::FormData, std::__ndk1::allocator<autofill::FormData> > const&, base::TimeTicks)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ../../components/autofill/core/browser/
  	I    3.385s Main    00ecb769  autofill::AutofillHandler::OnFormsSeen(std::__ndk1::vector<autofill::FormData, std::__ndk1::allocator<autofill::FormData> > const&, base::TimeTicks)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ../../components/autofill/core/browser/
  	I    3.385s Main    00858a11  autofill::mojom::AutofillDriverStubDispatch::Accept(autofill::mojom::AutofillDriver*, mojo::Message*)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                gen/components/autofill/content/common/
  	I    3.385s Main    00016b47  mojo::InterfaceEndpointClient::HandleValidatedMessage(mojo::Message*)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ../../mojo/public/cpp/bindings/lib/
  	I    3.385s Main    000167df  mojo::FilterChain::Accept(mojo::Message*)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ../../mojo/public/cpp/bindings/lib/
  	I    3.385s Main    000174d1  mojo::InterfaceEndpointClient::HandleIncomingMessage(mojo::Message*)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ../../mojo/public/cpp/bindings/lib/
  	I    3.385s Main    000231a9  IPC::(anonymous namespace)::ChannelAssociatedGroupController::AcceptOnProxyThread(mojo::Message)

Comment 1 by, Dec 14

I looked and this is not a problem in release build. For release builds, if the account name is empty, then RefreshTokenIsAvailable will simply return false. So there is no need to merge this fix back to M72 at this point.

Comment 2 by, Dec 14

Project Member
The following revision refers to this bug:

commit 7887f7a41498776a05d84d88812d033ff43fb7a3
Author: Mihai Sardarescu <>
Date: Fri Dec 14 17:43:08 2018

[android] Remove DCHECK from RefreshTokenIsAvailable.

RefreshTokenIsAvailable is now called for accounts that are only present
in the Gaia cookies and that were previously not seeded yet. This leads
to the DCHECK in |OAuth2TokenServiceDelegateAndroid::MapAccountIdToAccountName()|
being fired. This is unexpected as the code should simply return false in that
case (not crash).

This CL removes this DCHECK when MapAccountIdToAccountName is called from

Bug:  915238 
Change-Id: I863a822a5429f9aef54d78bcf39d573ebf647e84
Commit-Queue: Mihai Sardarescu <>
Reviewed-by: Boris Sazonov <>
Cr-Commit-Position: refs/heads/master@{#616729}

Comment 3 by, Jan 2

Mihai, can we close this now?

Comment 4 by, Jan 4

Status: Fixed (was: Assigned)

Sign in to add a comment