fig icon indicating copy to clipboard operation
fig copied to clipboard

Fig - High Memory Usage

Open alpercoskun opened this issue 2 years ago • 6 comments

Description:

Please include a detailed description of the issue (and an image or screen recording, if applicable)

Fig consumes more than 1.3 GB memory (Mac Mini 2020 M1):

Screen Shot 2022-07-20 at 13 56 12

If I restart Fig, it starts to use 1.3 GB memory again, is it normal ?

Details:

macOS Fig Shell
12.4.0 Version 1.0.58 (B472) /bin/bash
fig diagnostic

Version 1.0.58 (B472) [Turkish Q – Legacy] 
UserShell: /bin/bash
Bundle path: /Applications/Fig.app
Autocomplete: true
Settings.json: true
CLI installed: true
CLI tool path: /Users/alperc/.fig/bin/fig
Accessibility: true
SSH Integration: false
Tmux Integration: false
iTerm Integration: false 
Hyper Integration: false
VSCode Integration: true
Docker Integration: false
Symlinked dotfiles: false
Only insert on tab: false
UNIX Socket Exists: true
Installation Script: true
PseudoTerminal Path: /opt/homebrew/bin:/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin:/Users/alperc/local_release/external/apache/ant/1.9.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/alperc/.fig/bin:/Users/alperc/.local/bin
SecureKeyboardInput: false
SecureKeyboardProcess: 
Current active process: ??? (???) - ???
Current terminal session: ???
Current working directory: ???
Current window identifier: ???

alpercoskun avatar Jul 20 '22 11:07 alpercoskun

Here we go again :)

fedeci avatar Jul 20 '22 11:07 fedeci

Can you share your bash config and anything that could help me recreate your setup to try reproducing the issue?

fedeci avatar Jul 20 '22 11:07 fedeci

@alpercoskun Are you able to schedule a very quick debugging call with me https://calendly.com/robert-fig/support We've seen this pop up before but haven't been able to nail down what's happening :( would love your help in fixing it!!

clo4 avatar Jul 21 '22 10:07 clo4

@alpercoskun could you privately share you history file with us so we can debug this? Can send it to [email protected] 🙂

You can also run this command: fig settings autocomplete.history.disableLoading true then run fig restart and see if that helps!

clo4 avatar Jul 21 '22 23:07 clo4

@alpercoskun could you privately share you history file with us so we can debug this? Can send it to [email protected] 🙂

You can also run this command: fig settings autocomplete.history.disableLoading true then run fig restart and see if that helps!

this command really fixed the issue. now memory usage is about 34 MB!

i sent my history to [email protected]

alpercoskun avatar Jul 22 '22 06:07 alpercoskun

I can assume the issue is related to history loading?

fedeci avatar Jul 22 '22 06:07 fedeci

We believe the underlying issue here has been resolved. Can you confirm? @alpercoskun

parssak avatar Sep 14 '22 17:09 parssak

enabled history loading, unfortunately memory usage is again about 1.4g. fig version is 1.0.61 (B520). should i reset or clean up my history?

alpercoskun avatar Sep 16 '22 05:09 alpercoskun

@alpercoskun Latest (I think it's a beta??) is B523, can you run fig settings app.beta true and test again after update?

clo4 avatar Sep 16 '22 06:09 clo4

first, I tried to install beta (B525 is installed), but memory usage was still high (1.8g)... after that, I uninstalled fig (brew uninstall fig) and installed it again (B523 is installed), memory usage is 50m now :) I tried to use the terminal for a couple of minutes and memory usage is still low... maybe we can close this issue, and I will open a new issue if it will reoccur.

alpercoskun avatar Sep 16 '22 06:09 alpercoskun

Sounds good! Alternatively you can comment here, will reopen if it's a problem 🙂

clo4 avatar Sep 16 '22 08:09 clo4

@alpercoskun could you privately share you history file with us so we can debug this? Can send it to [email protected] 🙂

You can also run this command: fig settings autocomplete.history.disableLoading true then run fig restart and see if that helps!

This reduced my memory consumption for the https://autocomplete.fig.io process from 1.5 GB to 25.0 MB. When I switch back, the memory consumption shoots back up. This seemed to fix my issue.

cvolzer3 avatar Dec 03 '22 22:12 cvolzer3

@cvolzer3 Can you share the result of fig settings all and of fig diagnostics?

fedeci avatar Dec 04 '22 12:12 fedeci

@cvolzer3 me too :)

thanx i dont know reason though

al-bur avatar Apr 29 '23 08:04 al-bur

Me too, 2.5GB ram usage is really high

baotran2207 avatar Sep 22 '23 02:09 baotran2207

This seems a bit excessive: Screenshot 2023-10-12 at 10 11 09

Fig settings all:

autocomplete.fuzzySearch = false
integrations.hyper.disabled = true
integrations.iterm.disabled = true
integrations.vscode.disabled = true

Fig diagnostics:

fig-details:
  - 2.16.0
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M2
  - cores: 8
  - mem: 24.00 GB
os-info:
  - macOS 13.5.0 (22G74)
environment:
  - shell: /bin/zsh
  - terminal: terminal
  - cwd: /Users/insats
  - exe-path: /Users/insats/.fig/bin/fig
  - install-method: unknown
  - env-vars:
    - FIGTERM_SESSION_ID: 49fd2f06-8907-4e1c-ab24-038176fc60c5
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.16.0
    - PATH: /Users/insats/.yarn/bin:/Users/insats/.config/yarn/global/node_modules/.bin:/opt/homebrew/opt/imagemagick@6/bin:/usr/local/opt/openssl/bin:/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin:/Users/insats/Library/Android/sdk/platform-tools:/Users/insats/Library/Android/sdk/emulator:/Applications/Genymotion.app/Contents/MacOS/tools:/opt/homebrew/opt/[email protected]/bin:/Users/insats/.rbenv/shims:/opt/homebrew/bin:/Users/insats/.yarn/bin:/Users/insats/.config/yarn/global/node_modules/.bin:/opt/homebrew/opt/imagemagick@6/bin:/usr/local/opt/openssl/bin:/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin:/Users/insats/Library/Android/sdk/platform-tools:/Users/insats/Library/Android/sdk/emulator:/Applications/Genymotion.app/Contents/MacOS/tools:/Users/insats/.nvm/versions/node/v18.17.1/bin:/opt/homebrew/opt/[email protected]/bin:/Users/insats/.rbenv/shims:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/insats/.fig/bin:/Users/insats/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.apple.Terminal
    - FIG_PID: 49631
    - FIG_SET_PARENT: 49fd2f06-8907-4e1c-ab24-038176fc60c5

Am currently running:

  • React Native Metro bundler
  • Webpack
  • Node server

AdamGerthel avatar Oct 12 '23 08:10 AdamGerthel

Same problem here...

messageImage_1698630687927

calmack0x452 avatar Nov 04 '23 17:11 calmack0x452

As Fig seems abandoned, I've switched to Warp.

AdamGerthel avatar Nov 05 '23 09:11 AdamGerthel

@AdamGerthel I’ve been pretty inactive in these issues because I no longer work for Fig, but I can tell you with 100% certainty that it is not abandoned! Brendan has shared more details in the Discord community.

clo4 avatar Nov 05 '23 09:11 clo4

@AdamGerthel I’ve been pretty inactive in these issues because I no longer work for Fig, but I can tell you with 100% certainty that it is not abandoned! Brendan has shared more details in the Discord community.

I've seen their reply regarding this issue and their recommendation is to turn off path autocompletion (one of the main reasons to use Fig in the first place) until they've settled with AWS and started working on the product again. Most of the time, when a tool like this is acquired, it nothing but bad news for the users. Let's hope that's not going to be the case this time around, but I've still switched to Warp because I need a working tool now, not some time in the future.

AdamGerthel avatar Nov 05 '23 09:11 AdamGerthel

image

Same here

krushiraj avatar Nov 29 '23 13:11 krushiraj

image This happened to me too

ToyYan avatar Dec 01 '23 09:12 ToyYan

Screenshot 2023-12-08 at 09 56 40

This is being ridiculous now Fig. System has only 16GB but trying to use 72 is just ridiculous

marcosamorim avatar Dec 08 '23 09:12 marcosamorim

On Activity Monitor I see Fig Graphics and Media consumed 71GB This is really bad. I have uninstalled Fig immediately

anwarulislam avatar Dec 13 '23 03:12 anwarulislam

image

pulpdood avatar Dec 19 '23 05:12 pulpdood

In activity monitor, Fig was taking ~150 GB. My swap used was around ~100GB due to this. Don't know what caused this. Happened for the first time. Wasn't able to capture a screenshot this time.

Any specific things you want me to capture if this happens again?

satejbidvai avatar Feb 02 '24 14:02 satejbidvai

Same thing happened to me, Fig process ate all my RAM and I had to kill it. I'm on the latest version (2.17.1). Not sure if it was a one time thing, but I'll keep an eye on it.

baygeldin avatar Feb 28 '24 12:02 baygeldin

Same here, not sure why this ticket is closed, the problem definitely persists...

richterd avatar Mar 04 '24 08:03 richterd

Just had the same thing Fig Wrecking my memory

gthomson31 avatar Mar 04 '24 11:03 gthomson31