Deadlock trying to get frame

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.

Deadlock trying to get frame

Postby gshaibi » Sun Nov 29, 2020 8:47 am

Hi Marshall!
I use CEF 4044 on linux.
I'm trying to get a new frame in the method CefFrameHandler::OnFrameCreated by calling browser->GetFrame(frame_routing_id), and get a deadlock in CefBrowserInfo::GetFrameForId (line 242).
Am I trying to do something forbidden?
Thanks.
gshaibi
Techie
 
Posts: 17
Joined: Wed Mar 25, 2020 8:24 am

Re: Deadlock trying to get frame

Postby magreenblatt » Sun Nov 29, 2020 11:29 am

CefFrameHandler dosn’t exist in the public CEF repository. I suggest checking the methods in your callstack to identify where the lock is already being held, and then modifying your code so that it doesn’t need to be held when CefFrameHandler callbacks are executed.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Deadlock trying to get frame

Postby gshaibi » Mon Nov 30, 2020 4:32 am

Thanks a lot!
gshaibi
Techie
 
Posts: 17
Joined: Wed Mar 25, 2020 8:24 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 62 guests