! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
System lags when event sounds cannot be played
Status:
RESOLVED: INVALID
Product:
Xfce4-settings
Component:
Appearance Settings

Comments

Description Jerry Williams 2020-03-19 05:10:08 CET
System lags and doesn't give any indication of what is wrong when it cannot play event sounds.
Comment 1 Theo Linkspfeifer editbugs 2020-03-19 10:55:25 CET
Does the session log contain any hints?

~/.xsession-errors
Comment 2 Jerry Williams 2020-03-19 16:56:31 CET
Doesn't look like it.
Let me give you some more information about my set up.

Here are the steps I took:
- Reset the system in question and waited at the login screen
- Logged into another console and deleted the .xsession-errors
- Turned off the pulseaudio server on the remote machine (this is what causes the sounds not to play)
- Logged into xfce ("Enable event sounds" is off now)
- Right-click on the desktop to get to settings manager, appearance, settings, and check "Enable event sounds"
- Right-click on the desktop (this is where it lags)
- Uncheck "Enable event sounds"
- Right-click on the desktop (there is no lag now)
Comment 3 Theo Linkspfeifer editbugs 2020-03-19 18:23:34 CET
> this is where it lags
Please describe what exactly happens.

In case the problem is specific to xfdesktop (the component which manages the desktop area), check if the following command generates any output when you trigger the bug:
xfdesktop --quit; xfdesktop
Comment 4 Jerry Williams 2020-03-19 21:24:02 CET
It's not specific to the desktop.
Bringing up a right-click menu almost anywhere will trigger it. Other actions as well such as creating a new xfce4-terminal window, switching terminal tabs, alt+tab (with compositor and thumbnails on).

Triggering the condition running xfdesktop did not produce any output.

When I say lag, I mean the system becomes unresponsive to input.
Triggering the condition, such as right-clicking in Thunar, makes it not respond to click or keyboard, and I cannot switch to another app (by clicking or by alt+tab) until the menu comes up after a few seconds. During this delay, other apps are still running and updating fine (as shown by running top -d 00.1).
Comment 5 Theo Linkspfeifer editbugs 2020-03-20 12:54:48 CET
Event sounds are properly set up on your system, correct? It requires a GTK module to be loaded, but it may somehow trigger your bug in case of failure.

$ echo $GTK_MODULES
canberra-gtk-module

Check if unloading the module helps:
$ xfdesktop --quit; GTK_MODULES= xfdesktop
Comment 6 Jerry Williams 2020-03-20 23:32:42 CET
That was somewhat effective.

Right-clicking the desktop menu no longer triggers a lag.
But I notice that switching tabs in xfce4-terminal still causes lag. This is both by clicking on the tab in the tab bar and by Alt+2.
This happens only when the "Enable input feedback sounds" is checked.
Comment 7 Theo Linkspfeifer editbugs 2020-03-20 23:47:27 CET
So, this is not a bug in Xfce, but somewhere in the GTK toolkit or libcanberra. For the terminal make sure that all terminal windows are closed before starting it again without the module.
Comment 8 Jerry Williams 2020-03-22 01:18:39 CET
Yes, closing and re-opening the terminal made it not lag.

I'll report this to the libcanberra project.

Thanks for looking through this.

Bug #16571

Reported by:
Jerry Williams
Reported on: 2020-03-19
Last modified on: 2020-03-22

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Version:
4.14.1

Attachments

Additional information