| Summary: | Chrome on native Wayland causes a memory leak and excess CPU use in kwin_wayland | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Greg Varsanyi <gvarsanyi> |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Greg Varsanyi
2020-09-23 05:25:37 UTC
It seems like google chrome floods kwin with xdg_toplevel_decoration_v1.set_mode requests, which forces kwin to re-create decorations every frame. (In reply to Vlad Zahorodnii from comment #1) > It seems like google chrome floods kwin with > xdg_toplevel_decoration_v1.set_mode requests, which forces kwin to re-create > decorations every frame. That sounds wrong, I have opened a bug for it: https://bugs.chromium.org/p/chromium/issues/detail?id=1131662 Not freeing memory after dropped decorations is probably still something that needs to be fixed on the kwin side. And a safeguard mechanism to handle/throttle request floods like this would be great too. (In reply to Greg Varsanyi from comment #2) > Not freeing memory after dropped decorations is probably still something > that needs to be fixed on the kwin side. > And a safeguard mechanism to handle/throttle request floods like this would > be great too. Looks like I was wrong about that, apparently xdg-decoration spec says: > [...] clients are responsible for preventing configure loops and > must make sure not to send multiple successive set_mode requests > with the same decoration mode. On the Chrome side they have fixed the excessive calls (should be in next release), this ticket can be closed, resolved as "not a bug" on the KDE side. Awesome, thank you for keeping us updated. :-) |