Access Violation From libcef

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.

Access Violation From libcef

Postby lala » Sun Aug 12, 2018 9:20 am

Hi,
We have c# winform application with cef version 3.2924.1571.gcdcdfa9 and xilium.cefglue.
When loading we are calling to CefRuntime.Load(); and during the workflow we are creating and killing the cefBrowsers (can be multiple browsers concurrent).
From time to time we are getting Access Violation exception from the Renderer proccess (sometime during createBrower and sometime during close).
will appreciate any advice because struggling with this intermittent issue over a year :cry:

The exception is at CrossThreadPersistentRegion::shouldTracePersistentNode(...) , command: Address rawObject = reinterpret_cast<Address>(persistent->get());

from event viewer:
P1: IdsHost.exe
P2: 2.0.0.3218
P3: 5b6c4097
P4: libcef.DLL
P5: 3.2924.1571.0
P6: 58ad3965
P7: c0000005
P8: 00000000021f7d61
P9:
P10:

crash dump stack:
> libcef.dll!blink::CrossThreadPersistentRegion::shouldTracePersistentNode(blink::Visitor * visitor, blink::PersistentNode * node) Line 133 C++
libcef.dll!blink::PersistentRegion::tracePersistentNodes(blink::Visitor * visitor, bool(*)(blink::Visitor *, blink::PersistentNode *) shouldTrace) Line 99 C++
libcef.dll!blink::ThreadHeap::visitPersistentRoots(blink::Visitor * visitor) Line 601 C++
libcef.dll!blink::ThreadState::collectGarbage(blink::BlinkGC::StackState stackState, blink::BlinkGC::GCType gcType, blink::BlinkGC::GCReason reason) Line 1726 C++
libcef.dll!blink::ThreadState::runScheduledGC(blink::BlinkGC::StackState stackState) Line 1027 C++
libcef.dll!blink::ThreadState::safePoint(blink::BlinkGC::StackState stackState) Line 1328 C++
libcef.dll!blink::scheduler::TaskQueueManager::ProcessTaskFromWorkQueue(blink::scheduler::internal::WorkQueue * work_queue) Line 368 C++
libcef.dll!blink::scheduler::TaskQueueManager::DoWork(base::TimeTicks run_time, bool from_main_thread) Line 250 C++
libcef.dll!base::internal::InvokeHelper<1,void>::MakeItSo<void (__cdecl blink::scheduler::TaskQueueManager::*const & __ptr64)(base::TimeTicks,bool) __ptr64,base::WeakPtr<blink::scheduler::TaskQueueManager> const & __ptr64,base::TimeTicks const & __ptr64,bool const & __ptr64>(void(blink::scheduler::TaskQueueManager::*)(base::TimeTicks, bool) & functor, const base::WeakPtr<blink::scheduler::TaskQueueManager> & weak_ptr, const base::TimeTicks & <args_0>, const bool & <args_1>) Line 308 C++
libcef.dll!base::debug::TaskAnnotator::RunTask(const char * queue_function, base::PendingTask * pending_task) Line 52 C++
libcef.dll!base::MessageLoop::RunTask(base::PendingTask * pending_task) Line 411 C++
libcef.dll!base::MessageLoop::DoWork() Line 512 C++
libcef.dll!base::MessagePumpDefault::Run(base::MessagePump::Delegate * delegate) Line 36 C++
libcef.dll!base::RunLoop::Run() Line 36 C++
libcef.dll!content::RendererMain(const content::MainFunctionParams & parameters) Line 198 C++
libcef.dll!content::RunNamedProcessTypeMain(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & process_type, const content::MainFunctionParams & main_function_params, content::ContentMainDelegate * delegate) Line 425 C++
libcef.dll!content::ContentMainRunnerImpl::Run() Line 774 C++
libcef.dll!content::ContentMain(const content::ContentMainParams & params) Line 20 C++
libcef.dll!CefExecuteProcess(const CefMainArgs & args, CefRefPtr<CefApp> application, void * windows_sandbox_info) Line 186 C++
libcef.dll!cef_execute_process(const _cef_main_args_t * args, _cef_app_t * application, void * windows_sandbox_info) Line 184 C++
lala
Newbie
 
Posts: 1
Joined: Sun Aug 12, 2018 8:52 am

Re: Access Violation From libcef

Postby amaitland » Sun Aug 12, 2018 9:08 pm

Does the problem reproduce with a supported version of CEF? The version you are using is old and unsupported.

https://bitbucket.org/chromiumembedded/ ... -supported
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 63 guests