| Summary: | When a window is closed, kwin does not free the memory for its icon | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Kishore Gopalakrishnan <kishore96> |
| Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | kde, nate, qydwhotmail |
| Priority: | NOR | Keywords: | efficiency-and-performance |
| Version First Reported In: | 5.26.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | kwin support information | ||
|
Description
Kishore Gopalakrishnan
2022-11-26 16:21:25 UTC
Thank you for the bug report! Please note that Plasma 5.25.3 is not supported for much longer by KDE; supported versions are 5.24, and 5.26 or newer. If at all possible please upgrade to a supported version and verify that the bug is still happening there. If you're unsure how to do this, contact your distributor about it. Cannot reproduce (In reply to Fushan Wen from comment #2) > Cannot reproduce I can still reproduce this on Operating System: Arch Linux KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.101.0 Qt Version: 5.15.8 Kernel Version: 5.15.86-1-lts (64-bit) Graphics Platform: X11 mesa 22.3.2-3 I also noticed that the memory usage shown in ksysguard (for the kwin_x11 process) is much lower than that reported by heaptrack. Does this mean the leaks found by heaptrack are false positives? I find memory is not released when there is still plenty of free memory, so ksysguard may not report the accurate used memory. I can't see who deletes: ``` icons[i].data = new unsigned char[size]; ``` The array is cleaned up, but our array contains malloc'ed data. It's cleaned up if we readIcons multiple times, but not in the NetWinInfo destructor Edit, it's cleaned up in `refdec_nwi` |