withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.06k stars 63 forks source link

bug: Fig Graphics and Media consuming over 160 GB of ram #2753

Open virgildotcodes opened 1 year ago

virgildotcodes commented 1 year ago

Checks

Operating system

MacOS 14 Sonoma

Expected behaviour

Fig should not use 162 GB of ram.

Actual behaviour

I got an alert from MacOS telling me that I've run out of memory. I check activity monitor and I see "Fig Graphics and Media" sitting there at 162 GB of ram. I just upgraded to Sonoma, and this is my first time noticing the issue. Have not been able to replicate it, but thought I'd note it here regardless.

Screenshot 2023-09-27 at 1 01 30 PM

Steps to reproduce

Not as of yet.

Environment

fig-details:
  - 2.16.0
hardware-info:
  - model:
  - model-id:
  - chip-id: Apple M1 Max
  - cores: 10
  - mem: 32.00 GB
os-info:
  - macOS 14.0.0 (23A344)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/username
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: b3690428-2354-42ee-9b6f-da761b28b118
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.16.0
    - PATH: /Users/username/Library/Application Support/Herd/bin/:/Users/username/.rbenv/shims:/Users/username/.bun/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/Users/username/.pyenv/shims:/Users/username/.nvm/versions/node/v18.17.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/username/.cargo/bin:/Users/username/.fig/bin:/Users/username/.local/bin:/Users/username/Library/Application Support/JetBrains/Toolbox/scripts:/Users/username/.composer/vendor/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.googlecode.iterm2
    - FIG_PID: 31915
    - FIG_SET_PARENT: b3690428-2354-42ee-9b6f-da761b28b118
grant0417 commented 10 months ago

@diogohudson thanks for point out the typo, will make sure this is fixed in the next release

shadeed commented 9 months ago

I noticed that my M1 Air surface very hot (first time I notice that). I checked the RAM usage and it's 11GB for Fig alone. I uninstalled it for now. Hope this will be solved soon.

diogohudson commented 9 months ago

@shadeed I don't think they will fix this.

You should move to AWS CodeWhisper (It is the same FIG), but with some Big Tech Burocacies!

AWS Codewhisper

@grant0417 perhaps it is a good time to close this issue in favor of everyone move to AWS Codewhisper.

jbravata commented 9 months ago

Anecdotally, I was having a similar issue to this (I was noticing high CPU usage from this process rather than high RAM usage because it would manifest as my laptop getting noticeably warm -- it might have been both but I didn't check). I switched to Codewhisper and I have not seen it happen again. I don't know if CW fixed it or if essentially doing an uninstall/reinstall helped, but I'd recommend giving it a try and seeing if it clears up the issue.

wzaldivar commented 9 months ago

I just moved to CW as suggested. The only feature I miss is: fig ssh my-local-server just cause I'm lazy enough to set up a local DNS or modify the hosts list

mcnahum commented 9 months ago

Ok so that mean Fig is not maintained anymore? Any way to migrate the autocomplete history from fig to cw?

hofstede-matheus commented 9 months ago

same here, not only high memory usage but the process is also using 100% of CPU

bradleylandis commented 8 months ago

same here. at idle it is reportedly consuming 55% cpu and 45 GB of memory. Also seeing battery drain and temperature problems.

Manas-Nagelia commented 8 months ago

Yeah, it looks like Fig has now merged to Amazon CodeWhispher so moving to that. Amazon Code Whisper command line tool looks exactly the same as Fig, so looks like this is no longer maintained.

aurelien-edusign commented 8 months ago

having this problem for +1 month as well, 76gb of memory today before I killed it

agodin3z commented 8 months ago

In case it helps anyone, every two or three days I run fig restart and so far I haven't had the problem of excessive RAM consumption again.

At least for me, it's a temporary solution as long as CW doesn't have all the fig features (such as servers, plugins) 🤷

ChrisDugdale commented 8 months ago

just posting to add weight to the issue, 60GB usage for me, killed it and restart fixes it temporarily.

matheuslopesdev commented 8 months ago

Just to add one more example, Macbook M1 Pro 16GB Ram, it isn't slow or anything I was just going to kill one process and noticed it image

EDIT: After reading the thread I also moved to CW

aabragan commented 8 months ago

I had the same issue on Sonoma Same specs as the Mac above (MacBook Pro - M1 Pro w/ 16GB RAM). Fig Graphics and Media was using over 47GB or memory. I had to kill fig to allow any other apps to keep working.

michaelfransen commented 8 months ago

Just had this has well. 84 GB of memory being used. WTF.

martindrzka commented 8 months ago

This is insane CleanShot 2024-01-26 at 21 24 49@2x

aurelien-edusign commented 8 months ago

I had to uninstall it. Too much of a problem.

eranelbaz commented 7 months ago
image

Same M2 Pro

fig-details:
  - 2.17.1
hardware-info:
  - model:
  - model-id:
  - chip-id: Apple M2 Pro
  - cores: 10
  - mem: 16.00 GB
os-info:
  - macOS 14.1.1 (23B81)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/elbaz
  - exe-path: /Users/elbaz/.fig/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: 34871ab3-14b6-4f00-b396-c2c2fe88b1e6
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.17.1
    - PATH: /Users/elbaz/.nvm/versions/node/v16.10.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/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/elbaz/.fig/bin:/Users/elbaz/.local/bin:/opt/homebrew/bin:/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/usr/local/opt/python@3.8/bin:~/bin:/usr/bin;/usr/local/bin;
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.googlecode.iterm2
    - FIG_PID: 13337
    - FIG_SET_PARENT: 34871ab3-14b6-4f00-b396-c2c2fe88b1e6
emredemirhan commented 7 months ago

Is there any update on this issue? It's such a troublesome problem that you have to delete the fig just because of this.

mad-ambi commented 7 months ago

This is still happening

geekz-reno commented 7 months ago

same, 36GB on M2

alish2001 commented 7 months ago

Still happening

BClev commented 7 months ago

I'm just dealing with this with a workaround. Fig was bought by AWS and is no longer under development in this repo (it's AWS CodeWhisperer now but doesn't have all the features we have with Fig like community plugins and other benefits). Unless someone somehow forks all the code and somehow emulates Fig's signup methodology, this is just going to be the case. As a workaround, just write a cronjob or process to close and reopen Fig every few hours/every day to deal with it. Could even use the Fig AI command to write the script. Until Fig stops working or AWS CW gets the old features of Fig, this is just the reality we all have to deal with.

MagnusHJensen commented 7 months ago

Same issue here:

image
diogohudson commented 7 months ago

Move AWAY from fig and download the new AWS version.

Fig has Joined AWS!

DanielZanchi commented 7 months ago

same issue. Very sad cuz it worked well :(

lonrun commented 6 months ago

same issue image

Tuily commented 6 months ago

What happenned with the Scripts tab? It was my favorite feature.

bennygoldman commented 6 months ago

Same issue.

Screenshot 2024-03-08 at 4 09 49 PM
fztrevisan commented 6 months ago

Same problem here, also using Sonoma (14.1.1)

Just turned the PC on and:

image

But it is usually consuming more than that!

ChrisDugdale commented 6 months ago

Well this isn't getting fixed is it! Received this email yesterday.

Dear Fig users,

Effective September 1, 2024 we will be ending access to Fig.

We encourage you to migrate to [Amazon CodeWhisperer for command line [LINK]. CodeWhisperer for command line offers Fig’s core features, but is designed to be faster and more reliable. It’s free on the Individual tier and has several exciting new features coming in 2024 including support for Linux, AI chat, and inline AI completion.

With hundreds of thousands of users, 22k GitHub stars, 13k Discord members, 400+ open source contributors, and 5 products, we are incredibly proud of what we accomplished with Fig. We are incredibly thankful to our community for your feedback, contributions, and support. We are thrilled to have made such an impact and we are beyond excited to continue working with you all while we continue to ship at Amazon CodeWhisperer.

To learn more about the changes to Fig and how to export your data, please read our blog post.

Brendan, Matt, and the CodeWhisperer for command line team.

agodin3z commented 6 months ago

Well this isn't getting fixed is it! Received this email yesterday.

and apparently CW will only have the Autocomplete + AI Features, it does not support Scripts, Servers, Community Plugins 😢

Captura de pantalla 2024-03-13 a la(s) 09 30 25

Captura de pantalla 2024-03-13 a la(s) 09 31 49

Tuily commented 5 months ago

Well this isn't getting fixed is it! Received this email yesterday.

and apparently CW will only have the Autocomplete + AI Features, it does not support Scripts, Servers, Community Plugins 😢

Captura de pantalla 2024-03-13 a la(s) 09 30 25

Captura de pantalla 2024-03-13 a la(s) 09 31 49

Yeah, that's sad.