Page 1 of 2
Some sites not working
Posted: Mon Oct 23, 2017 5:18 am
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]()
Re: Some sites not working
Posted: Mon Oct 23, 2017 7:02 am
by Chinyaev
I removed custom directories and launch MiniBrowser. Now I have error in libcef.dll when I open yandex.com
![Image]()
Re: Some sites not working
Posted: Mon Oct 23, 2017 8:00 am
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.
Re: Some sites not working
Posted: Mon Oct 23, 2017 11:04 am
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!

Re: Some sites not working
Posted: Mon Oct 23, 2017 11:39 am
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;
Re: Some sites not working
Posted: Mon Oct 23, 2017 12:00 pm
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.
Re: Some sites not working
Posted: Mon Oct 23, 2017 12:34 pm
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.
Re: Some sites not working
Posted: Mon Oct 23, 2017 1:35 pm
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
Re: Some sites not working
Posted: Mon Oct 23, 2017 1:48 pm
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.
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]()
Re: Some sites not working
Posted: Mon Oct 23, 2017 2:30 pm
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.