Antigravity IDE crashes after using more than 20 GB of memory when I reopen it

Is this supposed to happen? I had 5 to 8 projects open at the time, but only one was actually running a job. How can it consume so much memory?

Hi @myoshi ,

Thank you for reporting this. Consuming 47 GB of memory is certainly not expected behavior. This usually happens because each open Antigravity IDE window runs its own extension host and file-indexing processes—so when the app reopens after a crash, restoring all 5–8 project windows at once (combined with a known memory leak in earlier macOS builds) causes a sudden spike in RAM usage.

To resolve this and prevent the crash on startup, please try the following steps:

  1. Update to the Latest Antigravity IDE (v2.5.5):

  2. Limit Automatic Window Restoration (window.restoreWindows):

    • Open Settings (Cmd + ,), search for window.restoreWindows, and set it to one (or none) so the IDE does not reload all 5–8 project windows simultaneously when reopened.
  3. Use a Single Workspace & Exclude Large Folders:

    • Use File > Add Folder to Workspace… to manage multiple projects in a single window rather than separate instances, and add large dependency folders (such as node_modules, dist, or build) to .geminiignore or files.watcherExclude.

Hi Naveen,

Thank you for the detailed troubleshooting steps and explanation regarding the Antigravity IDE memory issue.

I will try these steps out soon and see if they help resolve the problem on my end.

Best regards,

Mitsuru