Dragging volume sliders can cause applet to crash
I'm guessing this is probably a libcosmic issue, but this is where I noticed it.
To reproduce:
- Open the sound menu from the panel.
- Drag either the speaker or mic volume slider, and move the cursor outside of the slider and/or the bounds of the menu while still dragging the slider.
I've noticed this crashes the applet on my machine (the menu goes away as well as the sound icon in the panel for several seconds). Also, I noticed other options on the menu are highlighted when you hover over them while dragging the slider.
I noticed something else with this. I don't get this issue when using my laptop's touchpad, only when I use the mouse.
I plugged in my laptop (Lemur lemp10) to my external monitors and was able to use both. I only got it to crash when I dragged the sliders with the mouse.
I'm not able to recreate the issue, but could you try checking for a logged panic from the audio applet using journalctl _COMM=cosmic-panel -e?
Here's what I see. It's very consistent for me. It happens every time I try to move the sliders with my mouse and never with my touchpad.
com.system76.CosmicAppletAudio: thread 'main' panicked at cosmic-applet-audio/src/pulse.rs:158:14:
com.system76.CosmicAppletAudio: Send message to PulseAudio server: "Full(..)"
com.system76.CosmicAppletAudio: stack backtrace:
com.system76.CosmicAppletAudio: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
process ' X_MINIMIZE_APPLET=false COSMIC_PANEL_NAME=Panel COSMIC_PANEL_SIZE=XS COSMIC_PANEL_OUTPUT=DP-1 COSMIC_PANEL_ANCHOR=Top COSMIC_PANEL_BACKGROUND=ThemeDefault RUST_BACKTRACE=1 WAYLAND_SOCKET=142 cosmic-applet-audio ' failed with code 101
Exited with error code 101
While I can't cause the applet to crash, moving the sliders back and forth quickly causes CPU usage to increase considerably.
This seems to have been fixed
I can't induce CPU usage spikes or crashes by dragging sliders around anymore. I think this is fixed.