alderlopez / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Crash/hang when calling CefShutdown immediately after CefInitialize #571

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I initialize cef using `CefInitialize`. Sometimes I need to cancel everything 
and exit the app before calling `CefRunMessageLoop` or `CefDoMessageLoopWork`. 
if I call CefShutdown in these situations ( as cef_app.h suggests ), an error 
occurs ( Building against Ubuntu 11.10 ). here is log:

[0415/163152:FATAL:scheme_impl.cc(788)] Check failed: false. context not valid
Backtrace:
   base::debug::StackTrace::StackTrace() [0x7fd8d30d6c66]
   logging::LogMessage::~LogMessage() [0x7fd8d3105621]
   CefRegisterCustomScheme() [0x7fd8d3f0771b]
   RegisterDevToolsSchemeHandler() [0x7fd8d3e9b75d]
   base::internal::RunnableAdapter<>::Run() [0x7fd8d3edef98]
   base::internal::InvokeHelper<>::MakeItSo() [0x7fd8d3eded44]
   base::internal::Invoker<>::Run() [0x7fd8d3ede9ef]
   base::Callback<>::Run() [0x7fd8d30cf683]
   MessageLoop::RunTask() [0x7fd8d3109f40]
   MessageLoop::DeferOrRunPendingTask() [0x7fd8d310a057]
   MessageLoop::DoWork() [0x7fd8d310a827]
   base::MessagePumpGlib::RunWithDispatcher() [0x7fd8d30b4394]
   base::MessagePumpGlib::Run() [0x7fd8d30b4774]
   MessageLoop::RunInternal() [0x7fd8d3109c15]
   MessageLoop::RunHandler() [0x7fd8d3109ac8]
   MessageLoop::RunAllPending() [0x7fd8d310942a]
   CefProcessUIThread::CleanUp() [0x7fd8d3ee0fde]
   CefProcess::~CefProcess() [0x7fd8d3edf3a2]
   CefProcess::~CefProcess() [0x7fd8d3edf44e]
   scoped_ptr<>::reset() [0x7fd8d3edde04]
   CefContext::Shutdown() [0x7fd8d3edc7be]
   CefShutdown() [0x7fd8d3edbc7a]
   cef_shutdown [0x7fd8d3063752]
   CefShutdown() [0x7fd8d89051a7]
   appjs::CefLoop::Stop() [0x7fd8d890508f]

Original issue reported on code.google.com by Fireboy.mrtz on 16 Apr 2012 at 6:30

GoogleCodeExporter commented 9 years ago
It looks like the same issue as #539

Original comment by igor.ara...@gmail.com on 16 Apr 2012 at 3:13

GoogleCodeExporter commented 9 years ago
Issue 539 has been merged into this issue.

Original comment by magreenb...@gmail.com on 22 May 2012 at 3:45

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 22 May 2012 at 3:47

GoogleCodeExporter commented 9 years ago
Fixed in CEF3 trunk revision 970.

Original comment by magreenb...@gmail.com on 3 Jan 2013 at 12:56