-
Notifications
You must be signed in to change notification settings - Fork 2k
Crash on every launch in 0.48.0 (112): "could not load resource bundle" (CodexBar_CodexBarCore.bundle) #2738
Copy link
Copy link
Closed
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.Exempts this issue from stale automation.
Description
Activity
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopThis issue is about crashes, hangs, restart loops, or process-level availability.This issue is about crashes, hangs, restart loops, or process-level availability.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.Exempts this issue from stale automation.
Summary
CodexBar 0.48.0 (build 112) crashes immediately on every launch — no error dialog, no window, nothing visible. The app just silently dies right after starting.
Environment
Steps to reproduce
open -a CodexBar).ipscrash report is generated each time (5 identical crashes observed in a row)Root cause (confirmed)
Running the executable directly from Terminal surfaces the actual Swift fatal error:
Note the fallback path references a local dev worktree (
.claude/worktrees/codexbar-plugin-architecture-3f1e54), which suggests this specific 0.48.0 build was packaged from a feature-branch build environment rather than the normal release pipeline.The resource bundle is actually present in the app bundle, just not where
resource_bundle_accessor.swiftlooks for it:The generated SPM resource accessor is checking
Bundle.main.bundleURL(the.approot) instead ofBundle.main.resourceURL(Contents/Resources/), which is where Xcode/SPM actually places bundle resources in a standard.app— likely a copy-bundle-resources build phase / target membership misconfiguration for this specific release.Workaround
Symlinking the bundle to the location the accessor expects fixes it:
After this, the app launches and runs normally. (Workaround is lost on the next update, obviously.)
Note
This looks like a repeat of the same failure class as #900, #894, #891, #351, #239, #230 (
Bundle.module/NSBundle.moduleassertion failures on launch) — might be worth a regression test in the release pipeline that actually launches the packaged.appbefore publishing.