lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
193 stars 135 forks source link

Panel Unusably Slow/Unresponsive (when pipewire isn't configured correctly) #1709

Open nyanmeister opened 2 years ago

nyanmeister commented 2 years ago
Expected Behavior

Operation as normal, able to use menu and adjust widgets without delay.

Current Behavior

When I have a broken pipewire config and the volume adjuster applet active, the panel and any interaction with it (such as its settings) only respond once every 30 seconds. Oddly, Leafpad is also affected by a broken pipewire configuration in the same way regardless of the presence of the applet, which may indicate a systemic issue in LXQt. The normal LXQt settings application and other features I was using were not affected by this slowdown.

Steps to Reproduce (for bugs)

Have the volume adjuster applet on the toolbar, and have a broken pipewire config. My broken pipewire.conf was as follows, and replicates the behavior: default.clock.quantum = 32 default.clock.min-quantum = 32 default.clock.max-quantum = 768

Context

I would like the panel and the rest of the LXQt suite to work while I troubleshoot my audio issues.

System Information
tsujan commented 2 years ago

Oddly, Leafpad is also affected by a broken pipewire configuration in the same way regardless of the presence of the applet, which may indicate a systemic issue in LXQt.

Quite the opposite, Leafpad is a GTK app, totally unrelated to LXQt, let alone to the panel. That indicates the root of your problem may be elsewhere.

nyanmeister commented 2 years ago

Quite the opposite, Leafpad is a GTK app, totally unrelated to LXQt, let alone to the panel. That indicates the root of your problem may be elsewhere.

Apologies, I had read Leafpad was bundled for LXDE and gotten mixed up. If the volume mixer applet bundled with the LXQt panel is also GTK-based, it would get this bug mostly off the code-base.

tsujan commented 2 years ago

LXQt is based on Qt. No LXQt component uses GTK.

tsujan commented 2 years ago

You could use any app with LXQt, whether it's Qt-based or GTK-based.

What I mean is that, if pipewire also affects Leafpad, the problem you see may not be in LXQt panel. For example, you could check your CPU usage. If it's high when this pipewire issue happens, all apps will be slow and unresponsive.

nyanmeister commented 2 years ago

Loading the offending config and restarting pipewire doesn't cause CPU spiking or even any output in dmesg, if it helps. Just the continued freezing with the volume applet active.