scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
478 stars 17 forks source link

gBar fails to launch with std::out_of_range #49

Closed ChristianWSmith closed 1 year ago

ChristianWSmith commented 1 year ago

Describe the bug gBar fails to launch

Steps to Reproduce

  1. Install gBar through Nix Home Manager like this:
  2. gBar bar 0

Expected behavior gBar should open

Screenshots/Error logs

christian@nixos ~ (main)> gBar bar 0
Set value for AudioInput: false
Set value for AudioMaxVolume: 100
Set value for AudioMinVolume: 0
Set value for AudioNumbers: false
Set value for AudioRevealer: false
Set value for AudioScrollSpeed: 5
Set value for BatteryFolder: /sys/class/power_supply/BAT1
Set value for CPUThermalZone: /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
Set value for CenterTime: true
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string_view::substr: __pos (which is 18446744073709551615) > __size (which is 1)
fish: Job 1, 'gBar bar 0' terminated by signal SIGABRT (Abort)
christian@nixos ~ (main) [SIGABRT]> 

Information about your system and gBar

scorpion-26 commented 1 year ago

Thanks for the report. Should be fixed now. Problem was caused by the empty string DateTimeLocale: generated by the nix module.