Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Some sites not working

Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Some sites not working

Post by Chinyaev »

Hello!

Some sites not working, example yandex.com or youtube.com (page dont click). I think they are all sites which uses Flash.
But with GlobalCEFApp.SingleProcess := True its working fine. How fix problem in multiprocess mode? I use last libraries. Delphi XE7. Windows 10. Custom directories.
Image
Last edited by Chinyaev on Tue Oct 24, 2017 1:12 pm, edited 1 time in total.
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: Some sites not working

Post by Chinyaev »

I removed custom directories and launch MiniBrowser. Now I have error in libcef.dll when I open yandex.com

Image
Last edited by Chinyaev on Tue Oct 24, 2017 1:12 pm, edited 1 time in total.
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: Some sites not working

Post by Chinyaev »

Yandex does not work because of the flush.
Flag GlobalCEFApp.FlashEnabled := True; not fix problem.
Solves the problem only if Pos('.swf', request.Url)<>0 then Result := True; in ResourceResponse.

youtube.com does not work yet.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Some sites not working

Post by salvadordf »

Hi,

It's not the first time we have problems with yandex.ru and the Flash plugin. I'll take a look as soon as I can but meanwhile you can disable flash by adding GlobalCEFApp.FlashEnabled := False; before the GlobalCEFApp.StartMainProcess call.

Even if you disable flash you can watch youtube videos because it will load a HTML5 video.

About the first issue, keep in mind that some web pages add content dynamically and yandex.ru does that. While a web page modifies the content the rendering engine may block all user interactions. If you wait a few seconds, you'll be able to type in the search box.

Thanks for reporting the issue! :D
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: Some sites not working

Post by Chinyaev »

Thank you for answer!

I set GlobalCEFApp.FlashEnabled := False, but it did not help. Youtube not working, and yandex.ru only sometimes works. Pages are completely blocked.
Works fine only with GlobalCEFApp.SingleProcess := True;
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Some sites not working

Post by salvadordf »

Yandex.ru sends different contents based on the user's IP. In my case I see lots of news in Spanish.

It's one of those "infinite scroll" pages that load more content as you scroll down and each time it adds content, the rendering engine blocks all user interactions.

Try to load yandex.ru with the official CEF3 sample application :
http://opensource.spotify.com/cefbuilds ... nt.tar.bz2

I'll keep doing more tests but so far I can't reproduce your problem.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Some sites not working

Post by salvadordf »

I tried the official CEF3 sample application with the "--enable-system-flash" parameter to enable flash and it also crashes with yandex.ru

That means that it's a CEF3 or Flash plugin issue.

However, the crash can be avoided if you enable the custom cache, cookies and user data directories.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Some sites not working

Post by salvadordf »

This CEF3 issue may be related to the Flash crashing the client :
https://bitbucket.org/chromiumembedded/ ... lash-video

I've created an issue about the flash crash here :
https://github.com/salvadordf/CEF4Delphi/issues/58
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: Some sites not working

Post by Chinyaev »

In cef client yandex and youtube works fine for me.
On youtube.com I get error in debug (but site works)

Code: Select all

[1023/183500.299:WARNING:spdy_session.cc(2934)] Received HEADERS for invalid stream 3
[1023/183500.311:WARNING:spdy_session.cc(2934)] Received HEADERS for invalid stream 1
[1023/183500.332:WARNING:spdy_session.cc(2934)] Received HEADERS for invalid stream 5
[1023/183500.334:WARNING:spdy_session.cc(2934)] Received HEADERS for invalid stream 3
[1023/183500.334:WARNING:spdy_session.cc(2934)] Received HEADERS for invalid stream 1
[1023/183500.353:WARNING:spdy_session.cc(2934)] Received HEADERS for invalid stream 7
[1023/183507.537:ERROR:gpu_child_thread.cc(252)] Exiting GPU process due to errors during initialization
[1023/183507.696:ERROR:gpu_child_thread.cc(252)] Exiting GPU process due to errors during initialization
[1023/183507.850:ERROR:gpu_child_thread.cc(252)] Exiting GPU process due to errors during initialization
[1023/183508.009:ERROR:gpu_child_thread.cc(252)] Exiting GPU process due to errors during initialization
Now about CEF4
I disabled flash, but yandex and youtube do not work until now.
I set USA proxy and it helps (because there is not adv banner there), but video not playing.

Image

Maybe I'm doing something wrong?
I downloaded libraries from url http://opensource.spotify.com/cefbuilds ... 32.tar.bz2, from directories Relise and Resources I moved all files to custom directory cef.

Image
Last edited by Chinyaev on Tue Oct 24, 2017 1:12 pm, edited 1 time in total.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Some sites not working

Post by salvadordf »

Hi,

CEF4Delphi checks that you have all the binaries in the right place by default and stops the application if there's something wrong.

Try other proxy servers. Not all the proxy servers work right and some of them will give you problems with videos.

Here you have some lists of proxy servers :
https://www.briskbard.com/blog/?q=node/45

I've posted a message about the flash crash in the official CEF3 forum too.
Post Reply