CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

App crashes with "freed pointer was not the last allocation" on launch (MacOS)

Open dstier-git opened this issue 7 months ago • 15 comments

CodexBar crashes immediately when launched. When launched manually from the command line, produces a memory management error.

To reproduce:

  1. Open Terminal
  2. Run: /Applications/CodexBar.app/Contents/MacOS/CodexBar
  3. Observe crash "freed pointer was not the last allocation zsh: abort /Applications/CodexBar.app/Contents/MacOS/CodexBar"

System information:

  • macOS version: 15.7.4
  • CodexBar version: 0.20
  • Processor: Apple Silicon M4

dstier-git avatar Apr 12 '26 15:04 dstier-git

Same problem with this newest update

freed pointer was not the last allocation[1] 6171 abort /Applications/CodexBar.app/Contents/MacOS/CodexBar

macOS version: 26.3 CodexBar version: 0.20 Processor: Apple Silicon M1

tshafer avatar Apr 12 '26 17:04 tshafer

Same here :(

dpardo2183 avatar Apr 12 '26 18:04 dpardo2183

I also have same issue. macOS ver : 15.7.5 CodexBar ver : 0.20 Apple M1 Pro

changuniuni avatar Apr 13 '26 05:04 changuniuni

Same here: macOS ver : 26.4 CodexBar ver : 0.20 Apple M4 Pro

rafachavantes avatar Apr 14 '26 11:04 rafachavantes

Not surprised! Traditional shit-coded app behaviour nowadays!

emrdgrmnci avatar Apr 14 '26 19:04 emrdgrmnci

encountering same problem. opening the CodexBar app immediately crashes and invoking from command line produces freed pointer was not the last allocationzsh: abort codexbar

reverted back to 0.19 and am able to open CodexBar without a hitch.

macOS 26.4 CodexBar 0.20 MacBook Pro M1

im-jersh avatar Apr 14 '26 20:04 im-jersh

Thread 9 Crashed: 0 libsystem_kernel.dylib 0x19c922388 __pthread_kill + 8 1 libsystem_pthread.dylib 0x19c95b848 pthread_kill + 296 2 libsystem_c.dylib 0x19c8649e4 abort + 124 3 libswift_Concurrency.dylib 0x28511c3cc swift::swift_Concurrency_fatalErrorv(unsigned int, char const*, char*) + 32 4 libswift_Concurrency.dylib 0x28511c3ec swift::swift_Concurrency_fatalError(unsigned int, char const*, ...) + 32 5 libswift_Concurrency.dylib 0x285120878 swift_task_dealloc + 132 6 libswift_Concurrency.dylib 0x28511b964 asyncLet_finish_after_task_completion(swift::AsyncContext*, swift::AsyncLet*, void (swift::AsyncContext* swift_async_context) swiftasynccall*, swift::AsyncContext*, void*) + 88 7 CodexBar 0x1013f6e85 specialized CursorStatusProbe.fetchIfSessionAccepted(:log:) + 1 8 CodexBar 0x1013edc1d CursorStatusProbe.fetch(cookieHeaderOverride:logger:) + 1 9 CodexBar 0x1013eb649 CursorStatusFetchStrategy.fetch(:) + 1 10 CodexBar 0x1013eb995 protocol witness for ProviderFetchStrategy.fetch(:) in conformance CursorStatusFetchStrategy + 1 11 CodexBar 0x10155b601 ProviderFetchPipeline.fetch(context:provider:) + 1 12 CodexBar 0x101221441 closure #1 in closure #3 in UsageStore.refreshProvider(:allowDisabled:) + 1 13 CodexBar 0x101222e85 partial apply for closure #1 in closure #3 in UsageStore.refreshProvider(_:allowDisabled:) + 1 14 CodexBar 0x1012229f5 specialized thunk for @escaping @isolated(any) @callee_guaranteed @async () -> (@out A) + 1 15 CodexBar 0x101222fe1 partial apply for specialized thunk for @escaping @isolated(any) @callee_guaranteed @async () -> (@out A) + 1 16 libswift_Concurrency.dylib 0x28511f83d completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

app crashed on launch

nathanwhy avatar Apr 15 '26 04:04 nathanwhy

+1 for me on macOS 26.2, M1 Max, CodexBar v0.20.

pseudobun avatar Apr 15 '26 07:04 pseudobun

same for me M3 pro CodexBar 0.20

Kevin-Ting avatar Apr 16 '26 04:04 Kevin-Ting

This has been fixed and merged in the main branch and should be part of the upcoming release.

ratulsarna avatar Apr 16 '26 06:04 ratulsarna

Workaround for macOS 26.4.1 — disable Cursor before updating to 0.20

If you're on macOS 26.4.1 and the app crashes immediately on launch, the issue is with CursorStatusProbe. The fix requires downgrading to 0.19.0 first, disabling Cursor, then updating.

Step 1 — Clean install 0.19.0

# Remove the app and all data
killall CodexBar 2>/dev/null
sudo rm -rf /Applications/CodexBar.app
rm -rf ~/Library/Application\ Support/com.steipete.codexbar
rm -rf ~/Library/Caches/com.steipete.codexbar
rm -rf ~/Library/Preferences/com.steipete.codexbar.plist
rm -rf ~/Library/Saved\ Application\ State/com.steipete.codexbar.savedState
rm -rf ~/Library/Containers/com.steipete.codexbar
rm -rf ~/Library/HTTPStorages/com.steipete.codexbar
rm -rf ~/Library/WebKit/com.steipete.codexbar

# Install 0.19.0 directly (brew always installs latest, so use the DMG)
curl -L https://github.com/steipete/CodexBar/releases/download/v0.19.0/CodexBar-0.19.0.dmg -o /tmp/CodexBar-0.19.dmg
hdiutil attach /tmp/CodexBar-0.19.dmg
cp -R /Volumes/CodexBar/CodexBar.app /Applications/
hdiutil detach /Volumes/CodexBar

Step 2 — Disable Cursor

Open the app, go to Settings → Providers and disable Cursor.

Step 3 — Update to 0.20

sudo rm -rf /Applications/CodexBar.app
brew install --cask steipete/tap/codexbar

The app will now stay open on 0.20 with Cursor disabled.

giovanninibarbosa avatar Apr 16 '26 08:04 giovanninibarbosa

I am certainly aware of this approach, but I specifically need to know the quota for the Cursor account.:)

Giovannini Barbosa @.***> 于2026年4月16日周四 16:09写道:

giovanninibarbosa left a comment (steipete/CodexBar#702) https://github.com/steipete/CodexBar/issues/702#issuecomment-4258394829

Workaround for macOS 26.4.1 — disable Cursor before updating to 0.20

If you're on macOS 26.4.1 and the app crashes immediately on launch, the issue is with CursorStatusProbe. The fix requires downgrading to 0.19.0 first, disabling Cursor, then updating.

Step 1 — Clean install 0.19.0

Remove the app and all data

killall CodexBar 2>/dev/null sudo rm -rf /Applications/CodexBar.app rm -rf ~/Library/Application\ Support/com.steipete.codexbar rm -rf ~/Library/Caches/com.steipete.codexbar rm -rf ~/Library/Preferences/com.steipete.codexbar.plist rm -rf ~/Library/Saved\ Application\ State/com.steipete.codexbar.savedState rm -rf ~/Library/Containers/com.steipete.codexbar rm -rf ~/Library/HTTPStorages/com.steipete.codexbar rm -rf ~/Library/WebKit/com.steipete.codexbar

Install 0.19.0 directly (brew always installs latest, so use the DMG)

curl -L https://github.com/steipete/CodexBar/releases/download/v0.19.0/CodexBar-0.19.0.dmg -o /tmp/CodexBar-0.19.dmg hdiutil attach /tmp/CodexBar-0.19.dmg cp -R /Volumes/CodexBar/CodexBar.app /Applications/ hdiutil detach /Volumes/CodexBar

Step 2 — Disable Cursor

Open the app, go to Settings → Providers and disable Cursor.

Step 3 — Update to 0.20

sudo rm -rf /Applications/CodexBar.app brew install --cask steipete/tap/codexbar

The app will now stay open on 0.20 with Cursor disabled.

— Reply to this email directly, view it on GitHub https://github.com/steipete/CodexBar/issues/702#issuecomment-4258394829, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6YD3Q6GY7XAQZRBC5H3NW34WCILVAVCNFSM6AAAAACXWBDYCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DENJYGM4TIOBSHE . You are receiving this because you commented.Message ID: @.***>

Kevin-Ting avatar Apr 16 '26 08:04 Kevin-Ting

I am certainly aware of this approach, but I specifically need to know the quota for the Cursor account.:)

Giovannini Barbosa @.***> 于2026年4月16日周四 16:09写道: …

Just sharing if someone else isn't aware of the approach :) (btw, I wasn't and was stuck with this issue for a few hours), unfortunately, I guess, to track the quota for the Cursor with CodexBar right now only downgrading to the 0.19.0

giovanninibarbosa avatar Apr 16 '26 08:04 giovanninibarbosa

My situation is a bit more complicated: I need to use both Codex's Prolite and Cursor simultaneously, so I have no choice but to wait for the 0.21 update :)

Giovannini Barbosa @.***> 于2026年4月16日周四 16:23写道:

giovanninibarbosa left a comment (steipete/CodexBar#702) https://github.com/steipete/CodexBar/issues/702#issuecomment-4258478536

I am certainly aware of this approach, but I specifically need to know the quota for the Cursor account.:)

Giovannini Barbosa @.***> 于2026年4月16日周四 16:09写道: … <#m_-167457994690811649_>

Just sharing if someone else isn't aware of the approach :) (btw, I wasn't and was stuck with this issue for a few hours), unfortunately, I guess, to track the quota for the Cursor with CodexBar right now only downgrading to the 0.19.0

— Reply to this email directly, view it on GitHub https://github.com/steipete/CodexBar/issues/702#issuecomment-4258478536, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6YD3QY5DACQCJ22YFSVJLL4WCKBZAVCNFSM6AAAAACXWBDYCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DENJYGQ3TQNJTGY . You are receiving this because you commented.Message ID: @.***>

Kevin-Ting avatar Apr 16 '26 08:04 Kevin-Ting

This is fixed in latest release. Thanks for reporting @dstier-git .

ratulsarna avatar Apr 20 '26 12:04 ratulsarna