CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Intel: crash when clicking “Add Cursor” (WebKit teardown EXC_BAD_ACCESS)

Open meghanto opened this issue 11 months ago • 2 comments

Summary

On Intel Macs, clicking "Add Account" crashes CodexBar. This reproduces both in the latest release and on origin/main. Crash is an EXC_BAD_ACCESS in objc_release during autorelease pool drain, likely during WebKit teardown.

Steps to reproduce

  1. Launch CodexBar on an Intel Mac.
  2. Click "Add account" on the Cursor provider.
  3. The app crashes shortly after the login window appears / during login flow.

Expected behavior

Cursor login window opens and CodexBar remains running after login or cancel.

Actual behavior

CodexBar crashes immediately after starting the login flow.

Environment

  • CodexBar version: 0.16.1 release (also reproduces on current origin/main)
  • macOS: 26.2 (25C56)
  • Machine: Intel (x86_64)
  • Provider: Cursor
  • Build source: release + source build

Crash report

  • ~/Library/Logs/DiagnosticReports/CodexBar-*.ips
  • Signature: EXC_BAD_ACCESS in objc_release → objc_autoreleasePoolPop on main thread.

Notes

Looks like a WebKit teardown/lifecycle issue on Intel. I have a PR(https://github.com/steipete/CodexBar/pull/111#issue-3774033264) that defers cleanup and retains the runner on x86_64 to avoid the crash, and also makes cookie loading deterministic across restarts.

Drafted with Codex assistance

meghanto avatar Jan 01 '26 02:01 meghanto

https://x.com/steipete/status/2006631499248836636... had to xD

steipete avatar Jan 01 '26 07:01 steipete

LMAO. Here's to more obscure bugs 🤣 🥂

(Closed: https://github.com/steipete/CodexBar/pull/111)

meghanto avatar Jan 01 '26 09:01 meghanto