You are not logged in.

#1 2023-02-28 19:18:09

Bednar
Member
Registered: 2015-09-19
Posts: 73

[SOLVED] plasmashell memory usage grows rapidly and consumes all RAM

Link to an upstream bug report I created: https://bugs.kde.org/show_bug.cgi?id=466589

I am posting also here as I am not having this issue on Neon or Nobara so this might be arch specific.

Since very recently (not sure when exactly though) I have observed that the plasmashell process is consuming more and more memory at a frightening pace (e.g. usage grows to 22GB in the space of 3 minutes). Killing it doesn't always help (see video below).

video of plasmashell memory usage growing to 22GB in the space of less than 3 minutes.

https://mega.nz/file/o8pBARSY#QxC_k6BYt … uf3iMSFdMg

valgrind trace:

https://mega.nz/file/J0AhFIwK#pI_pFGmN8 … FPuwq3o1eo

I also tried:
1) monitoring the process with memleax but nothing was reported despite growing memory usage;
2) downgrading to glibc 2.36 but that didn't seem to help
3) disabling  libcamera in wireplumber
4) replacing wireplumber with pipewire-media-session

at the moment, as I type this, the process sits at 5.7 GB memory. Is there any way of checking where this memory gets allocated?

Thanks for any pointers

Operating System: Arch Linux
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT

SOLVED: https://bugs.kde.org/show_bug.cgi?id=466589

Last edited by Bednar (2023-03-06 20:47:40)

Offline

#2 2023-02-28 19:52:32

Bednar
Member
Registered: 2015-09-19
Posts: 73

Re: [SOLVED] plasmashell memory usage grows rapidly and consumes all RAM

memory seems to increase with each entry in the journal, but I am not sure if kpipewire is the offending component

kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)
kpipewire_logging: Window not available PipeWireSourceItem_QML_1002(0x560674771d20, parent=0x560674770440, geometry=0,0 106x45)

Offline

#3 2023-02-28 20:55:45

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: [SOLVED] plasmashell memory usage grows rapidly and consumes all RAM

Offline

#4 2023-02-28 21:36:26

Bednar
Member
Registered: 2015-09-19
Posts: 73

Re: [SOLVED] plasmashell memory usage grows rapidly and consumes all RAM

hi Seth!

Thanks, wireplumber spams the below in the journal:

journalctl -b --user-unit=wireplumber
Feb 28 20:51:39 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f553f340> failed to activate item: Object activation aborted: a transition failed
Feb 28 20:52:32 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f55bce20> Object activation aborted: proxy destroyed
Feb 28 20:52:32 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f55bce20> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 20:52:47 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5026d60> Object activation aborted: proxy destroyed
Feb 28 20:52:47 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5026d60> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 20:53:03 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5541900> Object activation aborted: proxy destroyed
Feb 28 20:53:03 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5541900> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:04:16 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f57bcfa0> Object activation aborted: proxy destroyed
Feb 28 21:04:16 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f57bcfa0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:06:59 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f57feae0> Object activation aborted: proxy destroyed
Feb 28 21:06:59 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f57feae0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:07:40 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f54edc40> Object activation aborted: proxy destroyed
Feb 28 21:07:40 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f54edc40> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:09:08 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50d6d60> Object activation aborted: proxy destroyed
Feb 28 21:09:08 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50d6d60> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:09:08 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f4fd3a80> Object activation aborted: proxy destroyed
Feb 28 21:09:08 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f4fd3a80> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:09:09 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f54edd60> Object activation aborted: proxy destroyed
Feb 28 21:09:09 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f54edd60> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:21:07 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f505bae0> Object activation aborted: proxy destroyed
Feb 28 21:21:07 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f505bae0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50d6f40> Object activation aborted: proxy destroyed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50d6f40> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50d6ee0> Object activation aborted: proxy destroyed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50d6ee0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f57ff840> Object activation aborted: a transition failed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f57ff840> failed to activate item: Object activation aborted: a transition failed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f54f14a0> Object activation aborted: proxy destroyed
Feb 28 21:23:44 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f54f14a0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:23:45 arch-Bednar wireplumber[997]: <WpSiNode:0x7f9e90002040> Object activation aborted: a transition failed
Feb 28 21:23:45 arch-Bednar wireplumber[997]: <WpSiNode:0x7f9e90002040> failed to activate item: Object activation aborted: a transition failed
Feb 28 21:23:45 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f505b8a0> Object activation aborted: proxy destroyed
Feb 28 21:23:45 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f505b8a0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:24:55 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5139ee0> Object activation aborted: proxy destroyed
Feb 28 21:24:55 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5139ee0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:25:17 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5139f40> Object activation aborted: a transition failed
Feb 28 21:25:17 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5139f40> failed to activate item: Object activation aborted: a transition failed
Feb 28 21:30:20 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f577c740> Object activation aborted: proxy destroyed
Feb 28 21:30:20 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f577c740> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:33:35 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5139dc0> Object activation aborted: proxy destroyed
Feb 28 21:33:35 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5139dc0> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 21:44:04 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5027280> Object activation aborted: proxy destroyed
Feb 28 21:44:04 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f5027280> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 22:29:53 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f4fe16e0> Object activation aborted: a transition failed
Feb 28 22:29:53 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f4fe16e0> failed to activate item: Object activation aborted: a transition failed
Feb 28 22:30:09 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50ee680> Object activation aborted: proxy destroyed
Feb 28 22:30:09 arch-Bednar wireplumber[997]: <WpSiNode:0x55e3f50ee680> failed to activate item: Object activation aborted: proxy destroyed

I will now try the solution from the linked gitlab thread:

https://gitlab.freedesktop.org/pipewire … issues/385

Last edited by Bednar (2023-02-28 21:53:37)

Offline

#5 2023-02-28 21:42:32

Bednar
Member
Registered: 2015-09-19
Posts: 73

Re: [SOLVED] plasmashell memory usage grows rapidly and consumes all RAM

I am also getting this:

 $ journalctl -b --user-unit=wireplumber

                                                                                                                                                         

Feb 28 22:38:01 arch-Bednar systemd[985]: Started Multimedia Service Session Manager.
Feb 28 22:38:01 arch-Bednar wireplumber[998]: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Feb 28 22:38:01 arch-Bednar wireplumber[998]: found session bus but no portal
Feb 28 22:38:01 arch-Bednar wireplumber[998]: Failed to set scheduler settings: Operation not permitted
Feb 28 22:38:05 arch-Bednar wireplumber[998]: <WpPortalPermissionStorePlugin:0x56090dc1df10> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Feb 28 22:40:50 arch-Bednar wireplumber[998]: <WpSiNode:0x56090e2fbe20> Object activation aborted: proxy destroyed
Feb 28 22:40:50 arch-Bednar wireplumber[998]: <WpSiNode:0x56090e2fbe20> failed to activate item: Object activation aborted: proxy destroyed
Feb 28 22:40:50 arch-Bednar wireplumber[998]: <WpSiNode:0x56090dd1d740> Object activation aborted: proxy destroyed
Feb 28 22:40:50 arch-Bednar wireplumber[998]: <WpSiNode:0x56090dd1d740> failed to activate item: Object activation aborted: proxy destroyed

I will report back on memory usage

Last edited by Bednar (2023-02-28 21:54:29)

Offline

#6 2023-02-28 21:50:57

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: [SOLVED] plasmashell memory usage grows rapidly and consumes all RAM

Please don't bump. Edit your previous post to mend or extend it if nobody has replied so far.
Please also edit your posts and wrap the output in "code" tags, https://bbs.archlinux.org/help.php#bbcode

Offline

Board footer

Powered by FluxBB