SwiftBar: Segfault crashing every so often

Describe the bug I have SwiftBar set to open on login, but often when I look at my menubar it is missing and has to be restarted. I checked Console.app today and found a crash report, below. I only run one plugin, which is also included below.

To Reproduce SwiftBar-2023-07-08-171947.ips.txt

Screenshots If applicable, add screenshots to help explain your problem.

Environment:

  • macOS version: 13.4.1 Apple Silicon
  • SwiftBar version: 1.4.4

Plugin Example: Plugin: inetest.1s.sh

if ping -c 1 -t 1 8.8.8.8 &>/dev/null; then
  echo "|sfimage=checkmark.icloud"
else
  echo "|sfimage=xmark.icloud.fill"
fi

Additional Context:

  • SwiftBar set to open on login. No other configuration to my recollection.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 27 (7 by maintainers)

Most upvoted comments

All, please try running this build, it includes crash reporting(through Microsoft AppCenter, please don’t block access to it), this should help me debuggin the issue.

I think I fixed the crash reporting, please try 2.0.0-beta-1

Check if Crash Reporting is enabled in settings: Screenshot 2023-09-23 at 10 11 22

@NReilingh how a bout your experience with this build?

@melonamin Hey, sorry for the delay – I just got around to installing the crash-reporting build. I also set my plugin frequency back to 1s. I’m actually on a new mac now as well. Will see what happens from here on out and report back if I experience a crash.

@huyz no, I didn’t 😦

I should have more time in the following weeks to look into this, sorry for slow progress.

Could it be that it was crashing because I was block Microsoft AppCenter before?

Not likely, Crash Reporting is not enabled in the latest production verision. Most likely some of the other changes in this build(there are a lot of them) fixed the issue you were facing.

Anyway, keep me posted if you see any crashes, so far I don’t see anything in the report.