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.
Site not loading
-
- Posts: 3
- Joined: Thu Jun 13, 2024 12:15 pm
Site not loading
I used the SimpleBrowser2 demo for Delphi and the site https://www.hiplo24.de is not loading.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Site not loading
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?
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?
-
- Posts: 3
- Joined: Thu Jun 13, 2024 12:15 pm
Re: Site not loading
Hi,
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.
No server issues, because Firefox loads the site.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 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.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Site not loading
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.
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.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Site not loading
I forgot.
Please, make the tests in real computers and not in virtual machines.
VirtualBox has several issues running CEF browsers.
Please, make the tests in real computers and not in virtual machines.
VirtualBox has several issues running CEF browsers.
-
- Posts: 3
- Joined: Thu Jun 13, 2024 12:15 pm
Re: Site not loading
Hi,
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.
What is this chrome runtime? A Chrome (closed source) or a Chromium (open source)? Just for calrification.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.
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.
I´ve tested it with CEF Version 109.1.18 (SimpleBrowser,SimpleBrowser2,MiniBrowser) and hiplo24.de works.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
No virtual machines in use.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.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Site not loading
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.
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
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.