[FIX] Antigravity Launch Crash on Hybrid/Switchable Graphics (exit_code=-21474836..)

Issue Description:

Antigravity fails to launch, crashing immediately or entering a boot loop. Adding the --disable-gpu flag fails to resolve the crash. The main.log reveals repeated GPU process failures terminating with:

[ERROR:content\browser\gpu\gpu_process_host.cc:996] GPU process exited unexpectedly: exit_code=-21474836..
[FATAL:content\browser\gpu\gpu_data_manager_impl_private.cc:417] GPU process isn’t usable. Goodbye.
Environment:

  • OS: Windows 10 / 11

  • Hardware: Laptops with switchable/hybrid graphics (NVIDIA + Integrated GPU, e.g., ASUS TUF series)

  • App Version: Antigravity 2.x

Root Cause

An update or driver mismatch leaves stale or corrupted GPU shader caches and Electron session state across persistent directories. Simply reinstalling the app or passing runtime launch flags does not resolve the crash because the underlying state files in AppData remain intact.

Resolution (Clean Reinstall Procedure)

  1. Terminate background processes: Ensure Antigravity.exe and language_server.exe are closed via Task Manager.

  2. Purge the application binary folder: Delete C:\Users\<YourUsername>\AppData\Local\Programs\Antigravity\

  3. Purge the persistent configuration & GPU cache folder (Critical Step): Delete C:\Users\<YourUsername>\AppData\Roaming\Antigravity\ (Note: Clearing Local without deleting Roaming will leave corrupt GPU cache files behind, causing the crash to persist).

  4. Reinstall: Download the fresh installer directly from the official portal and run it.

Thanks,

Rupesh