Closed mihirlad55 closed 4 years ago
Can you post the following:
--log=trace
Full polybar log:
❯ pkill polybar ❯ polybar --log=trace -c blocks example notice: Parsing config file: blocks - config_parser: Parsing blocks * Enabling xresource manager * Created ipc channel at: /tmp/polybar_mqueue.2218 * Environment var ${MONITOR} is undefined, using defined fallback value "" * Loaded monitor LVDS-1 (1600x900+0+0) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Bar geometry: 1600x21+0+0; Borders: 0,0,0,0 - bar: Attach X event sink - bar: Attach signal receiver - controller: Install signal handler - controller: Setup user-defined modules - module/dwm: Deconstructing error: Disabling module "dwm" (reason: [dwmipcpp] Cannot disconnect from main socket. Already disconnected.) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color4" (value=#BD93F9) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) * Found matching X resource "color1" (value=#FF5555) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) - pulseaudio: started mainloop notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo * Found matching X resource "background" (value=#282a36) * Found matching X resource "color6" (value=#8BE9FD) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color9" (value=#FF6E67) - pulseaudio: started mainloop notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color3" (value=#F1FA8C) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) - module/bat-img: Attach inotify at /sys/class/power_supply/BAT0/energy_now - module/bat-img: Attach inotify at /sys/class/power_supply/BAT0/status * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) - module/battery: Attach inotify at /sys/class/power_supply/BAT0/energy_now - module/battery: Attach inotify at /sys/class/power_supply/BAT0/status * Found matching X resource "background" (value=#282a36) * Found matching X resource "color10" (value=#5AF78E) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color8" (value=#4D4D4D) - module/net: Deconstructing error: Disabling module "net" (reason: Invalid network interface "wlp2s0b1") * Starting application - controller: Main thread id = 1 * Starting module/spotify * Starting module/date * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2227 to finish... * Starting module/key-icon * Starting module/xkeyboard - module/key-icon: Thread id = 2 * Starting module/sep * Starting module/vol-img - module/vol-img: Thread id = 3 * Starting module/pulseaudio * Starting module/sep - module/pulseaudio: Thread id = 4 * Starting module/bat-img - module/sep: Thread id = 5 - module/bat-img: Thread id = 6 * Starting module/battery * Starting module/sep * Entering event loop (thread-id=1) - module/xkeyboard: Thread id = 7 * Eventqueue worker (thread-id=8) - bar: Create renderer - renderer: Get TrueColor visual - renderer: Allocate colormap - module/sep: Thread id = 9 - module/date: Thread id = 10 - module/battery: Thread id = 11 - module/battery: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - module/bat-img: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - renderer: Allocate window pixmaps - renderer: Allocate graphic contexts - renderer: Allocate alignment blocks - renderer: Allocate cairo components - module/bat-img: Start of subthread - module/sep: Thread id = 12 - renderer: Load fonts * Configured DPI = 96x96 notice: Loaded font "Source Code Pro:style:medium:size=8" (name=Source Code Pro, offset=1, file=/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Medium.otf) notice: Loaded font "Material Design Icons:style=Regular:pixelsize=14:antialias=true" (name=Material Design Icons, offset=2, file=/usr/share/fonts/materialdesignicons-webfont.ttf) notice: Loaded font "MesloLGS NF:style=Regular:size=15" (name=MesloLGS NF, offset=3, file=/usr/share/fonts/TTF/MesloLGS-NF-Regular.ttf) notice: Loaded font "Weather Icons:size=12" (name=Weather Icons, offset=2, file=/home/juan/.local/share/fonts/weathericons.ttf) notice: Loaded font "Material Design Icons:style=Regular:pixelsize=16" (name=Material Design Icons, offset=1, file=/usr/share/fonts/materialdesignicons-webfont.ttf) - Activate root background manager - background_manager: Finding root visual - background_manager: Got root visual with depth 24 - background_manager: Allocating pixmap - background_manager: Allocating graphics context - background_manager: Allocating cairo surface - command: Exited with status 0 - background_manager: Fetching pixmap - background_manager: root pixmap (23068676:24) 1600x900+0+0 - background_manager: Copying from root pixmap (23068676:24) 1600x21+0+0 * Bar window: 0x0800001 - bar: Reconfigure window error: Failed to restack bar window - bar: Set window WM_NAME - bar: Set window _NET_WM_WINDOW_TYPE - bar: Set window _NET_WM_STATE - bar: Set window _NET_WM_DESKTOP - bar: Set window _NET_WM_PID - bar: Map window - background_manager: Fetching pixmap - background_manager: root pixmap (23068676:24) 1600x900+0+0 - background_manager: Copying from root pixmap (23068676:24) 1600x21+0+0 - bar: Received expose event - bar: Draw empty bar - bar: Setup tray manager * module/spotify: Rebuilding cache * module/date: Rebuilding cache * module/key-icon: Rebuilding cache * module/xkeyboard: Rebuilding cache * module/sep: Rebuilding cache * module/vol-img: Rebuilding cache * module/pulseaudio: Rebuilding cache * module/sep: Rebuilding cache * module/bat-img: Rebuilding cache * module/battery: Rebuilding cache * module/sep: Rebuilding cache - bar: Force update * Redrawing bar window - renderer: flush(2 geom=131x21+735+0, falloff=0) - renderer: flush(3 geom=217x21+1383+0, falloff=0) * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2245 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2246 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2248 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2249 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2250 to finish... - command: Exited with status 0 * module/bat-img: Polling values (inotify fallback) * module/battery: Polling values (inotify fallback) - module/bat-img: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - module/battery: Inotify event reported for /sys/class/power_supply/BAT0/energy_now * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2251 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2252 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2253 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2254 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2255 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 2256 to finish... - command: Exited with status 0 notice: Termination signal received, shutting down... - controller: Uninstall sighandler - controller: Detach signal receiver - controller: Stop modules - module/spotify: Release sleep lock * module/spotify: Stopping - module/spotify: Release sleep lock * Deconstruction of module/spotify took 0 ms. * module/date: Stopping - module/date: Release sleep lock * Deconstruction of module/date took 0 ms. * module/key-icon: Stopping - module/key-icon: Release sleep lock * Deconstruction of module/key-icon took 0 ms. * module/xkeyboard: Stopping - module/xkeyboard: Release sleep lock * Deconstruction of module/xkeyboard took 0 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. * module/vol-img: Stopping - module/vol-img: Release sleep lock * Deconstruction of module/vol-img took 0 ms. * module/pulseaudio: Stopping - module/pulseaudio: Release sleep lock * Deconstruction of module/pulseaudio took 0 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. * module/bat-img: Stopping * module/bat-img: Polling values (inotify fallback) * module/battery: Polling values (inotify fallback) - module/bat-img: Release sleep lock - module/battery: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - module/bat-img: End of subthread * Deconstruction of module/bat-img took 934 ms. * module/battery: Stopping - module/battery: Release sleep lock * Deconstruction of module/battery took 139 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. - controller: Joining threads - module/spotify: Deconstructing - module/date: Deconstructing - module/key-icon: Deconstructi
Polybar config (I need to say that this is the config file I used to use with bspwm, I just added the dwm module):
background = ${xrdb:background} foreground = ${xrdb:foreground} color1 = ${xrdb:color1} color2 = ${xrdb:color2} color3 = ${xrdb:color3} color4 = ${xrdb:color4} color5 = ${xrdb:color5} color6 = ${xrdb:color6} color7 = ${xrdb:color7} color8 = ${xrdb:color8} color9 = ${xrdb:color9} color10 = ${xrdb:color10} color11 = ${xrdb:color11} color12 = ${xrdb:color12} color13 = ${xrdb:color13} color14 = ${xrdb:color14} color15 = ${xrdb:color15} [bar/example] monitor = ${env:MONITOR:} width = 100% height = 21 radius = 0 fixed-center = true enable-ipc = true background = ${colors.background} foreground = ${colors.foreground} offset-x = 0 line-size = 2 line-color = border-bottom-size = 0 border-top-size = 0 border-top-color = ${colors.background} border-bottom-color = ${colors.background} border-size = border-color = padding-left = 0 padding-right = 0 module-margin-left = module-margin-right = locale = es_MX.UTF-8 ;======================================== ; FUENTES ;======================================== font-0 = Source Code Pro:style:medium:size=8;1 font-1 = Material Design Icons:style=Regular:pixelsize=14:antialias=true;2 font-2 = MesloLGS NF:style=Regular:size=15;3 font-3 = Weather Icons:size=12;2 font-4 = Material Design Icons:style=Regular:pixelsize=16;1 ;========================================= ;====== MODULOS ========= modules-left = dwm spotify modules-center = date modules-right = key-icon xkeyboard sep vol-img pulseaudio sep bat-img battery sep net tray-position = none tray-padding = 0 tray-background = ;tray-underline = #1C98C9 ;tray-detached = true wm-restack = bspwm ;wm-restack = i3 override-redirect = false ;cosas para bspwn que no se ;scroll-up = bspwm-desknext ;scroll-down = bspwm-deskprev ;cambiar de escritorio con la mousewheel ;scroll-up = i3wm-wsnext ;scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize ;============ ; MÓDULOS ;============ [module/dwm] type = internal/dwm format =; Left-click to view tag, right-click to toggle tag view enable-tags-click = false ; Left-click to set secondary layout, right-click to switch to previous layout enable-layout-click = false ; Scroll to cycle between available layouts enable-layout-scroll = false ; Wrap when scrolling and reaching begining/end of layouts layout-scroll-wrap = false ; Reverse scroll direction layout-scroll-reverse = false ; If enable-layout-click = true, clicking the layout symbol will switch to this layout secondary-layout-symbol = [M] ; Separator in between shown tags ; label-separator = | ; Title of currently focused window ; Available tokens: ; %title% label-title = %title% label-title-padding = 2 label-title-foreground = #ffffff label-title-maxlen = 30 ; Symbol of current layout ; Available tokens: ; %symbol% label-layout = %symbol% label-layout-padding = 2 label-layout-foreground = #000 label-layout-background = #ffffff ; Text to show when currently focused window is floating label-floating = F ; States: focused, unfocused, visible, urgent, empty ; Available tokens: ; %name% ; focused = Active tag on focused monitor label-focused = %name% label-focused-background = #000000 label-focused-underline= #ffffff label-focused-padding = 2 ; unfocused = Inactive tag on any monitor label-unfocused = %name% label-unfocused-padding = 2 ; visible = Active tag on unfocused monitor label-visible = %name% label-visible-background = #ffffff label-visible-underline = #3434334 label-visible-padding = #212121 ; urgent = Tag with urgency hint set label-urgent = %name% label-urgent-background = #aeaeae label-urgent-padding = 2 ; empty = Tags with no windows assigned ; This can be set to an empty string to hide empty tags label-empty = %name% label-empty-background = #ffffff label-empty-padding = 2 [module/xwindow] type = internal/xwindow format-padding = label = %title:0:30:...% format-background = ${colors.background-wdg} [module/key-icon] type = internal/xkeyboard blacklist-0 = num lock format = format-background = ${colors.color2} format-foreground = ${colors.background} label-indicator-padding = 2 label-indicator-margin = 1 indicator-icon-0 = "caps lock; ; " label-indicator-on-capslock = %icon% label-indicator-off-capslock = %icon% label-indicator-on-capslock-background =${colors.color1} [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock format = " " format-background = ${colors.foreground} format-foreground = ${colors.background} format-prefix-background = ${colors.color2} format-prefix-foreground = ${colors.background} label-layout = %icon% label-indicator-padding = 2 label-indicator-margin = 1 layout-icon-0 = latam; mex layout-icon-1 = us; usa [module/bspwm] type = internal/bspwm ws-icon-0 = 1;I ws-icon-1 = 2;II ws-icon-2 = 3;III ws-icon-3 = 4;IV ws-icon-4 = 5;V ws-icon-5 = 6;VI ws-icon-6 = 7;VII ws-icon-7 = 8; ws-icon-8 = 9; format = label-focused = %name% label-focused-foreground = ${colors.background} label-focused-background = ${colors.foreground} label-focused-underline = ${colors.color4} label-focused-overline = label-focused-padding = 1 label-occupied = %name% label-occupied-padding = 1 label-occupied-foreground = ${colors.background} label-occupied-background = ${colors.foreground} label-empty = %name% label-empty-foreground = ${colors.color8} label-empty-background = label-empty-padding = 1 label-monocle = "" label-tiled = label-floating = " " label-sticky = " " label-sticky-foreground = ${colors.background} label-sticky-background = ${colors.color4} label-tiled-foreground = ${colors.background} label-tiled-background = ${colors.color4} label-tiled-padding = 1 label-monocle-foreground = ${colors.background} label-monocle-background = ${colors.color4} label-monocle-padding = 1 label-floating-foreground = ${colors.background} label-floating-background = ${colors.color4} format-background = ${colors.background} ; Separator in between workspaces ;label-separator = " " [module/i3] type = internal/i3 format = index-sort = false wrapping-scroll = false format-background= #5C7DA7 ;pin-workspaces = true label-mode-padding = 1 label-mode-foreground = #FFF label-mode-background = label-focused = %name% ;label-focused-background = $ label-focused-background = label-focused-underline = #E2C487 label-focused-padding = ${module/bspwm.label-focused-padding} label-unfocused = %name% label-unfocused-padding = ${module/bspwm.label-occupied-padding} labl-unfocused-background = label-visible = %name% label-visible-background = label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} label-urgent = %name% label-urgent-background = ${module/bspwm.label-urgent-background} label-urgent-padding = ${module/bspwm.label-urgent-padding} ;label-separator ="%{T3} %{T-}" [module/date] type = internal/date interval = 1 date =" %b %e," date-alt = " %A %e de %B de %Y," time = "%H:%M " time-alt = "%H:%M:%S " format-prefix = " " format-prefix-foreground = ${colors.background} format-prefix-background = ${colors.color4} ;format-underline = #e6c9c4 label =%date% %time% label-background = ${colors.foreground} label-foreground = ${colors.background} format-padding = [module/mpd] type = internal/mpd ; Host where mpd is running (either ip or domain name) ; Can also be the full path to a unix socket where mpd is running. host = 127.0.0.1 port = 6600 ; Seconds to sleep between progressbar/song timer sync ; Default: 1 interval = 2 label-song = " %artist% - %title%" label-offline = "" label-foreground = ${root.foreground} format-background = ${colors.background} [module/pulseaudio] type = internal/pulseaudio format-volume = " " format-muted = " " label-volume = " %percentage%% " label-muted = " Mute " label-muted-foreground = ${colors.background} label-muted-background = ${colors.foreground} label-volume-foreground = ${colors.background} label-volume-background = ${colors.foreground} click-right = exec pavucontrol & [module/vol-img] type = internal/pulseaudio format-volume = " " format-muted = " " format-volume-foreground = ${colors.background} format-muted-foreground = ${colors.background} format-volume-background = ${colors.color6} format-muted-background = ${colors.color9} ramp-volume-0 = " " ramp-volume-1 = " " ramp-volume-2 = " " click-right = exec pavucontrol & [module/battery] type = internal/battery battery = BAT0 adapter = ADP1 full-at = 98 format-charging-background = ${colors.foreground} format-discharging-background = ${self.format-charging-background} format-full-background = ${self.format-charging-background} format-charging = format-discharging = format-full = label-charging = " %percentage%% " label-discharging = " %percentage%% " label-full = " %percentage%% " format-full-foreground = ${colors.background} format-charging-foreground = ${self.format-full-foreground} format-discharging-foreground = ${self.format-full-foreground} [module/bat-img] type = internal/battery battery = BAT0 adapter = ADP1 full-at = 90 format-charging-background = ${colors.color2} format-discharging-background = ${colors.color3} format-full-background = ${colors.color2} format-charging-foreground = ${colors.background} format-discharging-foreground = ${colors.background} format-full-foreground = ${colors.background} format-charging = format-discharging = format-full = ramp-capacity-0 = " " ramp-capacity-1 = " " ramp-capacity-2 = " " ramp-capacity-3 = " " ramp-capacity-4 = " " ramp-capacity-5 = " " ramp-capacity-6 = " " ramp-capacity-7 = " " ramp-capacity-8 = " " animation-charging-0 = " " animation-charging-1 = " " animation-charging-2 = " " animation-charging-3 = " " animation-charging-4 = " " animation-charging-5 = " " animation-charging-6 = " " animation-charging-7 = " " animation-charging-8 = " " animation-charging-framerate = 750 label-full = " " [module/net] type = internal/network interface = wlp2s0b1 interval = 15 format-connected = format-disconnected = label-connected = " " label-disconnected = " " format-connected-background = ${colors.color10} format-connected-foreground = ${colors.background} format-disconnected-background = ${colors.color8} format-disconnected-foreground = ${colors.background} [module/spotify] type = custom/script interval = 1 format-prefix = " " format = "
So it looks like the module is deconstructing causing the dwmipc::Connection
object to deconstruct and try to disconnect from a disconnected connection. What's strange is it shouldn't be trying to disconnect an already disconnected connection.
What's also strange is it doesn't say in the logs why the module is being deconstructed. I'm going to add a bunch of debug statements to see where it fails.
@juacq97 When you get a chance, please clone the feature-dwm
branch and post the polybar log with --log=trace
. Also please wrap the log in the following <details>
tags:
<details>
<pre>
... polybar log ...
</pre>
</details>
❯ error: Disabling module "net" (reason: Invalid network interface "wlp2s0b1") ❯ polybar --log=trace -c blocks example notice: Parsing config file: blocks - config_parser: Parsing blocks * Enabling xresource manager * Created ipc channel at: /tmp/polybar_mqueue.5801 * Environment var ${MONITOR} is undefined, using defined fallback value "" * Loaded monitor LVDS-1 (1600x900+0+0) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Bar geometry: 1600x21+0+0; Borders: 0,0,0,0 - bar: Attach X event sink - bar: Attach signal receiver - controller: Install signal handler - controller: Setup user-defined modules * module/dwm: Connected to dwm socket * module/dwm: Initialized formatter and labels * module/dwm: Initialized monitors * module/dwm: Initialized tags - module/dwm: Deconstructing error: Disabling module "dwm" (reason: [dwmipcpp] Cannot disconnect from main socket. Already disconnected.) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color4" (value=#BD93F9) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) * Found matching X resource "color1" (value=#FF5555) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) - pulseaudio: started mainloop notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo * Found matching X resource "background" (value=#282a36) * Found matching X resource "color6" (value=#8BE9FD) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color9" (value=#FF6E67) - pulseaudio: started mainloop notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color3" (value=#F1FA8C) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) - module/bat-img: Attach inotify at /sys/class/power_supply/BAT0/energy_now - module/bat-img: Attach inotify at /sys/class/power_supply/BAT0/status * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) - module/battery: Attach inotify at /sys/class/power_supply/BAT0/energy_now - module/battery: Attach inotify at /sys/class/power_supply/BAT0/status * Found matching X resource "background" (value=#282a36) * Found matching X resource "color10" (value=#5AF78E) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color8" (value=#4D4D4D) - module/net: Deconstructing error: Disabling module "net" (reason: Invalid network interface "wlp2s0b1") * Starting application - controller: Main thread id = 1 * Starting module/spotify * Starting module/date * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 5809 to finish... - module/date: Thread id = 2 * Starting module/key-icon * Starting module/xkeyboard * Starting module/sep * Starting module/vol-img - module/sep: Thread id = 3 * Starting module/pulseaudio * Starting module/sep * Starting module/bat-img * Starting module/battery * Starting module/sep * Entering event loop (thread-id=1) * Eventqueue worker (thread-id=4) - bar: Create renderer - renderer: Get TrueColor visual - renderer: Allocate colormap - renderer: Allocate output window - module/sep: Thread id = 5 - module/pulseaudio: Thread id = 6 - module/vol-img: Thread id = 7 - module/xkeyboard: Thread id = 8 - renderer: Allocate window pixmaps - renderer: Allocate graphic contexts - renderer: Allocate alignment blocks - renderer: Allocate cairo components - module/sep: Thread id = 9 - module/bat-img: Thread id = 10 - module/bat-img: Start of subthread - module/battery: Thread id = 11 - module/key-icon: Thread id = 12 - module/bat-img: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - module/battery: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - renderer: Load fonts notice: Loaded font "Source Code Pro:style:medium:size=8" (name=Source Code Pro, offset=1, file=/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Medium.otf) notice: Loaded font "Material Design Icons:style=Regular:pixelsize=14:antialias=true" (name=Material Design Icons, offset=2, file=/usr/share/fonts/materialdesignicons-webfont.ttf) notice: Loaded font "MesloLGS NF:style=Regular:size=15" (name=MesloLGS NF, offset=3, file=/usr/share/fonts/TTF/MesloLGS-NF-Regular.ttf) notice: Loaded font "Weather Icons:size=12" (name=Weather Icons, offset=2, file=/home/juan/.local/share/fonts/weathericons.ttf) notice: Loaded font "Material Design Icons:style=Regular:pixelsize=16" (name=Material Design Icons, offset=1, file=/usr/share/fonts/materialdesignicons-webfont.ttf) - Activate root background manager - background_manager: Finding root visual - background_manager: Got root visual with depth 24 - background_manager: Allocating pixmap - background_manager: Allocating graphics context - background_manager: Allocating cairo surface - background_manager: Fetching pixmap - background_manager: root pixmap (23068676:24) 1600x900+0+0 - command: Exited with status 0 - background_manager: Copying from root pixmap (23068676:24) 1600x21+0+0 * Bar window: 0x2a00001 - bar: Reconfigure window error: Failed to restack bar window - bar: Set window WM_NAME - bar: Set window _NET_WM_WINDOW_TYPE - bar: Set window _NET_WM_STATE - bar: Set window _NET_WM_DESKTOP - bar: Set window _NET_WM_PID - bar: Map window - background_manager: Fetching pixmap - background_manager: root pixmap (23068676:24) 1600x900+0+0 - background_manager: Copying from root pixmap (23068676:24) 1600x21+0+0 - bar: Draw empty bar - bar: Setup tray manager * module/spotify: Rebuilding cache * module/date: Rebuilding cache * module/key-icon: Rebuilding cache * module/xkeyboard: Rebuilding cache * module/sep: Rebuilding cache * module/vol-img: Rebuilding cache * module/pulseaudio: Rebuilding cache * module/sep: Rebuilding cache * module/bat-img: Rebuilding cache * module/battery: Rebuilding cache * module/sep: Rebuilding cache - bar: Force update * Redrawing bar window - renderer: flush(2 geom=131x21+735+0, falloff=0) - renderer: flush(3 geom=210x21+1390+0, falloff=0) - bar: Received expose event * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 5829 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 5830 to finish... - command: Exited with status 0 * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 5831 to finish... - command: Exited with status 0 notice: Termination signal received, shutting down... - controller: Uninstall sighandler - controller: Detach signal receiver - controller: Stop modules - module/spotify: Release sleep lock * module/spotify: Stopping - module/spotify: Release sleep lock * Deconstruction of module/spotify took 0 ms. * module/date: Stopping - module/date: Release sleep lock * Deconstruction of module/date took 0 ms. * module/key-icon: Stopping - module/key-icon: Release sleep lock * Deconstruction of module/key-icon took 0 ms. * module/xkeyboard: Stopping - module/xkeyboard: Release sleep lock * Deconstruction of module/xkeyboard took 0 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. * module/vol-img: Stopping - module/vol-img: Release sleep lock * Deconstruction of module/vol-img took 0 ms. * module/pulseaudio: Stopping - module/pulseaudio: Release sleep lock * Deconstruction of module/pulseaudio took 0 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. * module/bat-img: Stopping - module/bat-img: Release sleep lock - module/bat-img: End of subthread * Deconstruction of module/bat-img took 923 ms. * module/battery: Stopping - module/battery: Release sleep lock * Deconstruction of module/battery took 30 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. - controller: Joining threads - module/spotify: Deconstructing - module/date: Deconstructing - module/key-icon: Deconstructing - module/xkeyboard: Deconstructing - module/sep: Deconstructing - module/vol-img: Deconstructing - module/pulseaudio: Deconstructing - module/sep: Deconstructing - module/bat-img: Deconstructing - module/battery: Deconstructing - module/sep: Deconstructing - ipc: Removing file handle * Waiting for spawned processes to end * Reached end of application...
Here is
Ok I think I might have an idea of what's going wrong. Could you please post the output of dwm-msg get_layouts
?
After that, clone issue-8-debugging
and try running it again with --log=trace
and wrap the log as follows:
<details>
<pre>
INSERT LOG HERE
</pre>
</details>
I took a peek at your dwm
repo on github, I noticed that you have this in your config.h:
static const Layout layouts[] = {
/* symbol arrange function */
{ "", tile }, /* first entry is default */
{ "", dwindle },
{ "", grid },
{ "", centeredmaster },
{ "", centeredfloatingmaster },
{ "", monocle },
{ "[D]", deck },
{ NULL, NULL },
};
I think the module might be failing because of the NULL where a string should be. Did this not cause dwm to crash for you? To be honest, I'd be surprised if that didn't cause you any crashes with dwm in the past. Try setting that to the following and recompiling dwm:
static const Layout layouts[] = {
/* symbol arrange function */
{ "", tile }, /* first entry is default */
{ "", dwindle },
{ "", grid },
{ "", centeredmaster },
{ "", centeredfloatingmaster },
{ "", monocle },
{ "[D]", deck },
{ "",, NULL },
};
Let me know if this fixes the issue.
❯ dwm-msg get_layouts
Unexpectedly reached EOF while reading header.Read 0 bytes, expected 2301734580 bytes.
Error receiving response from socket. The connection might have been lost.
notice: Parsing config file: blocks - config_parser: Parsing blocks * Enabling xresource manager * Created ipc channel at: /tmp/polybar_mqueue.10382 * Environment var ${MONITOR} is undefined, using defined fallback value "" * Loaded monitor LVDS-1 (1600x900+0+0) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Bar geometry: 1600x21+0+0; Borders: 0,0,0,0 - bar: Attach X event sink - bar: Attach signal receiver - controller: Install signal handler - controller: Setup user-defined modules * module/dwm: Connected to dwm socket * module/dwm: Initialized formatter and labels * module/dwm: Initialized monitors * module/dwm: Initialized tags - module/dwm: Deconstructing error: Disabling module "dwm" (reason: [dwmipcpp] Socket with file descriptor 7 closed) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color4" (value=#BD93F9) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) * Found matching X resource "color1" (value=#FF5555) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) - pulseaudio: started mainloop notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo * Found matching X resource "background" (value=#282a36) * Found matching X resource "color6" (value=#8BE9FD) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color9" (value=#FF6E67) - pulseaudio: started mainloop notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color3" (value=#F1FA8C) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color2" (value=#50FA7B) - module/bat-img: Attach inotify at /sys/class/power_supply/BAT0/energy_now - module/bat-img: Attach inotify at /sys/class/power_supply/BAT0/status * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) * Found matching X resource "background" (value=#282a36) * Found matching X resource "foreground" (value=#f8f8f2) - module/battery: Attach inotify at /sys/class/power_supply/BAT0/energy_now - module/battery: Attach inotify at /sys/class/power_supply/BAT0/status * Found matching X resource "background" (value=#282a36) * Found matching X resource "color10" (value=#5AF78E) * Found matching X resource "background" (value=#282a36) * Found matching X resource "color8" (value=#4D4D4D) - module/net: Deconstructing error: Disabling module "net" (reason: Invalid network interface "wlp2s0b1") * Starting application - controller: Main thread id = 1 * Starting module/spotify * Starting module/date * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 10391 to finish... * Starting module/key-icon * Starting module/xkeyboard - module/date: Thread id = 2 - module/key-icon: Thread id = 3 * Starting module/sep * Starting module/vol-img - module/xkeyboard: Thread id = 4 - module/vol-img: Thread id = 6 - module/sep: Thread id = 5 * Starting module/pulseaudio * Starting module/sep - module/pulseaudio: Thread id = 7 * Starting module/bat-img - module/bat-img: Thread id = 8 * Starting module/battery * Starting module/sep * Entering event loop (thread-id=1) - module/bat-img: Start of subthread - module/sep: Thread id = 9 - module/battery: Thread id = 10 - module/sep: Thread id = 11 * Eventqueue worker (thread-id=12) - bar: Create renderer - renderer: Get TrueColor visual - renderer: Allocate colormap - renderer: Allocate output window - module/bat-img: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - module/battery: Inotify event reported for /sys/class/power_supply/BAT0/energy_now - renderer: Allocate window pixmaps - renderer: Allocate graphic contexts - renderer: Allocate alignment blocks - renderer: Load fonts * Configured DPI = 96x96 notice: Loaded font "Source Code Pro:style:medium:size=8" (name=Source Code Pro, offset=1, file=/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Medium.otf) notice: Loaded font "Material Design Icons:style=Regular:pixelsize=14:antialias=true" (name=Material Design Icons, offset=2, file=/usr/share/fonts/materialdesignicons-webfont.ttf) notice: Loaded font "MesloLGS NF:style=Regular:size=15" (name=MesloLGS NF, offset=3, file=/usr/share/fonts/TTF/MesloLGS-NF-Regular.ttf) notice: Loaded font "Weather Icons:size=12" (name=Weather Icons, offset=2, file=/home/juan/.local/share/fonts/weathericons.ttf) - command: Exited with status 0 notice: Loaded font "Material Design Icons:style=Regular:pixelsize=16" (name=Material Design Icons, offset=1, file=/usr/share/fonts/materialdesignicons-webfont.ttf) - Activate root background manager - background_manager: Finding root visual - background_manager: Got root visual with depth 24 - background_manager: Allocating pixmap - background_manager: Allocating graphics context - background_manager: Allocating cairo surface - background_manager: Fetching pixmap - background_manager: root pixmap (23068676:24) 1600x900+0+0 - background_manager: Copying from root pixmap (23068676:24) 1600x21+0+0 * Bar window: 0x0c00001 - bar: Reconfigure window error: Failed to restack bar window - bar: Set window WM_NAME - bar: Set window _NET_WM_WINDOW_TYPE - bar: Set window _NET_WM_STATE - bar: Set window _NET_WM_DESKTOP - bar: Set window _NET_WM_PID - bar: Map window - background_manager: Fetching pixmap - background_manager: root pixmap (23068676:24) 1600x900+0+0 - background_manager: Copying from root pixmap (23068676:24) 1600x21+0+0 - bar: Draw empty bar - bar: Setup tray manager * module/spotify: Rebuilding cache * module/date: Rebuilding cache * module/key-icon: Rebuilding cache * module/xkeyboard: Rebuilding cache * module/sep: Rebuilding cache * module/vol-img: Rebuilding cache * module/pulseaudio: Rebuilding cache * module/sep: Rebuilding cache * module/bat-img: Rebuilding cache * module/battery: Rebuilding cache * module/sep: Rebuilding cache - bar: Force update * Redrawing bar window - renderer: flush(2 geom=131x21+735+0, falloff=0) - renderer: flush(3 geom=203x21+1397+0, falloff=0) - bar: Received expose event * module/spotify: Invoking shell command: "python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'" - command: Waiting for pid 10413 to finish... - command: Exited with status 0 notice: Termination signal received, shutting down... - controller: Uninstall sighandler - controller: Detach signal receiver - controller: Stop modules - module/spotify: Release sleep lock * module/spotify: Stopping - module/spotify: Release sleep lock * Deconstruction of module/spotify took 0 ms. * module/date: Stopping - module/date: Release sleep lock * Deconstruction of module/date took 0 ms. * module/key-icon: Stopping - module/key-icon: Release sleep lock * Deconstruction of module/key-icon took 0 ms. * module/xkeyboard: Stopping - module/xkeyboard: Release sleep lock * Deconstruction of module/xkeyboard took 0 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. * module/vol-img: Stopping - module/vol-img: Release sleep lock * Deconstruction of module/vol-img took 0 ms. * module/pulseaudio: Stopping - module/pulseaudio: Release sleep lock * Deconstruction of module/pulseaudio took 0 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. * module/bat-img: Stopping - module/bat-img: Release sleep lock - module/bat-img: End of subthread * Deconstruction of module/bat-img took 959 ms. * module/battery: Stopping - module/battery: Release sleep lock * Deconstruction of module/battery took 129 ms. * module/sep: Stopping - module/sep: Release sleep lock * Deconstruction of module/sep took 0 ms. - controller: Joining threads - module/spotify: Deconstructing - module/date: Deconstructing - module/key-icon: Deconstructing - module/xkeyboard: Deconstructing - module/sep: Deconstructing - module/vol-img: Deconstructing - module/pulseaudio: Deconstructing - module/sep: Deconstructing - module/bat-img: Deconstructing - module/battery: Deconstructing - module/sep: Deconstructing - ipc: Removing file handle * Waiting for spawned processes to end * Reached end of application...
I think the module might be failing because of the NULL where a string should be. Did this not cause dwm to crash for you?
I have the cycle layouts patch and that patch added that line, I never thought about it and never gave any issue, but I deleted it, the cycle layout
is still working fine and now the dwm module IS WORKING. Now I'll work on make a fancy panel. The issue was that line, added by that patch. Thanks!!!
A ver ugly polybar and full of font-related issues, with the dwm module working now
Perfect, great to hear! Have fun with polybar! Since this should be relatively easy to detect, I'll add a couple lines to dwm-ipc
to prevent this bug for other users of the cycle layout
patch and then close this issue.
Alright, in case that fix somehow broke cycle layout, IPC patch v1.5.1 should prevent crashes caused by that patch.
Error message:
error: Disabling module "dwm" (reason: [dwmipcpp] Cannot disconnect from main socket. Already disconnected.