CEF browser not loading url intermittently

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.

CEF browser not loading url intermittently

Postby harsh » Thu Jan 23, 2020 3:06 am

CEF browser is not loading URL intermittently and a blank grey screen is displayed. This happens in 1 out of 10 cases. The debug logs give the following errors/info:

Code: Select all
INFO:download_manager_delegate.cc(334) Rejected download of [url]

This is seen every time the URL is not loaded.

Code: Select all
INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or unexpected token", source: [some javascript file]

This is seen everytime, irrespective of whether URL is loaded or not loaded.

CEF version: 78.3.3 on Windows

What could be the possible reason?

Thanks!
harsh
Techie
 
Posts: 30
Joined: Mon Dec 09, 2019 11:17 am

Re: CEF browser not loading url intermittently

Postby Czarek » Thu Jan 23, 2020 4:41 am

See the source of the log message and the comment above it: https://github.com/chromiumembedded/cef ... te.cc#L334
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF browser not loading url intermittently

Postby harsh » Thu Jan 23, 2020 5:03 am

I read it but could not understand the reason behind it and also how to resolve the error.

We are directly using the libcef library, so how to modify it?
harsh
Techie
 
Posts: 30
Joined: Mon Dec 09, 2019 11:17 am

Re: CEF browser not loading url intermittently

Postby Czarek » Thu Jan 23, 2020 6:18 am

Looks like browser followed download link to a resource that makes redirects, and these reidrects could take some time before the actual download initiates, and while this was happening the browser was closed.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF browser not loading url intermittently

Postby harsh » Thu Jan 23, 2020 6:40 am

Is there some way to make the browser wait for the downloads to finish before closing?
harsh
Techie
 
Posts: 30
Joined: Mon Dec 09, 2019 11:17 am

Re: CEF browser not loading url intermittently

Postby Czarek » Thu Jan 23, 2020 6:53 am

How are you closing browser?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF browser not loading url intermittently

Postby harsh » Thu Jan 23, 2020 7:21 am

We are closing the window after 30 seconds.

Recently, we upgraded to version 78.3.3 from version 3, added sandboxing and removed caching. Could any of these be the cause of this issue? We were not facing any issue earlier.
harsh
Techie
 
Posts: 30
Joined: Mon Dec 09, 2019 11:17 am

Re: CEF browser not loading url intermittently

Postby Czarek » Thu Jan 23, 2020 7:42 am

What is your issue?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: CEF browser not loading url intermittently

Postby harsh » Thu Jan 23, 2020 7:46 am

CEF browser is not loading URL intermittently and a blank grey screen is displayed. This happens in 1 out of 10 cases.
harsh
Techie
 
Posts: 30
Joined: Mon Dec 09, 2019 11:17 am

Re: CEF browser not loading url intermittently

Postby Czarek » Thu Jan 23, 2020 9:04 am

If you load a download url what do you expect to see?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 63 guests