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.

Access Violation in every browser demo

Post Reply
Maksym
Posts: 16
Joined: Wed Dec 20, 2023 11:13 am

Access Violation in every browser demo

Post 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.
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Access Violation in every browser demo

Post 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.
You do not have the required permissions to view the files attached to this post.
Maksym
Posts: 16
Joined: Wed Dec 20, 2023 11:13 am

Re: Access Violation in every browser demo

Post 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.
You do not have the required permissions to view the files attached to this post.
Maksym
Posts: 16
Joined: Wed Dec 20, 2023 11:13 am

Re: Access Violation in every browser demo

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Access Violation in every browser demo

Post 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.
Maksym
Posts: 16
Joined: Wed Dec 20, 2023 11:13 am

Re: Access Violation in every browser demo

Post 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.
Maksym
Posts: 16
Joined: Wed Dec 20, 2023 11:13 am

Re: Access Violation in every browser demo

Post by Maksym »

Just wanted to let you know that the problem is still there in version 134.3.5.
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Access Violation in every browser demo

Post 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
Maksym
Posts: 16
Joined: Wed Dec 20, 2023 11:13 am

Re: Access Violation in every browser demo

Post by Maksym »

Looks like the issue is finally resolved in 135.0.17. Thank you!
Post Reply