CodexBar 0.37.1 build 91 still crashes on memory-pressure utility queue path
CodexBar still quits for me after updating to 0.37.1 build 91.
Environment
- CodexBar: 0.37.1 / 91
- macOS: 26.5.1 (25F80)
- CPU: Apple Silicon
- Gatekeeper assessment: accepted, Notarized Developer ID
- Signature authority: Developer ID Application: Peter Steinberger (Y5PE65HELJ)
Crash
- Exception: EXC_BREAKPOINT / SIGTRAP
- Termination: SIGNAL, Trace/BPT trap: 5
- Faulting queue: com.apple.root.utility-qos
- Faulting thread: utility queue thread
- Timing: the 0.37.1 crash report was created after the app had been running for about 5.5 minutes
Top frames from the triggered thread:
_dispatch_assert_queue_fail
dispatch_assert_queue$V2.cold.1
dispatch_assert_queue
_swift_task_checkIsolatedSwift
swift_task_isCurrentExecutorWithFlagsImpl(swift::SerialExecutorRef, swift::swift_task_is_current_executor_flag)
CodexBar image offset 1402256
CodexBar image offset 3566472
_dispatch_client_callout
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_root_queue_drain_deferred_item
_dispatch_kevent_worker_thread
_pthread_wqthread
start_wqthread
The crash report also includes references to OS_dispatch_source.MemoryPressureEvent and MainActor metadata on the triggered thread. This looks similar to the v0.37.0 memory-pressure utility-queue/MainActor signature, but it happened on the installed public 0.37.1 build 91.
Local pattern
I have 14 earlier local CodexBar crash reports on 0.37.0 build 90 with the same high-level signature. The newest matching report is the only local crash report I found for 0.37.1 build 91.
Reproduction context
The exact trigger is not fully known. The app quit after installing/running 0.37.1. I can provide the full .ips privately if useful; I am not attaching it publicly here to avoid sharing local diagnostic identifiers.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 23, 2026, 12:47 PM ET / 16:47 UTC.
Summary Keep open: the linked fix is on current main, but no release tag contains it, v0.37.2 does not mention or ship it, and the owner explicitly reopened this until a fixed build ships and runtime evidence confirms the crash path is gone.
Reproducibility: no. high-confidence current-main runtime reproduction was established. The shipped v0.37.1/v0.37.2 source path and reported stack give source-level confidence, but the full .ips and installed-bundle proof are still missing.
Root-cause cluster
Relationship: canonical
Canonical: https://github.com/steipete/codexbar/issues/1704
Summary: This issue is the canonical remaining shipped-build memory-pressure utility-queue crash report; the merged follow-up PR is a candidate fix that still needs release and runtime confirmation.
Members:
fixed_by_candidate: https://github.com/steipete/codexbar/pull/1709 - This merged PR uses closing references for this issue and implements the remaining source-read isolation fix, but it has not shipped in a release.partial_overlap: https://github.com/steipete/codexbar/pull/1668 - This merged PR fixed the first memory-pressure handler isolation path and shipped in v0.37.1, but this issue reports a remaining nested source-reader crash after that release.partial_overlap: https://github.com/steipete/codexbar/issues/1686 - This older report covers the same high-level utility-qos Swift isolation crash family on v0.37.0, but the current issue is the later v0.37.1 remaining path.
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
- Add a screenshot or short recording showing the behavior.
- Add expected vs actual behavior.
- Include redacted logs or terminal output.
Next step No new automated fix PR is safe or necessary because the candidate fix is already merged; the blocker is release ownership plus redacted runtime confirmation.
Review details
Best possible solution:
Ship a build containing 3091ff966fffaad8d8d50a4999bf2dfb3e99356e, gather redacted runtime proof or reporter confirmation, then close if the memory-pressure crash is gone; symbolicate a fresh .ips and patch that path if it persists.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main runtime reproduction was established. The shipped v0.37.1/v0.37.2 source path and reported stack give source-level confidence, but the full .ips and installed-bundle proof are still missing.
Is this the best way to solve the issue?
Yes, likely: moving the real source.data reader into a nonisolated source-based handler factory is the narrowest maintainable code fix. Closing now would skip the maintainer-requested release and runtime-evidence gate.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The full .ips is not public, so binary UUID and exact symbolicated CodexBar frames still need maintainer verification if the crash persists.
- The current main fix is unreleased; users on v0.37.2 or earlier still do not have commit 3091ff966fffaad8d8d50a4999bf2dfb3e99356e.
- The remaining crash trigger is nondeterministic, so source and regression-test confidence should be paired with installed-bundle runtime evidence before cleanup close.
Codex review notes: model internal, reasoning high; reviewed against 929d55aaf1d7.
Label changes
Label changes:
- add
issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label. - add
clawsweeper:needs-live-repro: Current issue advisory state selects this label. - remove
issue-rating: 🦐 gold shrimp: Current issue advisory state no longer selects this label. - remove
clawsweeper:needs-info: Current issue advisory state no longer selects this label.
Label justifications:
P1: The issue tracks a shipped-app runtime crash that terminates the menu bar process for a real user and still lacks a released confirmed fix.impact:crash-loop: The report is about CodexBar quitting with EXC_BREAKPOINT/SIGTRAP on the memory-pressure utility queue, affecting process availability.
Evidence reviewed
What I checked:
- Issue report and maintainer follow-up: The reporter provided a v0.37.1 build 91 utility-qos Swift isolation crash stack, and steipete later commented that the linked fix landed but this should remain open until the fix ships and runtime evidence confirms the crash path is gone.
- Shipped release still has the nested source.data reader path: Both v0.37.1 and v0.37.2 create the weak source.data eventReader closure inside start() before passing it to the nonisolated handler helper, which matches the remaining crash theory from the linked fix. (
Sources/CodexBar/MemoryPressureMonitor.swift:66, f380287041b8) - Current main contains the candidate source fix: Current main adds a nonisolated makeEventHandler(source:handle:) overload that creates the source.data reader outside the MainActor start() context before hopping back for cleanup. (
Sources/CodexBar/MemoryPressureMonitor.swift:75, 929d55aaf1d7) - Current main contains focused regression coverage: The regression test builds a real DispatchSourceMemoryPressure handler, invokes it from a utility queue, and verifies handling reaches the main thread. (
Tests/CodexBarTests/MemoryPressureCacheTrimTests.swift:60, 929d55aaf1d7) - Fix provenance: Commit 3091ff966fffaad8d8d50a4999bf2dfb3e99356e merged the remaining memory-pressure source isolation fix and added the unreleased changelog note on 2026-06-23T08:26:10-07:00. (
Sources/CodexBar/MemoryPressureMonitor.swift:75, 3091ff966fff) - Release provenance: No tag contains 3091ff966fffaad8d8d50a4999bf2dfb3e99356e; gh release view shows v0.37.2 was published on 2026-06-22 and its body does not include the remaining memory-pressure source-read fix. (
CHANGELOG.md:3, 3091ff966fff)
Likely related people:
- Zihao-Qi: Authored both merged memory-pressure isolation fixes, including the current main candidate fix and regression test for this issue. (role: recent area contributor; confidence: high; commits: 8c4bdd63f3d6, 3091ff966fff; files:
Sources/CodexBar/MemoryPressureMonitor.swift,Tests/CodexBarTests/MemoryPressureCacheTrimTests.swift) - ProspectOre: GitHub PR metadata shows this contributor introduced MemoryPressureMonitor and expanded the same memory-pressure cache-trim path shortly before the crash fixes. (role: introduced behavior and adjacent area contributor; confidence: high; commits: f6f76ff9d01e, 32db84035b55; files:
Sources/CodexBar/MemoryPressureMonitor.swift,Sources/CodexBar/CodexbarApp.swift,Tests/CodexBarTests/MemoryPressureCacheTrimTests.swift) - steipete: Authored the v0.37.1/v0.37.2 release commits in the checked-out history and explicitly reopened this issue until the follow-up fix ships with runtime confirmation. (role: release verifier and recent release author; confidence: medium; commits: 244b31e81027, f380287041b8; files:
CHANGELOG.md,appcast.xml,version.env)
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
- Maintainer-only repair and merge flows require explicit commands such as
@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review. - Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
PR #1709 landed in commit 3091ff96 with the utility-queue regression test and clean autoreview. Reopening this issue until the fix ships and runtime evidence confirms the remaining crash path is gone.
Current-main verification update at d956bcca:
- The memory-pressure fix in
3091ff96remains onmainand is absent from the latest release, v0.37.2. MemoryPressureCacheTrimTestspassed in the focused 42-test parser/provider run. The regression test invokes the realDispatchSourceMemoryPressurehandler from a utility queue and verifies the main-actor hop.make checkpassed, and the full 43-shardmake testsuite passed.- Commit-scoped autoreview of
3091ff96found no actionable issues.
Decision: keep open. Source and deterministic test evidence support the fix, but no released build contains it, and I did not establish a safe, high-confidence system-memory-pressure reproduction or reporter runtime confirmation. Close after a release containing 3091ff96 plus runtime confirmation.
Fixed and shipped in CodexBar v0.38.0 via #1709 / 3091ff96.
The release isolates the remaining memory-pressure source read from main-actor state and includes the utility-queue regression test. Closing now that the fix is shipped; please reopen with a 0.38.0-or-newer crash report if the path recurs. Thanks @Zihao-Qi!