Fix: Antigravity 1.15.8 Browser Crash on Windows
If your Antigravity browser (or other Playwright-based tools) crashes instantly upon launch in Windows, it’s likely because the system fails to locate a “Home” directory for storing temporary browser data. This guide helps you fix it permanently.
The Issue
Modern browser engines (like Playwright) require a HOME environment variable to look for configuration files and store cache. On some Windows systems, this variable isn’t set by default, causing the browser process to terminate immediately.
The Solution
Create a permanent user-level environment variable named HOME that points to your Windows user profile folder.
Step-by-Step Instructions
1. Open PowerShell as Administrator
-
Press Win key.
-
Type PowerShell.
-
Right-click “Windows PowerShell” and select “Run as administrator”.
2. Run the Fix Command Copy and paste the following code into PowerShell. It automatically detects your current username and sets the variable correctly.
[Environment]::SetEnvironmentVariable(“HOME”, “C:\Users\$($env:USERNAME)”, “User”)
Note: Using $env:USERNAME ensures it picks the correct folder for the currently logged-in user.
3. Verify the Fix Run this command to check if it was saved successfully:
[Environment]::GetEnvironmentVariable(“HOME”, “User”)
You should see an output like C:\Users\YourName.
4. Restart Antigravity
-
Close Antigravity completely.
-
Restart the application.
-
The browser features should now launch without issues!