Perpetual CefSharp exceptions prevent me from debugging

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Perpetual CefSharp exceptions prevent me from debugging

Postby Patapom0 » Mon Aug 09, 2021 2:38 pm

Hi there! I'm new, first silly question:

I'm using CEFSharp and several instances of the offscreen browser running in various background worker threads (8 of them), but they become very annoying when they all start to timeout on their tasks when I've been debugging for too long (which is, usually, not that long).
I get some exceptions that increase in frequency until I end up pressing F5 continuously and never come back to the spot I was initially debugging.
There's no disabling these exceptions either and it's making the debugging process impossible and insufferable really.

I get that kind of obscure callstack when one of these an exception occurs:
Image

Is there a way to configure CEF processes to silently fail after a timeout, or a way to disable these exceptions altogether?

Thanks in advance.
Patapom0
Newbie
 
Posts: 1
Joined: Mon Aug 09, 2021 1:58 pm

Re: Perpetual CefSharp exceptions prevent me from debugging

Postby amaitland » Mon Aug 09, 2021 6:22 pm

To know what's going on you'll need to download libcef.dll.pdb and get a stack trace.
https://github.com/cefsharp/CefSharp/wi ... -diagnosis

The CefSharp OffScreen version is largely redundant now that chromium has a headless version. You might be better off switching to puppeteer-sharp + headless chrome.

https://github.com/hardkoded/puppeteer-sharp
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 18 guests