Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.27k stars 689 forks source link

DWL Module Pipe Error #2371

Open nephitejnf opened 1 year ago

nephitejnf commented 1 year ago

I have madcow's ipc v2 patch on DWL and I have the tags module in my waybar config. I keep getting a broken pipe error (error 32) when trying to run waybar in DWL. This results in it crashing. I can run waybar on DWL without the DWL module and it runs just fine and waybar runs fine in River. It seems like something is off with DWL and the IPC right now.

nephitejnf commented 1 year ago

Error log from -l debug

(waybar:20729): Gtk-WARNING **: 15:19:45.089: Theme parsing error: gtk.css:3196:35: Missing closing bracket for :not()

(waybar:20729): Gtk-WARNING **: 15:19:45.089: Theme parsing error: gtk.css:3198:35: Missing closing bracket for :not()

(waybar:20729): Gtk-WARNING **: 15:19:45.089: Theme parsing error: gtk.css:3200:35: Missing closing bracket for :not()

(waybar:20729): Gtk-WARNING **: 15:19:45.089: Theme parsing error: gtk.css:3202:35: Missing closing bracket for :not()

(waybar:20729): Gtk-WARNING **: 15:19:45.089: Theme parsing error: gtk.css:3204:35: Missing closing bracket for :not()

(waybar:20729): Gtk-WARNING **: 15:19:45.089: Theme parsing error: gtk.css:3206:35: Missing closing bracket for :not()
[2023-07-31 15:19:45.107] [info] Using configuration file /home/nephitejnf/.config/waybar/config-dwl
[2023-07-31 15:19:45.108] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2023-07-31 15:19:45.108] [debug] Try expanding: $HOME/.config/waybar/style.css
[2023-07-31 15:19:45.108] [debug] Found config file: $HOME/.config/waybar/style.css
[2023-07-31 15:19:45.108] [info] Using CSS file /home/nephitejnf/.config/waybar/style.css
[2023-07-31 15:19:45.210] [debug] Output detection done: eDP-1 (AU Optronics 0x8294)
[2023-07-31 15:19:45.211] [debug] mpd: Disconnected: enabled interval timer.
[2023-07-31 15:19:45.215] [debug] network: new default route via 10.201.0.1 on if3 metric 600
[2023-07-31 15:19:45.216] [debug] network: wlan0, new addr 10.201.0.144/16
[2023-07-31 15:19:45.216] [debug] network: wlan0, new addr 10.201.0.144/16
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0[2023-07-31 15:19:45.231] [debug] GTK widget tree:
window#waybar.background.top.eDP-1..mode-default:dir(ltr)
  decoration:dir(ltr)
  box.horizontal:dir(ltr)
    box.horizontal.modules-left:dir(ltr)
      widget:dir(ltr)
        box#tags.horizontal:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
          button.flat.text-button:dir(ltr)
            label:dir(ltr)
    box.horizontal.modules-center:dir(ltr)
    box.horizontal.modules-right:dir(ltr)
      widget:dir(ltr)
        label#mpd:dir(ltr)
      widget:dir(ltr)
        label#pulseaudio:dir(ltr)
      widget:dir(ltr)
        box#gamemode.horizontal:dir(ltr)
          image:dir(ltr)
          label:dir(ltr)
      widget:dir(ltr)
        label#network:dir(ltr)
      widget:dir(ltr)
        label#disk:dir(ltr)
      widget:dir(ltr)
        label#custom-weather:dir(ltr)
      widget:dir(ltr)
        label#battery:dir(ltr)
      widget:dir(ltr)
        box#tray.horizontal:dir(ltr)
      widget:dir(ltr)
        label#clock.1:dir(ltr)

Gdk-Message: 15:19:45.232: Error 32 (Broken pipe) dispatching to Wayland display.

Curl does interupt in the middle of startup because of my weather module.

maxhbr commented 11 months ago

I have the same issue. Was there any change or is there a solution?

tomaskallup commented 9 months ago

My dwl ipc v2 works fine for latest waybar. You can refer to my dwl code, but I don't have enough time to make patches now.

superdwl

Hey, seems like the repo is gone? I just ran into this problem and was hoping for a fix. Sadly there seems to be no way to get waybar with dwl running (with clickable tags).

maxhbr commented 9 months ago

@tomaskallup : I still had a local clone and pushed it to https://github.com/maxhbr/fork-of-DreamMaoMao-superdwl

But I was not able to extract a working IPC version out of it into my config.

tomaskallup commented 9 months ago

Thanks for the fork, I took a stab at extracting the IPC logic, but I don't see much difference compared to the original patch. If anything it seems to be missing some fullscreen & floating notifications.

I might try to debug whats happening on waybar side and see if I can atleast find out whats wrong, but I don't have C++ experience, so my hopes are low. Hopefully someone who has experience with C++ & Waybar can chime in sooner or later.