RequestHandler_GetCookieManager throws "Exception: GetCookieManager: CefBrowser reference is NULL" w/ CEF 65.0+

7 views
Skip to first unread message

j...@nrssystems.com

unread,
May 17, 2018, 3:06:33 PM5/17/18
to CEF Python
Hi,

I've been experiencing an intermittent but repeatable issue with cefpython3 and CEF 65.0, 66.0, and 67.0 on startup.

It seems the CefBrowser instance passed into RequestHandler_GetCookieManager is NULL, and when the function tries to resolve it to a pyBrowser instance, this exception is thrown. Here's a traceback:

https://gist.github.com/jakogut/728a8cbf0dba68f5549025a7d3707ca6

There's a comment at request_handler.pyx:285 that mentions the browser parameter being None in an exceptional case, due to a limitation of the CEF API.

Is there a workaround for this, or some way my program can handle this error?

I never saw this problem before CEF 65.0, so I'm thinking something must have changed upstream to break this.

Czarek Tomczak

unread,
May 22, 2018, 11:47:30 AM5/22/18
to CEF Python
Created Issue #429 with explanation and code fix, see:
https://github.com/cztomczak/cefpython/issues/429
Reply all
Reply to author
Forward
0 new messages