Page 1 of 1

Site not loading

Posted: Thu Jun 13, 2024 12:20 pm
by TAIFUNSoftware
I used the SimpleBrowser2 demo for Delphi and the site https://www.hiplo24.de is not loading.

Re: Site not loading

Posted: Thu Jun 13, 2024 12:32 pm
by salvadordf
Hi,

I just tried SimpleBrowser2, MiniBrowser, cefclient and BriskBard. All of them loaded that website correctly.

Perhaps it was a temporal server issue.
Are you connected to internet through a proxy server?
Can you navigate to other websites?

Re: Site not loading

Posted: Fri Jun 14, 2024 6:47 am
by TAIFUNSoftware
Hi,
salvadordf wrote: Thu Jun 13, 2024 12:32 pm Perhaps it was a temporal server issue.
Are you connected to internet through a proxy server?
Can you navigate to other websites?
No server issues, because Firefox loads the site.
No proxy in use.
Yes and No, see test results.

Here are the test results.
All projects were compiled with Delphi 11.3.

I started with the current release version (CEF 124.3.9).
The results are:
SimpleBrowser crashes on initialization.
SimpleBrowser2 crashes on initialization.
MiniBrowser works with following site:
- google.com ok.
- Heise.de ok.
- nascar.com ok.
- hiplo24.de stop at 10% loading.

The i took the current 'unstable' version (CEF 125.0.22).
The results are:
SimpleBrowser crashes on initialization.
SimpleBrowser2 crashes on initialization.
MiniBrowser works with following site:
- google.com ok.
- Heise.de ok.
- nascar.com ok.
- hiplo24.de ok.

Re: Site not loading

Posted: Fri Jun 14, 2024 11:12 am
by salvadordf
hiplo24.de works only when the Chrome runtime mode is enabled.
This happens when any website requires a browser API that's only available in the Chrome runtime.

Some demos have the Chrome runtime enabled since the CEF 125 update. Older CEF4Delphi versions will not be able to load hiplo24.de

About the initialization crashes, try setting the GlobalCEFApp.cache property with a writable directory for the cache.
Add this value before the GlobalCEFApp.StartMainProcess call in the DPR file.

MiniBrowser sets GlobalCEFApp.cache to "cache" but SimpleBrowser and SimpleBrowser2 use in-memory cache.

SimpleBrowser and SimpleBrowser2 write some files in "AppData\Local\CEF\User Data" directory under the user profile directory. Perhaps those demos crash if they can't write in that directory or perhaps there's an issue with the TChromium.CreateBrowser call in the main form.

Try commenting the CreateBrowser calls to see if the SimpleBrowser2 demo can initialize CEF.

See if the antivirus is flagging the SimpleBrowser2 demo as suspicious.

Re: Site not loading

Posted: Fri Jun 14, 2024 3:34 pm
by salvadordf
I forgot.
Please, make the tests in real computers and not in virtual machines.
VirtualBox has several issues running CEF browsers.

Re: Site not loading

Posted: Mon Jun 17, 2024 8:59 am
by TAIFUNSoftware
Hi,
salvadordf wrote: Fri Jun 14, 2024 11:12 am hiplo24.de works only when the Chrome runtime mode is enabled.
This happens when any website requires a browser API that's only available in the Chrome runtime.
What is this chrome runtime? A Chrome (closed source) or a Chromium (open source)? Just for calrification.

We already traced the problem down (Version 119.4.7) to the libcef.dll, where a silent exception is thrown when hiplo24.de is called.
salvadordf wrote: Fri Jun 14, 2024 11:12 am Some demos have the Chrome runtime enabled since the CEF 125 update. Older CEF4Delphi versions will not be able to load hiplo24.de
I´ve tested it with CEF Version 109.1.18 (SimpleBrowser,SimpleBrowser2,MiniBrowser) and hiplo24.de works.

salvadordf wrote: Fri Jun 14, 2024 3:34 pm I forgot.
Please, make the tests in real computers and not in virtual machines.
VirtualBox has several issues running CEF browsers.
No virtual machines in use.

Re: Site not loading

Posted: Mon Jun 17, 2024 9:47 am
by salvadordf
A quick explanation about the "Chrome runtime" mode would be that the CEF project wants to expose more features available in Chromium and this new mode exposes those features by using a different API in Chromium.

The CEF project maintainer calls the old way "Alloy runtime", and the new way "Chrome runtime".

Some websites require those features and the CEF browsers using the old "Alloy runtime" have issues.

Read this link if you're interested in the technical details:
https://github.com/chromiumembedded/cef/issues/2969

Anyway, I would suggest upgrading to CEF 125 and making the tests with that version and enabling the Chrome runtime.

Check that the antivirus software is not blocking the demos.

See the SimpleBrowser2 demo code changes that I just uploaded to make the tests.

Re: Site not loading

Posted: Mon Jun 17, 2024 10:13 am
by dilfich
Also, this site has targeting by ip \ countries that are banned, it stupidly does not open. And it does not always show an error about blocking.