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

fix: High CPU Usage with Invalid Config #50

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Conversation

danields761
Copy link
Contributor

@danields761 danields761 commented Sep 30, 2023

Hello @folke,

I've created a pull request to fix a bug where Neovim chews up 100% of a CPU core when it encounters an invalid configuration.

The bug seems to be in edgy.util.with_retry, where it doesn't increase the retries variable, causing endless loops of retries and high CPU usage.

I've committed a fix. This should properly deal with invalid configurations and prevent Neovim from overloading the CPU.

Hope this helps out. Happy to chat more if needed!

Cheers,
Daniil

@folke folke merged commit ee41d71 into folke:main Sep 30, 2023
@folke
Copy link
Owner

folke commented Sep 30, 2023

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants