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] The panel does not respond #354

Open
IceDBorn opened this issue Nov 25, 2024 · 16 comments
Open

[BUG] The panel does not respond #354

IceDBorn opened this issue Nov 25, 2024 · 16 comments

Comments

@IceDBorn
Copy link

The panel stops responding at random times. I have to restart the app to fix this. Mostly happens during heavy operations or when a lot of window changes happen on the hyprland side. The modules I use are playerctl, hyprland taskbar, tray and the submenu/power menu.

@nwg-piotr
Copy link
Owner

It happens to me too, like once a week. Unfortunately I haven't yet managed to catch any backtrace, so no idea. :/

@IceDBorn
Copy link
Author

IceDBorn commented Nov 25, 2024

If this was occuring once a week, I would not even open this issue. It occurs to me every 30 minutes or so. Even now, my panel is not responding. Restarting it...

@nwg-piotr
Copy link
Owner

Could you start it from the terminal window and wait for it to freeze? Possibly we'll see something useful in the output.

@IceDBorn
Copy link
Author

@nwg-piotr We'll do once I get back home!

@IceDBorn
Copy link
Author

I do not see anything related. The panel did not respond at the moment the screenshot was taken. After some time (30-40s), the panel started responding again and showed all of the hyprland windows/instances. Still, nothing new printed at the output of the command.

image

@IceDBorn
Copy link
Author

I have created a custom executor which uses curl to determine if my VPN connection is active. When I do not actually have an internet connection though, curl takes a long time to timeout. It seems like the panel freezes until the latest run of the executor is finished. Are the modules not running asynchronously?

@nwg-piotr
Copy link
Owner

nwg-piotr commented Nov 25, 2024

Executor's threads are daemonized, so this should not be the case.

What's not is the Hyprland watcher. I'll try adding daemon=True.

Are you by any chance on Nvidia? I saw a lot of lines with invalid (non-UTF-8) characters thrown from Hyprland socket2 with some apps running on Nvidia. The code should be resistant to the issue, but who knows?

@nwg-piotr
Copy link
Owner

Let's see if this changes something. Released in v0.9.52.

@IceDBorn
Copy link
Author

Nope, I'm using an AMD GPU (RX 6600XT). I'll test this later and report back.

@IceDBorn
Copy link
Author

I just tested with 0.9.52. The panel still freezes if I try to spawn a lot of hyprland windows/clients at the same time. Maybe you should debounce the hyprland watcher?

@nwg-piotr
Copy link
Owner

How many? I have 28 windows open at the time, and nothing freezes.

@IceDBorn
Copy link
Author

IceDBorn commented Nov 26, 2024

@nwg-piotr I just open a lot of kitty windows at the same time and the panel freezes. Not a lot, 4-5 windows are enough. I'll record a video and show you how my panel responds.

@nwg-piotr
Copy link
Owner

Is 36 kitty windows enough? I have 4 panel instances (on 3 outputs) and all are butter-fluent.

https://youtu.be/n7snVbzKVII

@IceDBorn
Copy link
Author

Well, take a look at this one https://odysee.com/ngw-panel-not-responding:0

@IceDBorn
Copy link
Author

Btw, the panel started responding again at least 1 minute after I had finished recording.

@nwg-piotr
Copy link
Owner

There will be no solution until I manage to reproduce the issue on my side.

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