Skip to content

Crashes lists builds that never started, as StableBar unknown version #576

Closed

Description

@M4n0x

What happens

Settings → Status → Crashes lists reports from StableBar processes that macOS stopped in dyld before any StableBar code ran. They show as "StableBar unknown version", raise the menus' StableBar Quit Unexpectedly… item, count in Diagnostics, appear in Send feedback's crash picker, and go into the crash summaries of StableBar triage and bug reports.

On my Mac, all five crash reports from the last four days are of this kind, and none is a crash of the installed bar. Four are a bare .build/debug/StableBar binary and one is a bundle copied to a temporary folder without Sparkle.framework:

termination: namespace DYLD, indicator "Library missing", details "(terminated at launch; ignore backtrace)"
reasons: Library not loaded: @rpath/Sparkle.framework/Versions/B/Sparkle
header: "app_version": "", "build_version": ""

Since Swift 6.4.2, SwiftPM builds with the swiftbuild engine, and its .build/debug/StableBar has no @loader_path rpath, so swift run or launching that binary always fails this way. Anyone building from source collects one of these reports per launch.

Steps to reproduce

  1. With Xcode 27.2 (Swift 6.4.2), run swift build, then .build/debug/StableBar --config "$(mktemp -d)/config.json".
  2. dyld aborts with "Library not loaded: @rpath/Sparkle.framework".
  3. Open the installed StableBar's Settings → Status → Crashes.

Expected

  • A process that macOS stopped at launch, before StableBar ran, isn't listed as a StableBar crash. Starting it from a terminal already prints the dyld error, and the .ips file stays in ~/Library/Logs/DiagnosticReports.
  • A real crash of a build without a version, such as a bare binary, says it came from a development build instead of "unknown version".

Environment

  • StableBar 0.14.0-beta.20261111132143.918 (installed), crashes from development builds
  • macOS 27.2 (26B123), MacBook Pro (MacBookPro18,3)
  • Xcode 27.2, Swift 6.4.2

Evidence

~/Library/Logs/DiagnosticReports/StableBar-2026-11-11-013349.ips, header line:

{"app_name":"StableBar","app_version":"","build_version":"","bug_type":"309","os_version":"macOS 27.2 (26B123)","name":"StableBar"}

Body: procPath ~/*/StableBar (no bundle), bundleInfo absent, codeSigningID StableBar-<uuid> (ad hoc), exception EXC_CRASH (SIGABRT), termination.namespace DYLD, termination.details ["(terminated at launch; ignore backtrace)"].

Diagnosis

On main fab85bd:

  • CrashReport.swift:42 accepts any bug_type 309 report whose app_name is StableBar and never looks at termination, so a dyld launch failure counts as a crash.
  • A bare binary has no Info.plist, so macOS writes empty app_version and build_version. CrashReport.swift:57 reads them as nil, and CrashesView.swift:61 and CrashReport.swift:146 show "unknown version". MacFacts.version in BugReport.swift already calls such a build a "development build".

Proposed fix: skip reports whose termination namespace is DYLD, and label a crash without a version as a development build.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 11, 2026
  2. stablebar-releases commented on Nov 12, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.14.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions