cmacrae / spacebar

A minimal status bar for macOS. Ideal for use with tiling window managers like yabai
MIT License
1.22k stars 52 forks source link

spacebar segfaults on macOS Monterey 12.0.1 #92

Closed mocdaniel closed 2 years ago

mocdaniel commented 2 years ago

I upgraded macOS to 12.0.1 yesterday, and after the latest complete reboot of my Macbook 2020 (Intel Chip) spacebar segfaults. I tried both, the current master as well as the fork from #91 , they both behave the same.

I narrowed it down to the configuration option spaces_for_all_displays on since the crashes stop once I turn it off. Strangely, no spaces are shown at all once I turn this option off, though. I thought something might be wrong on macOS' side with detecting attached displays since it worked before the reboot when I had another screen attached at work, but cscreen reports the correct setup:

cscreen                                                           
DisplayID  Index     Depth     Width     Height  Refresh
 4280f80       1        32      1440        900     0
use -h to display all usage options

My configuration looks as follows:

#!/bin/bash

/usr/local/bin/spacebar -m config position           top
/usr/local/bin/spacebar -m config height             32
/usr/local/bin/spacebar -m config title              on
/usr/local/bin/spacebar -m config spaces             on
/usr/local/bin/spacebar -m config clock              on
/usr/local/bin/spacebar -m config power              on
/usr/local/bin/spacebar -m config padding_left       20
/usr/local/bin/spacebar -m config padding_right      20
/usr/local/bin/spacebar -m config spacing_left       40
/usr/local/bin/spacebar -m config spacing_right      40
/usr/local/bin/spacebar -m config text_font          "Inconsolata Nerd Font Mono:Bold:18.0"
/usr/local/bin/spacebar -m config icon_font          "Inconsolata Nerd Font Mono:Bold:22.0"
/usr/local/bin/spacebar -m config background_color   0xff282828
/usr/local/bin/spacebar -m config foreground_color   0xffebdbb2
/usr/local/bin/spacebar -m config space_icon_color   0xfffb4934
/usr/local/bin/spacebar -m config power_icon_color   0xfffabd2f
/usr/local/bin/spacebar -m config battery_icon_color 0xffb8bb26
/usr/local/bin/spacebar -m config clock_icon_color   0xfffe8019
/usr/local/bin/spacebar -m config space_icon_strip   一 二 三  四 五 六 七 八 九 十
/usr/local/bin/spacebar -m config clock_icon         
/usr/local/bin/spacebar -m config clock_format       "%R"
/usr/local/bin/spacebar -m config power_icon_strip    
/usr/local/bin/spacebar -m config space_icon         
/usr/local/bin/spacebar -m config display            all
/usr/local/bin/spacebar -m config spaces_for_all_displays  on

echo "/usr/local/bin/spacebar configuration loaded"
mocdaniel commented 2 years ago

I got the mentioned fork running by turning on System Settings -> Mission Control -> Monitors use different workspaces.

cmacrae commented 2 years ago

91 has now been merged & released. Are you able to test this @mocdaniel? 🙏 I haven't upgraded to Monterey yet

mocdaniel commented 2 years ago

I could get v1.4.0 working by updating via Homebrew, works out of the box. Thank you very much for your continued efforts, much appreciated!

cmacrae commented 2 years ago

Great! Glad it works :) Sorry it took me a while to get around to!