App freezes after browser auth success: TypeError: Do not know how to serialize a BigInt

Hi Antigravity team,

I am experiencing an issue where the Antigravity app completely freezes immediately after successfully authenticating in the browser. The browser redirects successfully (antigravity://oauth-success), but the app UI stops responding and does not complete the login process.

Environment:

  • OS: Windows

Error Logs: I ran the application via the terminal and caught the following unhandled exception exactly when the freeze occurs:

Plaintext

[main 2026-03-13T04:46:18.249Z] [uncaught exception in main]: TypeError: Do not know how to serialize a BigInt
[main 2026-03-13T04:46:18.251Z] TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at vD (file:///C:/Users/[Username]/AppData/Local/Programs/Antigravity/resources/app/out/main.js:31:11765)
    ...

Additional Context:

  • This issue is strictly account-specific. I can log in perfectly fine using other Google accounts on the exact same machine and installation.

  • It appears that the auth payload, metadata, or profile data for this specific account contains a BigInt (possibly a large GCP project ID, organization ID, etc.) that JSON.stringify is failing to parse during the state update.

  • Standard workarounds (clearing Windows Credential Manager, deleting the %APPDATA% cache, and revoking Google account 3rd-party connections) did not resolve the issue.

Could you please look into safely handling BigInt serialization in the auth flow? Thank you!

Same issue here. I need to login urgently but its failing

….

Same issue here. I am stuck without can login into my account

I managed to resolve the login issue by modifying a core main.js file in Antigravity.

Steps to fix:

  1. Navigate to the location indicated in your logs: …/main.js:31:11765 (Line 31, position 11765).
  2. Locate the following code:
    JSON.stringify(t)
  3. Replace it with this snippet to handle BigInt serialization:
    JSON.stringify(t,(_k,v) => typeof v === "bigint" ? v.toString() : v)

This change should allow the login process to complete successfully.

This is a temporary workaround. If Antigraviti is updated or reinstalled, main.js will be overwritten and you will need to apply this change again. I hope Google addresses this issue soon so this manual fix isn’t necessary.

3 Likes

Exactly same for my account. What can I do?