marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.26k stars 145 forks source link

zsh occupies more than 99% of the CPU on M1 Mac Monterey 12.6.7 #631

Closed ghost closed 1 year ago

ghost commented 1 year ago

Environment

Details

In the past two days, when I used the Terminal.app as usual, I found that my Macbook was overheating. However, I did not do any heavy jobs. Then I checked in the Activity Monitor and found that the cpu usage rate of zsh was as high as 99%. After canceling the zsh-autocomplete plugin in oh-my-zsh and restart the system, the problem just disappeared.

I wonder what caused such a high CPU usage.

ghost commented 1 year ago

I think it is quite like this issue #611 Alse, here is the crash report that may help.

pesterhazy commented 1 year ago

FWIW I'm also on an M1 (I reported #611)

marlonrichert commented 1 year ago

I'm not able to reproduce this on my M2 Mac. Can you add a reproducible test case, please?

ImBIOS commented 1 year ago

I sometimes encounter this issue, and now... I'm used to this behaviour. But it'd be nice if it can be fixed.

marlonrichert commented 1 year ago

I can't fix it if I don't have a reproducible test case.