Page 1 of 1

Access Violation in every browser demo

Posted: Mon Mar 17, 2025 11:31 am
by Maksym
I have Delphi 2007 along with the latest Chromium 134.3.2. Any (or should I say every) demo project craches with Access Violation when trying to open any page (including the home page) on the following website:

Code: Select all

*********************
(Edited by the forum admin)

Warning: it's NSWF.

Re: Access Violation in every browser demo

Posted: Mon Mar 17, 2025 2:51 pm
by salvadordf
Hi,

Older Delphi versions can only use the SimpleBrowser2_D7, MiniBrowserD7 and SimpleBrowser_D7 demos.

Delete any existing dprj files the the demo directory first.

Open the project options and select "Directories/Conditionals". Then set :
  • Output directory : ..\..\..\bin
  • Search directory : ..\..\..\source
Copy the CEF binaries to the CEF4Delphi\bin directory, build the demo and run it.

Re: Access Violation in every browser demo

Posted: Wed Mar 19, 2025 9:27 am
by Maksym
It's not Delphi 7 that I use. It's Delphi 2007. And I know how to use your wonderful product on Delphi 2007. I've been doing it for years and I'm a huge fan! My own product that has been on the market for 20+ years and has thousands of active users has been using CEF4Delphi for most of that time.

Please try the website address that I gave you. The demo starts just fine, but when you try to open that exact website - you'll see the Access Violation. And if you run the compiled .exe outside the debugger it crashes after a small delay. So far that website is THE ONLY ONE that causes this behavior. Luckily enough, I couldn't find the second website that causes this.

Re: Access Violation in every browser demo

Posted: Wed Mar 19, 2025 10:06 am
by Maksym
Just to make sure, I compiled the SimpleBrowser demo in Delphi 12 (tried both x86 and x64) - the result is the same. It starts just fine, but when I try to open that URL - the same Access Violation.

Re: Access Violation in every browser demo

Posted: Wed Mar 19, 2025 3:40 pm
by salvadordf
Please, enable the debug log and post the file contents when the demo crashes.

Try disabling the antivirus for a moment and try to reproduce this issue. Sometimes the antivirus deletes suspicious files and the browser might be affected.

I deleted the link to avoid problems but it would be great to have a safe for work website example to reproduce this issue.

Re: Access Violation in every browser demo

Posted: Thu Mar 20, 2025 10:00 am
by Maksym
Unfortunately, it's not much in the debug log:
[0320/115136.565:WARNING:resource_util.cc(83)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
And yes, I've tried setting the root_cache_path. In fact, I've tried a lot of things. But the results is always the same.

I sent you an email with the address that causes this problem. I'm pretty sure the issue is pretty easy to fix on your side.

Re: Access Violation in every browser demo

Posted: Thu Mar 20, 2025 3:33 pm
by Maksym
Just wanted to let you know that the problem is still there in version 134.3.5.

Re: Access Violation in every browser demo

Posted: Thu Mar 20, 2025 5:27 pm
by salvadordf
That webpage shows a JavaScript dialog and CEF has a known issue with JS dialogs and browsers using Alloy runtime style :
https://github.com/salvadordf/CEF4Delphi/issues/548

Implement custom dialogs as shown in this demo : CEF4Delphi\demos\Delphi_VCL\JavaScript\JSDialog

Re: Access Violation in every browser demo

Posted: Mon Apr 07, 2025 10:04 am
by Maksym
Looks like the issue is finally resolved in 135.0.17. Thank you!