CEF Crash after 5 days - 81.3.10.0

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 Crash after 5 days - 81.3.10.0

Postby ajkeizer » Wed Aug 26, 2020 7:56 pm

HI
I am seeing a cef crash after running continuously for 5 days doing a lot of close and open calls in my windows .OCX

Exception code: 0x80000003
Exception information: A break point was encountered

libcef.dll: 81.3.10.0

Crash dump CallStack:
[code]
libcef.dll!logging::LogMessage::~LogMessage() Line 953 C++
libcef.dll!logging::Win32ErrorLogMessage::~Win32ErrorLogMessage() Line 1079 C++
libcef.dll!gfx::`anonymous namespace'::CrashOther() Line 63 C++
libcef.dll!gfx::CheckWindowCreated(HWND__ * hwnd) Line 197 C++
libcef.dll!gfx::WindowImpl::Init(HWND__ * parent, const gfx::Rect & bounds) Line 240 C++
libcef.dll!views::HWNDMessageHandler::Init(HWND__ * parent, const gfx::Rect & bounds) Line 441 C++
libcef.dll!views::DesktopWindowTreeHostWin::Init(const views::Widget::InitParams & params) Line 147 C++
libcef.dll!views::DesktopNativeWidgetAura::InitNativeWidget(views::Widget::InitParams params) Line 487 C++
libcef.dll!views::Widget::Init(views::Widget::InitParams params) Line 355 C++
libcef.dll!CefWindowDelegateView::Init(HWND__ * parent_widget, content::WebContents * web_contents, const gfx::Rect & bounds) Line 57 C++
libcef.dll!CefBrowserPlatformDelegateNativeWin::CreateHostWindow() Line 210 C++
libcef.dll!CefBrowserHostImpl::CreateHostWindow() Line 2942 C++
libcef.dll!CefBrowserHostImpl::CreateInternal(const CefStructBase<CefBrowserSettingsTraits> & settings, scoped_refptr<CefClient> client, content::WebContents * web_contents, bool own_web_contents, scoped_refptr<CefBrowserInfo> browser_info, scoped_refptr<CefBrowserHostImpl> opener, bool is_devtools_popup, scoped_refptr<CefRequestContextImpl> request_context, std::__1::unique_ptr<CefBrowserPlatformDelegate,std::__1::default_delete<CefBrowserPlatformDelegate>> platform_delegate, scoped_refptr<CefExtension> extension) Line 432 C++
libcef.dll!CefBrowserHostImpl::Create(CefBrowserHostImpl::CreateParams & create_params) Line 370 C++
libcef.dll!CefBrowserHost::CreateBrowserSync(const CefWindowInfo & windowInfo, scoped_refptr<CefClient> client, const CefStringBase<CefStringTraitsUTF16> & url, const CefStructBase<CefBrowserSettingsTraits> & settings, scoped_refptr<CefDictionaryValue> extra_info, scoped_refptr<CefRequestContext> request_context) Line 289 C++
libcef.dll!`anonymous namespace'::CreateBrowserWithHelper(`anonymous namespace'::CreateBrowserHelper * helper) Line 142 C++
[Inline Frame] libcef.dll!base::internal::FunctorTraits<void (*)(base::Thread *),void>::Invoke(void(*)(base::Thread *) && function, base::Thread * && args) Line 399 C++
[Inline Frame] libcef.dll!base::internal::InvokeHelper<0,void>::MakeItSo(void(*)(base::Thread *) && functor, base::Thread * && args) Line 599 C++
[Inline Frame] libcef.dll!base::internal::Invoker<base::internal::BindState<void (*)(base::Thread *),base::Thread *>,void ()>::RunImpl(void(*)(base::Thread *) && functor, std::__1::tuple<base::Thread *> && bound, std::__1::integer_sequence<unsigned int,0>) Line 672 C++
libcef.dll!base::internal::Invoker<base::internal::BindState<void (*)(base::Thread *),base::Thread *>,void ()>::RunOnce(base::internal::BindStateBase * base) Line 641 C++
[Inline Frame] libcef.dll!base::OnceCallback<void ()>::Run() Line 98 C++
libcef.dll!base::TaskAnnotator::RunTask(const char * trace_event_name, base::PendingTask * pending_task) Line 142 C++
libcef.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow * continuation_lazy_now, bool * ran_task) Line 366 C++
libcef.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() Line 221 C++
libcef.dll!base::MessagePumpForUI::DoRunLoop() Line 219 C++
libcef.dll!base::MessagePumpWin::Run(base::MessagePump::Delegate * delegate) Line 77 C++
libcef.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool application_tasks_allowed, base::TimeDelta timeout) Line 471 C++
libcef.dll!base::RunLoop::Run() Line 157 C++
libcef.dll!CefUIThread::ThreadMain() Line 397 C++
libcef.dll!base::`anonymous namespace'::ThreadFunc(void * params) Line 113 C++
/code]

Any help on this would be greatly appreciated. Would moving to cef 84.4.1 help with this crash?
ajkeizer
Newbie
 
Posts: 5
Joined: Wed Aug 26, 2020 7:44 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby magreenblatt » Wed Aug 26, 2020 9:59 pm

What is the associated log message?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby ajkeizer » Thu Aug 27, 2020 1:21 pm

I don't have the source downloaded and my disassembly is a bit rusty. I will get the source files and get back to you.
ajkeizer
Newbie
 
Posts: 5
Joined: Wed Aug 26, 2020 7:44 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby magreenblatt » Thu Aug 27, 2020 1:26 pm

The log message should be written to debug.log if logging is enabled. It should tell you the value of GetLastError(), which might provide a hint to the problem.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby ajkeizer » Thu Aug 27, 2020 1:35 pm

I didn't have debug.log enabled
ajkeizer
Newbie
 
Posts: 5
Joined: Wed Aug 26, 2020 7:44 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby ajkeizer » Thu Aug 27, 2020 6:42 pm

finally got source files. From the dump looks like the last log message is:
[0826/110616.968:FATAL:hwnd_util.cc(62)] : The parameter is incorrect. (0x57)
ajkeizer
Newbie
 
Posts: 5
Joined: Wed Aug 26, 2020 7:44 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby ajkeizer » Mon Aug 31, 2020 3:00 pm

@magreenblatt does this log message indicate that the windows handle trying to be used is invalid?
ajkeizer
Newbie
 
Posts: 5
Joined: Wed Aug 26, 2020 7:44 pm

Re: CEF Crash after 5 days - 81.3.10.0

Postby magreenblatt » Mon Aug 31, 2020 3:06 pm

ajkeizer wrote:@magreenblatt does this log message indicate that the windows handle trying to be used is invalid?

It suggests that an invalid parameter is being passed to the CreateWindowEx call here. Check the parameters that you're passing to CreateBrowserSync via CefWindowInfo. For example, if you're specifying a parent_window HWND make sure that window remains valid.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 26 guests