Views:
6,067β
Votes: 3β
Tags:
firefox
fonts
chromium
performance
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1089834
Title:
Firefox freezing with 100% CPU usage for 30 seconds when launching Chromium
ID:
/2018/11/04/Firefox-freezing-with-100_-CPU-usage-for-30-seconds-when-launching-Chromium
Created:
November 4, 2018
Edited: June 12, 2020
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Background
It has been proposed this Firefox Bug 1492360: High CPU usage when open Firefox before chrome/chromium. That is a duplicate of Bug 1495900: Starting Chrome makes Firefox content processes hang for about two minutes, due to FontConfig font rescanning (FcInitReinitialize), is the culprit.
But Iβm on Firefox too:
And when I open up Chrome:
I donβt see any performance hit to CPUs.
It may be against your morals but perhaps you can try installing google-chrome-stable
like I have. Then do the test again. If there is no CPU usage spike to 100% then a bug report could be filed between Chromium and Chrome.
Iβm on Ubuntu 16.04.5 LTS. Although kernel is currently 4.14.78
LTS chain I donβt think that has anything to do with it as I didnβt notice CPU hits on previous kernels either.
The only time I see all CPUβs at 100% is during update-initramfs
.
fontconfig
version
In the bug report it is revealed:
$ dpkg -l 'fontconfig*' | grep "^ii"
ii fontconfig 2.12.6-0ubuntu2 amd64 generic font configuration library - support binaries
ii fontconfig-config 2.12.6-0ubuntu2 all generic font configuration library - configuration
In my non-buggy version (could be because of no local fonts though):
$ dpkg -l 'fontconfig*' | grep "^ii"
ii fontconfig 2.11.94-0ubuntu1.1 amd64 generic font configuration library - support binaries
ii fontconfig-config 2.11.94-0ubuntu1.1 all generic font configuration library - configuration
Iβm at 2.11.94
version earlier than bug report 2.12
version. In bug report upgrading to 2.13
is a recommended solution but OP mentioned in comments this isnβt possible. As such 2.11.94
might be an option.