Bug 483351

Summary: plasma-emojier high memory usage
Product: [Plasma] plasmashell Reporter: Anton K <KVAnton.WEB>
Component: Emoji SelectorAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: 677ee1vp, antti.savo, backslashvortex, fanzhuyifan, kde, KVAnton.WEB, nate, nathanael.barentin
Priority: NOR Keywords: qt6
Version: 6.0.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: Qt 6.7
Sentry Crash Report:
Attachments: htop screenshot

Description Anton K 2024-03-12 15:39:22 UTC
Created attachment 167046 [details]
htop screenshot

SUMMARY
plasma-emojier memory leak

STEPS TO REPRODUCE
1. open plasma-emojier (I use a keyboard hot key)
2. switch different groups and use the search
3. observe the leak


SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.5-060505-generic (64-bit)
Graphics Platform: Wayland
Comment 1 fanzhuyifan 2024-03-12 15:45:42 UTC
Can reproduce the high memory usage part, but given that it doesn't grow without bound, and instead stabilizes around 2Gb, this probably isn't a leak but just high memory usage.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G16 GU603VV_GU603VV
System Version: 1.0
Comment 2 Kai Uwe Broulik 2024-03-12 16:14:20 UTC
Sounds like https://bugreports.qt.io/browse/QTBUG-120007
Comment 3 Nate Graham 2024-03-13 21:47:50 UTC
That was supposedly fixed in Qt 6.7 though, and Yifan is using that but can still reproduce the issue.
Comment 4 Anton K 2024-03-13 22:22:39 UTC
The bug is relevant after the update:

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 6500 XT
Comment 5 Antti Savolainen 2024-03-31 12:51:15 UTC
Still an issue. I already froze my PC once for going OOM. The memory reservation also lags the application.
Here's a demonstrative video: https://youtu.be/HtzUjkowq9o
Comment 6 Antti Savolainen 2024-03-31 12:53:05 UTC
The window size seems to affect how much memory the application is using. At minimum size it's barely noticeable but at full screen it can hog all of the RAM.
Comment 7 Nate Graham 2024-04-08 21:02:13 UTC
*** Bug 485241 has been marked as a duplicate of this bug. ***
Comment 8 Antti Savolainen 2024-04-13 10:51:32 UTC
Was this fixed in Qt 6.7? I'm no longer able to reproduce.
Comment 9 Nate Graham 2024-04-13 21:52:02 UTC
The upstream bug is marked as fixed in Qt 6.7, so it looks like it! Thanks for following up.