Page 1 of 1

Browser processes starting and exiting while using 100% CPU

Posted: Sat Oct 28, 2017 3:42 pm
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.

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

Posted: Sun Oct 29, 2017 9:05 pm
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.