elementary / applications-menu

Applications Menu for elementary OS and the Pantheon desktop environment
https://elementary.io
GNU General Public License v3.0
104 stars 36 forks source link

100% CPU Utilization with Uppercase Search #475

Open candiedoperation opened 3 years ago

candiedoperation commented 3 years ago

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

  1. Open Applications Menu (⌘ + Space)
  2. Type something in uppercase
  3. Calculator ranks as the top match, bc -l start up

https://user-images.githubusercontent.com/47198395/117568554-8a08e880-b0de-11eb-81b0-2bdf7d70d34d.mp4

Few minutes after this video was recorded Screenshot from 2021-05-09 15 34 42

After killall -bc Screenshot from 2021-05-09 16 02 22

Logs

No Logs

Platform Information

Operating System: elementary OS 6 Edition: (Public Beta) Hardware Information:

Laptop Information: HP Pavilion x360

candiedoperation commented 3 years ago

There is also an issue where uppercase search results in irrelevant results: Issue https://github.com/elementary/applications-menu/issues/474