| Summary: | Thumbnail Grid, Wayland (NVIDIA?): video memory leak each time Task Switcher is shown, leading to OOM crash | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | mooodyhunter <mooodyhunter> |
| Component: | effects-window-management | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | Keywords: | qt6 |
| Priority: | NOR | ||
| Version First Reported In: | 5.92.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=478770 | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/228ef989b4264b9cbac029c00d399dfb9f4bd0c2 | Version Fixed/Implemented In: | 6.0 |
| Sentry Crash Report: | |||
|
Description
mooodyhunter@outlook.com
2024-01-15 14:17:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4942 Git commit 203c4998bca5a949f05c495040ecce5e4a6d4eeb by David Redondo. Committed on 16/01/2024 at 13:45. Pushed by davidre into branch 'master'. Make sure window thumbnails and Qt Quick resources are destroyed properly Drops the doneCurrent as it was preventing proper cleanUp because no context was current when textures were deleted. Also avoid manipulating the context when Qt has the current one, as various Qt classes have guards around their cleanup handlers which rely on a current Qt context. Despite the comment the order of render control and view destruction needs to be switched as the QQuickWindow destructor calls into the render control to notify if of window destruction. Related: bug 478770 FIXED-IN:6.0 M +1 -2 src/effect/offscreenquickview.cpp M +10 -10 src/scripting/windowthumbnailitem.cpp https://invent.kde.org/plasma/kwin/-/commit/203c4998bca5a949f05c495040ecce5e4a6d4eeb Git commit 228ef989b4264b9cbac029c00d399dfb9f4bd0c2 by Vlad Zahorodnii, on behalf of David Redondo. Committed on 16/01/2024 at 14:34. Pushed by vladz into branch 'Plasma/6.0'. Make sure window thumbnails and Qt Quick resources are destroyed properly Drops the doneCurrent as it was preventing proper cleanUp because no context was current when textures were deleted. Also avoid manipulating the context when Qt has the current one, as various Qt classes have guards around their cleanup handlers which rely on a current Qt context. Despite the comment the order of render control and view destruction needs to be switched as the QQuickWindow destructor calls into the render control to notify if of window destruction. Related: bug 478770 FIXED-IN:6.0 (cherry picked from commit 203c4998bca5a949f05c495040ecce5e4a6d4eeb) M +1 -2 src/effect/offscreenquickview.cpp M +10 -10 src/scripting/windowthumbnailitem.cpp https://invent.kde.org/plasma/kwin/-/commit/228ef989b4264b9cbac029c00d399dfb9f4bd0c2 |