Summary
The Antigravity IDE main (browser) process runs out of V8 heap and crashes every 6–38 hours. All 7 crash dumps since 27 Sep are the same failure. Every crash follows a burst of file-watcher events from a node_modules tree inside the workspace being rewritten (npm ci, or deleting a git worktree).
This looks like the same trigger as Critical macOS Crash & 40GB Memory Exhaustion Caused by Recursive Workspace Indexing, which was marked resolved in 2.0.4. It still happens on 2.5.5, in a different process: here the main process hits its own 4 GiB heap limit, rather than the whole system running out of memory.
Environment
- Antigravity IDE 2.5.5 (commit
ecfbad74d93962fc8ca485d93****, built 2026-08-13), VS Code base 1.107.0, Electron 39.2.3 - macOS 27.0.1 (26A434), Apple M5 Max (Mac17,14), 128 GB RAM. The machine never ran short of memory. The crash is the 4 GiB per-process heap limit (
v8.getHeapStatistics().heap_size_limit= 4.00 GiB). - Multi-root workspace with 10 folders. Several are monorepos that keep git worktrees inside the repo (
<repo>/.worktrees/<branch>/), each with its ownnode_modules. Worktrees are created and removed frequently by automated tooling. - No custom
files.watcherExcludeat the time of the crashes (defaults only).
Crash evidence
All 7 Crashpad minidumps (~/Library/Application Support/Antigravity IDE/Crashpad/pending/) carry ptype=browser, electron.v8-oom.is_heap_oom, and one of these:
| Crash time (AEST) | electron.v8-oom.location |
Watcher storms that session | Last storm before crash |
|---|---|---|---|
| 2026-09-27 20:09:18 | Reached heap limit | 246 | 3 min before |
| 2026-10-05 11:36:58 | Reached heap limit | 116 | 5 min before |
| 2026-10-05 17:41:28 | Reached heap limit | 267 | 1 min before |
| 2026-10-06 07:19:18 | Ineffective mark-compacts near heap limit | 230 | 28 min before |
| 2026-10-06 12:59:19 | Reached heap limit | 445 | 25 min before |
| 2026-10-06 19:51:58 | Ineffective mark-compacts near heap limit | 335 | 1 min before |
| 2026-10-08 10:06:34 | Ineffective mark-compacts near heap limit | 190 | 18 s before |
“Storm” means this line in window1/fileWatcher.log:
[warning] [File Watcher ('parcel')] started ignoring events due to too many file change events at once (incoming: 6855, most recent change: <repo>/.worktrees/<branch>/frontend/support-app/node_modules/...)
These are usually interleaved with:
[error] [File Watcher ('parcel')] Events were dropped by the FSEvents client. File system must be re-scanned. (path: <repo>)
Each session survives hundreds of storms before it crashes. That fits memory being retained a little on every storm, or on every re-scan, rather than one storm being fatal on its own. The most recent crash came 18 seconds after a sustained burst: 4,000–7,000 incoming events every 500 ms from 10:05:54 to 10:06:16, while a worktree’s node_modules was being deleted. For scale: after the restart, the fresh main process was already at about 414 MB RSS five minutes after launch.
Separately, the language server does not back off when the network fails. It reports its errors through the main process (“LS Main stderr”). During two overnight ISP outages (26 Sep 20:10 to 27 Sep 06:59, and planned ISP maintenance on 7 Oct 00:13 to 03:59), it logged about 11,000 dial tcp: lookup *.googleapis.com: no such host errors in under four hours, peaking at about 1,400 an hour. That covers OAuth token refresh, play.googleapis.com/log and userinfo. Retrying at a fixed rate like this is the behaviour described in Antigravity memory grows to 11-12 GB on macOS. It is not what triggers these crashes: only 2 of the 7 crashed sessions included an outage, and in those the crash came 13–30 hours after DNS recovered.
The main log shows nothing unusual before the crash. The only renderer-side signal is Renderer reported VERY LONG TASK (86–270ms) profiling sessions in rendererPerf.log.
Steps to reproduce (expected)
- Open a workspace folder containing a sizeable Node project (tens of thousands of files in
node_modules), with defaultfiles.watcherExclude. - Repeatedly do
rm -rf node_modules && npm ci, or create and remove a git worktree inside the workspace that contains anode_modules. - Watch the main process (
Antigravity IDE/Electron, not a Helper) grow over time. It eventually aborts with a V8 OOM, and a new.dmpappears inCrashpad/pending.
Workaround
Excluding the churn from the watcher in the workspace settings:
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.hg/store/**": true,
"**/.worktrees/**": true,
"**/node_modules/**": true,
"**/dist/**": true,
"**/coverage/**": true
}
Applied 2026-10-08; I’ll update this thread with whether the crashes stop.
Asks
- Can someone confirm whether the main process retains anything per watcher event or per FSEvents re-scan? The language-server stderr piped through “LS Main” is the other main-process consumer I could see.
- Could
**/node_modules/**be added to the defaultfiles.watcherExclude? - I can share the minidumps privately (not publicly, since they may contain process memory). The Crashpad report IDs are available on request.