Intel: crash when clicking “Add Cursor” (WebKit teardown EXC_BAD_ACCESS)
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
- Launch CodexBar on an Intel Mac.
- Click "Add account" on the Cursor provider.
- 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_ACCESSinobjc_release→objc_autoreleasePoolPopon 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
https://x.com/steipete/status/2006631499248836636... had to xD
LMAO. Here's to more obscure bugs 🤣 🥂
(Closed: https://github.com/steipete/CodexBar/pull/111)