elementary / elementary/applications-menu

100% CPU Utilization with Uppercase Search

Open
#475 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
103
Forks
40
Avg merge
32m
Merged PRs (30d)
2

Description

## 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](https://user-images.githubusercontent.com/47198395/117568681-54b0ca80-b0df-11eb-91a6-d6b6233da098.png)

After `killall -bc`
![Screenshot from 2021-05-09 16 02 22](https://user-images.githubusercontent.com/47198395/117568905-955d1380-b0e0-11eb-8770-ac96d3bc1a04.png)

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.