DCHECK fail in delegated_frame_host.cc(379)

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.

DCHECK fail in delegated_frame_host.cc(379)

Postby robs » Fri Nov 20, 2020 4:02 pm

I've just updated from CEF 83.4.2 to 87.1.6.
On macOS, with offscreen rendering, I'm hitting the following DCHECK when I call into CloseBrowser:

Code: Select all
[1120/153535.689347:FATAL:delegated_frame_host.cc(379)] Check failed: !client_->DelegatedFrameHostIsVisible().


The call stack at this time is a bit strange and probably isn't meaningful. But, it is consistent:
Code: Select all
#0   0x00000001074ef56d in cef_time_delta ()
#1   0x00000001074ef59e in cef_time_delta ()
#2   0x0000000106190268 in cef_zip_reader_create ()
#3   0x0000000106190063 in cef_zip_reader_create ()
#4   0x0000000108bde2b3 in ___lldb_unnamed_symbol383$$Chromium Embedded Framework ()


Sounds like I'm missing an important step in the browser teardown sequence? I did build the cefclient with the same version, and tried closing windows with OSR enabled, but I'm not seeing anything helpful nor am I able to reproduce there. Any ideas?

Thanks,
Rob
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm

Re: DCHECK fail in delegated_frame_host.cc(379)

Postby robs » Tue Nov 24, 2020 11:17 am

I've narrowed down this problem and can now reproduce easily with cefclient.

Put simply, if you create six browser instances and then close one of them the above DCHECK triggers.
This only happens when using off-screen rendering.

Detailed steps:
1. build cefclient, Debug version, from CEF 87.1.6, on macOS (I'm on Catalina 10.15.6, using Xcode 11.7)
2. via scheme editor add "--off-screen-rendering-enabled" command line argument
3. launch cefclient, window comes up
4. Choose Tests -> New Window to create a new browser instance, now you have two windows.
5. Choose Tests -> New Window to create a new browser instance, now you have three windows.
6. Choose Tests -> New Window to create a new browser instance, now you have four windows.
7. Choose Tests -> New Window to create a new browser instance, now you have five windows.
8. Choose Tests -> New Window to create a new browser instance, now you have six windows.
9. Close any of the windows.
DCHECK referenced above triggers.

Thanks for any suggestions!

Rob
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm

Re: DCHECK fail in delegated_frame_host.cc(379)

Postby magreenblatt » Tue Nov 24, 2020 2:16 pm

Please add a bug.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: DCHECK fail in delegated_frame_host.cc(379)

Postby robs » Tue Nov 24, 2020 2:41 pm

Thanks Marshall, here you go:

https://bitbucket.org/chromiumembedded/ ... ng-browser

Please let me know if I can help in any way.

Best,
Rob
robs
Mentor
 
Posts: 70
Joined: Wed Jun 05, 2013 2:22 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 27 guests