Bug 441213 - [wayland] plasmashell leaks a lot of memory
Summary: [wayland] plasmashell leaks a lot of memory
Status: RESOLVED DUPLICATE of bug 428394
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-performance (other bugs)
Version First Reported In: 5.22.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2021-08-20 07:34 UTC by Jiri Slaby
Modified: 2022-01-14 16:04 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Slaby 2021-08-20 07:34:49 UTC
SUMMARY
After some uptime, plasmashell under wayland eats all the free memory here.

This looks similar to bug 428394 (leak in intel's driver).

STEPS TO REPRODUCE
1. use plasma
2. memory is filled up

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210817
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.13.1-1.gbebf622-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-6600U CPU @ 2.60GHz
Memory: 15.1 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 520

ADDITIONAL INFORMATION
heaptrack at: http://decibel.fi.muni.cz/~xslaby/n/heaptrack.plasmashell.20733.zst

But it is somehow mangled. Heaptrack apparently doesn't support DWARF 5, I see a lot of:
src/interpret/heaptrack_interpret.cpp:351 ERROR:Failed to create backtrace state for module /usr/lib64/qt5/plugins/platforms/libqwayland-generic.so: unrecognized DWARF version in .debug_info at 6 / Success (error code 0)

> $ readelf --debug-dump=info /usr/lib/debug/usr/lib64/qt5/plugins/platforms/libqwayland-generic.so-5.15.2+kde28-1.1.x86_64.debug
> Contents of the .debug_info section:
> ...
>   Compilation Unit @ offset 0x23:
>    Length:        0x3960d (32-bit)
>    Version:       5 <---------------------------
>    Unit Type:     DW_UT_compile (1)
>    Abbrev Offset: 0x0
>    Pointer Size:  8
Comment 1 David Edmundson 2021-08-20 08:31:22 UTC
That heaptrack also shows the vast majority of memory used inside QOpemGlContext::create  

and then going into "optionEE" inside the intel driver.
Comment 2 David Edmundson 2022-01-14 16:04:42 UTC

*** This bug has been marked as a duplicate of bug 428394 ***