Page 1 of 1

Perpetual CefSharp exceptions prevent me from debugging

PostPosted: Mon Aug 09, 2021 2:38 pm
by Patapom0
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.

Re: Perpetual CefSharp exceptions prevent me from debugging

PostPosted: Mon Aug 09, 2021 6:22 pm
by amaitland
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