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.

Browser processes starting and exiting while using 100% CPU

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

Browser processes starting and exiting while using 100% CPU

Post by salvadordf »

Hi,

In some occasions the browser will continuously create new processes and close them after 1-2 seconds while maxing out one of the CPU cores. In that moment you can't load anything in the browser and you see a crAppStart cursor (Hour glass and standard pointer combination).

If you activate the debug log you may see things like this :

Code: Select all

[1028/143913.557:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
When you search "Exiting GPU process due to errors during initialization" (including the quotes) you will see hundreds of results from CEF, Chrome and Chromium users with that problem.

Some of those users fix the problem doing this :
  • Updating the graphics driver.
  • Check that all the CEF3 binaries are present in case of CEF based apps.
  • Disabling hardware acceleration. In CEF4Delphi it's enabled by default but you can disable it by setting GlobalCEFApp.EnableGPU to False.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Browser processes starting and exiting while using 100% CPU

Post by salvadordf »

I've decided to disable GPU hardware acceleration by default to avoid possible problems.

If you want to enable it you just have to set GlobalCEFApp.EnabledGPU to TRUE before the GlobalCEFApp.StartMainProcess call in the DPR file.
Post Reply