Memory access error in some rare cases.

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.

Memory access error in some rare cases.

Postby Gionter » Sun Feb 16, 2025 1:48 am

If the iframe is dynamic, something does not have time to be processed and everything crashes with memory access denial. It occurs when calling get_source method respectively and other similar methods. Could you handle it somehow? Maybe here make an additional check for the existence of the frame.

void CefFrameImpl::GetSource(CefRefPtr<CefStringVisitor> visitor) {
CEF_REQUIRE_RT_RETURN_VOID();
if (frame_) {
CefString content;
string_util::GetCefString(blink_glue::DumpDocumentMarkup(frame_), content);
visitor->Visit(content);
}
}

But most likely the error occurs somewhere around here.
Gionter
Newbie
 
Posts: 6
Joined: Mon Oct 14, 2024 6:36 pm

Re: Memory access error in some rare cases.

Postby magreenblatt » Sun Feb 16, 2025 12:22 pm

What OS and CEF version? Please post a symbolized call stack for the crash.
magreenblatt
Site Admin
 
Posts: 12947
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

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