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

high cpu usage after update to MacVim r179 (Vim 9.1.0) #1474

Open
1 of 7 tasks
nico opened this issue Jan 8, 2024 · 5 comments
Open
1 of 7 tasks

high cpu usage after update to MacVim r179 (Vim 9.1.0) #1474

nico opened this issue Jan 8, 2024 · 5 comments
Milestone

Comments

@nico
Copy link
Contributor

nico commented Jan 8, 2024

Steps to reproduce

  1. Update to MacVim r179 (Vim 9.1.0)
  2. Use it

Expected behaviour

Fairly low CPU usage.

Version of Vim and architecture

MacVim r179 (Vim 9.1.0), arm64

Environment

Operating system: macOS 13.5.2 (22G91)
Arch: arm64

How MacVim was installed

downloaded from github, auto-updated via sparkle

Logs and stack traces

I'll attach a sample taking in Activity Monitor.

I only have 6 windows open. Usually I have way more, and CPU usage is negligible. Now it hovers at around 12%.

I use very few plugins.

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Other conditions

  • The both Homebrew packages "vim" and "macvim" are installed
@nico
Copy link
Contributor Author

nico commented Jan 8, 2024

Sample:

macvim.txt

@ychin
Copy link
Member

ychin commented Jan 8, 2024

Hmm that's not good, let me take a look. Just for context can you tell me the plugins you have installed? And have you run with --clean (r179 has a new menu item to do this)? Or is this too intermittent for that?

@ychin ychin added this to the Release 180 milestone Jan 8, 2024
@nico
Copy link
Contributor Author

nico commented Jan 9, 2024

I haven't seen it yet after restarting.

% ls ~/.vim/plugin 
NERD_commenter.vim	surround.vim
% ls ~/.vim/pack/plugins/start 
dash.vim	fugitive	gn		llvm

@ychin
Copy link
Member

ychin commented Jan 11, 2024

If you see it again, can you post it here? I'll keep this issue for a while for now.

Sometimes there are issues with stale Vim processes that crashed leading to a railed CPU (see #1423). This doesn't seem like it but I can't think of anything else.

Also, are you sure it was MacVim process going ham on the CPU, or was it the hosted Vim processes?

@nico
Copy link
Contributor Author

nico commented Feb 22, 2024

Just happened again (i.e. it happens only rarely).

Sample of MacVim.txt

Yes, it's the MacVim process:

Screenshot 2024-02-22 at 11 11 46 AM

@ychin ychin modified the milestones: Release 180, Release 181 Sep 10, 2024
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

No branches or pull requests

2 participants