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

Issue 704440 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Chrome
Pri: 2
Type: Bug



Sign in to add a comment

FATAL:non_thread_safe_impl.cc(16)] Check failed: CalledOnValidThread().

Project Member Reported by alemate@chromium.org, Mar 23 2017

Issue description

Debug Chrome crashes on ChromeOS OOBE in the first screen:

[19763:21004:0322/232014.636866:FATAL:non_thread_safe_impl.cc(16)] Check failed: CalledOnValidThread(). 
#0 0x57b545c73291 base::debug::StackTrace::StackTrace()
#1 0x57b545c713e9 base::debug::StackTrace::StackTrace()
#2 0x57b545cb7c3b logging::LogMessage::~LogMessage()
#3 0x57b545dbc660 base::NonThreadSafeImpl::~NonThreadSafeImpl()
#4 0x57b549ee4ea1 AndroidDeviceManager::Device::~Device()
#5 0x57b549ee4efa AndroidDeviceManager::Device::~Device()
#6 0x57b547699c8c base::RefCountedThreadSafe<>::DeleteInternal()
#7 0x57b5408ea11e base::DefaultRefCountedThreadSafeTraits<>::Destruct()
#8 0x57b549eed838 base::RefCountedThreadSafe<>::Release()
#9 0x57b549eeb362 scoped_refptr<>::Release()
#10 0x57b549ee8e63 scoped_refptr<>::~scoped_refptr()
#11 0x57b549efc3e0 std::_Destroy<>()
#12 0x57b549efcd40 _ZNSt11_Tuple_implILm1EJ13scoped_refptrIN20AndroidDeviceManager6DeviceEES0_IN23DevToolsDeviceDiscovery13RemoteBrowserEEEED2Ev
#13 0x57b549efcde8 _ZNSt11_Tuple_implILm0EJ13scoped_refptrIN23DevToolsDeviceDiscovery16DiscoveryRequestEES0_IN20AndroidDeviceManager6DeviceEES0_INS1_13RemoteBrowserEEEED2Ev
#14 0x57b549efce66 _ZNSt5tupleIJ13scoped_refptrIN23DevToolsDeviceDiscovery16DiscoveryRequestEES0_IN20AndroidDeviceManager6DeviceEES0_INS1_13RemoteBrowserEEEED2Ev
#15 0x57b549efd02c _ZN4base8internal9BindStateIMN23DevToolsDeviceDiscovery16DiscoveryRequestEFv13scoped_refptrIN20AndroidDeviceManager6DeviceEES4_INS2_13RemoteBrowserEEiRKSsEJS4_IS3_ES7_S9_EED2Ev
#16 0x57b549efdd46 _ZN4base8internal9BindStateIMN23DevToolsDeviceDiscovery16DiscoveryRequestEFv13scoped_refptrIN20AndroidDeviceManager6DeviceEES4_INS2_13RemoteBrowserEEiRKSsEJS4_IS3_ES7_S9_EE7DestroyEPKNS0_13BindStateBaseE
#17 0x57b545c68974 base::internal::BindStateBase::Release()
#18 0x57b545c68f84 scoped_refptr<>::Release()
#19 0x57b545c68e03 scoped_refptr<>::~scoped_refptr()
#20 0x57b545c68d0a base::internal::CallbackBase<>::~CallbackBase()
#21 0x57b540718f24 base::internal::CallbackBase<>::~CallbackBase()
#22 0x57b540718f74 base::Callback<>::~Callback()
#23 0x57b5408f790c std::_Head_base<>::~_Head_base()
#24 0x57b5408f7958 _ZNSt11_Tuple_implILm1EJN4base8CallbackIFvN11google_apis17DriveApiErrorCodeERKSsELNS0_8internal8CopyModeE1ELNS7_10RepeatModeE1EEEEED2Ev
#25 0x57b540b4c59a _ZNSt11_Tuple_implILm0EJ13scoped_refptrIN4base22SingleThreadTaskRunnerEENS1_8CallbackIFvRKSsN4mojo16ScopedHandleBaseINS7_17MessagePipeHandleEEEELNS1_8internal8CopyModeE1ELNSC_10RepeatModeE1EEEEED2Ev
#26 0x57b540b4c600 _ZNSt5tupleIJ13scoped_refptrIN4base22SingleThreadTaskRunnerEENS1_8CallbackIFvRKSsN4mojo16ScopedHandleBaseINS7_17MessagePipeHandleEEEELNS1_8internal8CopyModeE1ELNSC_10RepeatModeE1EEEEED2Ev
#27 0x57b540b4c7a6 _ZN4base8internal9BindStateIPFv13scoped_refptrINS_19SequencedTaskRunnerEERKNS_8CallbackIFvRKSsN4mojo16ScopedHandleBaseINS8_17MessagePipeHandleEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEES7_SB_EJS2_INS_22SingleThreadTaskRunnerEESF_EED2Ev
#28 0x57b540b50886 _ZN4base8internal9BindStateIPFv13scoped_refptrINS_19SequencedTaskRunnerEERKNS_8CallbackIFvRKSsN4mojo16ScopedHandleBaseINS8_17MessagePipeHandleEEEELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEES7_SB_EJS2_INS_22SingleThreadTaskRunnerEESF_EE7DestroyEPKNS0_13BindState
#29 0x57b545c68974 base::internal::BindStateBase::Release()
#30 0x57b545c68f84 scoped_refptr<>::Release()
#31 0x57b545c68e03 scoped_refptr<>::~scoped_refptr()
#32 0x57b545c68d0a base::internal::CallbackBase<>::~CallbackBase()
#33 0x57b540718f24 base::internal::CallbackBase<>::~CallbackBase()
#34 0x57b540718f74 base::Callback<>::~Callback()
#35 0x57b5408f790c std::_Head_base<>::~_Head_base()
#36 0x57b5408f7958 _ZNSt11_Tuple_implILm1EJN4base8CallbackIFvN11google_apis17DriveApiErrorCodeERKSsELNS0_8internal8CopyModeE1ELNS7_10RepeatModeE1EEEEED2Ev
#37 0x57b540906a0a _ZNSt11_Tuple_implILm2EJSsN4base8CallbackIFvPN11google_apis29AuthenticatedRequestInterfaceEELNS0_8internal8CopyModeE1ELNS6_10RepeatModeE1EEEEED2Ev
#38 0x57b540906a7c _ZNSt11_Tuple_implILm1EJSsSsN4base8CallbackIFvPN11google_apis29AuthenticatedRequestInterfaceEELNS0_8internal8CopyModeE1ELNS6_10RepeatModeE1EEEEED2Ev
#39 0x57b54441f6b8 _ZNSt11_Tuple_implILm2EJSsSsSsN4base8CallbackIFvN8chromeos17InstallAttributes10LockResultEELNS0_8internal8CopyModeE1ELNS6_10RepeatModeE1EEEEED2Ev
#40 0x57b549ef076e _ZNSt11_Tuple_implILm0EJ13scoped_refptrIN20AndroidDeviceManager14DeviceProviderEESsSsSsN4base8CallbackIFviRKSsELNS4_8internal8CopyModeE1ELNS9_10RepeatModeE1EEEEED2Ev
#41 0x57b549ef0820 _ZNSt5tupleIJ13scoped_refptrIN20AndroidDeviceManager14DeviceProviderEESsSsSsN4base8CallbackIFviRKSsELNS4_8internal8CopyModeE1ELNS9_10RepeatModeE1EEEEED2Ev
#42 0x57b549ef0a2a _ZN4base8internal9BindStateIMN20AndroidDeviceManager14DeviceProviderEFvRKSsS5_S5_RKNS_8CallbackIFviS5_ELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJ13scoped_refptrIS3_ESsSsSsSA_EED2Ev
#43 0x57b549ef29c5 _ZN4base8internal9BindStateIMN20AndroidDeviceManager14DeviceProviderEFvRKSsS5_S5_RKNS_8CallbackIFviS5_ELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJ13scoped_refptrIS3_ESsSsSsSA_EE7DestroyEPKNS0_13BindStateBaseE
#44 0x57b545c68974 base::internal::BindStateBase::Release()
#45 0x57b545c68f84 scoped_refptr<>::Release()
#46 0x57b545c68e03 scoped_refptr<>::~scoped_refptr()
#47 0x57b545c68d0a base::internal::CallbackBase<>::~CallbackBase()
#48 0x57b540718f24 base::internal::CallbackBase<>::~CallbackBase()
#49 0x57b540f4e7ed _ZNO4base8internal8RunMixinINS_8CallbackIFvvELNS0_8CopyModeE0ELNS0_10RepeatModeE0EEEE3RunEv
#50 0x57b545e867e5 base::debug::TaskAnnotator::RunTask()
#51 0x57b545cd71ef base::MessageLoop::RunTask()
#52 0x57b545cd735e base::MessageLoop::DeferOrRunPendingTask()
#53 0x57b545cd78aa base::MessageLoop::DoWork()
#54 0x57b545cf0b6c base::MessagePumpLibevent::Run()
#55 0x57b545cd6d9a base::MessageLoop::RunHandler()
#56 0x57b545d63641 base::RunLoop::Run()
#57 0x57b545dd3821 base::Thread::Run()
#58 0x57b545dd410e base::Thread::ThreadMain()
#59 0x57b545dbd287 base::(anonymous namespace)::ThreadFunc()
#60 0x7a8abc7c7558 <unknown>
#61 0x7a8abb4f508d clone

 
Cc: r...@chromium.org
This actually took a fair amount of time:
23:10:33 - Start
23:20:14 - Crash
Hmm... It's interesting how AndroidDeviceManager and google_apis are in the same stack. I don't think any of them uses another.
I am seeing this pretty frequently on a ToT build with the JS console open.

Unfortunately nothing obvious jumps out at me. I'm a little mystified that AndroidDeviceManager::Device is both base::RefCountedThreadSafe and base::NonThreadSafe. I guess it is OK to hold on to references on other threads, but not to destroy it on a different thread than it was created on? That seems fragile.

Alas, I don't have cycles to help debug it just now so will have to work around it, but it's a bit concerning...

Components: Platform>DevTools
Labels: OS-Linux
I hit this too. It happened on its own with devtools open while I hit  bug 727990 . First the renderer goes poof, then the browser goes poof. :\
Labels: -Pri-1 Pri-2
Owner: eostroukhov@chromium.org
Status: Assigned (was: Untriaged)
Status: WontFix (was: Assigned)
Please reopen if this still happens.

Sign in to add a comment