Cef OSR crashed on Debug mode.

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Cef OSR crashed on Debug mode.

Postby Arion » Mon Aug 27, 2018 3:04 am

I have built a Cef OSR program using CefClient code.

But now it will crash if I run it on Debug mode.
Code: Select all
[0827/155402.586:FATAL:simple_watcher.cc(134)] Check failed: task_runner_->RunsTasksInCurrentSequence().[/color]


There are my main render loop and cef call.
Code: Select all
   while (!m_exit)
   {
      gTimer.Tick();
      float dt = gTimer.DeltaTime();

      cef_app->RenderCef(dt);

      char f_str[10];
      sprintf(f_str, "%f", dt);
      SDL_SetWindowTitle(m_mainWindow, f_str);

      gApp->update(dt);

      PollEvent(event);

      cef_app->LoopWork();
   }

   cef_app->Shutdown();

   gApp->shutdown();


the LoopWork() function is the wrapper for CefDoMessageLoopWork().

I don't know why it crashed, but when I run it on Release mode it is run well, no warning, no error.
Arion
Newbie
 
Posts: 6
Joined: Fri Apr 13, 2018 2:48 am

Re: Cef OSR crashed on Debug mode.

Postby magreenblatt » Mon Aug 27, 2018 9:44 am

What OS and CEF version? What is the full symbolized call stack for the crash?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Cef OSR crashed on Debug mode.

Postby fanjunwu » Tue Sep 04, 2018 12:29 am

> libcef.dll!logging::LogMessage::~LogMessage() Line 856 C++
libcef.dll!mojo::SimpleWatcher::SimpleWatcher(const base::Location & from_here, mojo::SimpleWatcher::ArmingPolicy arming_policy, scoped_refptr<base::SequencedTaskRunner> runner) Line 136 C++
libcef.dll!mojo::Connector::WaitToReadMore() Line 381 C++
libcef.dll!mojo::Connector::Connector(mojo::ScopedHandleBase<mojo::MessagePipeHandle> message_pipe, mojo::Connector::ConnectorConfig config, scoped_refptr<base::SequencedTaskRunner> runner) Line 154 C++
libcef.dll!mojo::internal::MultiplexRouter::MultiplexRouter(mojo::ScopedHandleBase<mojo::MessagePipeHandle> message_pipe, mojo::internal::MultiplexRouter::Config config, bool set_interface_id_namesapce_bit, scoped_refptr<base::SequencedTaskRunner> runner) Line 326 C++
libcef.dll!mojo::internal::InterfacePtrStateBase::InitializeEndpointClient(bool passes_associated_kinds, bool has_sync_methods, std::unique_ptr<mojo::MessageReceiver,std::default_delete<mojo::MessageReceiver> > payload_validator) Line 83 C++
libcef.dll!mojo::internal::InterfacePtrState<proxy_resolver::mojom::ProxyResolverFactory>::ConfigureProxyIfNecessary() Line 210 C++
libcef.dll!network::ProxyResolverFactoryMojo::Job::Job(network::ProxyResolverFactoryMojo * factory, const scoped_refptr<net::PacFileData> & pac_script, std::unique_ptr<net::ProxyResolver,std::default_delete<net::ProxyResolver> > * resolver, const base::RepeatingCallback<void (int)> & callback, std::unique_ptr<net::ProxyResolverErrorObserver,std::default_delete<net::ProxyResolverErrorObserver> > error_observer) Line 307 C++
libcef.dll!network::ProxyResolverFactoryMojo::CreateProxyResolver(const scoped_refptr<net::PacFileData> & pac_script, std::unique_ptr<net::ProxyResolver,std::default_delete<net::ProxyResolver> > * resolver, const base::RepeatingCallback<void (int)> & callback, std::unique_ptr<net::ProxyResolverFactory::Request,std::default_delete<net::ProxyResolverFactory::Request> > * request) Line 367 C++
libcef.dll!net::ProxyResolutionService::InitProxyResolver::DoCreateResolver() Line 590 C++
libcef.dll!net::ProxyResolutionService::InitProxyResolver::DoLoop(int result) Line 553 C++
libcef.dll!net::ProxyResolutionService::InitProxyResolver::OnIOCompletion(int result) Line 605 C++
libcef.dll!net::PacFileDecider::DoCallback(int result) Line 233 C++
libcef.dll!net::PacFileDecider::OnIOCompletion(int result) Line 184 C++
libcef.dll!net::PacFileFetcherImpl::FetchCompleted() Line 400 C++
libcef.dll!net::PacFileFetcherImpl::OnResponseCompleted(net::URLRequest * request, int net_error) Line 123 C++
libcef.dll!net::PacFileFetcherImpl::ConsumeBytesRead(net::URLRequest * request, int num_bytes) Line 359 C++
libcef.dll!net::PacFileFetcherImpl::ReadBody(net::URLRequest * request) Line 348 C++
libcef.dll!net::PacFileFetcherImpl::OnReadCompleted(net::URLRequest * request, int num_bytes) Line 304 C++
libcef.dll!net::URLRequestJob::SourceStreamReadComplete(bool synchronous, int result) Line 646 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::URLRequestJob::ReadRawDataComplete(int result) Line 505 C++
libcef.dll!net::URLRequestHttpJob::OnReadCompleted(int result) Line 1065 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::HttpCache::Transaction::DoLoop(int result) Line 1007 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::HttpNetworkTransaction::DoCallback(int rv) Line 682 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::HttpStreamParser::OnIOComplete(int result) Line 391 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::TCPClientSocket::DidCompleteRead(base::OnceCallback<void (int)> callback, int result) Line 371 C++
libcef.dll!base::internal::Invoker<base::internal::BindState<void (net::TCPClientSocket::*)(base::OnceCallback<void (int)>, int),base::internal::UnretainedWrapper<net::TCPClientSocket>,base::OnceCallback<void (int)> >,void (int)>::RunOnce(base::internal::BindStateBase * base, int unbound_args) Line 589 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::TCPSocketWin::RetryRead(int rv) Line 933 C++
libcef.dll!base::OnceCallback<void (unsigned int)>::Run(unsigned int args) Line 97 C++
libcef.dll!net::TCPSocketWin::DidSignalRead() Line 1036 C++
libcef.dll!net::TCPSocketWin::Core::ReadDelegate::OnObjectSignaled(void * object) Line 243 C++
libcef.dll!base::internal::Invoker<base::internal::BindState<void (base::CancelableTaskTracker::*)(long long),base::WeakPtr<base::CancelableTaskTracker>,long long>,void ()>::RunOnce(base::internal::BindStateBase * base) Line 593 C++
libcef.dll!base::debug::TaskAnnotator::RunTask(const char * queue_function, base::PendingTask * pending_task) Line 101 C++
libcef.dll!base::internal::IncomingTaskQueue::RunTask(base::PendingTask * pending_task) Line 124 C++
libcef.dll!base::MessageLoop::RunTask(base::PendingTask * pending_task) Line 320 C++
libcef.dll!base::MessageLoop::DeferOrRunPendingTask(base::PendingTask pending_task) Line 329 C++
libcef.dll!base::MessageLoop::DoWork() Line 373 C++
libcef.dll!base::MessagePumpForIO::DoRunLoop() Line 499 C++
libcef.dll!base::MessagePumpWin::Run(base::MessagePump::Delegate * delegate) Line 59 C++
libcef.dll!base::MessageLoop::Run(bool application_tasks_allowed) Line 273 C++
libcef.dll!base::RunLoop::Run() Line 105 C++
libcef.dll!base::Thread::Run(base::RunLoop * run_loop) Line 255 C++
libcef.dll!content::BrowserProcessSubThread::IOThreadRun(base::RunLoop * run_loop) Line 179 C++
libcef.dll!content::BrowserProcessSubThread::Run(base::RunLoop * run_loop) Line 134 C++
libcef.dll!base::Thread::ThreadMain() Line 340 C++
libcef.dll!base::`anonymous namespace'::ThreadFunc(void * params) Line 94 C++
fanjunwu
Newbie
 
Posts: 5
Joined: Tue Aug 23, 2016 7:43 pm

Re: Cef OSR crashed on Debug mode.

Postby fanjunwu » Tue Sep 04, 2018 12:30 am

cef_binary_3.3440.1806.g65046b7_windows64
os: windows 10 home
fanjunwu
Newbie
 
Posts: 5
Joined: Tue Aug 23, 2016 7:43 pm

Re: Cef OSR crashed on Debug mode.

Postby PramodM » Tue Nov 06, 2018 7:32 am

Hi,

Any solution to this problem? since I am seeing the same.
Please reply if anyone knows.
PramodM
Newbie
 
Posts: 1
Joined: Tue Nov 06, 2018 7:31 am

Re: Cef OSR crashed on Debug mode.

Postby linuxcef9 » Thu Aug 15, 2019 1:47 pm

I ran into same issue and did some analysis.
Are you on a domain joined machine by any chance? If yes, go to your proxy settings (inetcpl.cpl ->Connections->Lan Settings) or via chrome://settings and search for proxy and uncheck 'automatically detect settings' . Let me know if that works.
linuxcef9
Expert
 
Posts: 143
Joined: Tue Nov 06, 2018 3:08 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 43 guests