fig icon indicating copy to clipboard operation
fig copied to clipboard

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

Open virgildotcodes opened this issue 1 year ago • 83 comments

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
  • [X] I have run fig restart and replicated the issue again

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

virgildotcodes avatar Sep 27 '23 17:09 virgildotcodes

lol, This is Crazy usage !! 😯

realshubhamraut avatar Sep 28 '23 09:09 realshubhamraut

Having the same issue. Just upgraded to Sonoma yesterday.

goritm avatar Sep 28 '23 18:09 goritm

@goritm are you facing the signups are disabled error when trying to signup, can you please confirm

AISLVE avatar Sep 29 '23 12:09 AISLVE

Similar issue for me. I had 60GB of usage. Is this normal? 😨

tl-Talha-Sheikh avatar Sep 29 '23 15:09 tl-Talha-Sheikh

Similar issue here, 33GB of RAM usage! It's unreal! Plus my battery drained quickly and temperature was really high

abotellokindalab avatar Sep 29 '23 17:09 abotellokindalab

Same issue. After upgrading to Sonoma Fig Graphics and Media takes up more than 20GB of Ram after some time running.

ProfJackCZ avatar Oct 02 '23 07:10 ProfJackCZ

Same, was taking up 60GB memory and causing the "your system has run out of application memory" prompts on Sonoma. Sorry Fig but I've had to uninstall until this is sorted

jamescooked avatar Oct 03 '23 02:10 jamescooked

Same, had it reach similar sizes and get the same "your system has run out of application memory" popups. Had to kill the process. Its happening on both macbooks I have with Sonoma on them.

adrian-mcmichael avatar Oct 05 '23 11:10 adrian-mcmichael

Same here after upgrading to Sonoma.

rejkee avatar Oct 06 '23 06:10 rejkee

Same issue after upgrading to Sonoma.

image

nayeemdev avatar Oct 07 '23 07:10 nayeemdev

Just upgraded to Sonoma, also having the same issue 37 GB of ram usage and no more memory popup. Screenshot 2023-10-08 at 4 48 28 PM

alewtschuk avatar Oct 08 '23 22:10 alewtschuk

After upgrading to Sonoma. ~40 GB of RAM!!?? Screenshot 2023-10-10 at 5 22 22 AM

rohankokkulabp avatar Oct 09 '23 23:10 rohankokkulabp

I got a similar issue that cost 12GB of RAM usage!!!

vusk8 avatar Oct 10 '23 09:10 vusk8

I came back to this after stepping away for an hour today. I was at over 68GB of swap used as well. Screenshot 2023-10-10 at 1 00 05 PM

wolfadex avatar Oct 10 '23 18:10 wolfadex

I also noticed this weird behaviour after upgrading to MacOS Sonoma. I only have 8GB of RAM on my M1 Mac but I noticed the computer getting hot for the first time ever and noticed that Fig was consuming almost half of all my RAM:

image

Also my laptop was making a very faint sound like it was accessing the disk all the time, once I quit fig that also went away.

jpintoic avatar Oct 11 '23 16:10 jpintoic

I have the same problem with my MacBook Air M2 with 16GB of RAM. I felt my Mac warm up, but the problem was resolved when I uninstalled Fig. At first, I thought the problem was related to Xcode 15 or the iOS 17 emulator.

guilhermeramos0603 avatar Oct 11 '23 16:10 guilhermeramos0603

We are actively investigating this. Thank you for reporting.

mschrage avatar Oct 11 '23 18:10 mschrage

Also seeing this along with the "your system has run out of application memory" popup.

MacBook Pro. 2.6 GHz 6-Core Intel Core i7. OS 14.0 (23A344). 32 GB 2667 MHz DDR4

timack avatar Oct 12 '23 01:10 timack

Also happening to me on Sonoma on a Mac mini M1

Screenshot 2023-10-14 at 01 14 14

lukepistrol avatar Oct 13 '23 23:10 lukepistrol

60gb on a 15" M2 MB Air, lmk if I can help somehow. Sounds like a memory leak. Good luck!

JulianKingman avatar Oct 18 '23 00:10 JulianKingman

Also consuming more tha 10gb of ram on mac m1 with 8gb

rNNdom avatar Oct 18 '23 06:10 rNNdom

Same issue here! (M1 / 8GB / SONOMA 14.0)

bouli avatar Oct 18 '23 19:10 bouli

Another one here, Sonoma, M1 Macbook Pro 2020 8GB, I kept getting "out of memory" pop-ups on Mac OS but nothing in the list was consuming barely over 500mb.

Checked Activity Monitor and saw 28GB from Fig Graphics & Media

Screenshot 2023-10-19 at 10 28 49

hakimmazouz avatar Oct 19 '23 08:10 hakimmazouz

Same issue

Screenshot 2023-10-24 at 11 56 45 AM

edenilson-ruiz avatar Oct 24 '23 17:10 edenilson-ruiz

Thas Nice!! Big Head one! 🧠 image

Also in SONOMA

diogohudson avatar Oct 25 '23 14:10 diogohudson

Same here, let us know when there is a fix. Thanks!

SGLara avatar Oct 25 '23 15:10 SGLara

Any update here? Same happening to me on M2 16GB Ram

sudomf avatar Oct 25 '23 17:10 sudomf

I'm having the same problem - am also seeing very high CPU usage (varies between 150% to 300%) with the Fig Graphics and Media process. Fig v2.17.0 on macOS v14.0 (Sonoma) with MBP Intel i9

I found that manually running fig restart does give some temporary relief but the high usage does creep up again over time.

KieranConlon avatar Oct 26 '23 08:10 KieranConlon

Links #2355, #1208

Goooler avatar Oct 28 '23 13:10 Goooler

Same issue here.

freds-dev avatar Oct 29 '23 10:10 freds-dev