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

Issue 841091 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
OOO (till 1/28)
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug
Team-Accessibility



Sign in to add a comment

Automation Inspector extension hits DCHECK: !g_blocking_disallowed.Get().Get()

Project Member Reported by alancutter@chromium.org, May 9 2018

Issue description

OS: Linux
Version: 68.0.3424.0 

Repro steps:
1. Install Automation Inspector: https://chrome.google.com/webstore/detail/automation-inspector-exte/magknkflhkbbjaalinnipadaihkbghoc
2. Click extension button

DCHECK hit:
[96951:96951:0509/113400.632599:ERROR:account_info_fetcher.cc(58)] OnGetTokenFailure: Not authorized.
[96951:96951:0509/113419.112645:FATAL:thread_restrictions.cc(29)] Check failed: !g_blocking_disallowed.Get().Get(). Function marked as blocking was called from a scope that disallows blocking! If this task is running inside the TaskScheduler, it needs to have MayBlock() in its TaskTraits. Otherwise, consider making this blocking work asynchronous or, as a last resort, you may use ScopedAllowBlocking in a narrow scope.
#0 0x7f8823ecaa4c base::debug::StackTrace::StackTrace()
#1 0x7f8823e0c37b logging::LogMessage::~LogMessage()
#2 0x7f8823e8d186 base::AssertBlockingAllowed()
#3 0x7f8823ed017e base::PathExists()
#4 0x55faac5a68b8 Profile::CreateProfile()
#5 0x55faac5cf445 ProfileManager::CreateProfileHelper()
#6 0x55faac5c8368 ProfileManager::CreateAndInitializeProfile()
#7 0x55faac5c809c ProfileManager::GetProfile()         
#8 0x55faac5c7f30 ProfileManager::GetActiveUserOrOffTheRecordProfileFromPath()
#9 0x55faac5c7f8c ProfileManager::GetActiveUserProfile()
#10 0x55faad1c37c8 extensions::AutomationEventRouter::AutomationEventRouter()
#11 0x55faad1c3701 base::Singleton<>::get()
#12 0x55faad1c1009 extensions::AutomationInternalEnableTabFunction::Run()
#13 0x55faabfed7a8 ExtensionFunction::RunWithValidation()
#14 0x55faabfefaed extensions::ExtensionFunctionDispatcher::DispatchWithCallbackInternal()
#15 0x55faabfef60b extensions::ExtensionFunctionDispatcher::Dispatch()
#16 0x55faac016677 extensions::ExtensionWebContentsObserver::OnRequest()
#17 0x55faac0164e9 _ZN3IPC8MessageTI29ExtensionHostMsg_Request_MetaNSt3__15tupleIJ31ExtensionHostMsg_Request_ParamsEEEvE8DispatchIN10extensions28ExtensionWebContentsObserverES9_N7content15RenderFrameHostEMS9_FvPSB_RKS4_EEEbPKNS_7MessageEPT_PT0_PT1_T2_                                
#18 0x55faac01641f extensions::ExtensionWebContentsObserver::OnMessageReceived()
#19 0x55faace952ee extensions::ChromeExtensionWebContentsObserver::OnMessageReceived()
#20 0x7f88217360a5 content::WebContentsImpl::OnMessageReceived()             
#21 0x7f88213b3665 content::RenderFrameHostImpl::OnMessageReceived()
#22 0x7f88215e37eb content::RenderProcessHostImpl::OnMessageReceived()   
#23 0x7f8822eb21b1 IPC::ChannelProxy::Context::OnDispatchMessage()
#24 0x7f8822eb50c8 _ZN4base8internal7InvokerINS0_9BindStateIMN3IPC12ChannelProxy7ContextEFvRKNS3_7MessageEEJ13scoped_refptrIS5_ES6_EEEFvvEE3RunEPNS0_13BindStateBaseE
#25 0x7f8823debf70 base::debug::TaskAnnotator::RunTask()
#26 0x7f8823e18a16 base::internal::IncomingTaskQueue::RunTask()
#27 0x7f8823e1c4b7 base::MessageLoop::RunTask()
#28 0x7f8823e1c8ca base::MessageLoop::DeferOrRunPendingTask()
#29 0x7f8823e1cb5e base::MessageLoop::DoWork()
#30 0x7f8823e1f71f base::(anonymous namespace)::WorkSourceDispatch()
#31 0x7f88189747f7 g_main_context_dispatch

 
Cc: aleventhal@chromium.org
+aleventhal PTAL
Labels: -OS-Linux
Owner: skuhne@chromium.org
Status: Assigned (was: Untriaged)
@skuhne, is it supposed to be safe to call ProfileManager::GetActiveUserProfile?

It seems wrong that this call would result in a AssertBlockingAllowed() error.

Sign in to add a comment