Update to CEF 78.3.1

User avatar
salvadordf
Posts: 1950
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Update to CEF 78.3.1

Post by salvadordf » Thu Nov 07, 2019 10:16 am

Hi,

I just uploaded a new version of CEF4Delphi to GitHub updated to CEF 78.3.1

The CEF binaries include some important fixes :
  • Fix crash in RemoveFrame on unknown frame_tree_node_id (fixes issue #2799) https://bitbucket.org/chromiumembedded/cef/commits/7a8245d7b21ce17776f48c1a42adb8deba6ffa45
  • Remove NOTREACHED in CefPostDataElementImpl::Set (fixes issue #2765) https://bitbucket.org/chromiumembedded/cef/commits/5ff80be3a703d46e56beebb28b09f0767365651b
  • Fix DiscardableSharedMemoryManager crash on shutdown with multi-threaded message loop (fixes issue #2798) https://bitbucket.org/chromiumembedded/cef/commits/8819d2e34eddd01f41b8a1af33a92a533a583f4d
I've added some procedures to CEF4Delphi :
  • TChromium.LoadString
  • TChromium.LoadResource
These procedures are NOT the same procedures CEF removed recently. These procedures use a DATA URL to load strings or resources in a stream.

The CEF binaries are :
  • 32 bits -> http://opensource.spotify.com/cefbuilds/cef_binary_78.3.1%2Bg8819d2e%2Bchromium-78.0.3904.87_windows32.tar.bz2
  • 64 bits -> http://opensource.spotify.com/cefbuilds/cef_binary_78.3.1%2Bg8819d2e%2Bchromium-78.0.3904.87_windows64.tar.bz2
WARNING :
The shutdown and resize issues in OSR mode are still present. Use the latest release version if you need a stable component :
https://github.com/salvadordf/CEF4Delphi/releases/latest

thefunkyjoint
Posts: 223
Joined: Thu Aug 10, 2017 12:40 pm

Re: Update to CEF 78.3.1

Post by thefunkyjoint » Fri Nov 08, 2019 4:14 pm

Since the last 2 or 3 releases i can't update because when i navigate to Facebook, a crash occurs in seconds, as shown in the attached image...

Last build that works for me is 77.1.18.0

What should i do ? Already uninstalled all old files :oops:
crash (1).jpg
You do not have the required permissions to view the files attached to this post.

thefunkyjoint
Posts: 223
Joined: Thu Aug 10, 2017 12:40 pm

Re: Update to CEF 78.3.1

Post by thefunkyjoint » Fri Nov 08, 2019 5:16 pm

Well somehow , after rebooting the machine, the crashes seemed to stop, but now it happened again :oops:

User avatar
salvadordf
Posts: 1950
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 78.3.1

Post by salvadordf » Fri Nov 08, 2019 5:46 pm

I loaded facebook and youtube again with MiniBrowser playing some videos and reading some facebook groups.
All seemed fine and I didn't get that error.

Please, download the official sample application and load those web pages :
http://opensource.spotify.com/cefbuilds/cef_binary_78.3.1%2Bg8819d2e%2Bchromium-78.0.3904.87_windows32_client.tar.bz2

If it works, then check all this :
  • Build MiniBrowser and load those websites.
  • Check that the application is using the right version of the CEF binaries :
    • 32 bits -> http://opensource.spotify.com/cefbuilds/cef_binary_78.3.1%2Bg8819d2e%2Bchromium-78.0.3904.87_windows32.tar.bz2
    • 64 bits -> http://opensource.spotify.com/cefbuilds/cef_binary_78.3.1%2Bg8819d2e%2Bchromium-78.0.3904.87_windows64.tar.bz2
  • Copy the contents of the "release" and "resources" directories.
  • Disable the antivirus or add your application to the "ignore list" in the antivirus. Someone complained in the official CEF forum that some antiviruses were blocking the CEF DLLs.

thefunkyjoint
Posts: 223
Joined: Thu Aug 10, 2017 12:40 pm

Re: Update to CEF 78.3.1

Post by thefunkyjoint » Mon Nov 11, 2019 4:42 pm

The problem does not occur always. It occurs randomly and specifically on Facebook groups.

Do you think a CEF log could help to find out ?

User avatar
salvadordf
Posts: 1950
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 78.3.1

Post by salvadordf » Mon Nov 11, 2019 6:04 pm

Usually, this error is caused by a bad compilation in Delphi. Sometimes you need to uninstall all Delphi components and build them again to fix it.

However, I got the same error this morning while I was testing the PopupBrowser demo with the latest CEF4Delphi version. :shock:

I still need to make more tests because all the other demos and BriskBard work correctly with those CEF binaries.

thefunkyjoint
Posts: 223
Joined: Thu Aug 10, 2017 12:40 pm

Re: Update to CEF 78.3.1

Post by thefunkyjoint » Tue Nov 12, 2019 12:04 pm

I've been having this issue since the latest 4 or 5 CEF releases.

This won't happen always but in my tests, it only happens when navigating in Facebook and as we know, Facebook is pretty heavy. It seems something related to complex pages, but i could not find yet a way to reproduce the problem when i want :?

thefunkyjoint
Posts: 223
Joined: Thu Aug 10, 2017 12:40 pm

Re: Update to CEF 78.3.1

Post by thefunkyjoint » Tue Nov 12, 2019 12:25 pm

It seems i found a reliable pattern, at least in my case...

Every time i navigate to the url below, my app will crash :

https://www.bing.com/images/search?q=beautiful%20woman%20black%2009%3A13%20-adobe.com%20-fotolia.com%20-facebook.com%20-depositphotos.com&qft=+filterui:imagesize-large

Can you do the same test to confirm ?
Screen Shot 2019-11-12 at 09.28.22.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
salvadordf
Posts: 1950
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Update to CEF 78.3.1

Post by salvadordf » Tue Nov 12, 2019 2:28 pm

I loaded that URL in MiniBrowser, SimpleOSRBrowser and SimpleExternalPumpBrowser without problems.
I used the Delphi and Lazarus versions built in 32 bits and 64 bits.

I checked again the PopupBrowser demo and modified the HTML to open "about:blank" and it crashed.

I'll have to check all the changes in the last CEF binaries to see if I missed something. :oops:

thefunkyjoint
Posts: 223
Joined: Thu Aug 10, 2017 12:40 pm

Re: Update to CEF 78.3.1

Post by thefunkyjoint » Tue Nov 12, 2019 2:34 pm

That url always crash my app :roll:

Usually when i install a new CEF release, i uninstall the prior package on Delphi's Component > Install packages.

Is there something else i could do to make sure everything related to the old version is deleted ?

Post Reply