Startup failed - Language server exited unexpectedly (code=2) - v2.4.2 - "unknown caller pc" in enry data.init()

Environment:

  • OS: Windows 11
  • Antigravity version: 2.4.2
  • Error shown: Startup failed - Language server exited unexpectedly (code=2, signal=null)

Root cause from main.log:

[2026-07-27 14:08:41.590] [error] Failed to get LS stamp: Error: Command failed: C:\Users\SarayoothSongkran\AppData\Local\Programs\antigravity\resources\bin\language_server.exe --stamp

fatal error: unknown caller pc

runtime stack:
runtime.throw({0x7ff731424e88?, 0x6c812ff948?})
third_party/go/gc/src/runtime/panic.go:1245 +0x4d
runtime.(*unwinder).next(0x6c812ff990)
third_party/go/gc/src/runtime/traceback.go:471 +0x256
runtime.scanstack(0x1a8e918d8b40, 0x1a8e918d5260)
third_party/go/gc/src/runtime/mgcmark.go:977 +0x2f1
runtime.markroot.func1()
third_party/go/gc/src/runtime/mgcmark.go:306 +0xb1
runtime.markroot(0x1a8e918d5260, 0xd, 0x1)
third_party/go/gc/src/runtime/mgcmark.go:280 +0x1a5
runtime.gcDrain(0x1a8e918d5260, 0x7)
third_party/go/gc/src/runtime/mgcmark.go:1280 +0x4a7
runtime.gcBgMarkWorker.func2()
third_party/go/gc/src/runtime/mgc.go:1900 +0x67
runtime.systemstack(0x1a8e918d8960)
third_party/go/gc/src/runtime/asm_amd64.s:531 +0x49

goroutine 1 gp=0x1a8e918d8000 m=nil [runnable, locked to thread]:
regexp/syntax.(*compiler).compile(…)
third_party/go/gc/src/regexp/syntax/compile.go:89 +0x1497
regexp/syntax.Compile(0x1a8e91bfcf50)
third_party/go/gc/src/regexp/syntax/compile.go:74 +0x136
regexp.compile({0x1a8e91b858c0, 0x36}, 0x3ae0?, 0x0)
third_party/go/gc/src/regexp/regexp.go:175 +0x77
regexp.MustCompile({0x1a8e91b858c0, 0x36})
third_party/go/gc/src/regexp/regexp.go:310 +0x2c
google3/third_party/golang/enry/regex/regex.MustCompileMultiline(…)
third_party/golang/enry/regex/standard.go:22 +0x31
google3/third_party/golang/enry/data/data.init()
third_party/golang/enry/data/content.go:956 +0xfa87
runtime.doInit1(0x7ff73590dd20)
third_party/go/gc/src/runtime/proc.go:8156 +0xda
runtime.main()
third_party/go/gc/src/runtime/proc.go:269 +0x385

Spawning command that fails:
C:\Users\SarayoothSongkran\AppData\Local\Programs\antigravity\resources\bin\language_server.exe --standalone --override_ide_name antigravity --subclient_type hub --override_ide_version 2.4.2 --override_user_agent_name antigravity --https_server_port 0 --app_data_dir antigravity --api_server_url https://generativelanguage.googleapis.com --cloud_code_endpoint https://daily-cloudcode-pa.googleapis.com --enable_sidecars

Notes:

  • Crash happens consistently on every launch (reproducible)
  • Tried: clean uninstall, deleted all config folders (.gemini, AppData\Local\Programs\Antigravity, AppData\Roaming\Antigravity, antigravity-updater), reinstalled latest version → same crash
  • Tried: adding folder exclusion + disabling real-time antivirus protection entirely → same crash
  • This matches other reports of the same “unknown caller pc” / enry data.init() crash during Go GC (e.g. discuss.ai.google.dev/t/bug-report-for-v2-0/166797 and discuss.ai.google.dev/t/language-server-exited-unexpectedly-code-2-on-intel-i7-7700-kaby-lake-after-latest-update-windows-11/146759)

+1, hitting the exact same crash.

Environment:

  • Antigravity version: 2.9.1
  • OS: Windows 11 Pro, build 10.0.26200.26200
  • Hardware: Dell Latitude 5450, Intel Core Ultra 5 135U (12 cores / 14 logical, hybrid P-core+E-core), Secure Boot: On
  • BIOS: Dell 1.13.1 (10.02.2025)

Same exact stack trace as OP:

fatal error: unknown caller pc

runtime stack:
runtime.throw(…)
third_party/go/gc/src/runtime/panic.go:1245
runtime.(*unwinder).next(…)
third_party/go/gc/src/runtime/traceback.go:471
runtime.scanstack(…)
third_party/go/gc/src/runtime/mgcmark.go:977
runtime.markroot.func1()
third_party/go/gc/src/runtime/mgcmark.go:306
…

goroutine 1 [running/runnable, locked to thread]:
regexp/syntax.(*compiler).compile(…)
regexp.MustCompile(…)
google3/third_party/golang/enry/regex/regex.MustCompileMultiline(…)
google3/third_party/golang/enry/data/data.init()
third_party/golang/enry/data/content.go
runtime.doInit1(…)
runtime.main()

Notes:

  • 100% reproducible on every launch, fails during setup (installer reports “Setup failed. Language server exited unexpectedly. Code=2 Signal=NULL”).
  • Confirms this isn’t limited to older CPUs — the other report in this thread was on an Intel i7-7700 (Kaby Lake), mine is a current-gen Intel Core Ultra (Meteor Lake, hybrid P/E-core). Might be worth checking if the crash correlates with hybrid core scheduling during the enry data.init() regex compilation under concurrent GC.
  • This is blocking install entirely, not just a runtime crash — would appreciate a fix or at least an official workaround (e.g. confirmed working older build) since disabling AV/reinstalling doesn’t help, per other reports here.

Hi,

As a temporary workaround, you need to completely uninstall the
current version and roll back to install version 2.0.0. This gets it
working again, although newer releases (including the latest build)
will still encounter this issue until an official fix is available.

Here is a summary of the root cause and details regarding why version 2.0.0 works while 2.9.1 hits this crash:

Root Cause (Why 2.0.0 works while 2.9.1 fails):
Internal Binary Structure / Go Compiler Bug:

  • Version 2.0.0 (Works normally): The language_server.exe binary was compiled with an older toolchain that did not suffer from this memory stack unwinding bug, allowing it to run smoothly without issues.
  • Versions 2.4.x through 2.9.1 (Crashing): The development team updated to a newer Go compiler toolchain when building language_server.exe. This newer compiler introduced an underlying bug during the initialization of the enry language library (enry data.init()) on Windows 11.
  • Consequently, the bug is baked directly into the language_server.exe binary itself for versions 2.4.2 – 2.9.1. Workarounds like registry tweaks or Windows-level bypasses cannot circumvent this compiled-in binary issue.

Recommendation:

  1. Stick with version 2.0.0 for now (Most stable):
  • You don’t need to worry about missing out on AI capabilities, as the underlying AI models (Gemini 3.6 Flash / Pro) run entirely on Google’s cloud infrastructure.
  • The local client application acts primarily as the interface/wrapper. Model intelligence, speed, and code generation capabilities remain identical between versions.
  1. Await an official patch from Google:
  • The “unknown caller pc” issue on Windows 11 has been widely reported on the forum. The fix will require Google to recompile language_server.exe using a patched compiler toolchain in an upcoming release (e.g., v2.9.2 or v3.0).

In short: Rolling back to 2.0.0 remains the best course of action for now without any loss in AI model performance.

ในวันที่ จันทร์ 24 ส.ค. 2026 เวลา 15:59 Sarayooth Songkran s......@gmail.com เขียนว่า:

Is this a Windows 11-only bug? Does it affect Linux versions?

My take on this (educated guess based on Go internals, not a 100% confirmed answer): there’s a good chance this bug is Windows-specific, because the Go runtime’s “async preemption” mechanism — the part directly implicated in this crash — works completely differently on Windows vs. Linux/macOS. On Windows it relies on SuspendThread (an OS-level thread-suspend call) to interrupt a running goroutine, whereas Linux/macOS use a signal-based approach (SIGURG) with a very different underlying structure. This exact class of “unknown caller pc” crash has shown up multiple times in Go’s own issue tracker specifically on the Windows implementation before, so it wouldn’t be surprising if this is another instance of that. If anyone here has a Linux or macOS machine handy, it’d be really valuable to confirm whether v2.4.2+ crashes there too — that would settle it either way.

FWIW, Antigravity IDE 2.x never crashed for me on Linux. I can’t find an immediate way to show the exact version, but “check for updates” tells me there are none so it must be the latest version.