fig icon indicating copy to clipboard operation
fig copied to clipboard

Slows down macOS significantly

Open merkleID opened this issue 3 years ago • 6 comments

Sanity checks

  • [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • [X] I have run fig doctor in the affected terminal session
  • [ ] I have typed 'git ' and included a screenshot of the Debugger (click the Fig icon in the macOS menu bar)

Issue Details

As discussed via mail with Brendan, I don't know why but figs slows my imac 4,2ghz/8cores/64RAM and my macbook pro 2.8/8core/16RAM down a lot.

typing into iterm becomes slow, sloppy, slightly unresponsive, and also the whole system becomes slow. this happens on both my macs.

I cleaned .zshrc from any fig-related strings, closed fig.app, and they suddenly woke back up, iterm is super-responsive again.

in my iterm, I use ohmyzsh+powerlevel10k (but currently it's not the theme I am using) I also constantly run ObjectiveSee tools BlockBlock and Lulu. Other tools: AltTab, Magnet

I haven't seen any ram over-use

Also, I just noticed that 'fig diagnostic' reports BASH as being my env shell, while if I type 'env' I get this result:

❯ env [...] SHELL=/bin/zsh [...]

Environment

❯ fig diagnostic
# Fig Diagnostics
## Fig details:
  - Fig version: Version 1.0.57 (B439) [Italian]
  - Bundle path: /Applications/Fig.app
  - Autocomplete: true
  - Settings.json: true
  - Accessibility: true
  - Number of specs: 0
  - Symlinked dotfiles: true
  - Only insert on tab: false
  - Keybindings path:
  - Installation Script: true
  - PseudoTerminal Path: /Users/luca/.cargo/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt:/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/opt/ipfs/bin:/usr/local/opt/qt/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/wget/bin:/usr/local/opt/socat/bin:/usr/local/opt/nmap/bin:/usr/local/opt/netcat/bin:/usr/local/opt/findutils/bin:/usr/local/opt/curl/bin:/usr/local/Cellar/curl/7.75.0/bin:/usr/local/opt/coreutils/bin:/usr/local/opt:/Users/luca/scripts:/usr/local/sbin:/Users/luca/go/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/ssh-copy-id/bin:/usr/local/opt/openssh/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Applications/Keybase.app/Contents/SharedSupport/bin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/luca/.fig/bin:/Users/luca/.local/bin
  - SecureKeyboardInput: false
  - SecureKeyboardProcess: <none>
## Hardware Info:
  - Model Name: iMac
  - Model Identifier: iMac18,3
  - Chip:
  - Cores: 4
  - Memory: 64 GB
## OS Info:
  - macOS 12.3.1 (21E258)
## Environment:
  - User Shell: /usr/local/opt/bash/bin/bash
  - Current Directory: /Users/luca
  - CLI Installed: true
  - Executable Location: /usr/local/bin/fig
  - Current Window ID: 35551/% (com.googlecode.iterm2)
  - Active Process: ??? (???) - ???
  - Installed via Brew: true
  - Environment Variables:
    - TERM_SESSION_ID=w0t0p0:D6139232-25C7-43F6-AC90-402260DCA180
    - PATH=/Users/luca/.cargo/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt:/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/opt/ipfs/bin:/usr/local/opt/qt/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/wget/bin:/usr/local/opt/socat/bin:/usr/local/opt/nmap/bin:/usr/local/opt/netcat/bin:/usr/local/opt/findutils/bin:/usr/local/opt/curl/bin:/usr/local/Cellar/curl/7.75.0/bin:/usr/local/opt/coreutils/bin:/usr/local/opt:/Users/luca/scripts:/usr/local/sbin:/Users/luca/go/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/ssh-copy-id/bin:/usr/local/opt/openssh/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Applications/Keybase.app/Contents/SharedSupport/bin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/luca/.fig/bin:/Users/luca/.local/bin
    - TERM=xterm-256color
    - FIG_INTEGRATION_VERSION=8
    - FIG_TERM=1
    - FIG_TERM_VERSION=4.3.0
## Integrations:
  - SSH: false
  - TMUX: false
  - iTerm: installed!
  - Hyper: application is not present.
  - Visual Studio Code: installed!
  - Docker: false

merkleID avatar Apr 25 '22 15:04 merkleID

Hey @merkleID! Can you share a screen recording of the performance with Fig and then another one without Fig?

mschrage avatar Apr 26 '22 03:04 mschrage

Another thing that would be useful is having some data on CPU usage with/without fig, even if that's just the graph in Activity Monitor. Sounds like it's pretty reproducible for you.

clo4 avatar Apr 28 '22 03:04 clo4

Hey @merkleID! Next time this happens can you please quit the Fig app and see if the performance improves?

mschrage avatar Apr 29 '22 17:04 mschrage

Hey, I just got your email about asking what and how made my mac slower.

These are why I deleted the app.

  • Sometimes multiple mdworker_shared process are produced and occupy a big capacity of CPU.
  • Global search on VS Code got really slow.

I am not sure all those symptoms are coming from fig app but I can say that those are all gone after deleting the app.

hyungjunk avatar May 04 '22 06:05 hyungjunk

That’s exactly what happens to me.

I was taking about arrays of command completion directory listing indexes filling up, but I think it’s pretty much the same.

Sometimes it slows down the whole computer, sometimes it’s super fast.

Luca

On 4 May 2022, at 08:31, Lucas Kim @.***> wrote:

Hey, I just got your email about asking what and how made my mac slower.

These are why I deleted the app.

Sometimes multiple mdworker_shared process are produced and occupy a big capacity of CPU. Global search on VS Code got really slow. Gets lag every now and then. I am not sure all those symptoms are coming from fig app but I can say that those are all gone after deleting the app.

— Reply to this email directly, view it on GitHub https://github.com/withfig/fig/issues/1369#issuecomment-1116972350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGWR4VVQ5NQXXYFNG7NXL3VIIKT7ANCNFSM5UI7XM2Q. You are receiving this because you were mentioned.

merkleID avatar May 04 '22 07:05 merkleID

Using fish on macOS 12.5ß3 and had very similar trouble. fig was chewing enormous amounts of CPU cycles. Ran for two days, brought my fully loaded MacBookPro18,2 to its knees.

Had over 15 bash processes running for some reason with commands like /bin/bash -lic fc -ln 1, /bin/bash -lic alias, /bin/bash --norc --noprofile and they were all using considerable CPU cycles. Uninstalled and system returned to normal with no bash processes executing.

ylluminate avatar Jul 05 '22 16:07 ylluminate

This is over a year old but I'm just experiencing. I've been using Fig for a while now, like several months, and love it, but in the past 2 weeks or so, starting a new terminal window takes forever, and I wonder if the culprit is fig.

You had asked for a video of this happening, so here's one: (file to big to share on gh) https://drive.google.com/file/d/14yljFyGa3a6NfFNpEs7Eb6OoV8YyI8e-/view?usp=sharing

First part is with fig closed, albeit other terminals with it running, and then I open fig and open another terminal, and the slowdown on the terminal is pretty similar imo. Again, this JUST started happening to me, before that it worked like a charm 🤷🏻‍♂️

Thanks for all you do

cpalafox avatar May 17 '23 16:05 cpalafox

I've been using fig in my M1 mac for first few it was very great tbh one best terminal out there but after some time makes my mac so slow. once i disable the terminal everything works smooth again.

midnightgamer avatar Aug 16 '23 16:08 midnightgamer

Having the same issue, where fig_desktop is the top CPU consumer on my M1 Macbook Pro.

CleanShot 2023-09-12 at 13 41 57@2x

❯ fig doctor    

✔ Everything looks good!

  Fig still not working? Run fig issue to let us know!
  Or, email us at [email protected]!
❯ ls /Applications | grep Fig       
├── Fig.app
├── Figma.app
❯ where fig            
/Users/dramos/.fig/bin/fig
/Users/dramos/.local/bin/fig
/opt/homebrew/bin/fig
/opt/homebrew/bin/fig

dgonzalezr avatar Sep 12 '23 10:09 dgonzalezr

same problem on my m1. anyway we can help to debug?

ilteris avatar Oct 14 '23 01:10 ilteris