100% CPU Utilization with Uppercase Search
What Happened
Hello @danrabbit, @cassidyjames. There is a problem which causes 100% CPU Utilization which never comes down until I execute killall bc. I realized this after my laptop suddenly started to heat up a lot after installing Elementary OS 6 (Physical, No Virtual Machines)
When Typing in capitals (related to this issue), I think the calculator plugin applications-menu launches a bc -l instance which never gets auto killed.
In the video attached below, there are only four instances of bc -l which never get killed as I had demonstrated a search only a few times.
But, By the end of the day, I approximately use Applications Menu at least 20 to 30 times which causes Elementary to launch around 7 to 8 instances of bc -l which eats up 100% of all my cores and hence reduces performance and even scrolling lags.
I’ve demonstrated meaningless long strings in uppercase but this applies to Webpage URL’s, Files, etc. Which are somewhat long so, even if I type in long URLs or long File Names in Uppercase 3 to 4 times a day, It impacts the performance critically.
The bc -l instances seriously never get killed automatically in this case. I waited a day long and finally executed killall bc as all my 8 logical processors were at 100% utilization
Expected Behavior
Applications Menu should behave the way it behaves in lowercase
Steps to Reproduce
- Open Applications Menu (⌘ + Space)
- Type something in uppercase
- Calculator ranks as the top match,
bc -lstart up
https://user-images.githubusercontent.com/47198395/117568554-8a08e880-b0de-11eb-81b0-2bdf7d70d34d.mp4
Few minutes after this video was recorded

After killall -bc

Logs
No Logs
Platform Information
Operating System: elementary OS 6 Edition: (Public Beta) Hardware Information:
- Quad-Core Intel® Core™ i5-8250U CPU @ 1.60GHz
- Intel® UHD Graphics 620 (Kabylake GT2)
- 7.7 GiB memory
- 467.2 GB storage (SSD)
Laptop Information: HP Pavilion x360
There is also an issue where uppercase search results in irrelevant results: Issue https://github.com/elementary/applications-menu/issues/474