Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant CPU usage #338

Open
alecmev opened this issue Aug 20, 2022 · 1 comment
Open

Constant CPU usage #338

alecmev opened this issue Aug 20, 2022 · 1 comment
Labels

Comments

@alecmev
Copy link

alecmev commented Aug 20, 2022

OS
Linux

Gmail Desktop Version
v3.0.0-alpha.35

Describe the bug
About 13% of 1 core is being used at all times.

Additional context
I ran a CPU profiler, and looks like it's some element-ready that is never ready, so it must be one of these:

const buttonReady = elementReady(`body.xE .G-atb .${selector}`)

const inboxElement = await elementReady(inboxElementSelector, {
stopOnDomReady: false
})

const toElement = await elementReady<HTMLTextAreaElement>(
'textarea[name="to"]',
{
stopOnDomReady: false,
timeout: 60000
}
)

Probably the second one, since it has no timeout?

@alecmev alecmev added the bug label Aug 20, 2022
@timche
Copy link
Owner

timche commented Aug 20, 2022

Thanks @alecmev for the detailed bug report! Will look into it asap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants