Bug 463126

Summary: Many bells with sound notification slows terminal
Product: [Applications] konsole Reporter: Luiz Angelo De Luca <luizluca>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: bruno
Priority: NOR    
Version: 22.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luiz Angelo De Luca 2022-12-16 18:19:06 UTC
If you paste a large file into the terminal or cat a binary file, it generates lots of bells. If that bells is configured to play a sound, it will slow dramatically the process.

STEPS TO REPRODUCE
1. configure bell to play a sound
2. cat a large binary file

OBSERVED RESULT
3. it will play a long noise, merging many consecutive notifications. Terminal takes much longer to display the content 

EXPECTED RESULT
3. Notification should be handled async or it should be limited to a small number of occurrences per second. It should not affect terminal printing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: opensuse tumbleweed
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7 (compilado com 5.15.7)

ADDITIONAL INFORMATION
Comment 1 Kurt Hindenburg 2023-04-28 22:46:42 UTC
*** Bug 465469 has been marked as a duplicate of this bug. ***
Comment 2 Kurt Hindenburg 2023-04-28 22:47:42 UTC
Currently Konsole sends a notification every 500ms.   Perhaps that needs increased at the minimum.
Comment 3 Luiz Angelo De Luca 2023-08-31 19:33:51 UTC
(In reply to Kurt Hindenburg from comment #2)
> Currently Konsole sends a notification every 500ms.   Perhaps that needs
> increased at the minimum.

That does not seem to be what I experience. I almost hear a constant noise (about 700 bpm or less than 0.01s), even getting faster (about 1500 bpm) when I open the Audio panel in traybar. The main issue is not the noise but the fact that it hangs the main thread. It should not freeze the GUI because there are a large queue of notifications. It should simply discard them (maybe with a follow-up notification saying it missed some notifications like kernel does).

I still don't know why it bells (a lot) when I paste a large file. It is just text, with more data. Maybe the large paste warning dialog is related?

As a workaround, you can speed up things enabling the "Do not disturb" mode from notification panel in the tray icon (you may need to do it twice). Muting the app is not enough.