Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Nwg-Panel does not refresh Windows on wayland #277

Closed
kuba3351 opened this issue Dec 5, 2023 · 4 comments
Closed

[BUG] Nwg-Panel does not refresh Windows on wayland #277

kuba3351 opened this issue Dec 5, 2023 · 4 comments

Comments

@kuba3351
Copy link

kuba3351 commented Dec 5, 2023

Describe the bug
I am using Nwg-shell and Wayland on Fedora for daily driver. I am facing an issue after running nwg-panel for some time.

When I open new Windows, closing, or moving between workspaces changes are not visible on nwg-panel, new Windows does not appear and closed windows still appears.

Restarting nwg-panel helps for some time and after a while it happens again.

Nwg-panel does not hang, other controls works as expected, only Hyprland taskbar module does not work correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Have nwg-panel running for a while
  2. Open up new windows or close already opened or move to another workspace
  3. Change is not visible on nwg-panel

Expected behavior
Change should be visible on nwg-panel

Desktop (please complete the following information):

  • Linux distribution: Fedora 39
  • Hyprland version: 0.32
  • Panel version: 0.9.17
@nwg-piotr
Copy link
Owner

We need better steps to reproduce, as I've been running the panel for 4 hours now and the taskbar module still works. Could you try running the panel from terminal and observe if any error message appears?

@kuba3351
Copy link
Author

kuba3351 commented Dec 8, 2023

I ran nwg-panel from the terminal and the issue occured, there is a Python stacktrace appeared on the terminal:

Exception in thread Thread-11 (hypr_watcher):
Traceback (most recent call last):
  File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.12/threading.py", line 989, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.12/site-packages/nwg_panel/main.py", line 220, in hypr_watcher
    monitors, workspaces, clients, activewindow = h_modules_get_all()
                                                  ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/nwg_panel/tools.py", line 826, in h_modules_get_all
    return h_list_monitors(), h_list_workspaces(), h_list_clients(), h_get_activewindow()
                                                                     ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/nwg_panel/tools.py", line 817, in h_get_activewindow
    reply = hyprctl("j/activewindow")
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/nwg_panel/tools.py", line 776, in hyprctl
    s.send(cmd.encode("utf-8"))
BrokenPipeError: [Errno 32] Przerwany potok

@nwg-piotr
Copy link
Owner

This is helpful, thank you. I'll try to fix it blindly, as I still couldn't make it happen on my side.

nwg-piotr added a commit that referenced this issue Dec 10, 2023
@nwg-piotr
Copy link
Owner

Closing in hope for it to be fixed. Please re-open if I'm wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants