[kwin] [Bug 478770] overview effect leaks memory

2024-01-20 Thread Kenneth
https://bugs.kde.org/show_bug.cgi?id=478770

Kenneth  changed:

   What|Removed |Added

 CC||qufiwefefw...@gmail.com

--- Comment #6 from Kenneth  ---
*** Bug 480100 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2024-01-16 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=478770

Vlad Zahorodnii  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
   |ma/kwin/-/commit/203c4998bc |ma/kwin/-/commit/228ef989b4
   |a5a949f05c495040ecce5e4a6d4 |264b9cbac029c00d399dfb9f4bd
   |eeb |0c2

--- Comment #5 from Vlad Zahorodnii  ---
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 479846
FIXED-IN:6.0


(cherry picked from commit 203c4998bca5a949f05c495040ecce5e4a6d4eeb)

M  +1-2src/effect/offscreenquickview.cpp
M  +10   -10   src/scripting/windowthumbnailitem.cpp

https://invent.kde.org/plasma/kwin/-/commit/228ef989b4264b9cbac029c00d399dfb9f4bd0c2

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2024-01-16 Thread David Redondo
https://bugs.kde.org/show_bug.cgi?id=478770

David Redondo  changed:

   What|Removed |Added

   Version Fixed In||6.0
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/plas
   ||ma/kwin/-/commit/203c4998bc
   ||a5a949f05c495040ecce5e4a6d4
   ||eeb

--- Comment #4 from David Redondo  ---
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 479846
FIXED-IN:6.0

M  +1-2src/effect/offscreenquickview.cpp
M  +10   -10   src/scripting/windowthumbnailitem.cpp

https://invent.kde.org/plasma/kwin/-/commit/203c4998bca5a949f05c495040ecce5e4a6d4eeb

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2024-01-16 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=478770

Bug Janitor Service  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|ASSIGNED

--- Comment #3 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kwin/-/merge_requests/4942

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2024-01-15 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=478770

Vlad Zahorodnii  changed:

   What|Removed |Added

   See Also||https://bugs.kde.org/show_b
   ||ug.cgi?id=479846

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2023-12-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=478770

fanzhuyi...@gmail.com changed:

   What|Removed |Added

 CC||fanzhuyi...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2023-12-20 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=478770

--- Comment #2 from Harald Sitter  ---
Some more findings: running a bunch of fullscreen glxgears also seems to help
produce the leak. Also, as further confirmation that we are leaking mappings:
/proc/pid/maps keeps growing new maps after each overview.

Unfortunately due to the amount of mmap calls it's a bit awkward to debug this
further. Will probably need some scripting to trace call stacks and then filter
out all the ones that were unmapped again :/

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2023-12-20 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=478770

Bug Janitor Service  changed:

   What|Removed |Added

   Keywords||qt6

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2023-12-20 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=478770

Harald Sitter  changed:

   What|Removed |Added

   Keywords|qt6 |

--- Comment #1 from Harald Sitter  ---
The leak seems to happen much more when running a game. Case in point when I
have steam open + the game Dorfromantik
(+firefox,dolphin,telegram,element,discord,bottles) I get a some 100M leaked
every cycle.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 478770] overview effect leaks memory

2023-12-20 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=478770

Bug Janitor Service  changed:

   What|Removed |Added

   Keywords||qt6

-- 
You are receiving this mail because:
You are watching all bug changes.