<div dir="ltr">This is a helpful bug report, thanks. I'll try to simulate here and talk with the pipewire folks.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 2, 2023 at 9:11 PM <<a href="mailto:bugzilla_noreply@kde.org">bugzilla_noreply@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="https://bugs.kde.org/show_bug.cgi?id=470563" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=470563</a><br>
<br>
            Bug ID: 470563<br>
           Summary: konsole bell sound blows up memory usage of<br>
                    pipewire-pulse<br>
    Classification: Applications<br>
           Product: konsole<br>
           Version: 22.12.3<br>
          Platform: Kubuntu<br>
                OS: Linux<br>
            Status: REPORTED<br>
          Severity: normal<br>
          Priority: NOR<br>
         Component: general<br>
          Assignee: <a href="mailto:konsole-devel@kde.org" target="_blank">konsole-devel@kde.org</a><br>
          Reporter: <a href="mailto:dmattes@gmx.de" target="_blank">dmattes@gmx.de</a><br>
  Target Milestone: ---<br>
<br>
SUMMARY<br>
<br>
If konsole plays bell sounds in quick succession, the memory usage of the<br>
pipewire-pulse background process grows without limits. The memory usage does<br>
not go down over time. The pipewire-pulse process has to be restarted to<br>
reclaim the memory.<br>
<br>
STEPS TO REPRODUCE<br>
<br>
1. Open konsole.<br>
2. Open the Settings -> Configure Notifications ... dialog. Select "Bell in<br>
focused session" from the list of events. Check "Play a sound" and select an<br>
existing sound file. Apply.<br>
3. Press Ctrl+Esc to open the "System Activity" monitor - or any other too that<br>
is able to show the memory consumption of background processes.<br>
4. In the console window, press and hold backspace key for a few seconds to<br>
generate a quick succession of bell sounds.<br>
5. Watch how the memory consumption of pipewire-pulse behaves.<br>
<br>
OBSERVED RESULT<br>
<br>
The memory consumption grows to several hundred megabytes and stays high<br>
afterwards. When releasing the key, the memory consumption goes down a little<br>
bit but stays high. This behavior may also be caused by other applications that<br>
play sound. When I play audio using audacious or watching a video in firefox,<br>
the memory consumption of pipewire-pulse stays very low (a few megabytes). When<br>
I discovered the problem, pipewire-pulse permanently occupied over 600 MiB.<br>
After a reboot, the memory consumption was on the normal level of a few<br>
megabytes.<br>
<br>
EXPECTED RESULT<br>
<br>
I would expect that the memory consumption grows a bit while playing the<br>
possibly overlapping bell sounds and then<br>
goes down to a few megabytes after the internal buffers have been freed.<br>
<br>
SOFTWARE/OS VERSIONS<br>
Linux kernel: 6.2.0-20-generic (64-bit)<br>
KDE Plasma Version: 5.27.5 (backports on Kubuntu 23.04)<br>
KDE Frameworks Version: 5.106.0<br>
Qt Version: 5.15.8<br>
pipewire/pipewire-pulse Version: 0.3.65-3<br>
libpulse0 Version: 1:16.1+dfsg1-2ubuntu3<br>
<br>
ADDITIONAL INFORMATION<br>
<br>
The bug may be anywhere between konsole and pipewire-pulse. I filed this bug<br>
under konsole because it can be reproduced in the konsole window and I couldn't<br>
identify other applications that let the memory consumption grow that much.<br>
<br>
-- <br>
You are receiving this mail because:<br>
You are the assignee for the bug.</blockquote></div>