-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
sometimes rgArm processes and 100% CPU usage! #1341
Comments
Is this triggered by taking any actions in the editor? E.g. using Command + Shift + F? |
I'm not sure either. |
When I update cursor, this problem will appear after the installation is complete. |
Having the same issue with a nextjs project in the most recent version, it's making the whole IDE laggy |
any update? this renders cursor unusable.. |
I found recently some 300 rgArm processes making my M3 pretty hot for the first time and lvg load 950.58 ;) |
I'm experiencing the same issue too :( I'm using a Mac Pro M1 with Cursor: Version: 0.40.4 |
This still happens with me too. I have a maxed out M3 MacBook and it still uses 100% CPU. Rendering cursor unusable :( This feels like a pretty big issue, I feel like it should be elevated. Normally only happens for me when using the git panel in the UI, staging files and committing. |
This was happening to me every time I run Yarn. I tracked it down to the Auto Import plugin. I disabled plugins and kept wiping out node_modules while running this in another terminal. As soon as I had that plugin enabled, I started getting 200-1000 processes.
|
Same here. Also in vscode, but there it's the command |
In VSCode I could stop the issue by clicking to stop the extension recommendations. I couldn't fix it on Cursor, so I started removing some config files from the project (https://github.com/automattic/jetpack/) until it stopped. Then I reverted it and the issue didn't happen anymore. Hopefully, it will continue working well! |
Same here. It's making Cursor pretty unusable. |
me too. This started happening to me when updating to |
Same thing here |
This is not related to Cursor directly. Looks like VS Code is using this library for recursive searching, which is causing the issue: https://github.com/BurntSushi/ripgrep Add the following config to your workspace config and Cursor should start working like a charm. Make sure you include any dependency folders (e.g. node_modules in this example if your code is Javascript) in, as well as any build directories. "search.followSymlinks": false,
"files.exclude": {
"**/tmp/**": true,
"**/node_modules/**": true,
"**/.git/objects/**": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/dist/**": true
},
"search.exclude": {
"**/node_modules/**": true,
"**/dist/**": true,
"**/tmp/**": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true
} |
I was able to use the Process Explorer in Cursor to identify the command. For me it was the Tailwind CSS IntelliSense extension running /Applications/Cursor.app/Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rgArm --files --hidden --case-sensitive --no-require-git -g **/{tailwind,tailwind.config,tailwind.*.config,tailwind.config.*}.{js,cjs,ts,mjs,mts,cts} -g !**/.git -g !**/.svn -g !**/.hg -g !**/CVS -g !**/.DS_Store -g !**/Thumbs.db -g !**/tmp/** -g !**/node_modules/** -g !**/.git/objects/** -g !/{**/.git,**/.svn,**/.hg,**/CVS,**/.DS_Store,**/Thumbs.db,**/tmp/**,**/node_modules/**,**/.git/objects/**,**/.git/**,**/node_modules/**,**/.hg/**,**/.svn/**} --no-ignore --no-config --no-ignore-global The fix was to either
|
The solution suggested by @KKonstantinov completely resolved the excessive rgArm process spawning when using Cursor on my M1 Mac — many, many thanks! Precautiously, I also excluded"/.turbo/" and "/.next/" from the file watcher for my Next.js project. Interestingly, I never encountered this process overload in VS Code, where I have the same extensions installed. |
@accolver Thank you so much for your comment. I searched for hours and luckily fell on this issue. Uninstalling the Tailwind extension magically solved all my issues. I am on M3 pro and my CPU usage was at ~93% and there were hundreds of threads for "rgArm". Since I removed the Tailwind extension I am back to ~15% CPU usage and no more "rgArm" threads :) |
Uninstalling the Tailwind extension also fixed my problem! |
Sam here, uninstalling Tailwind extension fixed the problem for me. |
uninstalling Tailwind fixed it, but after updating cursor this morning, the issue has resurfaced even with the Tailwind extension removed. |
I'm also experiencing this. cursor 0.43.6. Removing tailwind seems to have helped, but tailwind extension works fine in vs code. |
This is making Cursor pretty unusable for me, I'm trying everything I know how to do but nothing's sticking yet. Many, many ~100 rgArm processes are eating my computer alive. They all seem to spin up at once after working fine for a while, I'm trying to determine a repro / some reason now but it's slow as I'm trying to do my regular job |
Thank you very much, uninstalling the Tailwind plugin did not solve my problem, but the answer from this guy solved it. |
thanks my bro, this helps me a lot. |
Same thing happens to me on my MacBook Pro. I mostly work with Python repos. The setting suggested above doesn't work for me and I added some Python related paths, no luck. The rgArm processes just slow everything down and it happened quite frequently. I feel like it happens whenever I save files. If there are a lot of changes in the code, lots of rgArm processes were spawned. |
Where do I paste this? Newbe here... |
For me, the TailwindCSS plugin was also the issue. Disabling it solves it. There are a few issues open on https://github.com/tailwindlabs/tailwindcss-intellisense regarding this, however no traction from @tailwindlabs: tailwindlabs/tailwindcss-intellisense#1109 |
Sometimes this problem occurs: rgArm processes and 100% CPU usage
![image](https://private-user-images.githubusercontent.com/13760267/315953232-440001ff-0eee-4542-8d41-4c142a926843.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTQyMjcsIm5iZiI6MTczOTY1MzkyNywicGF0aCI6Ii8xMzc2MDI2Ny8zMTU5NTMyMzItNDQwMDAxZmYtMGVlZS00NTQyLThkNDEtNGMxNDJhOTI2ODQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIxMTIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhMTQxYTg2M2MwYTRkNDc1ODVlM2ZjYzc3ZjI5YmRhYzcwZTc2MzZmMTU0MTA2MzBmMmRhMDA2ZGY2ZGFlMWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2t81Icspg3_isMea0sDVHkAUIs7IPXBAa4MSFkx_XC8)
Here's a screenshot of what happened.
and my computer configuration:
![image](https://private-user-images.githubusercontent.com/13760267/315954693-866ea03b-c1fd-4f3d-b30d-1ca11cd3985c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTQyMjcsIm5iZiI6MTczOTY1MzkyNywicGF0aCI6Ii8xMzc2MDI2Ny8zMTU5NTQ2OTMtODY2ZWEwM2ItYzFmZC00ZjNkLWIzMGQtMWNhMTFjZDM5ODVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIxMTIwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3ZGZlZDMwNjU2NzUzN2M3YWE0NTE3NTMwOTBiOTdlNTFiZjRlOGQ2MjlmMzljZjg4YTFmZWIwODNhMTM3MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0URYUqxL2MVP_47aRZiXTHbP1Jfg4Rj6APd535zOteU)
my cursor version:
Version: 0.30.3
VSCode Version: 1.86.2
Commit: 2e7179e3e051701daa9a88391f21ae69d01be4e0
Date: 2024-03-22T04:29:22.511Z
Electron: 27.2.3
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.2.0
The text was updated successfully, but these errors were encountered: