Bug 414671 - Lag when showing popups if event also has a sound associated with it
Summary: Lag when showing popups if event also has a sound associated with it
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-29 23:34 UTC by Mark Smith
Modified: 2023-10-19 03:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Video that shows a delayed popup and the same popup appearing immediately after the first delay. (299.12 KB, video/mp4)
2019-11-29 23:34 UTC, Mark Smith
Details
Audio device configuration. (63.89 KB, image/png)
2020-02-18 23:43 UTC, Mark Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Smith 2019-11-29 23:34:03 UTC
Created attachment 124194 [details]
Video that shows a delayed popup and the same popup appearing immediately after the first delay.

SUMMARY
In KDE Plasma 5.17 (Neon User, but it also happened on 5.16 and on Manjaro) some popups, such as confirmations when moving files to trash or any informational popup related to Plasma itself, shows up with a huge delay. I figured out a few things that may help figure out the bug. 

Basically, the delay starts presenting itself when I change the default output device. I have a motherboard with an integrated soundcard as it is normal, but I prefer to output through my monitor via the DisplayPort or HDMI cable. If I go to ~/.config/pulse and delete everything then restart pulseaudio, popups are instantaneous again, but as soon as I set HDMI\DP as default output, they become laggy again. 

Also, the delay only happens for popups that have a sound associated with it. If I remove the sound, the popups appear immediately. 

Finally, after a delayed popup, all subsequent ones are instantaneous. But after a while, the same popup will be laggy again. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon 5.17
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Video of the issue is attached.
Comment 1 Patrick Silva 2020-01-21 21:55:15 UTC
bug 416527 seems duplicate/related
Comment 2 Mark Smith 2020-01-26 21:50:54 UTC
(In reply to Patrick Silva from comment #1)
> bug 416527 seems duplicate/related

How did you solve it?
Comment 3 Patrick Silva 2020-01-26 22:03:17 UTC
(In reply to Mark Smith from comment #2)
> (In reply to Patrick Silva from comment #1)
> > bug 416527 seems duplicate/related
> 
> How did you solve it?

my pulseaudio was not working and it was causing my problem despite I always
mute the notification sounds on my system. Now pulse audio is working again here and I can't confirm your issue on my system even if system sounds are not muted. I use camberra for notification sounds. I'm not mistaken, phonon is problematic and can cause your issue.

https://wiki.archlinux.org/index.php/Libcanberra
Comment 4 Mark Smith 2020-02-18 23:42:30 UTC
I don't know much about this kind of stuff but I am pretty sure libcanberra is installed and enabled on my system and it is the default on KDE Neon User Edition. I think the issue only presents itself when you change the default output device. I changed it from the built in soundcard (which I also disabled but I don't think it matters) to the HDMI output on my Nvidia Geforce GTX1060 so that I can use the speakers connected to my monitor. If I have the HDMI output (see screenshot) selected, I get the lag unless I remove the sound associated with the event.
Comment 5 Mark Smith 2020-02-18 23:43:18 UTC
Created attachment 126149 [details]
Audio device configuration.
Comment 6 Mark Smith 2020-10-21 19:34:16 UTC
After messing up my system beyond repair, I reinstalled. I used the latest 5.20 iso and then updated to 5.20.1. As usual my audio output is as follows 
GPU -> HDMI -> Monitor -> Speakers

With sounds associated to events, from just the popping sound that happens when changing the volume using the keyboard to the bling sound that plays to confirm deleting a file, there is a massive delay like in my first video. 

And this makes me really sad :(

Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-52-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7,7 GiB of RAM
Graphics Processor: GeForce GTX 1060 6GB/PCIe/SSE2
Comment 7 Nate Graham 2023-09-19 20:21:38 UTC
Hello and thank you again for the bug report! Unfortunately we were not able to address it yet, nor even manage to reproduce the issue ourselves. Can we ask you to please check if this issue is still happening with Plasma 5.27?

If it is, please change the status to REPORTED. Thanks a lot!
Comment 8 Bug Janitor Service 2023-10-04 03:46:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-10-19 03:45:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!