Antigravity freezes on Ubuntu 24.04 launch

Title: Antigravity freezes for several minutes on every launch, immediately after model loading completes (Ubuntu 24.04, reproducible with blank workspace + extensions disabled)

Environment:

  • OS: Ubuntu 24.04.4 LTS (kernel with apparmor_restrict_unprivileged_userns=1)
  • Antigravity version: 1.23.2-1776332190 (installed via official apt repo)
  • Hardware: Intel Haswell iGPU, 4 cores, 12GB RAM
  • Installed via: sudo apt install antigravity (official Google apt repo)

Description:
Antigravity freezes/becomes unresponsive (“The window is not responding” dialog) on nearly every launch, for anywhere between 30 seconds and 5+ minutes, before sometimes recovering on its own. This is fully reproducible even with a blank workspace (--new-window, no folder opened) and all extensions disabled (--disable-extensions), ruling out project size, file watchers, and third-party extensions as the cause.

Steps already ruled out (confirmed via logs, not the cause):

  1. GPU driver — fixed libva/iHD_drv_video.so mismatch by forcing LIBVA_DRIVER_NAME=i965 for our Haswell iGPU. No change to freeze.
  2. AppArmor sandbox — found apparmor="DENIED" ... capability=21 sys_admin blocking userns_create on every launch (Ubuntu 24.04’s unprivileged_userns restriction). Added a permissive AppArmor profile for the binary; denials stopped, freeze persisted.
  3. inotify limits — found ENOSPC: System limit for number of file watchers reached. Raised fs.inotify.max_user_watches to 524288 and max_user_instances to 512. No change.
  4. Workspace indexing — added a .antigravityignore excluding vendor/, node_modules/, logs, etc. No change.
  5. Extensions — reproduces identically with --disable-extensions.
  6. Workspace — reproduces identically with --new-window (no project open at all).

Log evidence (main.log), consistent across every launch:

[Auth] Auth state changed to: signedIn
[CloudCode] POST v1internal:fetchAvailableModels traceId: ...

— immediately followed by total silence for 4+ minutes, then:

[error] CodeWindow: detected unresponsive
[error] [uncaught exception in main]: UnresponsiveSampleError ...

with repeated stack samples inside the renderer showing tight loops in minified functions involving Array.sort, Array.shift, Array.forEach, Set.forEach, and shouldComponentUpdate, called from what appears to be setSelectedModel/setCascadeConfig codepaths (based on function names visible in earlier, less-minified traces from the same build).

Pattern: The freeze consistently begins right after fetchAvailableModels/model-list load completes and the UI attempts to apply the selected model/cascade config, suggesting a render-thread loop triggered during post-auth UI state updates rather than anything workspace- or extension-related.

Request: Would appreciate guidance on whether this is a known issue with a fix in progress, and if there’s a way to disable/reset the automatic model-selection state on startup as a workaround.

I just encountered the exact same error as you! That error happens because the official apt repository currently pulls a broken, outdated version (1.23.2) that conflicts with the new background agents, causing the freeze loop.

To fix it, you just need to download the .tar.gz standalone version directly from the website instead of installing via apt.

Ubuntu 24.04.4 - Antigravity UI freezes after opening any folder (CodeWindow detected unresponsive)

Thank you it worked for my Ubuntu

Antigravity IDE Linux Installation Guide

A step-by-step log of the successful installation and configuration of Antigravity IDE (v2.1.1) on Linux.


Prerequisites

  • A downloaded copy of Antigravity IDE.tar.gz located in your ~/Downloads folder.
  • Sudo/root administrative privileges on your local user account.

Step-by-Step Installation

Step 1: Open the Terminal and Navigate

Open your system terminal and change your working directory to your downloads folder:

cd ~/Downloads

Step 2: Extract the Package Archive

Unpack the compressed tarball file to extract the application files:

tar -xvzf "Antigravity IDE.tar.gz"

Step 3: Move the IDE to the Global Applications Directory

Move the extracted application folder into the system-wide /opt/ directory for a clean setup:

sudo mv "Antigravity IDE" /opt/antigravity

(Type your Linux user password when prompted).

Step 4: Configure Security & Sandbox Permissions

Electron-based applications require specific ownership and execution flags on their sandbox binary to initialize correctly:

sudo chown root:root /opt/antigravity/chrome-sandbox
sudo chmod 4755 /opt/antigravity/chrome-sandbox

Step 5: Build the Desktop Shortcut Launcher

Create a desktop entry file so that the IDE appears natively in your Linux application menu and system search bar:

cat << 'EOF' > ~/.local/share/applications/antigravity-ide.desktop
[Desktop Entry]
Name=Antigravity IDE
Comment=Antigravity Agentic IDE
Exec=/opt/antigravity/antigravity-ide %U
Terminal=false
Type=Application
Icon=/opt/antigravity/resources/app/resources/linux/code.png
Categories=Development;IDE;
StartupNotify=true
StartupWMClass=Antigravity
MimeType=x-scheme-handler/antigravity;
EOF

Step 6: Update the Desktop App Database

Force your desktop environment to scan for the new launcher file and update its menu cache immediately:

update-desktop-database ~/.local/share/applications

First Run Configuration

  1. Launch the IDE: Open your system app launcher and click on Antigravity IDE.
  2. Handle Migration: Choose Migrate if importing older v2.0 profiles, or Cancel for a fresh start.
  3. Open Workspace: Open a target folder (like my-app) to activate the agent panel.
  4. Interact: Press Ctrl + L to focus the cursor into the chat window and begin coding with Gemini.

This works for me (Ubuntu 24.02).
I hope it helps for rest..
Thanks